Bundling an App — In an Instant

Ben Weiss
2 min readNov 16, 2018

--

At Android Dev Summit Wojtek Kaliciński and I explained how Android App Bundles work together with Instant Apps.

In the session we explain the Android App Bundles in general and how to make an instant app in 2018. Also you’ll learn how users can discover an instant app and how Google Play calculates file size limits. We further provide an introduction to dynamic code loading as well as insights into project modularization.

The recording is available on YouTube.

tl;dw

Here’s the slides & outline for the session with links to the respective parts.

Outline

Click the 🎥 to jump right into a section.

  • 🎥 What are Instant Apps and Android App Bundles
  • 🎥 How Instant Apps were done in the past
  • 🎥 Intro to Android App Bundles
  • 🎥 Instant Apps going forward (recommended project structure)
  • 🎥 How users can discover an instant app (with or without URLs)
  • 🎥 Dynamic code loading via PlayCore API
  • 🎥 SplitInstallStateUpdatedListener flow
  • 🎥 File size limits and how they apply
  • 🎥 Intro to modularization

Links 🔗

After following this session you know how to make an Android App Bundle that can both be installed and available as Instant App and some of the limitations around both. You’ll also know how to make use of dynamic delivery via PlayCore.

The first actionable step on this journey is ./gradlew bundleRelease and publish to the Play Store.

--

--