Skip to content

Commit

Permalink
Hardcode versionCode as it was not changing on github actions anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroBrine1st committed Sep 6, 2024
1 parent ecf52b6 commit cce8a01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit cce8a01

Please sign in to comment.