Shrinking APK in proguard-properties.txt

I’m trying to minimize my APK size. Do you recommend adding any specific lines of code in proguard-properties.txt so that it can remove unused classes, references, and other items?

No additional configuration is required to remove such unused code.

By default, ProGuard shrinks the code: it removes all unused classes and class members. It only keeps the ones listed by the various -keep options, and the ones on which they depend, directly or indirectly. It also applies a shrinking step after each optimization step, since some optimizations may open up the possibility to remove more classes and class members.

1 Like