diff --git a/app/build.gradle.kts b/app/build.gradle.kts index b640e22133..0e7ea14e77 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -21,15 +21,27 @@ android { resourceConfigurations.addAll(listOf( "en", )) - vectorDrawables.useSupportLibrary = true } buildTypes { + debug { + applicationIdSuffix = ".debug" + resValue("string", "app_name", "ReVanced Manager Debug") + } + release { - isMinifyEnabled = true - isShrinkResources = true - proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + if (!project.hasProperty("noProguard")) { + isMinifyEnabled = true + isShrinkResources = true + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + } + + if (project.hasProperty("signAsDebug")) { + applicationIdSuffix = ".debug" + resValue("string", "app_name", "ReVanced Manager Debug") + signingConfig = signingConfigs.getByName("debug") + } } }