Rename APK

This commit is contained in:
Adolfo Santiago 2022-02-19 09:09:28 +01:00
parent 195b6b2057
commit 815dd5cd8f
No known key found for this signature in database
GPG key ID: 244D6F9A317B4A65
2 changed files with 26 additions and 3 deletions

View file

@ -81,6 +81,8 @@ android {
versionCode buildVersions.newHusky.versionCode
versionName buildVersions.newHusky.versionName
versionNameSuffix = "-${buildVersions.newHusky.suffix}"
}
husky {
@ -97,6 +99,8 @@ android {
versionCode buildVersions.dev.versionCode
versionName buildVersions.dev.versionName
versionNameSuffix = "-${buildVersions.dev.suffix}"
}
beta {
@ -110,6 +114,24 @@ android {
}
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
def filename = output.outputFileName.split("\\.")
if(filename.size() == 2) {
def extension = filename[1]
output.outputFileName = "husky_${versionName}.${extension}"
}
}
}
lintOptions {
//abortOnError false
disable "MissingTranslation"
disable "ExtraTranslation"
disable "AppCompatCustomView"
disable "UseRequireInsteadOfGet"
}
compileOptions {
sourceCompatibility = buildVersions.javaCompat
targetCompatibility = buildVersions.javaCompat

View file

@ -20,7 +20,8 @@ buildVersions.beta = beta
// Dev version info
def dev = [:]
dev.applicationId = "su.xash.husky.dev"
dev.suffix = "dev"
dev.applicationId = "su.xash.husky.${dev.suffix}"
dev.minSdk = 23
dev.targetSdk = 30
@ -31,7 +32,8 @@ buildVersions.dev = dev
// Husky refactor info
def newHusky = [:]
newHusky.applicationID = "su.xash.husky.alpha"
newHusky.suffix = "newHusky"
newHusky.applicationId = "su.xash.husky.${newHusky.suffix}"
newHusky.compileSdk = 30
newHusky.minSdk = 23
@ -47,7 +49,6 @@ flavorDimensions.husky = "husky"
flavorDimensions.release = "release"
buildVersions.flavorDimensions = flavorDimensions
// Debug signing info
def debugSign = [:]
debugSign.keystoreFile = "debug.keystore"