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

How do you do dependency injection here? #35

Closed
hi-brylle opened this issue May 2, 2024 · 2 comments
Closed

How do you do dependency injection here? #35

hi-brylle opened this issue May 2, 2024 · 2 comments

Comments

@hi-brylle
Copy link

I ask for a recommended architecture of how Repositories can be instantiated using this library. Manual dependency injection for now (because I want to learn it before using Hilt).

Thank you :)

@olshevski
Copy link
Owner

@hi-brylle Sorry for the late response. Have you already found the answer to your question?

The library does not impose any particular way to instantiate classes or use DI. I'm not even sure what exactly you want to know. Is there any particular problem you want to solve?

@hi-brylle
Copy link
Author

Hello, yes, I have already found a solution to my problem: just some simple constructor injection for my top-level Composable function containing compose-navigation-reimagined code). Thank you for the reply though.

People looking for a more proper DI solution should not follow what I did here in my app's prototype.

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

2 participants