add last commit hash to nightly build versions

This commit is contained in:
Rahul Patel
2025-04-26 19:08:05 +05:30
parent e789f74f18
commit 3119a043f9

View File

@@ -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 {