From 751be2c469f427d1ff6f5f03067ca9391527e979 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 21 Apr 2020 21:36:59 +0530 Subject: [PATCH] build: don't obfuscate code in minify step While Play Console correctly manages to deobfuscate stacktraces using the ProGuard mapping, it makes user recorded logs useless which is rather undesirable. Signed-off-by: Harsh Shandilya --- ui/proguard-rules.pro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/proguard-rules.pro b/ui/proguard-rules.pro index fc3eb888..d7864f48 100644 --- a/ui/proguard-rules.pro +++ b/ui/proguard-rules.pro @@ -2,9 +2,6 @@ # escalates them as errors. -dontwarn sun.misc.Unsafe -# Retain some information to keep stacktraces usable --keepattributes SourceFile,LineNumberTable - # Fragment 1.2.4 allows Fragment classes to be obfuscated but # databinding references in XML seem to not be rewritten to # match, so we preserve the names as 1.2.3 did. @@ -12,3 +9,6 @@ -keep public class <1> { public (); } + +# Don't obfuscate +-dontobfuscate