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

Android App Bundle

Android App Bundle

Souleymane Sidibe

November 24, 2018
Tweet

More Decks by Souleymane Sidibe

Other Decks in Programming

Transcript

  1. App Release Process • Coding • Build a signed APK

    • Upload to Google Play console
  2. App Release Process • Coding • Build a signed APK

    • Upload to Google Play console • Deploy to users
  3. App Release Process • Coding • Build a signed APK

    • Upload to Google Play console • Deploy to users • !
  4. App Release Process • Coding • Build a signed APK

    • Upload to Google Play console • Deploy to users • ! This works for years!
  5. App Release Process + Developer Friendly + Secure + Easy

    distribution - Lose signing key - Apk size bigger
  6. App Release Process + Developer Friendly + Secure + Easy

    distribution - Lose signing key - Apk size bigger
  7. Multiple APKs to the rescue • Upload multiple apk •

    1 configuration 1 apk • Same Package name and same signing key • Must have different versionCode • A configuration should be unique
  8. Multiple APKs to the rescue • Upload multiple apk •

    1 configuration 1 apk • Same Package name and same signing key • Must have different versionCode • A configuration should be unique But not developer friendly
  9. “An Android App Bundle is a new upload format that

    includes all your app’s compiled code and resources, but defers APK generation and signing to Google Play.”
  10. Base APK • Common code and resources • Basic features

    of you app • Downloaded first (be careful about the size)
  11. Dynamic feature APKs • Code and resources for a Feature

    • Google Play generates split APKs • Installed on demand (Play Core Library) • Depends on base APKs
  12. Configuration APKs • 1 device configuration !=> 1 APK •

    A configuration? Screen size API level CPU Architecture Language
  13. Configuration APKs • 1 device configuration !=> 1 APK •

    A configuration? Screen size API level CPU Architecture Language Google Play automatically generates configuration APKs for you.
  14. New App Release Process • Coding • Build a signed

    Android App bundle • You must use App Sign in by Google
  15. New App Release Process • Coding • Build a signed

    Android App bundle • You must use App Sign in by Google • Upload the AAB file to Play Store Console
  16. New App Release Process • Coding • Build a signed

    Android App bundle • You must use App Sign in by Google • Upload the AAB file to Play Store Console • Google Play generates split APKs for you
  17. New App Release Process • Coding • Build a signed

    Android App bundle • You must use App Sign in by Google • Upload the AAB file to Play Store Console • Google Play generates split APKs for you • Dynamic delivery
  18. Why? • Easy to switch to app bundle • ./gradlew

    assembleRelease becomes ./gradlew bundleRelease
  19. Why? • Easy to switch to app bundle • ./gradlew

    assembleRelease becomes ./gradlew bundleRelease • Small APK size
  20. Why? • Easy to switch to app bundle • ./gradlew

    assembleRelease becomes ./gradlew bundleRelease • Small APK size • Secure
  21. Why? • Easy to switch to app bundle • ./gradlew

    assembleRelease becomes ./gradlew bundleRelease • Small APK size • Secure • Dynamic Features
  22. Links •Official doc !=> https:!//bit.ly/2Knmc28 •What a new publishing format

    means for the future of Android !=> https:!//bit.ly/2QZuSjc •Android developer blog !=> https:!//bit.ly/2PYM8F2 •Play Core library !=> https:!//bit.ly/2Pjpla3 •Google IO 18 !=> https:!//bit.ly/2OQgaOM •All About android !=> https:!//bit.ly/2PSf41f