In proguard, what is the keyword to preserve package/default access variables and methods?

≡放荡痞女 提交于 2019-12-22 08:08:20

问题


You can say:

-keepclassmembers class sun.** {
    public protected *;
}

But I am not excluding package/default access methods :(

void myMethod {

}

回答1:


You can add another -keepclassmembers like that:

-keepclassmembers class com.mycompany.MyClass {
  !public !protected !private *;
}


来源:https://stackoverflow.com/questions/26183906/in-proguard-what-is-the-keyword-to-preserve-package-default-access-variables-an

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