In step 7 it goes into detail about how to provide a context
it tells us...
The way to pass it in is with a Component Factory and using the @BindsInstance annotation.
If I build straight after this i get the error...
android.content.Context cannot be provided without an @Provides-annotated method.
To fix this issue I annoted property in the class that context is used like so..
class SomeClass @Inject constructor( @ApplicationContext private val context: Context )
In step 7 it goes into detail about how to provide a context it tells us... The way to pass it in is with a Component Factory and using the @BindsInstance annotation.
If I build straight after this i get the error... android.content.Context cannot be provided without an @Provides-annotated method.
To fix this issue I annoted property in the class that context is used like so..
class SomeClass @Inject constructor( @ApplicationContext private val context: Context )