Release 1.0.0: signing config, version 1.0.0

This commit is contained in:
ua1zbe
2026-09-23 08:46:44 +03:00
parent b56b891478
commit eaa2472a8e
2 changed files with 23 additions and 2 deletions

2
.gitignore vendored
View File

@@ -10,3 +10,5 @@ build/
captures/ captures/
*.apk *.apk
*.aab *.aab
keystore.properties
*.jks

View File

@@ -1,8 +1,15 @@
import java.util.Properties
plugins { plugins {
id("com.android.application") id("com.android.application")
id("org.jetbrains.kotlin.android") id("org.jetbrains.kotlin.android")
} }
val keystoreProps = Properties().apply {
val f = rootProject.file("keystore.properties")
if (f.exists()) f.inputStream().use { load(it) }
}
android { android {
namespace = "ru.ua1zbe.aprsmap" namespace = "ru.ua1zbe.aprsmap"
compileSdk = 34 compileSdk = 34
@@ -12,12 +19,24 @@ android {
minSdk = 26 minSdk = 26
targetSdk = 34 targetSdk = 34
versionCode = 1 versionCode = 1
versionName = "1.0" versionName = "1.0.0"
}
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 { buildTypes {
release { release {
isMinifyEnabled = false isMinifyEnabled = false
signingConfig = signingConfigs.findByName("release")
} }
} }