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'
|
2023-11-04 12:05:01 +01:00
|
|
|
apply plugin: 'kotlinx-serialization'
|
2019-12-31 18:19:35 +01:00
|
|
|
|
|
|
|
android {
|
2023-10-21 10:23:18 +02:00
|
|
|
compileSdk 34
|
2023-12-20 13:02:11 +04:00
|
|
|
buildToolsVersion = '34.0.0'
|
2019-12-31 18:19:35 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
2024-01-31 19:49:50 +01:00
|
|
|
applicationId "helium314.keyboard"
|
2024-01-08 09:27:06 +01:00
|
|
|
minSdkVersion 21
|
2023-10-21 10:23:18 +02:00
|
|
|
targetSdkVersion 34
|
2024-01-31 18:32:43 +01:00
|
|
|
versionCode 1000
|
|
|
|
versionName '1.0-alpha1'
|
2024-02-01 21:43:43 +01:00
|
|
|
ndk {
|
|
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
|
|
|
|
}
|
2024-02-01 22:10:54 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2019-12-31 18:19:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
2023-09-07 17:51:37 +02:00
|
|
|
minifyEnabled true
|
2024-02-01 22:10:54 +01:00
|
|
|
shrinkResources true
|
|
|
|
debuggable false
|
|
|
|
jniDebuggable false
|
|
|
|
renderscriptDebuggable false
|
|
|
|
}
|
|
|
|
nouserlib { // same as release, but does not allow the user to provide a library
|
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2020-10-02 14:14:04 +02:00
|
|
|
debuggable false
|
|
|
|
jniDebuggable false
|
|
|
|
renderscriptDebuggable false
|
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
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
}
|
2024-02-14 09:22:30 +01:00
|
|
|
archivesBaseName = "HeliBoard_" + 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-12-20 13:02:11 +04:00
|
|
|
ndkVersion '26.1.10909125'
|
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-10-15 16:33:51 +02:00
|
|
|
|
2023-09-26 11:34:32 +02:00
|
|
|
compileOptions {
|
2023-10-15 16:33:51 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2023-09-26 11:34:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
2023-10-15 16:33:51 +02:00
|
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
2023-09-26 11:34:32 +02:00
|
|
|
}
|
|
|
|
|
2024-02-14 09:22:30 +01:00
|
|
|
// see https://github.com/Helium314/HeliBoard/issues/477
|
2024-02-11 06:53:49 +01:00
|
|
|
dependenciesInfo {
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
|
|
|
|
2024-01-31 18:32:43 +01:00
|
|
|
namespace "helium314.keyboard.latin"
|
2019-12-31 18:19:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-10-21 10:23:18 +02:00
|
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
2023-09-01 10:19:09 +02:00
|
|
|
implementation 'androidx.preference:preference:1.2.1' // includes appcompat
|
2023-12-20 13:02:11 +04:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.3.2'
|
2023-09-26 11:34:32 +02:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
2024-02-01 22:10:54 +01:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2"
|
2023-10-17 12:12:57 +02:00
|
|
|
implementation 'com.github.martin-stone:hsv-alpha-color-picker-android:3.1.0'
|
2023-12-29 12:51:46 +04:00
|
|
|
implementation 'androidx.autofill:autofill:1.1.0'
|
2023-09-19 19:39:47 +02:00
|
|
|
|
2023-08-28 19:50:55 +02:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2023-12-20 13:02:11 +04:00
|
|
|
testImplementation 'org.mockito:mockito-core:5.7.0'
|
|
|
|
testImplementation 'org.mockito:mockito-inline:5.2.0'
|
2023-11-20 00:48:26 +01:00
|
|
|
testImplementation 'org.robolectric:robolectric:4.11.1'
|
2023-09-19 19:39:47 +02:00
|
|
|
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
|
|
|
}
|