Created
October 25, 2020 12:22
-
-
Save skywall/67e47c0e6802c3a2f625a4bcf91d1d75 to your computer and use it in GitHub Desktop.
HomeFragmentInjection
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
@Subcomponent( | |
modules = [HomeFragmentModule::class] | |
) | |
interface HomeFragmentComponent { | |
fun inject(homeFragment: HomeFragment) | |
} | |
@Module | |
class HomeFragmentModule(private val homeFragment: HomeFragment) { | |
@Provides | |
fun homeView(): HomeView = homeFragment | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment