Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Fix injection when using generics#216

Open
AlexDochioiu wants to merge 1 commit intoJakeWharton:masterfrom
AlexDochioiu:fix_generic_inject
Open

Fix injection when using generics#216
AlexDochioiu wants to merge 1 commit intoJakeWharton:masterfrom
AlexDochioiu:fix_generic_inject

Conversation

@AlexDochioiu
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant