Skip to content

This is Todo android app created using MVP design pattern in Java

Notifications You must be signed in to change notification settings

kalyand14/MVP-Java-CleanArchitecture

Repository files navigation

Build Status codecov Codacy Badge

Todo Application

A sample android app that shows Clean Architecture implementation using MVP design pattern.

Implemented by Clean Architecture

  • Presentation (Activity/Fragment and Presenter)
  • Domain (Interactor/Usecases, Repository Interface and Model classes)
  • Data (Local/remote datastore and Repository implementation)

Dependencies between components

Activity/Fragment --> Presenter --> Usecase(Interactor) --> Repository --> LocalDataStore(Room DB)

Communication between layers

All the layers are communicated through callbacks.

  1. UI calls method from ViewModel.
  2. ViewModel executes Use case.
  3. Use case combines data from Album and Photo Repositories.
  4. Each Repository returns data from a Data Source (Cached or Remote).
  5. Information flows back to the UI where we display the list of posts.
Other important components
  • Navigator
  • ResourceManger

Scenario

At a glance:

  • Use can either Register or Login if already registered
  • Once authenticated, show list of todos with option to add new todo
  • Once tap on each item, show edit/delete todo screen

References

Unit testing

Jacoco test report integration - https://github.com/arturdm/jacoco-android-gradle-plugin
Travis-Ci integration - https://github.com/codecov/example-android/blob/master/.travis.yml
Codecov and Travis-Ci integration - https://github.com/codecov/example-android

About

This is Todo android app created using MVP design pattern in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages