Question

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.** { *; }

Was it helpful?

Solution

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

-keep class !com.myapp.data.**,com.myapp.** { *; }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top