Skip to content

Instantly share code, notes, and snippets.

@scottyab
Created August 23, 2013 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottyab/6319110 to your computer and use it in GitHub Desktop.
Save scottyab/6319110 to your computer and use it in GitHub Desktop.
Android Proguard config to remove all logging. Remember to enabled the -optimize progaurd config
#Remove Android logging code
-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 java.lang.String getStackTraceString(java.lang.Throwable);
}
# Project target.
target=android-17
#note the use of -optimize progaurd config, this is mainly to allow stripping of all log msgs
proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:proguard-project.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment