Last active
December 29, 2019 06:50
-
-
Save ursusursus/7f141b8d764934d573bdcf72b31c6864 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
@Feature1ControllerScope | |
@Component(dependencies = [AppComponent::class], modules = [Feature1Module::class]) | |
interface Feature1ControllerComponent { | |
val viewModel: InviteViewModel | |
@Component.Factory | |
interface Factory { | |
fun create( | |
appComponent: AppComponent | |
): Feature1ControllerComponent | |
} | |
} | |
@Module | |
private object Feature1Module { | |
@JvmStatic | |
@Provides | |
fun viewModel(messageRepository: MessageRepository) = Feature1ViewModel(messageRepository) | |
} | |
@Scope | |
@Retention(AnnotationRetention.SOURCE) | |
private annotation class Feature1ControllerScope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment