问题
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