From 3102272a31111101ace679077b0844d05607f1b8 Mon Sep 17 00:00:00 2001 From: validcube Date: Fri, 6 Sep 2024 21:08:39 +0700 Subject: [PATCH] build: Reduce clutter in buildTypes Signed-off-by: validcube --- android/app/build.gradle | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 7e9a2341..94a13771 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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 {