Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Putting Your APKs on Diet

Putting Your APKs on Diet

Brijesh Masrani

August 01, 2017
Tweet

More Decks by Brijesh Masrani

Other Decks in Technology

Transcript

  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