Merge pull request #96 from AngelAuraMC/freeze-versioncode

build: Set versioncode to fixed number 10000000
This commit is contained in:
alexytomi
2025-09-27 22:27:27 +08:00
committed by GitHub

View File

@@ -4,14 +4,6 @@ plugins {
static def getDate() { return new Date().format('yyyyMMdd') }
static def getDateSeconds() {
if (System.getenv("GITHUB_ACTIONS") == "true") {
return 9934841 + Integer.parseInt(System.getenv("GITHUB_RUN_NUMBER"))
} else {
return 172005
}
}
def getVersionName = {
// Get the last version tag, as well as the short head of the last commit
ByteArrayOutputStream TAG = new ByteArrayOutputStream()
@@ -115,7 +107,7 @@ android {
applicationId "org.angelauramc.amethyst"
minSdkVersion 21
targetSdkVersion 34
versionCode getDateSeconds()
versionCode 10000000
versionName getVersionName()
multiDexEnabled true //important
resValue 'string', 'curseforge_api_key', getCFApiKey()