KotlinMultiplatformProjectT.../defaultAndroidSettings.gradle

41 lines
1.2 KiB
Groovy
Raw Permalink Normal View History

2020-12-02 15:50:52 +00:00
apply plugin: 'com.getkeepsafe.dexcount'
android {
2022-01-29 15:47:34 +00:00
compileSdkVersion libs.versions.android.compileSdk.get().toInteger()
buildToolsVersion libs.versions.android.buildTools.get()
2020-12-02 15:50:52 +00:00
2023-11-02 13:27:02 +00:00
namespace "${group}.${project.name}"
2020-12-02 15:50:52 +00:00
defaultConfig {
2022-01-29 15:47:34 +00:00
minSdkVersion libs.versions.android.minSdk.get().toInteger()
2024-08-14 10:23:54 +00:00
compileSdkVersion libs.versions.android.compileSdk.get().toInteger()
2022-01-29 15:47:34 +00:00
targetSdkVersion libs.versions.android.compileSdk.get().toInteger()
2020-12-02 15:50:52 +00:00
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 {
2023-11-02 13:19:33 +00:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
2020-12-02 15:50:52 +00:00
}
sourceSets {
String sep = File.separator
main.java.srcDirs += "src${sep}main${sep}kotlin"
2020-12-02 15:50:52 +00:00
}
}