Giter VIP home page Giter VIP logo

clean-android-architecture's Introduction

Clean Android Architecture

This repository contains an implementation of a clean architecture for Android applications using Compose, MVVM, MVI, Hilt, Kotlin Flow, Repository, Room, Retrofit, Mockito, and JUnit.

The project is divided into several modules, including:

  • app: The main application module, responsible for defining the UI using Compose and coordinating with the presentation layer.
  • domain: The domain module, responsible for defining the business logic of the application and exposing it through interfaces.
  • data-repository: The repository module, responsible for implementing the interfaces defined in the domain module and providing data from both the local and remote data sources.
  • data-local: The local data source module, responsible for implementing the logic to access data stored locally, using Room as the database.
  • data-remote: The remote data source module, responsible for implementing the logic to access data from a remote API, using Retrofit as the network client.
  • presentation-common: The common presentation module, containing shared components and utilities used throughout the presentation layer.
  • presentation-post: The presentation module for the posts feature, responsible for implementing the UI and the presentation logic related to posts.
  • presentation-user: The presentation module for the users feature, responsible for implementing the UI and the presentation logic related to users.

The project follows a layered architecture approach, with each layer (presentation, domain, repository and data) having its own set of responsibilities and being completely decoupled from the other layers. The communication between the layers is done through well-defined interfaces, allowing for easy testing and future modifications.

Dependencies

Dependencies

Book

This project is based on the book Clean Android Architecture: Take a layered approach to writing clean, testable, and decoupled Android applications Packt.

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.