ldc-tid-logistique/app/build.gradle
Gaurav Ujjwal 45b5fc4696 Disable APK splitting based on language & density
Resources in density-split APKs are not properly handled by AAB, which
causes a lot of warnings from Android.
2022-05-20 21:23:50 +05:30

111 lines
No EOL
3.4 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlinx-serialization'
apply plugin: 'kotlin-parcelize'
android {
compileSdkVersion 30
defaultConfig {
applicationId "com.gaurav.avnc"
minSdkVersion 21
targetSdkVersion 30
versionCode 11
versionName "1.8.1"
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/roomSchema/".toString()]
}
}
externalNativeBuild {
cmake {
//We are not using STL
arguments '-DANDROID_STL=none'
targets 'native-vnc', 'vncclient', 'turbojpeg-static', 'wolfssl'
}
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
applicationIdSuffix '.debug'
versionNameSuffix ' (debug)'
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
ci {
initWith(release)
applicationIdSuffix '.ci'
versionNameSuffix ' (CI)'
}
}
buildFeatures {
dataBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
externalNativeBuild {
cmake {
path file('CMakeLists.txt')
}
}
bundle {
density {
enableSplit false
}
language {
enableSplit false
}
}
}
dependencies {
implementation "androidx.core:core-ktx:1.5.0"
implementation "androidx.activity:activity-ktx:1.2.3"
implementation "androidx.fragment:fragment-ktx:1.3.4"
implementation "androidx.appcompat:appcompat:1.3.0"
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
implementation "androidx.biometric:biometric-ktx:1.2.0-alpha03"
implementation "androidx.preference:preference:1.1.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
implementation "androidx.recyclerview:recyclerview:1.2.0"
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation "androidx.drawerlayout:drawerlayout:1.1.1"
implementation "androidx.room:room-runtime:2.3.0"
implementation "androidx.room:room-ktx:2.3.0"
kapt "androidx.room:room-compiler:2.3.0"
implementation "com.google.android.material:material:1.3.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0"
implementation "org.connectbot:sshlib:2.2.19"
testImplementation "junit:junit:4.13"
androidTestImplementation "androidx.test:runner:1.4.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
androidTestImplementation "androidx.test.espresso:espresso-contrib:3.4.0"
androidTestImplementation "androidx.test.espresso:espresso-intents:3.4.0"
androidTestImplementation "androidx.test:rules:1.4.0"
androidTestImplementation "androidx.test.ext:junit-ktx:1.1.3"
androidTestImplementation "io.mockk:mockk-android:1.12.0"
}