Archie
05/19/2020, 9:52 AMSomeDependency()
scoped to the lifecycle of the activity like so:
val someActivityModule = module {
scope<SomeActivity> {
scoped<SomeDependency> {
SomeDependencyImpl()
}
}
}
and then I have a fragment which needs that SomeDependency()
like so:
val someFragmentModule = module {
fragment {
SomeFragment(someDependency = get())
}
}
I was wondering how I would be able to get the depency correctly? Can anyone guide me? Thank you very much.Yamko
05/22/2020, 7:24 AMHarryPulvirenti
05/26/2020, 6:19 AM