chore(ci): Decouple versioncode (#2393)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-07-08 17:12:16 +00:00 committed by GitHub
parent db17815576
commit 1f0beb0fdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 3 deletions

View file

@ -52,8 +52,8 @@ android {
applicationId = Configs.APPLICATION_ID
minSdk = Configs.MIN_SDK_VERSION
targetSdk = Configs.TARGET_SDK
versionCode =
Configs.VERSION_CODE // format is Mmmss (where M is 1+the numeric major number)
versionCode = System.getenv("VERSION_CODE")?.toIntOrNull()
?: 1
versionName = Configs.VERSION_NAME
testInstrumentationRunner = "com.geeksville.mesh.TestRunner"
buildConfigField("String", "MIN_FW_VERSION", "\"${Configs.MIN_FW_VERSION}\"")