Skip to content

hantrungkien/android-clean-architecture-components-boilerplate

Repository files navigation

Android Clean Architecture Components Boilerplate

Welcome 👋 I hope this boilerplate is not only helpful to other developers, but also that it helps to educate in the area of architecture. I created this boilerplate for a few reasons:

  1. To experiment with modularisation
  2. To experiment with the Android Architecture Components
  3. To share some approaches to clean architecture, especially as we've been talking a lot about it
  4. To use as a starting point in future projects where clean architecture feels appropriate

Disclaimer

Note: The use of clean architecture may seem over-complicated for this sample project. However, this allows us to keep the amount of boilerplate code to a minimum and also demonstrate the approach in a simpler form.

Clean Architecture will not be appropriate for every project, so it is down to you to decide whether or not it fits your needs.

Languages, libraries and tools used

Architecture

The architecture of the project follows the principles of Clean Architecture. Here's how the sample project implements it:

architecture

Drawing

Conclusion

Again to note, use Clean Architecture where appropriate. That decision is down to you and the project that you are working on.

Thanks

A special thanks go to the authors involved with these repositories, they were a great resource during our learning!