Skip to content

Conversation

@snazhmudinov
Copy link
Contributor

@snazhmudinov snazhmudinov commented Dec 22, 2025

Add a flag to keep the dex files in feature split APK.

The feature activity can be launched on demand, using the following steps:
0. Make sure you have a connected device/emulator up and running

  1. cd rules_android/examples/bundle && bazel build //app:assets
  2. bundletool build-apks --local-testing
    --bundle=bazel-bin/app/assets_unsigned.aab
    --output=assets.apks
    --connected-device
  3. bundletool install-apks --apks=assets.apks
  4. Launch the app and tap on Load Feature

# Multiple mappings, merge them
merged_proguard_mapping = ctx.actions.declare_file(ctx.label.name + "_merged_proguard.map")

# TODO: this isn't working, because `proguard_maps_merger` doesn't exist in the toolchain.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if the merging can be done by simple concatenation of the files. If yes, then I could add that tool and expose it via the toolchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant