From 288639514b2836c0ba4edb88ca359e8e7e7d61cc Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 1 Oct 2026 21:20:12 -0700 Subject: [PATCH] build, move the responsibility of the version string to the file where the version is actually managed, so that strings.xml does not also need edited every update. --- app/build.gradle | 3 +++ app/src/main/res/values/strings.xml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index c52c6a5..687ac7b 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,6 +10,9 @@ android { targetSdkVersion 36 versionCode 11 versionName "1.0.4" + applicationVariants.all { variant -> + variant.resValue "string", "version_number", "-=" + variant.versionName + " =-" + } } buildTypes { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4e34658..b17a9dd 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -6,8 +6,11 @@ Carb Up! Settings Main + + Hyperling