Giter VIP home page Giter VIP logo

cleanarchitectureblueprints's Introduction

Clean Architecture in Android — a beginner approach

A clean architecture starting point for android projects

Check my article on Medium: https://nicola-gallazzi-dev.medium.com/clean-architecture-in-android-a-beginner-approach-be0ce00d806b

Layers

  1. Presentation: the layer that interacts with the UI.

  2. Use cases: The actions that the user can trigger (clicking on a button, navigating to a destination)

  3. Domain: contains all the business models (data classe s)

  4. Data: contains an abstract definition of different data sources. It's modeled using repositories and data sources

  5. Framework: implements the dependencies (proper of android framework) we provided in the rest of the layers. Should contain classes specific of the android framework

App modules

  • App: includes everything about android framework, so Framework and Presentation layer
  • Domain: contains the definitions of business logic of the app, the server data model, the abstract definition of repositories and the definition of the use cases. It’s a simple, pure kotlin module (android independent)
  • Data: contains the implementation of the abstract definitions of the domain layer. Can be reused by any application without modifications. It contains repositories and data sources implementations, the database definition and its DAOs, the network APIs definitions, some mappers to convert network api models to database models and vice versa.

cleanarchitectureblueprints's People

Contributors

ngallazzi avatar

Watchers

James Cloos 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.