Oct 29, 2018

ProGuard - reduce the size of the release build

On Android and other environments where application size is critical, ProGuard can be used to reduce the size of the release build. ProGuard strips out unused code and does optimizations so that the code compiles as small as possible; however, it comes at the cost of slightly increased complexity in development.
There is an Android ProGuard example in the Calendar v3 Android Sample within the Google API Client Library for Java. In that sample application, ProGuard reduces the application size ~95%, from 2.3MB to 124KB.