add last commit hash to nightly build versions
This commit is contained in:
committed by
Aayush Gupta
parent
011ac6127a
commit
f9d6ac6bf8
@@ -34,6 +34,10 @@ plugins {
|
||||
alias(libs.plugins.hilt.android.plugin)
|
||||
}
|
||||
|
||||
val lastCommitHash = providers.exec {
|
||||
commandLine("git", "rev-parse", "--short", "HEAD")
|
||||
}.standardOutput.asText.map { it.trim() }
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
}
|
||||
@@ -95,6 +99,7 @@ android {
|
||||
register("nightly") {
|
||||
initWith(getByName("release"))
|
||||
applicationIdSuffix = ".nightly"
|
||||
versionNameSuffix = "-${lastCommitHash.get()}"
|
||||
}
|
||||
|
||||
debug {
|
||||
|
||||
Reference in New Issue
Block a user