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

André Thiele

03/20/2021, 5:17 PM
Do I need to include dependencies inside the :app module that are provided as @ Singleton from another module? https://stackoverflow.com/questions/66724358/do-i-need-to-include-dependencies-inside-the-app-module-that-are-provided-as-s
Copy code
A new Dagger compiler option was added to allow disabling transitive validation of component dependency, dagger.validateTransitiveComponentDependencies,. The default value for the flag is enabled (same as before). To disable it, add the following to your compiler options: -Adagger.validateTransitiveComponentDependencies=DISABLED. For a full motivation/discussion, see issue #970.
a

André Thiele

03/20/2021, 5:35 PM
I dont know if this solves my problem
j

Jeremy

03/22/2021, 1:25 PM
Yes you need to make the dependencies available, in the SO comment they just used implementation->api
If you do not want to expose
OkHttpClient
just the repo that wraps it you can use
provideOkHttpClient: OkHttpClient
without
@Provides
👍 1
8 Views