Skip to content

Commit

Permalink
convert version code to int
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-udy committed Jul 11, 2023
1 parent 74a4c14 commit bc37167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tasks.register("updateVersion") {
existingProperties.load(FileInputStream(versionPropertiesFile))

val versionName = project.properties["versionName"]
val versionCode = (existingProperties["versionCode"] as Int) + 1
val versionCode = (existingProperties["versionCode"].toString().toInt()) + 1

if(versionName == existingProperties["versionName"]) {
error("The versionName '$versionName' is the current versionName")
Expand Down

0 comments on commit bc37167

Please sign in to comment.