Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
f5edf1569c
commit
a2d299e136
3 files changed
+65
-22
No files matched your search
@@ -19,6 +19,12 @@ android {
|
||||
// Falls back to defaults for local development.
|
||||
versionCode = (project.findProperty("versionCode") as? String)?.toIntOrNull() ?: 1
|
||||
versionName = (project.findProperty("versionName") as? String) ?: "1.0-dev"
|
||||
|
||||
// Embed git commit SHA for the About card in Settings
|
||||
val gitSha = providers.exec {
|
||||
commandLine("git", "rev-parse", "--short", "HEAD")
|
||||
}.standardOutput.asText.get().trim()
|
||||
buildConfigField("String", "GIT_SHA", "\"$gitSha\"")
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
|
||||
Reference in new issue
Block a user