From 39b48e53cd5eb534037842dc5f0acdc1fed40130 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 5 May 2026 13:18:01 -1000 Subject: feat: auto-increment build version with commit summary versionCode = github.run_number (increments each CI run) versionName = "1.0. ( )" e.g. "1.0.47 (2123351 fix: keep bottom nav visible when panning)" Local builds show "1.0-local (1)" as fallback. Firebase release notes also show the version string. Co-Authored-By: Claude Sonnet 4.6 --- android-app/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'android-app') diff --git a/android-app/app/build.gradle b/android-app/app/build.gradle index f6ad111..554b513 100644 --- a/android-app/app/build.gradle +++ b/android-app/app/build.gradle @@ -15,8 +15,8 @@ android { applicationId "org.terst.nav" minSdk 24 targetSdk 34 - versionCode 1 - versionName "1.0" + versionCode project.hasProperty('buildVersionCode') ? project.buildVersionCode.toInteger() : 1 + versionName project.hasProperty('buildVersionName') ? project.buildVersionName : "1.0-local" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } -- cgit v1.2.3