Created
August 23, 2013 13:02
-
-
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
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
#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); | |
} |
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
# 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