参考:http://proguard.sourceforge.net/manual/usage.html
Specifies not to shrink the input class files. By default, shrinking is applied; all classes and class members are removed, except for the ones listed by the various -keep
options, and the ones on which they depend, directly or indirectly. A shrinking step is also applied after each optimization step, since some optimizations may open the possibility to remove more classes and class members.
安卓默认会删除一些无用的包,可以用dontshrink来禁止这种行为。
参考:https://developer.android.com/tools/building/multidex.html
- Remove unused code with ProGuard - Configure the ProGuard settings for your app to run ProGuard and ensure you have shrinking enabled for release builds. Enabling shrinking ensures you are not shipping unused code with your APKs.