Coder Social home page Coder Social logo

nareshidiga / android-cleanarchitecture-java Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 6.0 108 KB

An Android project template based on Clean Architecture using architecture components library (Live data, View model and Room), RxJava2, Dagger2 and Retrofit2.

License: Apache License 2.0

Java 100.00%
android-architecture android-cleanarchitecture android-clean-architecture architecture android-architecture-components clean-architecture android-template android-development android-application samples templates rxjava2 rxjava2-retrofit2 dagger2 retrofit2 room room-persistence-library livedata flowable cleanarchitecture

android-cleanarchitecture-java's Introduction

Android Clean Architecture

This project is based on Clean Architecture by Robert Cecil Martin aka Uncle Bob.
It uses android architecture components (Live data, View model and Room) with RxJava2, Dagger2 and Retrofit2.

Key benefits

  1. Create extensible and reusable modules to use across multiple apps.
  2. A system that is intrisically testable, independent of frameworks, database and UI
  3. When some frameworks or libraries become obsolete easily replace them with new ones.

Using this template

There are three main packages.

base : all your base classes go in this package
features : all your features related code go in this package
app : all your high level classes that combine multiple features go in here.

base and feature packages are divided into four standard packages (data, presentation, usecases and entities).

Understanding Clean Architecture

Key principle: Nothing in an inner circle can know anything at all about something in an outer circle

alt text

To understand and adapt clean architecture on android apps, take a look at the following great articles:

Original article by Uncle Bob:
https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html

A three part series blog on Android Architecture from FIVE:
http://five.agency/android-architecture-part-1-every-new-beginning-is-hard/
http://five.agency/android-architecture-part-2-clean-architecture/
http://five.agency/android-architecture-part-3-applying-clean-architecture-android/

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.