7

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

tommybee
  • 2,409
  • 1
  • 20
  • 23
Saeid Farivar
  • 1,667
  • 24
  • 43

1 Answers1

11

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

-keep class !com.myapp.data.**,com.myapp.** { *; }
Eric Lafortune
  • 45,150
  • 8
  • 114
  • 106