question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move optional ML features to dynamic feature modules is not possible

See original GitHub issue

https://firebase.google.com/docs/ml-kit/android/reduce-app-size#advanced_move_optional_ml_features_to_dynamic_feature_modules

The doc says that we could move ML to dynamic feature, but I think it will effect the whole firebase app modules because of ComponentDiscoveryService.

All firebase modules depends on registering the extended ComponentRegistrar classes so that FirebaseApp init will discover them via AndroidManifest once. This flow will cause firebase components can’t move to dynamic feature while base module has other components.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
b95505017commented, May 29, 2020

@ashwinraghav LGTM, please let me in. I’m also in the firebase alpha group.

1reaction
ashwinraghavcommented, May 29, 2020

Thanks for raising this. Your observations are correct. This requires some ground up redesign of component discovery. The good news is that we are working on a fix. Please let us know if you would like to try the alpha and we’ll give you an early release candidate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overview of Play Feature Delivery | Android Developers
What not to include in the feature module build configuration ... Under Dynamic features to deploy in the General tab, check the box...
Read more >
Reduce the size of your ML Kit Android app's APKs
Build your app as an Android App Bundle; Advanced: Move optional ML features to dynamic feature modules; Advanced: Exclude unused ML Kit binaries....
Read more >
Dynamic feature modules. Is it worth the effort? - Medium
Code from dynamic modules is not directly accessible to the base module. This brings in the need of Reflection class, which is still...
Read more >
Dynamic module feature and ML Kit Crash on App open
To set up your dynamic module, you will need to move the mlkit translate dependency from the base app's gradle file to the...
Read more >
Modules - Retool Docs
A module is a reusable group of components and queries. You might use a module to reuse common components in multiple apps or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found