use of com.mindorks.framework.mvvm.ui.feed.opensource.OpenSourceViewModel in project android-mvvm-architecture by MindorksOpenSource.
the class FragmentModule method provideOpenSourceViewModel.
@Provides
OpenSourceViewModel provideOpenSourceViewModel(DataManager dataManager, SchedulerProvider schedulerProvider) {
Supplier<OpenSourceViewModel> supplier = () -> new OpenSourceViewModel(dataManager, schedulerProvider);
ViewModelProviderFactory<OpenSourceViewModel> factory = new ViewModelProviderFactory<>(OpenSourceViewModel.class, supplier);
return new ViewModelProvider(fragment, factory).get(OpenSourceViewModel.class);
}
Aggregations