Skip to content

Instantly share code, notes, and snippets.

@itsandreramon
Last active December 27, 2023 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsandreramon/ae8d5409c47d2d8694e6fe7ee333e422 to your computer and use it in GitHub Desktop.
Save itsandreramon/ae8d5409c47d2d8694e6fe7ee333e422 to your computer and use it in GitHub Desktop.
@SingleIn(UserScope::class)
@MergeSubcomponent(UserScope::class)
interface UserComponent {
@Subcomponent.Factory
interface Factory {
fun create(
@BindsInstance userSession: UserSession,
@BindsInstance userCoroutineScope: UserCoroutineScope,
): UserComponent
}
fun inject(activity: MainActivity)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment