André Thiele

    André Thiele

    1 year ago
    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
    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.
    André Thiele

    André Thiele

    1 year ago
    I dont know if this solves my problem
    Jeremy

    Jeremy

    1 year ago
    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