Code Monkey home page Code Monkey logo

spark's Introduction

Spark, a simple Android app to explain the clean architecture + Automated Test

Android Architecture   Android Architecture   Android Architecture   Android Architecture


Spark app is a simple Android application to explain clean architecture in android + CI/CD with Github Actions

I've separated it into 3 major layers.

Android Architecture

1- Presentation Layer

- Fragments      (By Android Navigation Component, Single Activity)
- ViewModels     (Communicate with Use-Cases, Return LiveData)

2- Domain Layer

- Entities       (Core of system. The app's units)
- UseCases       (A bridge between Presentation and Data layers, System logic)
- Contracts      (Explain how layers can provide/access to data)

3- Data Layer

- Repositories   (implement Domain layer's contracts, get Data from Repos and map them to Domain layer's entity)
- DataEntities   (get from APIs or DB)   

Test

I've covered the most important layers as much as possible. But still needs to write more Unit/Ui tests.

Android Architecture

Also I'm using GitHub Actions as CI/CD. As I defined before, If I push the codes into any branch except master/release, All tests will run, Then If all of them passed, one APK will be built and uploads into the Github actions artifact.

Android Architecture Android Architecture

Technologies

  • Full Kotlin
  • Dagger Hilt for DI
  • Coroutines
  • LiveData
  • Navigation Component
  • Junit/Espresso
  • GitHub actions as CI/CD

APIs

I've created 6 APIs with PHP Laravel framework. I've published the Postman collection by this link. https://documenter.getpostman.com/view/6268446/TW74hQ3R

Android Architecture


AmirHossein Teymoori [email protected]

spark's People

Contributors

amirhossein-mobilityone avatar ateymoori 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.