From 61545b767d895e876e1c5ea6e6a7e2f86bd819c7 Mon Sep 17 00:00:00 2001 From: 2ro <17595647+2ro@users.noreply.github.com> Date: Fri, 3 Jul 2026 11:47:38 -0400 Subject: [PATCH] android: version tracks GOBLIN_BUILD, not GRIM's frozen 0.3.6 versionCode/versionName were inherited from GRIM (5 / "0.3.6") at the fork and never rewired to Goblin's build number, so every build shipped as versionCode 5 - Android could not tell builds apart and Settings showed 0.3.6 for build 130. Gradle now derives both from the GOBLIN_BUILD env (the same number the Rust side stamps into crate::BUILD), with a fallback to the old values for a keyless local gradle build. --- android/app/build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 04c0bd6..47d0af0 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -11,8 +11,15 @@ android { applicationId "st.goblin.wallet" minSdk 24 targetSdk 36 - versionCode 5 - versionName "0.3.6" + // Version tracks Goblin's build number (GOBLIN_BUILD) so the Android + // package identity moves forward with every release instead of freezing. + // Same env the Rust side stamps into crate::BUILD; the in-app updater + // compares build numbers, and this keeps versionCode (Android's + // upgrade/downgrade integer) in lockstep. Bare local gradle → fallback. + // ponytail: fallback keeps a keyless ./gradlew working; CI/release sets the env + def goblinBuild = (System.getenv("GOBLIN_BUILD") ?: "").trim() + versionCode goblinBuild.isEmpty() ? 5 : goblinBuild.toInteger() + versionName goblinBuild.isEmpty() ? "0.3.6" : goblinBuild } lint {