2019-01-14 06:03:18 +02:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion xversions.compileSdk
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion xversions.minSdk
|
|
|
|
targetSdkVersion xversions.targetSdk
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
2019-01-15 09:10:59 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2019-01-14 06:03:18 +02:00
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
// https://developer.android.com/ndk/guides/cmake
|
|
|
|
cmake {
|
|
|
|
cppFlags "-std=c++11 -frtti -fexceptions"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ndk {
|
|
|
|
abiFilters xabis
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
2019-01-15 09:10:59 +02:00
|
|
|
path "CMakeLists.txt"
|
2019-01-14 06:03:18 +02:00
|
|
|
}
|
|
|
|
}
|
2019-01-15 09:10:59 +02:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2019-01-14 06:03:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
2019-01-15 09:10:59 +02:00
|
|
|
implementation 'androidx.annotation:annotation:1.0.1'
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
2019-01-14 06:03:18 +02:00
|
|
|
}
|