m

    miqbaldc

    1 year ago
    Is it possible to use 
    @ApplicationContext
     in DFM (dynamic feature module)? or should we provide application context manually? If we need to provide manually in DFM, is there any reference you guys can point me out?
    DFM - error: [Dagger/MissingBinding] @dagger.hilt.android.qualifiers.ApplicationContext android.content.Context cannot be provided without an @Provides-annotated method.
    opened an issue here: https://github.com/google/dagger/issues/2477
    FunkyMuse

    FunkyMuse

    1 year ago
    In a dynamic feature module, you must use pure Dagger2 and bind the instance yourself
    m

    miqbaldc

    1 year ago
    Well noted with thanks, we’re using
    @EntryPointAccessor
    and access it as
    dependencies = ...
    (in DFM) as stated from official sites: https://developer.android.com/training/dependency-injection/hilt-multi-module#dfm