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

miqbaldc

03/15/2021, 4:46 AM
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?
Copy code
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
f

FunkyMuse

03/15/2021, 7:23 AM
In a dynamic feature module, you must use pure Dagger2 and bind the instance yourself
😭 1
m

miqbaldc

03/19/2021, 3:04 AM
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
8 Views