This commit is contained in:
Zane Schepke 2024-07-29 00:19:55 -04:00
parent 70c9499a8c
commit 78cb70ea5c
1 changed files with 3 additions and 2 deletions

View File

@ -200,7 +200,8 @@ fun determineVersionCode(): Int {
fun determineVersionName(): String { fun determineVersionName(): String {
return with(getBuildTaskName().lowercase()) { return with(getBuildTaskName().lowercase()) {
when { when {
contains(Constants.NIGHTLY) || contains(Constants.PRERELEASE) -> Constants.VERSION_NAME + contains(Constants.NIGHTLY) || contains(Constants.PRERELEASE) ->
Constants.VERSION_NAME +
"-${grgitService.service.get().grgit.head().abbreviatedId}" "-${grgitService.service.get().grgit.head().abbreviatedId}"
else -> Constants.VERSION_NAME else -> Constants.VERSION_NAME
} }