Android-CleanArchitecture icon indicating copy to clipboard operation
Android-CleanArchitecture copied to clipboard

Where is the MVP's model in the presentation layer?

Open zhenghuiy opened this issue 6 years ago • 4 comments

Hi all. I'm new here.

In my opinion, there is only V and P in presentation layer, is it right?

The domain layer and data layer look like the M in MVP ?

If it is true, why all the articles say that presentation use MVP instead of VP?

zhenghuiy avatar Sep 10 '18 16:09 zhenghuiy

Basically, the entities of the presentation layer are your models

St4B avatar Sep 14 '18 07:09 St4B

@zhenghuiy Response Model is M.

mishkaowner avatar Nov 29 '18 13:11 mishkaowner

it doesn't exist

Zhuinden avatar Mar 28 '19 14:03 Zhuinden

As @Zhuinden said, it does not exist as you you have already data and domain architectural layers for Model purposes. In this particular example presentation contains View+Presenter code. So as you said, V+P is in one module, where M is in data module

I think that helpful might be here this example of clean architecture pattern implementation: https://github.com/bufferapp/clean-architecture-components-boilerplate Here presentation module is an extra layer containing ViewModel/Presenter things, whereas View related code is isolated as another module called mobile-ui.

piotrek1543 avatar Apr 22 '19 19:04 piotrek1543