Closed EfeBudak closed 7 years ago
I have implemented your example and tried to integrate dagger2 example from https://github.com/codepath/android_guides/wiki/Dependency-Injection-with-Dagger-2 .
However, I couldn't find a way to get "netComponent", which was build on Application class, from interactor class. My main intention is to use retrofit object in "interactor" class. Should I pass it as a parameter or is there a more elegant way?
@EfeBudak hope this helps..
I have implemented your example and tried to integrate dagger2 example from https://github.com/codepath/android_guides/wiki/Dependency-Injection-with-Dagger-2 .
However, I couldn't find a way to get "netComponent", which was build on Application class, from interactor class. My main intention is to use retrofit object in "interactor" class. Should I pass it as a parameter or is there a more elegant way?