Hello. I have a simple setup where I have my app and another gradle module. All of this works fine. Now I created a dagger module with a @Binds @IntoSet in both my app module and my other gradle module. But now, only the app modules @Binds @IntoSet gets loaded in my app, not the gradle modules. Is there something I'm missing here on how to get this second dagger module to be provided correctly?
a
Arun
02/18/2021, 3:13 PM
The other gradle modules need to have kapt or annotationProcessor config on dagger compiler applied, was that setup as well?
c
Colton Idle
02/18/2021, 3:16 PM
Yep! Confirmed they have kapt and dagger compiler.
Confirmed both of the Modules have
@Module
@InstallIn(SingletonComponent::class)
Colton Idle
02/18/2021, 3:18 PM
I can see that there is a file generated for each modules called XModuleDeps.java and YModuleDeps.java. So I think the generation is actually working.
Also @Arun you are the creator of scabbard right? Love that lib. Thanks!
Colton Idle
02/18/2021, 3:20 PM
And in the generated App_HiltComponents.java I can see both modules .class defined in there. 😄
Colton Idle
02/18/2021, 3:27 PM
I really think I have this set up right. /shruggie