diff --git a/build.gradle.kts b/build.gradle.kts index 47ba2ab6..95c28378 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,8 +1,6 @@ import com.github.jk1.license.LicenseReportExtension import com.github.jk1.license.render.ReportRenderer import com.github.jk1.license.render.TextReportRenderer -import java.io.FileNotFoundException -import java.util.Properties buildscript { dependencies { @@ -99,22 +97,10 @@ android { } buildTypes { getByName("debug") { - // We minify by default even on debug builds. This has helped us catch issues where minification would remove files that were actually used (eg: via reflection). - // If you want to locally disable this behavior to speed-up the build, add a line `disableMinifyDebug=true` to your `local.properties` file. - val reader = try { - rootProject.file("local.properties").reader() - } catch (e: FileNotFoundException) { - null - } - val properties = reader?.use { Properties().apply { load(it) } } - val disableMinifyDebug = properties?.getProperty("disableMinifyDebug")?.toBoolean() ?: false - - isMinifyEnabled = !disableMinifyDebug - isShrinkResources = !disableMinifyDebug + isMinifyEnabled = false + isShrinkResources = false signingConfig = signingConfigs.getByName("debug") } - // keep minifyEnabled false above for faster builds; set to 'true' - // when testing to make sure ProGuard/R8 is not deleting important stuff getByName("release") { isMinifyEnabled = true isShrinkResources = true