package com.king.frame.mvvmframe.di.module;


import com.king.frame.mvvmframe.base.ViewModelFactory;

import androidx.lifecycle.ViewModelProvider;
import dagger.Binds;
import dagger.Module;
import dagger.android.AndroidInjectionModule;

/**
 * Dagger.Andrdoid 注入{@link com.king.frame.mvvmframe.base.BaseActivity#mViewModelFactory}和{@link com.king.frame.mvvmframe.base.BaseFragment#mViewModelFactory}
 * @author <a href="mailto:<EMAIL>">Jenly</a>
 */
@Module(includes = {AndroidInjectionModule.class})
public abstract class ViewModelFactoryModule {

    @Binds
    abstract ViewModelProvider.Factory bindViewModelFactory(ViewModelFactory viewModelFactory);
}
