Created
September 1, 2016 06:04
-
-
Save jaredsburrows/25067bc366ca6a794626552e1c4dc7ab to your computer and use it in GitHub Desktop.
Use proguard to remove logging on release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Optimization needs to be turned on to remove logs | |
-assumenosideeffects class android.util.Log { | |
public static boolean isLoggable(java.lang.String, int); | |
public static int v(...); | |
public static int i(...); | |
public static int w(...); | |
public static int d(...); | |
public static int e(...); | |
public static int wtf(...); | |
} | |
-assumenosideeffects class com.orhanobut.logger.Logger { | |
public static Printer t(...); | |
public static void log(...); | |
public static void v(...); | |
public static void i(...); | |
public static void w(...); | |
public static void d(...); | |
public static void e(...); | |
public static void wtf(...); | |
public static void json(...); | |
public static void xml(...); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment