0

I want to force ProGuard not to obfuscate ANYTHING except only a few classes.

How can this be done? Please provide actual sample code as I've looked online and haven't found something similar.

dnkoutso
  • 6,041
  • 4
  • 37
  • 58

1 Answers1

3

For those who care this is how its done:

-keep class !com.mypackage.classA, !com.mypackage.classB { *; }

etc...

dnkoutso
  • 6,041
  • 4
  • 37
  • 58
  • Doesn't work for me ;( Maybe things have changed since 2012. I filed https://stackoverflow.com/questions/59248681/proguard-r8-negate-operator-not-working-to-keep-anything-except-certain-packag?noredirect=1&lq=1 – OneWorld Dec 10 '19 at 15:25