mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
Previously the builder scripts defined a readonly `VERSION` environment variable for the Keyman version. That caused problems when another (external) script tried to define a `VERSION` variable. We encountered this problem when trying to move the TC build steps of a configuration into a single script (#13399) when we tried to source `~/.nvm/nvm.sh`. This change uses a Keyman specific prefix for the version variables and renames `VERSION` → `KEYMAN_VERSION` etc. Unfortunately these variables are used in a lot of places, so this turned out to be a bit of a yak shave. Test-bot: skip
37 lines
1.2 KiB
Groovy
37 lines
1.2 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
ext.rootPath = '../../../'
|
|
apply from: "$rootPath/version.gradle"
|
|
|
|
android {
|
|
compileSdk 34
|
|
namespace="com.keyman.android.tests.keycode"
|
|
|
|
defaultConfig {
|
|
applicationId "com.keyman.android.tests.keycode"
|
|
minSdkVersion 21
|
|
targetSdkVersion 34
|
|
|
|
// KEYMAN_VERSION_CODE and KEYMAN_VERSION_NAME from version.gradle
|
|
versionCode KEYMAN_VERSION_CODE as Integer
|
|
versionName KEYMAN_VERSION_NAME
|
|
buildConfigField "String", "KEYMAN_VERSION_ENVIRONMENT", "\""+KEYMAN_VERSION_ENVIRONMENT+"\""
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.12.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
|
|
testImplementation 'androidx.test:core:1.5.0'
|
|
testImplementation 'androidx.test.ext:junit:1.1.5'
|
|
testImplementation 'org.robolectric:robolectric:4.10.3'
|
|
}
|