Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove System.out.print statements with Proguard

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(...);
}
like image 362
code511788465541441 Avatar asked Feb 07 '23 21:02

code511788465541441


1 Answers

For removing all System.out.println, you can add following in your rules.

-assumenosideeffects class java.io.PrintStream {
     public void println(%);
     public void println(**);
 }
like image 200
Let'sRefactor Avatar answered Feb 10 '23 23:02

Let'sRefactor