openMF / android-client

An android client for the MifosX platform
https://openmf.github.io/mobileapps.github.io/
Mozilla Public License 2.0
197 stars 584 forks source link

Use the new built-in code shrinker to shrink code and resources #562

Open priyankvex opened 7 years ago

priyankvex commented 7 years ago

Summary:

To make the APK file as small as possible, we should enable shrinking to remove unused code and resources in your release build. We can disable them in debug builds as it increases build time.

It depends on following :

  1. SDK Tools 25.0.10 or higher
  2. Android plugin for Gradle 2.0.0 or higher

Advantages of using code and resource shrinker :

  1. Keeps the apk size small
  2. Keeps the 64k method count limit in check
  3. Resource shrinking shrinks unused resources both in our code and in the libraries used.
therajanmaurya commented 7 years ago

Go ahead 👍