apply plugin: 'com.android.library'
android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
debuggable true
jniDebuggable true
ndk {
// Building with NDK_DEBUG=1 for mips crashes the compiler in ndk 14.
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
}
//sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call
externalNativeBuild {
ndkBuild {
path 'src/main/jni/Android.mk'
}
}
ndkVersion '21.3.6528147'
useLibrary 'android.test.base' // for android.test.AndroidTestCase
useLibrary 'android.test.runner' // for android.test.MoreAsserts
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation 'androidx.annotation:annotation:1.1.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test:rules:1.2.0'
testImplementation 'junit:junit:4.13'
}
allprojects {
repositories {
// The order in which you list these repositories matter.
google()
jcenter()
}
}