How to remove System.out.print statements with Proguard

╄→гoц情女王★ 提交于 2019-11-29 22:16:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!