Skip to content

Commit

Permalink
fix: corrected the version name printed from task printBuildName
Browse files Browse the repository at this point in the history
  • Loading branch information
Gimbergsson committed Jan 7, 2025
1 parent 7eac2a4 commit 71504a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions androidos/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ dependencies {

tasks.register("printBuildName") {
val versionName = android.defaultConfig.versionName?.replace(".", "_")
val versionCode = android.defaultConfig.versionCode
?.replace(" ", "-#")
?.replace("(", "")
?.replace(")", "")
doLast {
println("$versionName-#$versionCode")
println("$versionName")
}
}

Expand Down

0 comments on commit 71504a4

Please sign in to comment.