问题
I want to remove all print statements with proguard. Is there an equaivilent to the code below but for System.out.println()
-assumenosideeffects class android.util.Log {
public static *** d(...);
}
回答1:
For removing all System.out.println
, you can add following in your rules.
-assumenosideeffects class java.io.PrintStream {
public void println(%);
public void println(**);
}
来源:https://stackoverflow.com/questions/35104775/how-to-remove-system-out-print-statements-with-proguard