From 495bf9c95442a64832dbb3b52036d400c34a7d42 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 18 Dec 2018 22:18:00 +0530 Subject: [PATCH] Enable proguard and wire up rules Signed-off-by: Harsh Shandilya --- app/build.gradle | 2 ++ app/proguard-rules.pro | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 app/proguard-rules.pro diff --git a/app/build.gradle b/app/build.gradle index 9416d578..284cbeea 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,6 +46,8 @@ android { arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}" } } + minifyEnabled true + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } debug { applicationIdSuffix ".debug" diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 00000000..b2214466 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,5 @@ +# Squelch all warnings, they're harmless but ProGuard +# escalates them as errors. +-dontwarn sun.misc.Unsafe +# We're OSS anyway and who doesn't love a readable log +-dontobfuscate