“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.