Skip to content

Instantly share code, notes, and snippets.

@jaredsburrows
Created September 1, 2016 06:04
Show Gist options
  • Save jaredsburrows/25067bc366ca6a794626552e1c4dc7ab to your computer and use it in GitHub Desktop.
Save jaredsburrows/25067bc366ca6a794626552e1c4dc7ab to your computer and use it in GitHub Desktop.
Use proguard to remove logging on release
# 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