mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Support not having git for making android builds (#1237)
This commit is contained in:
4
server/.gitignore
vendored
4
server/.gitignore
vendored
@@ -19,3 +19,7 @@ Load AutoBone Recordings
|
||||
*.log.lck
|
||||
*.log
|
||||
logs/
|
||||
|
||||
android/release
|
||||
android/debug
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user