Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use Hilt with this architecture #3

Closed
vyshas opened this issue Jan 8, 2022 · 2 comments
Closed

Can we use Hilt with this architecture #3

vyshas opened this issue Jan 8, 2022 · 2 comments

Comments

@vyshas
Copy link

vyshas commented Jan 8, 2022

Hi,

We are looking at an architecture very similar to this and one question where had doubts was will we be able to use Hilt properly with this architecture ?

@AradiPatrik
Copy link

He mentioned in his talk that this architecture is not really compatible with hilt.
As I understood: Hilt uses @Submcomponent instead of component dependencies in it's implementation and that means that your implementation modules have to explicitly depend on other implementation and app modules using hilt. And that sort of defeats the purpose of this architecture.

@Morfly
Copy link
Owner

Morfly commented Apr 17, 2023

That's correct, the main issue lies in the fact that Hilt uses subcomponents under the hood, which in turn makes api-impl more challenging.
Thank you @AradiPatrik for the reply!

@Morfly Morfly closed this as completed Jun 5, 2023
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

No branches or pull requests

3 participants