Created
April 25, 2020 18:21
-
-
Save naltynbekkz/855025aaee6624889ec294c2025e68ac to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@BlogsScope | |
@Subcomponent(modules = [BlogsViewModelsModule::class]) | |
interface BlogsComponent { | |
@Subcomponent.Factory | |
interface Factory { | |
fun create(): BlogsComponent | |
} | |
fun inject(fragment: BlogsFragment) | |
fun inject(fragment: BlogFragment) | |
} | |
@SecondScope | |
@Subcomponent(modules = [SecondViewModelsModule::class]) | |
interface SecondComponent { | |
@Subcomponent.Factory | |
interface Factory { | |
fun create(): SecondComponent | |
} | |
fun inject(fragment: SecondFragment) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment