Open eurosecom opened 7 years ago
Dagger2 injection
if i use @Inject Base constructor injection, then i have got all provided dependencies in module DgFirebaseSubModule injected in class DgAllEmpsAbsListFragment where i inject DgAllEmpsAbsMvvmViewModel
if i provide dependency DgAllEmpsAbsMvvmViewModel in DgFirebaseSubModule then i have got in DgAllEmpsAbsMvvmViewMode only dependencies in constructor.
if i provide dependencz in Module i can not use Base constructot injection together in the same time
dependency provided in Module is better for mock override Module in EspressoTest
Try to scope component and module for DgAeaActivity
@Component(modules={ApplicationModule.class, ClockModule.class})
and ApplicationModule.java is not scoped.
List all absences for all employees in selected month. Mvvm pattern's activity with Dagger2 dependency injection SharedPreferences, Realm and Firebase.