mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-18 08:36:56 -04:00
Merge pull request #96 from AngelAuraMC/freeze-versioncode
build: Set versioncode to fixed number 10000000
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user