ww-tech / roxie

Lightweight Android library for building reactive apps.
Apache License 2.0
482 stars 36 forks source link

Sample with Dagger #13

Closed mantas84 closed 5 years ago

mantas84 commented 5 years ago

Could you extend sample with dagger implementation?

jshvarts commented 5 years ago

Roxie would not be doing anything special when it comes to Dagger. In the most straightforward case an Activity or Fragment would be injecting a ViewModelFactory which will produce a ViewModel. Here is one of many samples out there https://proandroiddev.com/viewmodel-with-dagger2-architecture-components-2e06f06c9455

mantas84 commented 5 years ago

Sorry, I got I little be confused before, since sample uses separate ViewModelFactories for each fragment with initial state parameter.