“Create a mobile app package diagram with presentation, domain, data, network, and platform packages and their dependencies.”
פענחו את ההחלטות שמאחוריו.
Screens depend on use cases rather than network clients.
Use cases coordinate application behavior.
Repositories hide cache and API details.
Show push services at the outer boundary.
Use when explaining a modular mobile architecture to developers and reviewers.
שאלות נפוצות
Why separate domain from data?
It lets application behavior depend on an abstraction rather than a particular API or storage mechanism.
Can packages contain many classes?
Yes, but a package diagram usually shows only representative classes or names.
Should UI call the API directly?
Keeping that dependency behind a use case and repository makes the boundary easier to manage.