Skip to content

Commit

Permalink
add little version code
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyDynamic committed Dec 15, 2024
1 parent b087384 commit 37e6709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
}

val appVersion: String = "1.2.0"
val appVersionCode: String = "000"

val gitCommitId: String = try {
val stdout = ByteArrayOutputStream()
Expand All @@ -30,7 +31,7 @@ android {
minSdk = 31
targetSdk = 34
versionName = appVersion
versionCode = appVersion.replace(".", "").toInt()
versionCode = (appVersion + appVersionCode).replace(".", "").toInt()

versionNameSuffix = "-$gitCommitId"

Expand Down

0 comments on commit 37e6709

Please sign in to comment.