exclude packages from proguard
问题 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