From fefd4c0b261acb35a0af82d581b76c9de6aeae11 Mon Sep 17 00:00:00 2001 From: laplaceon <8844262+laplaceon@users.noreply.github.com> Date: Fri, 10 Jul 2020 09:36:33 -0400 Subject: [PATCH] Update build.gradle (#3438) Replace minify and shink resources with post processing block --- app/build.gradle | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 48c1bd348..15a717f25 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -64,11 +64,15 @@ android { versionNameSuffix "-${getCommitCount()}" applicationIdSuffix ".debug" } -// release { -// minifyEnabled true -// shrinkResources true -// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' -// } + release { + postprocessing { + obfuscate false + optimizeCode true + removeUnusedCode false + removeUnusedResources true + proguardFiles 'proguard-rules.pro' + } + } } flavorDimensions "default"