Enable Proguard For Only Two Packages In Large Android Application
Background I am developing an Android application that relies on multiple external libraries (8 added as library project dependencies, 14 added as jar dependencies). Some of these
Solution 1:
The correct syntax is a comma-separated list without any parentheses:
-keep class !com.google.zxing.**,!com.example.app.** { *; }
See the ProGuard manual > Usage > Filters.
Note that this single line already implies the two other lines for interfaces and enums. You can imply the -keep options for all subpackages by not letting the last wildcard match subpackages:
-keep class !com.google.zxing.**,!com.example.app.* { *; }
Post a Comment for "Enable Proguard For Only Two Packages In Large Android Application"