Skip to content

Instantly share code, notes, and snippets.

@manuelvicnt
Created January 15, 2021 15:36
Show Gist options
  • Save manuelvicnt/98744b258b2c79c80c3f9a7bc9af45cb to your computer and use it in GitHub Desktop.
Save manuelvicnt/98744b258b2c79c80c3f9a7bc9af45cb to your computer and use it in GitHub Desktop.
@Module
@InstallIn(ViewModelComponent::class)
object UserAuthModule {
@Provides
fun provideValidateUsernameUseCase(
userInputAuthData: UserInputAuthData, // scoped to ViewModelComponent
repository: UserRepository
): ValidateUsernameUseCase {
return ValidateUsernameUseCaseImpl(userInputAuthData, repository)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment