1 min readSep 30, 2020
If you need to pass an Activity instance to dependencies, then you have two options - either provide a Factory that takes in the Activity and creates the object, or create a subscoped subcomponent that @BindsInstance-es the Activity. Or use Hilt which does the second option for you behind the scenes.