Does anyone know how I can use Dagger 2 to inject dependencies for an object? I'm looking to do something like:
data API {
@Inject
val Auth: AuthenticationApi
}
Then have AuthenticationApiImpl for the actual implementation. Then in testing be able to provide a new dependency that injects MockAuthenticationApiImpl instead. I can't send to get an ApiModule working for the injection.