Code Monkey home page Code Monkey logo

davidepanidev / android-multimodule-architecture-concepts Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 2.0 1.02 MB

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: MIT License

Kotlin 100.00%
android architectural-patterns layered-architecture clean-architecture mvvm hilt-dependency-injection-android coingecko-api cryptocurrencies livedata retrofit solid-principles modular-architecture android-architecture-components android-clean-architecture android-multi-module hilt-dependency-injection mvvm-architecture android-unit-testing

android-multimodule-architecture-concepts's Introduction

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 ๐Ÿ˜„).

android-multimodule-architecture-concepts's People

Contributors

davidepanidev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.