/Android-RealtimeUpdate-CleanArchitecture

This is a sample project that demostrate CleanArchitecture approach with realtime update datasource (MVP, MVVM)

Primary LanguageJavaApache License 2.0Apache-2.0

Android-RealtimeUpdate-CleanArchitecture

========================= This is a sample project that demonstrate Clean Architecture approach with realtime update datasource. This project is based on this sample "https://github.com/android10/Android-CleanArchitecture" which instroduced by android10.

Within this project I am using Firebase as the datasource (maybe in real project it could be socket connection, database ...).

What I have done

  • In presentation layer, I demonstrate MVP and MVVM.
  • Connect to datasource and listen to the data changed.
  • Download image, cached to files and Memory.

Concerning

  • Haven't covered all by unit test, only in MVP.
  • Could use a better approach to download the image.
  • I am more than welcome to recieve your comment.

Compile

Follow this tutorial "https://firebase.google.com/docs/android/setup" to create your own google-services.json file. After that, you have to remove authentication by follow this instruction : https://firebase.google.com/docs/database/security/quickstart. Update the rule to :

{ "rules": { ".read": "true", ".write": "true" } }

And just import this project by Android Studio.