fchiusolo / RandomJokes

App that displays random jokes about someone in the user's contacts list
2 stars 0 forks source link

Dependency injection with needle #6

Closed fchiusolo closed 4 years ago

fchiusolo commented 4 years ago

I used needle for the dependency injection but now my code doesn't look as clean as before because I now have optionals that does not make sense in the Interactor and in the Presenter, due the circular dependencies view->interactor->presenter->view that I broke by making the Interactor's and the Presenter's dependencies optional. What did I do wrong @dcampogiani ???