MicroUtils/defaultAndroidSettings.gradle

46 lines
1.3 KiB
Groovy
Raw Normal View History

2020-12-02 10:21:31 +00:00
apply plugin: 'com.getkeepsafe.dexcount'
2020-11-10 09:43:15 +00:00
android {
compileSdkVersion "$android_compileSdkVersion".toInteger()
buildToolsVersion "$android_buildToolsVersion"
defaultConfig {
minSdkVersion "$android_minSdkVersion".toInteger()
targetSdkVersion "$android_compileSdkVersion".toInteger()
versionCode "${android_code_version}".toInteger()
versionName "$version"
}
buildTypes {
release {
minifyEnabled false
}
2020-11-11 10:06:44 +00:00
debug {
debuggable true
}
2020-11-10 09:43:15 +00:00
}
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()
}
2020-11-11 10:06:44 +00:00
sourceSets {
2021-04-20 13:17:59 +00:00
String sep = File.separator
main.java.srcDirs += "src${sep}main${sep}kotlin"
File jvmKotlinFolder = new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
if (jvmKotlinFolder.exists()) {
main.java.srcDirs += jvmKotlinFolder.path
}
2020-11-11 10:06:44 +00:00
}
2020-11-10 09:43:15 +00:00
}