How to organize your mobile projects in an easy and flexible way using 4 layers

How to group components?

Short answer: Domain — Use Cases — Presentation — Platform

Benefits

For one, we have an overview of our project and an easier way to understand the domain, what use cases it has to offer, mostly just by looking at its file names. It’s also way easier to find a specific component in a debug session or when trying to implement new features or make changes to existing features.

Conclusion:

We have explored the Domain — Use Case — Presentation — Platform layering to organize the project’s components.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store