Support not having git for making android builds (#1237)

This commit is contained in:
Uriel
2024-11-13 22:08:56 +01:00
committed by GitHub
parent 288db165a7
commit 222359692e
2 changed files with 9 additions and 2 deletions

4
server/.gitignore vendored
View File

@@ -19,3 +19,7 @@ Load AutoBone Recordings
*.log.lck
*.log
logs/
android/release
android/debug

View File

@@ -124,11 +124,14 @@ android {
// Specifies the API level used to test the app.
targetSdk = 35
// adds an offset of the version code as we might do apk releases in the middle of actual
// releases if we failed on bundling or stuff
val versionCodeOffset = 1
// Defines the version number of your app.
versionCode = extra["gitVersionCode"] as? Int
versionCode = (extra["gitVersionCode"] as? Int)?.plus(versionCodeOffset) ?: 0
// Defines a user-friendly version name for your app.
versionName = extra["gitVersionName"] as? String
versionName = extra["gitVersionName"] as? String ?: "v0.0.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}