58 lines
1.3 KiB
Kotlin
58 lines
1.3 KiB
Kotlin
import java.util.Properties
|
|
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
}
|
|
|
|
val keystoreProps = Properties().apply {
|
|
val f = rootProject.file("keystore.properties")
|
|
if (f.exists()) f.inputStream().use { load(it) }
|
|
}
|
|
|
|
android {
|
|
namespace = "ru.ua1zbe.aprsmap"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "ru.ua1zbe.aprsmap"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 2
|
|
versionName = "1.0.1"
|
|
}
|
|
|
|
signingConfigs {
|
|
if (keystoreProps["KPASS"] != null) {
|
|
create("release") {
|
|
storeFile = rootProject.file("aprsmap-release.jks")
|
|
storePassword = keystoreProps["KPASS"] as String
|
|
keyAlias = "aprsmap"
|
|
keyPassword = keystoreProps["KPASS"] as String
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
signingConfig = signingConfigs.findByName("release")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
lint {
|
|
checkReleaseBuilds = false
|
|
abortOnError = false
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
}
|
|
} |