Strip logging code with Proguard

This commit is contained in:
topjohnwu 2018-07-27 21:52:09 +08:00
parent c5d67ebf72
commit 413d4badfd

View File

@ -16,8 +16,8 @@
# public *; # public *;
#} #}
# Keep all names, we are open source anyway :) # Don't obfuscate, we are open source anyway :)
-keepnames class ** { *; } -dontobfuscate
# BouncyCastle # BouncyCastle
-keep class org.bouncycastle.jcajce.provider.asymmetric.rsa.**SHA1** { *; } -keep class org.bouncycastle.jcajce.provider.asymmetric.rsa.**SHA1** { *; }
@ -27,3 +27,8 @@
# Gson # Gson
-keepattributes Signature -keepattributes Signature
# Strip logging
-assumenosideeffects class com.topjohnwu.magisk.utils.Logger {
public *** debug(...);
}