Skip to content

Latest commit

History

History
33 lines (20 loc) 路 3.09 KB

File metadata and controls

33 lines (20 loc) 路 3.09 KB

Android Multimodule Architecture Concepts

Kotlin License

Android Multimodule Architecture Concepts is a showcase of two MVVM multi-modular concepts (Android Layered Architecture and Android Clean Architecture) 馃彌 to developing clean, testable and scalable Android Apps 馃摫

馃攷 The architecture proposed consist of 3 different layers:

  • Presentation layer: contains all the Android UI framework components (e.g. Activities, Fragments, ViewModels...) and the related resources (e.g. images, strings...).
  • Domain layer: contains the platform-independent business logic and models.
  • Data layer: contains the repositories, the data sources api implementations and the corresponding api-specific models.

These layers are implemented using 3 separate modules to increase decoupling and separation of concerns. The dependencies between the modules are set so that the data layer is completely invisible to the presentation layer and vice versa.

Architecture concepts 馃彌

The project hosts each architecture concept in a separate branch (this main branch only contains an empty template).

馃攷 The proposed concepts are:

  • Layered Architecture Concept: the dependency between the modules is presentation -> domain -> data. The 3 modules are Android modules. The visibility among the modules is shown by the picture below:

  • Clean Architecture Concept: the dependency between the modules is presentation -> domain <- data. The presentation and data modules are Android modules whereas the domain module is a Kotlin library being the innermost platform-independent module. The visibility among the modules is shown by the picture below:

Screenshots 馃摳

The App retrieves data from the CoinGecko API and shows the current most capitalized cryptocurrency (which of course is Bitcoin 馃槃).