https://kotlinlang.org logo
#dagger
Title
# dagger
k

Kshitij Patil

11/20/2020, 8:38 AM
Do I need to replace all `implementarion`s with `api`s for hilt to work properly in a multi-module project ? I don't have any feature modules and am trying to closely follow the way chrisbanes/tivi has been implemented but I'm getting "XYZ does not represent a declared type" error Link to my example implementation: https://github.com/Kshitij09/HiltMultiModuleExample
w

wasyl

11/20/2020, 9:16 AM
I don’t use Hilt, but with Dagger I add some dependencies as
compileOnly
in the module that has the component. But that also means your dependencies are leaking from the modules, so you may want to look into that (I don’t know though, maybe Hilt just works that way)
👍 1
8 Views