From 72502b3d03efdcc5297221890ea57d45972966aa 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. --- Android/app/build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Android/app/build.gradle b/Android/app/build.gradle index b5d78ea..6267c8a 100644 --- a/Android/app/build.gradle +++ b/Android/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' } }