I have my project package name as
in.myapplication.app
and I have a package which contains several packages as well like this
in.myapplication.app.samplePackage
in.myapplication.app.samplePackage.SubPackage
Now I want to exclude all the classes present inside samplePackage
package including subpackage classes also. I tried this keep rule inside progaurd file
-keep class in.myapplication.app.samplePackage.*{*;}
But it only allows the classes that are in samplePackage
and not in samplePackage.SubPackage
I have checked similar questions
- How to keep/exclude a particular package path when using proguard?
- Make Proguard completely ignore package
Nothing working and tried to use these
-keep class in.myapplication.app.samplePackage.** {*;}
But it's showing me a warning
Unresolved reference name in shrinker config file
So, How to exclude package name and sub package name while using progaurd In Android Studio?