Open kokeroulis opened 5 years ago
A bunch of the Dagger functional tests cover this and are currently muted. Hope to get to it eventually, but it's probably non-trivial.
In my experience, this is the only major blocker for using dagger-reflect in non-trivial projects.
When we have a module with a generic type then dagger-reflect fails to resolve this dependency. For example given that we have the following module
We will receive the following exception
We can reproduce this by running
./gradlew :integration-tests:android:testReflectDebugUnitTest
For the above scenario I have created a sample project which is reproducing this issue, you can find the full source code here, the branch name is
atsiap/module_with_generic
.Dagger's original code generation works properly and it can be verified by running
./gradlew :integration-tests:android:testCodegenDebugUnitTest
.