From bc3716751e230464f82a4cd665dd565b0e06c403 Mon Sep 17 00:00:00 2001 From: Isaac Udy Date: Wed, 12 Jul 2023 01:34:12 +1200 Subject: [PATCH] convert version code to int --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index c5a19e93..7094add3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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")