Do I need to include dependencies inside the :app ...
# dagger
a
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
I dont know if this solves my problem
j
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