From 9a9ad05436998726ffbd20505d7a9a817365fc63 Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Mon, 31 Aug 2020 23:11:37 -0700 Subject: [PATCH] Enables obfuscation and minification for release builds. --- app/build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 1c5b4d6..f39262d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -26,7 +26,17 @@ android { buildTypes { release { - minifyEnabled false + // Enables code shrinking, obfuscation, and optimization for only + // your project's release build type. + minifyEnabled true + + // Enables resource shrinking, which is performed by the + // Android Gradle plugin. + shrinkResources true + + // Includes the default ProGuard rules files that are packaged with + // the Android Gradle plugin. To learn more, go to the section about + // R8 configuration files. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }