Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 232
Saeid Farivar Avatar asked Aug 30 '13 15:08

Saeid Farivar


1 Answers

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

-keep class !com.myapp.data.**,com.myapp.** { *; }
like image 50
Eric Lafortune Avatar answered Sep 19 '22 09:09

Eric Lafortune