Created
May 20, 2014 14:33
-
-
Save AvatarQing/02d33ff661cf94ce16bb to your computer and use it in GitHub Desktop.
使用ProGuard删除日志输出语句
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
(1)http://stackoverflow.com/questions/4435773/android-proguard-removing-all-log-statements-and-merging-packages | |
(2)http://stackoverflow.com/questions/7086920/removing-logging-with-proguard-doesnt-remove-the-strings-being-logged | |
在开发android的时候,经常要使用Log.d()语句,但是发布的时候,如果一行一行的注释还是有点麻烦的. | |
这个时候可以使用如下的指令让proguard帮助我们删除他: | |
-assumenosideeffects class android.util.Log{ public static *** d(...); public static *** i(...); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment