Android proguard Ignore All Classes except of one

与世无争的帅哥 提交于 2019-12-24 14:11:12

问题


I need help with turning off all features and disable everything that Proguard do for all classes but one. One class should be obfuscated (contains security things). Any ideas?


回答1:


-dontshrink

-dontoptimize

-dontobfuscate

-keep,allowshrinking,allowoptimization,allowobfuscation class org.mypackage.MyClass




回答2:


Use this Line into the proguard 
Enter all package name for disable things of proguard


 -dontwarn your_package_name.**


来源:https://stackoverflow.com/questions/13886100/android-proguard-ignore-all-classes-except-of-one

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