fix(build): set proguard files for all build types

Some cursed day you might be enabling R8 on debug builds
This commit is contained in:
Harsh Shandilya 2023-07-19 22:24:23 +05:30
parent e700987d14
commit 29c0369d43

View file

@ -34,8 +34,7 @@ class ApplicationPlugin : Plugin<Project> {
}
buildTypes {
named("release") {
isMinifyEnabled = true
all {
setProguardFiles(
listOf(
"proguard-android-optimize.pro",
@ -44,6 +43,7 @@ class ApplicationPlugin : Plugin<Project> {
)
)
}
named("release") { isMinifyEnabled = true }
named("debug") {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug"