Created
February 4, 2018 20:26
-
-
Save mladenrakonjac/ed9a71cdbf57ccf953c6fa6c73853c4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
internal abstract class MainActivityModule { | |
@Module | |
companion object { | |
@JvmStatic | |
@Provides | |
internal fun providesMainViewModelFactory(gitRepoRepository: GitRepoRepository) | |
: MainViewModelFactory { | |
return MainViewModelFactory(gitRepoRepository) | |
} | |
} | |
@ContributesAndroidInjector() | |
internal abstract fun mainActivity(): MainActivity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment