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

Android App Bundle: from start to deployment

Android App Bundle: from start to deployment

This publication format has been around for a while now and will be required for the new apps on the Play Store in August 2021.

This session will cover all the steps to migrate your existing project in order to build and release a brand new AAB file to the Play Store. You will see the advantages and drawbacks of App Bundle. How you can easily configure your project, handle testing tracks and update your CI/CD (CircleCI, Bitrise) to deploy your optimized app with fastlane.

Julien Salvi

April 27, 2021
Tweet

More Decks by Julien Salvi

Other Decks in Programming

Transcript

  1. Table of contents What’s Android App Bundle? Ship small, move

    fast Moving to Android App Bundle From Gradle build scripts to CI/CD Handling testing with AAB How to manage your testing sessions with AAB
  2. Android App Bundle Optimizing the APK size and deliver what

    the user only needs are the key features of Android App Bundle. Let’s see what AAB brings to us and for our users 🚀
  3. Android App Bundle What does it bring? • New publication

    format introduced by Google ⛓ • Produce a aab file instead of apk 🧰 • Allow to distribute smaller apk to users 📦 • Enable Play Feature and Assets Delivery 🚀 • Have a green impact 🌱
  4. Android App Bundle Let’s have a look at the APK?

    Let’s have a look on Android Studio!
  5. Android App Bundle What about the .aab? Key advantages: 💥

    Decrease APK size by 21 MB (-59%) for common devices 💥 Less download time for our users 💥 We save (a little bit) the planet
  6. Do I need to migrate to AAB right now? Well...

    • It’s not mandatory for old apps but it has many benefits! • If you’re distributing your app outside the Play Store, maybe no • Yes! And actually you must go for the AAB format... • From August 2021, ABB will mandatory for new apps in Play Store For the new apps...
  7. CI/CD with CircleCI and fastlane ✍ Installing fastlane is very

    easy on CircleCI 🚀 Run the playstore fastlane lane (wait for the next slide :) CircleCI setup:
  8. CI/CD with CircleCI and fastlane ✍ Sign the .aab file

    with your production key 🚀 Release to the Play Store with fastlane ⚠ Make sure to enable App Signing on the Play Console Fastlane setup:
  9. Handling testing with App Bundle How to test .aab files?

    • You cannot directly test .aab files, neither install them on a device • Use the test track on the Play Console • Build .apk files that will be uploaded in App Distribution for example • Use bundletool for converting .aab file into .apk files Convert .aab to .apk files
  10. Android App Bundle • Reducing APK file size • Use

    Play Feature and Assets Delivery • Have a positive impact • AAB files cannot be directly installed on devices • NO direct support for Firebase App Distribution • You are stuck with the Play Store • What is the best way to handle testing? • Use bundletool for deploying on FAD? • Moving test distribution to Google Play internal test track? The Good The Bad The Questions
  11. Have fun with App Bundle! 📦 Do you have any

    questions? @JulienSalvi Thanks Julien Salvi