问题
I added the following line in my proguard config:
-keep class com.mypackage.** {*;}
But now proguard doesn't remove my class com.mypackage.BuildConfig.class from the result. And I want it to be removed.
How can I exclude a given class from being kept?
Thanks
回答1:
You can use the following rule:
-keep class !com.mypackage.BuildConfig, com.mypackage.** { *; }
来源:https://stackoverflow.com/questions/41060827/how-to-exclude-a-classes-from-being-kept-by-proguard