v1.0.70: single-source version (name always tracks build number)
Build & Release APK / build (push) Successful in 12m58s
Build & Release APK / build (push) Successful in 12m58s
versionName is now derived as 1.0.<versionCode>, so the git tag, APK filename, and in-app About version are always the same number and can't drift.
This commit is contained in:
@@ -33,7 +33,10 @@ android {
|
|||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 35
|
targetSdk = 35
|
||||||
versionCode = versionProps["VERSION_CODE"].toString().toInt()
|
versionCode = versionProps["VERSION_CODE"].toString().toInt()
|
||||||
versionName = versionProps["VERSION_NAME"].toString()
|
// Single source of truth: the human version always tracks the build number, so the
|
||||||
|
// git tag (v1.0.N), the APK filename, and the in-app "About" all read 1.0.N and
|
||||||
|
// can never drift apart again. Bump only VERSION_CODE in version.properties.
|
||||||
|
versionName = "1.0.${versionProps["VERSION_CODE"].toString().toInt()}"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
// Placeholder — replace with real keys before release
|
// Placeholder — replace with real keys before release
|
||||||
|
|||||||
+2
-2
@@ -1,2 +1,2 @@
|
|||||||
VERSION_NAME=1.0.68
|
VERSION_NAME=1.0.70
|
||||||
VERSION_CODE=69
|
VERSION_CODE=70
|
||||||
|
|||||||
Reference in New Issue
Block a user