From 413d4badfdeb0b94410fc78fa945be9023f9fd64 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 27 Jul 2018 21:52:09 +0800 Subject: [PATCH] Strip logging code with Proguard --- app/proguard-rules.pro | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 6002ebcc6..daeab7acb 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -16,8 +16,8 @@ # public *; #} -# Keep all names, we are open source anyway :) --keepnames class ** { *; } +# Don't obfuscate, we are open source anyway :) +-dontobfuscate # BouncyCastle -keep class org.bouncycastle.jcajce.provider.asymmetric.rsa.**SHA1** { *; } @@ -26,4 +26,9 @@ -dontwarn javax.naming.** # Gson --keepattributes Signature \ No newline at end of file +-keepattributes Signature + +# Strip logging +-assumenosideeffects class com.topjohnwu.magisk.utils.Logger { + public *** debug(...); +}