exclude packages from proguard

為{幸葍}努か 提交于 2021-02-07 13:22:50

问题


How can I inlcude some of the packages after I excluded the parent package in proguard.cfg:

Ex:

-keep com.myapp.** { *; }

I want proguard to obfuscate com.myapp.data.** { *; }


回答1:


You can use ProGuard-style regular expressions for the class name:

-keep class !com.myapp.data.**,com.myapp.** { *; }


来源:https://stackoverflow.com/questions/18537003/exclude-packages-from-proguard

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