Skip to content

Commit

Permalink
[app] add gradle task to print versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornaco committed Sep 10, 2022
1 parent 3330d5a commit d675b6e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,22 @@ plugins {
androidGitVersion {
prefix = "v"
codeFormat = "MMNNPP"
baseCode = 3030164
baseCode = 3030167
}

thanoxVersionCode = androidGitVersion.code()
thanoxVersionName = androidGitVersion.name()

log("thanoxVersionCode: $thanoxVersionCode")
log("thanoxVersionName: $thanoxVersionName")
printVersions()

task("printVersions") {
printVersions()
}

fun printVersions() {
log("thanoxVersionCode: $thanoxVersionCode")
log("thanoxVersionName: $thanoxVersionName")
}

subprojects {
log("subprojects: ${this.name}")
Expand Down

0 comments on commit d675b6e

Please sign in to comment.