如何使用 Proguard 删除 System.out.print 语句 [英] How to remove System.out.print statements with Proguard
本文介绍了如何使用 Proguard 删除 System.out.print 语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用 proguard 删除所有打印语句.除了 System.out.println()
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(...);
}
推荐答案
要删除所有 System.out.println
,您可以在规则中添加以下内容.
For removing all System.out.println
, you can add following in your rules.
-assumenosideeffects class java.io.PrintStream {
public void println(%);
public void println(**);
}
这篇关于如何使用 Proguard 删除 System.out.print 语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文