diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2018-12-18 22:18:00 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2018-12-18 22:18:00 +0530 |
commit | 495bf9c95442a64832dbb3b52036d400c34a7d42 (patch) | |
tree | b171ff4f68a68cb5244850e0fc2fc32eda2ccf3b | |
parent | cb1bc95e6ba4dc0c8828c01b6d5e4a8eb2ae197c (diff) |
Enable proguard and wire up rules
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
-rw-r--r-- | app/build.gradle | 2 | ||||
-rw-r--r-- | app/proguard-rules.pro | 5 |
2 files changed, 7 insertions, 0 deletions
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 |