大龙的博客

常用链接

统计

最新评论

Proguard使用小结

http://proguard.sourceforge.net/index.html#/manual/troubleshooting.html

里面包含大量的常见问题。

另外在Android程序中常遇到的jar包被混淆的解决代码如下:

Fragment v4 Jar包
-keep class android.support.v4.*.* { *; }

Admob Jar包
-keep public class com.admob.android.*.* { public protected *; }

—常用的通配符—–

Fields and methods may also be specified using regular expressions. Names can contain the following wildcards:
? matches any single character in a method name.
* matches any part of a method name.
Types in descriptors can contain the following wildcards:
% matches any primitive type (“boolean”, “int”, etc, but not “void”).
? matches any single character in a class name.
* matches any part of a class name not containing the package separator.
** matches any part of a class name, possibly containing any number of package separators.
*** matches any type (primitive or non-primitive, array or non-array).
… matches any number of arguments of any type.

posted on 2012-10-12 02:42 大龙 阅读(341) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理