fix(build): add minify switch

This commit is contained in:
Harsh Shandilya 2023-11-20 12:13:11 +05:30
parent 17258ea4d7
commit cb6e71c8bf
No known key found for this signature in database

View File

@ -43,7 +43,9 @@ class ApplicationPlugin : Plugin<Project> {
)
)
}
named("release") { isMinifyEnabled = true }
named("release") {
isMinifyEnabled = !project.providers.environmentVariable("DISABLE_MINIFY").isPresent
}
named("debug") {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug"