From 815dd5cd8f24195cc6b4a04c3ea797e6743a0ff0 Mon Sep 17 00:00:00 2001 From: Adolfo Santiago Date: Sat, 19 Feb 2022 09:09:28 +0100 Subject: [PATCH] Rename APK --- husky/app/build.gradle | 22 ++++++++++++++++++++++ husky/appinfo.gradle | 7 ++++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/husky/app/build.gradle b/husky/app/build.gradle index 90903aa..2f8f509 100644 --- a/husky/app/build.gradle +++ b/husky/app/build.gradle @@ -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 diff --git a/husky/appinfo.gradle b/husky/appinfo.gradle index 0d39ec0..9a22bea 100644 --- a/husky/appinfo.gradle +++ b/husky/appinfo.gradle @@ -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"