build: Reduce clutter in buildTypes

Signed-off-by: validcube <pun.butrach@gmail.com>
This commit is contained in:
validcube 2024-09-06 21:08:39 +07:00
parent 3dc695eafb
commit 3102272a31
No known key found for this signature in database
GPG key ID: DBA94253E1D3F267

View file

@ -44,10 +44,17 @@ android {
versionName flutterVersionName
}
buildTypes {
release {
configureEach {
shrinkResources = false
minifyEnabled = false
signingConfig signingConfigs.debug
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
}
}
release {
shrinkResources true
minifyEnabled true
if (System.getenv("signingKey") != null) {
signingConfigs {
create("release") {
@ -66,29 +73,17 @@ android {
}
} else {
signingConfig = signingConfigs.debug
resValue "string", "app_name", "ReVanced Manager Debug"
resValue "string", "app_name", "ReVanced Manager (Debug)"
applicationIdSuffix ".debug"
}
}
debug {
shrinkResources false
minifyEnabled false
resValue "string", "app_name", "ReVanced Manager Debug"
resValue "string", "app_name", "ReVanced Manager (Debug)"
applicationIdSuffix ".debug"
signingConfig signingConfigs.debug
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
}
}
profile {
shrinkResources false
minifyEnabled false
resValue "string", "app_name", "ReVanced Manager Profile"
resValue "string", "app_name", "ReVanced Manager (Profile)"
applicationIdSuffix ".profile"
signingConfig signingConfigs.debug
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
}
}
}
packagingOptions {