Skip to content

Instantly share code, notes, and snippets.

@itsandreramon
Created December 25, 2023 15:56
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/5b62789ad5f0343636fda11d4f01ad85 to your computer and use it in GitHub Desktop.
Save itsandreramon/5b62789ad5f0343636fda11d4f01ad85 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,
): UserComponent
}
fun inject(activity: MainActivity)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment