UI Layer : Android app architecture notes


Photo by Guido Coppa on Unsplash

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