dagger-reflect icon indicating copy to clipboard operation
dagger-reflect copied to clipboard

Fix injection when using generics

Open AlexDochioiu opened this issue 3 years ago • 1 comments

Currently, dagger-reflect doesn't work with injectors interfaces relying on generics, such as:

interface Injector<T> {
    fun inject(instance: T)
}

@Component
interface MainActivityComponent : Injector<MainActivity>

This PR would fix this issue.

AlexDochioiu avatar Mar 26 '21 09:03 AlexDochioiu

Haven't tried it but this might also fix #202

AlexDochioiu avatar Mar 26 '21 12:03 AlexDochioiu