Working with an Android project in Android Studio 3.2, having enabled Proguard and some specific rules, I\'m not able to figure out the following:
a specific package
Are you working on an Android Library project? Probably YES.
In order to achieve your purpose, I am afraid that you need to re-organise your packages into something like below:
Public interfaces
com.my.package.apiforusers
Private/Internal implementations
com.my.package.apiforusers.internal
Then for your obfuscation rules, you can have it like below:
-keep public class com.my.package.apiforusers.* { public *; }
So that only the public classes/interfaces are kept and all those ones inside com.my.package.apiforusers.internal
will be obfuscated.
In "/build/outputs/mapping/release/" folder there are few files ("usage.txt", "seeds.txt", etc..) that contain the REASONS of why and which classes/variables/methods/etc.. are not-processed/not-shrinked/ot-obfuscated via ProGuard utilities.