Is there a way to strip specific classes from an APK using proguard? I need to do this to build 2 different APKs, one with restricted features. For example some activities should not be available in one of the 2 APKs, so it shouldn't be in it.
I cannot use a library and 2 projects to achieve this because actual use case is much more complicated and already involves building 4 APKs, 2 more APKs should build from the same library, stripping specific components out of the APKs.
I tried something like this, but it didn't work at all and didn't remove anything from the built APK.
-assumenosideeffects class app.package.activities.classes_to_strip.** { public *** *(...); public static *** *(...); public *; private *; protected *; } UPDATE: I've change the title to better reflect what I'm trying to achieve.
So far, I've been able to build a trimmed-down APK (with less activities) however all other activity codes remains present in final APK, because they are referenced from various part of the code (this is not really a problem because such code will not run).