mirror of
https://github.com/InsanusMokrassar/KotlinMultiplatformProjectTemplate.git
synced 2024-11-10 18:33:54 +00:00
42 lines
1.1 KiB
Groovy
42 lines
1.1 KiB
Groovy
apply plugin: 'com.getkeepsafe.dexcount'
|
|
|
|
android {
|
|
compileSdkVersion libs.versions.android.compileSdk.get().toInteger()
|
|
buildToolsVersion libs.versions.android.buildTools.get()
|
|
|
|
defaultConfig {
|
|
minSdkVersion libs.versions.android.minSdk.get().toInteger()
|
|
targetSdkVersion libs.versions.android.compileSdk.get().toInteger()
|
|
versionCode "${android_code_version}".toInteger()
|
|
versionName "$version"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
debug {
|
|
debuggable true
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/kotlinx-serialization-runtime.kotlin_module'
|
|
exclude 'META-INF/kotlinx-serialization-cbor.kotlin_module'
|
|
exclude 'META-INF/kotlinx-serialization-properties.kotlin_module'
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
}
|
|
|
|
sourceSets {
|
|
String sep = File.separator
|
|
main.java.srcDirs += "src${sep}main${sep}kotlin"
|
|
}
|
|
}
|