2019-12-31 18:19:35 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2020-01-20 19:24:43 +01:00
|
|
|
apply plugin: 'kotlin-android'
|
2019-12-31 18:19:35 +01:00
|
|
|
|
|
|
|
android {
|
2023-09-26 11:34:32 +02:00
|
|
|
compileSdk 33
|
2019-12-31 18:19:35 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.dslul.openboard.inputmethod.latin"
|
2020-01-20 19:24:43 +01:00
|
|
|
minSdkVersion 19
|
2023-06-25 14:51:13 +02:00
|
|
|
targetSdkVersion 33
|
2022-08-05 18:22:32 +02:00
|
|
|
versionCode 19
|
|
|
|
versionName '1.4.5'
|
2019-12-31 18:19:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2023-09-07 17:51:37 +02:00
|
|
|
minifyEnabled true
|
|
|
|
//shrinkResources true todo: test before enabling, a lot of resources are accessed via getIdentifier and possibly not all have been marked with "keep"
|
2020-10-02 14:14:04 +02:00
|
|
|
debuggable false
|
|
|
|
jniDebuggable false
|
|
|
|
renderscriptDebuggable false
|
2023-09-07 17:51:37 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'src/main/proguard.flags'
|
2019-12-31 18:19:35 +01:00
|
|
|
}
|
2023-06-25 16:47:36 +02:00
|
|
|
debug {
|
2023-09-07 17:51:37 +02:00
|
|
|
minifyEnabled true
|
2023-06-25 16:47:36 +02:00
|
|
|
jniDebuggable false
|
2023-09-07 17:51:37 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'src/main/proguard.flags'
|
2023-06-25 16:47:36 +02:00
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
}
|
|
|
|
archivesBaseName = "openboard_" + defaultConfig.versionName
|
2019-12-31 18:19:35 +01:00
|
|
|
}
|
|
|
|
|
2023-09-26 11:34:32 +02:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
buildConfig true
|
|
|
|
}
|
2019-12-31 18:19:35 +01:00
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
ndkBuild {
|
2020-09-09 10:28:12 +02:00
|
|
|
path 'src/main/jni/Android.mk'
|
2019-12-31 18:19:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-02 14:14:04 +02:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
2023-09-21 07:35:23 +02:00
|
|
|
ndkVersion '25.2.9519653'
|
2023-09-26 11:34:32 +02:00
|
|
|
androidResources { // todo: check, probably both can be removed (together with searching dicts in res/raw)
|
2023-06-26 13:25:32 +02:00
|
|
|
noCompress 'main.dict'
|
|
|
|
noCompress 'empty.dict'
|
2022-01-23 11:41:23 +01:00
|
|
|
}
|
2023-08-29 07:52:18 +02:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
jniLibs {
|
|
|
|
// shrinks APK by 3 MB, zipped size unchanged
|
|
|
|
useLegacyPackaging true
|
|
|
|
}
|
|
|
|
}
|
2023-09-19 19:39:47 +02:00
|
|
|
|
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
2023-09-26 11:34:32 +02:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace "org.dslul.openboard.inputmethod.latin"
|
2019-12-31 18:19:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-06-25 14:51:13 +02:00
|
|
|
implementation 'androidx.core:core-ktx:1.10.1'
|
2023-09-01 10:19:09 +02:00
|
|
|
implementation 'androidx.preference:preference:1.2.1' // includes appcompat
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.3.1'
|
2023-09-26 11:34:32 +02:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2023-09-12 14:21:40 +02:00
|
|
|
implementation 'com.github.skydoves:colorpickerview:2.2.4'
|
2023-09-19 19:39:47 +02:00
|
|
|
|
2023-08-28 19:50:55 +02:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2023-09-19 19:39:47 +02:00
|
|
|
testImplementation 'org.mockito:mockito-core:3.12.4'
|
|
|
|
testImplementation 'org.mockito:mockito-inline:3.12.4'
|
|
|
|
testImplementation 'org.robolectric:robolectric:4.9'
|
|
|
|
testImplementation 'androidx.test:runner:1.5.2'
|
2023-09-26 11:34:32 +02:00
|
|
|
testImplementation 'androidx.test:core:1.5.0'
|
2020-01-20 19:24:43 +01:00
|
|
|
}
|