Skip to content

Instantly share code, notes, and snippets.

@DenisBronx
Last active November 17, 2020 16:53
Show Gist options
  • Save DenisBronx/1dfa13ba90d14129b34dead720ab51da to your computer and use it in GitHub Desktop.
Save DenisBronx/1dfa13ba90d14129b34dead720ab51da to your computer and use it in GitHub Desktop.
class MyDaggerModule {
@Provides
fun provideGetTransactionsUseCase(
private val userRepository: UserRepository,
private val transactionRepository: TransactionRepository
): GetTransactionsUseCase {
return {
getTransactions(
userRepository::getUser,
transactionRepository
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment