Feature Request: Add native support for Android App Bundles / Dynamic Delivery
See original GitHub issueDescription of the problem / feature request:
Add the ability to build and publish Android APKs using the new App Bundles / Dynamic Delivery android features. See:
https://developer.android.com/platform/technology/app-bundle https://developer.android.com/guide/app-bundle/dynamic-delivery
Feature requests: what underlying problem are you trying to solve with this feature?
Use Bazel with App Bundles / Dynamic Delivery
What operating system are you running Bazel on?
MacOs or Linux
What’s the output of bazel info release
?
Any
Have you found anything relevant by searching the web?
https://developer.android.com/platform/technology/app-bundle https://developer.android.com/guide/app-bundle/dynamic-delivery
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:25 (17 by maintainers)
Top Results From Across the Web
Overview of Play Feature Delivery | Android Developers
Play Feature Delivery uses advanced capabilities of app bundles, allowing certain features of your app to be delivered conditionally or downloaded on demand...
Read more >Configure on demand delivery - Android Developers
This page helps you add a feature module to your app project and configure it for on demand delivery. Before you begin, make...
Read more >On Demand Modules - Android Developers
This page helps you configure your app to support Dynamic Delivery and add a dynamic feature module to your app project. Before you...
Read more >Configure instant delivery - Android Developers
Under Dynamic features to deploy in the General tab, check the box next to each feature module you want to include when deploying...
Read more >Migrate your instant app to support Android App Bundles
You can then include additional features that users can download on demand as instant experiences using the Dynamic Feature plugin. This setup ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi all,
Our approach to solving this issue is for us to provide a rule called
android_application
that replacesandroid_binary
and supports building Android App bundles. Theandroid_application
rule will support configuration splits, as well as feature splits for assets and native libraries. We anticipate publishing it with enough time for adoption before the Play Store deadline.If you would like to switch to using
android_application
and Bazel to generate an Android App Bundle from an existing Bazel target that usesandroid_binary
:android_binary
withandroid_application
.srcs
(if any) to a newandroid_library
target, then add that library to thedeps
of theandroid_application
(android_applcation
does not accept source files directly).bundle_config_file
to a.pb.json
bundle configuration, as per https://developer.android.com/studio/build/building-cmdline#bundleconfig to configure the splits for the application.We’ll publish additional documentation and examples when we publish the
android_applcation
rule.Hi all, I’ve published the preview to the pre-alpha branch here: https://github.com/bazelbuild/rules_android/tree/pre-alpha
Note that to get the bundletool dependencies, you’ll need to add
rules_jvm_external
to your workspace file if it’s not there already, and there’s some workspace setup now in@rules_android//:defs.bzl
: