jpotts18 / android-mvp

Android MVP Reference Architecture and Video Tutorial
MIT License
211 stars 79 forks source link

Getting rest adapter from interactor #11

Closed EfeBudak closed 7 years ago

EfeBudak commented 8 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?

RajuSE commented 7 years ago

@EfeBudak hope this helps..