Closed mantas84 closed 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
Sorry, I got I little be confused before, since sample uses separate ViewModelFactories for each fragment with initial state parameter.
Could you extend sample with dagger implementation?