Android Clean Architecture: The UI Layer
To manage dependencies between different layers, make use of dependency injection with Hilt.
Points
- Separation of concerns.
- Drive UI from the data models (preferably persistent data models).
- Single source of truth (Can be a database or view model or even the UI).
- Unidirectional data flow.
Benefits of clean architecture
- Maintainability
- Scalability
- Easy onboarding
- Testability
This is one of three notes on Android app architecture. See how the layers fit together in Android App Architecture Layers: UI, Domain and Data.
Originally published on Medium.