buddysearch icon indicating copy to clipboard operation
buddysearch copied to clipboard

Data specific model used in presenter

Open rafipanoyan opened this issue 6 years ago • 0 comments

You shouldn't use any data layer specific model in Presenters.

LoginPresenter uses GoogleSignInAccount objects, which is specific to the Login SDK you chose, but this dependencie should not be visible inside the presenter. This violate the Clean Architecture boudaries.

If you study Uncle Bob's clean architecture layers, you can see that the Presenters are one level below the data layer, so the models can't be shared between them if it's a data layer's model.

rafipanoyan avatar Feb 26 '18 12:02 rafipanoyan