From 537808ca108068da8205e41345ea9b1c58033df8 Mon Sep 17 00:00:00 2001 From: Amir Khodak Date: Sun, 7 Jun 2026 02:08:10 +0000 Subject: [PATCH] v1.0.70: single-source version (name always tracks build number) versionName is now derived as 1.0., so the git tag, APK filename, and in-app About version are always the same number and can't drift. --- app/build.gradle.kts | 5 ++++- version.properties | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3f7d2a0..fd5e855 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -33,7 +33,10 @@ android { minSdk = 26 targetSdk = 35 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" // Placeholder — replace with real keys before release diff --git a/version.properties b/version.properties index e0c9d89..282f4b2 100644 --- a/version.properties +++ b/version.properties @@ -1,2 +1,2 @@ -VERSION_NAME=1.0.68 -VERSION_CODE=69 +VERSION_NAME=1.0.70 +VERSION_CODE=70