From cce8a016906d83e8ddd61632985d99980731a59e Mon Sep 17 00:00:00 2001 From: HeroBrine1st Erquilenne Date: Fri, 6 Sep 2024 14:54:57 +0300 Subject: [PATCH] Hardcode versionCode as it was not changing on github actions anyway --- app/build.gradle.kts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 61428591..ac130848 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,7 +19,7 @@ android { applicationId = "ru.herobrine1st.e621" minSdk = libs.versions.android.minSdk.get().toInt() targetSdk = libs.versions.android.targetSdk.get().toInt() - versionCode = getCommitIndexNumber() + versionCode = 780 versionName = "1.0.0-alpha-6" vectorDrawables { @@ -208,9 +208,6 @@ fun executeCommand(vararg argv: String): String { return byteArrayOutputStream.toString() } -fun getCommitIndexNumber(revision: String = "HEAD") = - executeCommand("git", "rev-list", "--count", "--first-parent", revision).trim().toInt() - fun getCommitShortHash(revision: String = "HEAD") = executeCommand("git", "rev-parse", "--short", revision).trim()