Search code examples
androidandroid-app-bundleondemand

Inserting a dynamic feature to an esixting app bundle


I am reading the documentation up and down but I haven't been able to find a definite answer. Can I create and include a dynamic feature for my app bundle after the core apk compilation and upload it to Google Play separately or should they always be bundled together?

Any info will be appreciated.


Solution

  • Technically, they don't need to be compiled together and a dynamic feature module (DFM) could be added in an existing precompiled .aab file.

    However, I don't know of a tool today that would be able to compile them separately and insert the DFM correctly in the AAB. You're free to try making one though, it shouldn't be too hard given that the AAB is just a zip file and the format is documented and opensource.

    The only thing to make sure of really is that the package name and version code are the same for all modules.