Keywords in "Build the new, modular Android App Bundle" @ Google I/O 2018
last update: 2018-09-15 00:00:00 +0000
(Intro)
- Publishing format != APK
- structure of bundle
- *.pb : protocol buffer format extension
- File targeting
res/drawable-<hdmi>
etc
- Assets targeting
assets/<name>#<lang/tcf/opengl/vulkan>_<value>/…
Serving
- Post L: Split APKs
- Bundle → Base + resource + architecture + language
- Pre L : Standalone APKs
- split to 4 ABIs * 6 Densities
- all languages are included
(Facts)
- 10PB saved per day
- Twitter 20%
- textPlus 26%
Building the Android App Bundle
- Android Studio 3.2
- Build → Build Bundle(s) / APK(s) → Bundle(s)
./gradlew modulename:bundleVariant
modulename/build/outputs/bundleVariant/bundle.aab
Signed and ready for publishing
- bundle block?
- Enroll in App Signing by Google Play
Bundle Explorer
Publishing API
How to test an Android App Bundle
- Bundletool
$ bundletool build-apks
--
bundle=myapp.aab
--
output=myapp.apks
--
device-spec=pixel2.json
$ bundletool install-apks
--
apks=my-recipe-app.apks
- github.com/google/bundletool
Modularization
- When to Modularize?
- Creating a dynamic Feature
- Android Studio 3.2 New Module
- manifest
- build.gradle
- Android Studio 3.2 New Module
- Play Core Library
SplitInstallManager
- Installing Modules
- SplitCompat on L/M, no need to restart
- Updating Modules
- versions are always in sync
- Series
-
-
2. Keywords in "What's new in Wear OS by Google" @ Google I/O 2018
-
3. Keywords in the sessions about Google Play @ Google I/O 2018
-
4. Keywords in "The future of apps on Android and Google Play modular, instant, and dynamic" @ Google I/O 2018
-
5. Keywords in "What’s new in automotive" @ Google I/O 2018
-
6. Keywords in the sessions about growth @ Google I/O 2018
-
7. Keywords in "What’s new with Android TV" @ Google I/O 2018
-
8. Keywords in "What’s new in Android apps for Chrome OS" @ Google I/O 2018
-
9. Keywords in sessions about tools for Android @ Google I/O 2018
-
10. Keywords in "What's new in Android Things" @ Google I/O 2018
-
11. Keywords in "Frictionless Android testing write once, run everywhere" @ Google I/O 2018
-
12. Keywords in "what’s new in Android Support Library" @ Google I/O 2018
-
13. Keywords in "Don't let your app drain your users' battery" @ Google I/O 2018
-
14. Keywords in "Build the new, modular Android App Bundle" @ Google I/O 2018
-
15. Keywords in "What’s new in Android accessibility" @ Google I/O 2018
-
16. Keywords in "Developer Keynote" @ Google I/O 2018
-
17. Keywords in "Google Keynote" @ Google I/O 2018