Add option to obfuscate debug builds

This is useful for UI tests to catch issues that doesn't happen in
not-minified builds.
Use `./gradlew -Pminify=true` to pass the argument to gradle.
At now we just check that the property is there (not the value)

MAILAND-1421
This commit is contained in:
Marino Meneghel 2021-04-14 16:26:48 +02:00
parent d349019362
commit 955cc04807
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ android(appIdSuffix = "android") {
multiDexKeepProguard = File("multidex-proguard.pro")
}
getByName("debug") {
isMinifyEnabled = false
isMinifyEnabled = project.hasProperty("minify")
isTestCoverageEnabled = true
}
getByName("release") {