From 2351512af8a0d8dce96291a2a535fe60fd4cf9c4 Mon Sep 17 00:00:00 2001 From: sora Date: Sat, 23 May 2026 14:42:30 +0200 Subject: [PATCH] Update app/build.gradle --- app/build.gradle | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 83ff6fe..5d0e7ed 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,16 +1,3 @@ -def getCommitCount() { - try { - def stdout = new ByteArrayOutputStream() - exec { - commandLine 'git', 'rev-list', '--count', 'HEAD' - standardOutput = stdout - } - return stdout.toString().trim().toInteger() - } catch (ignored) { - return 1 - } -} - plugins { id 'com.android.application' id 'org.jetbrains.kotlin.plugin.serialization' version '2.3.21' @@ -29,7 +16,7 @@ android { minSdk = 28 targetSdk = 37 versionName "1.2" - versionCode getCommitCount() + versionCode project.hasProperty('VERSION_CODE') ? project.property('VERSION_CODE').toInteger() : 1 } signingConfigs { register("release") {