Skip to content

Showcase of multi-modular Android MVVM architectures (Layered Architecture and Clean Architecture) 🏛 to developing clean, testable and scalable Android Apps 📱. MVVM, LiveData, Retrofit, Coroutines, Hilt Dependency Injection, MockK Unit Tests.

License

Notifications You must be signed in to change notification settings

davidepanidev/android-multimodule-architecture-concepts

Repository files navigation

Android Multimodule Architecture Concepts

Android Multimodule Architecture Concepts is a project to showcase different architectural approaches to developing multi-modular Android apps.

The architecture proposed consists 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 (the main branch only contains an empty template for all the concepts).

The proposed concepts are:

  • Layered Architecture Concept: the dependency between the modules is presentation -> domain -> data. The 3 modules are Android modules.
  • 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.

About

Showcase of multi-modular Android MVVM architectures (Layered Architecture and Clean Architecture) 🏛 to developing clean, testable and scalable Android Apps 📱. MVVM, LiveData, Retrofit, Coroutines, Hilt Dependency Injection, MockK Unit Tests.

Topics

Resources

License

Stars

Watchers

Forks

Languages