Can we shrink all classes but only obfuscate some with proguard?
问题 Typically, excluding a class with -keep prevents the class from being obfuscated However it also prevents it from being shrunk. Is it possible to define a proguard-project.txt that will shrink all classes except those that are excluded with -keep, but also obfuscate only a specific subset of the classes? The aim is to use proguard to keep below the android 65k method limit, while also obfuscating first party code ONLY within the APK. Thanks 回答1: Yes, you can add the modifier allowshrinking to