feat(build): add separate versionCode for debug build type

Renamed purefinVersionCode to purefinReleaseVersionCode and added purefinDebugVersionCode to allow independent version tracking for debug and release builds.
This commit is contained in:
2026-05-23 09:31:47 +00:00
parent 2e4eb2fb30
commit 8d73974add
3 changed files with 6 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ android {
applicationId = "hu.bbara.purefin"
minSdk = 29
targetSdk = 36
versionCode = providers.gradleProperty("purefinVersionCode").get().toInt()
versionName = "0.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
@@ -25,10 +24,12 @@ android {
buildTypes {
debug {
applicationIdSuffix = ".debug"
versionCode = providers.gradleProperty("purefinDebugVersionCode").get().toInt()
versionNameSuffix = "-debug"
manifestPlaceholders["updateManifestUrl"] = "https://apks.t.bbara.hu/apks/purefin-app-debug/update.json"
}
release {
versionCode = providers.gradleProperty("purefinReleaseVersionCode").get().toInt()
// Enables code-related app optimization.
isMinifyEnabled = true