Putting Your APKs on Diet

Putting Your APKs on Diet

Brijesh Masrani

August 01, 2017

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

13 slides
  1. classes.dex Contains compiled application code, transformed into Dex bytecode. •

    Remove extra code. • Use Proguard ◦ It will try to strip any unused classes and class members, as well as rename any identifiers using shorter names. • Reuse whenever possible Rotate Images, Use Porterduff to change Color
  2. assets • Keep an eye on assets folder • font

    files, json files, or game data Optimizations • Downloadable Fonts
  3. External Libraries • Use only required libraries ◦ Google Play

    Services, Analytics, Maps, Awareness, FCM
  4. • Be opinionated about resources hdpi, xhdpi and xxhdpi OR

    xxhdpi • minifyEnabled true • shrinkResources true • defaultConfig { ... resConfigs "en", ... } Gradle Changes

More Decks by Brijesh Masrani

Other Decks in Technology