0
0
mirror of https://github.com/florisboard/florisboard.git synced 2024-09-19 19:42:20 +02:00

Rework version name handling in Gradle (#2565)

This commit is contained in:
Patrick Goldinger 2024-09-18 05:43:48 +02:00 committed by GitHub
parent e52bea2456
commit 887a75a482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -32,7 +32,7 @@ val projectBuildToolsVersion: String by project
val projectNdkVersion: String by project
val projectVersionCode: String by project
val projectVersionName: String by project
val projectVersionNameSuffix: String by project
val projectVersionNameSuffix = projectVersionName.substringAfter("-", "")
android {
namespace = "dev.patrickgold.florisboard"
@ -59,7 +59,7 @@ android {
minSdk = projectMinSdk.toInt()
targetSdk = projectTargetSdk.toInt()
versionCode = projectVersionCode.toInt()
versionName = projectVersionName
versionName = projectVersionName.substringBefore("-")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@ -106,7 +106,7 @@ android {
buildTypes {
named("debug") {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug-${getGitCommitHash(short = true)}"
versionNameSuffix = "-debug+${getGitCommitHash(short = true)}"
isDebuggable = true
isJniDebuggable = false

View File

@ -14,5 +14,4 @@ projectBuildToolsVersion=34.0.0
projectNdkVersion=26.1.10909125
projectVersionCode=97
projectVersionName=0.4.0
projectVersionNameSuffix=-rc02
projectVersionName=0.4.0-rc02