dimsuz
03/01/2022, 4:06 PMmyComponent.createCoordinator()
and the instance is created.
If I switch to non-anvil dagger it starts to work. Do I need to include some additional source set? Currently default from kotlin plugin are usedDaniel Perez
03/01/2022, 4:38 PM@MergeComponent
on a component. @ContributesTo
usually goes on a moduledimsuz
03/01/2022, 4:54 PMComponentInterface
from anvil's README. Final component which contains this interface does contain @MergeComponent
ralf
03/01/2022, 6:12 PM@SingleIn
is wrong. A component interface doesn’t have a Dagger scope.
But to answer your question: no, the IDE unfortunately doesn’t see that the component interfaces are merged and added as super types to the final component. The compiler and IDE don’t provide any hooks for that. That will change with the new compiler frontend that will be shipped with Kotlin 1.8 probably.dimsuz
03/01/2022, 11:01 PMralf
03/01/2022, 11:18 PMdimsuz
03/02/2022, 11:00 AM