简单的proguard keep选项的差异 [英] Differences in simple proguard keep option

查看:228
本文介绍了简单的proguard keep选项的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这两个proguard选项之间有什么区别?

What is the difference between these two proguard options?

 -keep class com.myclass.**
 -keep class com.myclass.** { *; }

推荐答案

第一个规则只会保留本身(以及默认的构造函数).

The first rule will only keep the classes themselves (and the default constructors).

第二条规则还将所有方法字段保留在类中.

The second rule will also keep all methods and fields in the classes.

这篇关于简单的proguard keep选项的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆