Skip to content

Conversation

@f2rf2r
Copy link
Member

@f2rf2r f2rf2r commented Apr 19, 2019

I stopped short of ViewModel injection and only inject up to the activity/fragment level since having Dagger work with ViewModelProvider will introduce additional complexity, especially if we also want to support passing in additional data that are outside of Dagger graph such as intent extras. Right now the Dagger setup is relatively simple while still allowing the main feature of configuring the dependency graph.

I'm planning on also creating another PR for Kodein. My plan is to have one of them to merge into master and become the default, and the other one will stay as a separate branch and periodically merge the latest changes from master.

I stopped short of ViewModel injection and only inject up to the activity/fragment level since having Dagger work with ViewModelProvider will introduce additional complexity, especially if we also want to support passing in additional data that are outside of Dagger graph such as intent extras. Right now the Dagger setup is relatively simple while still allowing the main feature of configuring the dependency graph.
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.

2 participants