Skip to content

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

License

Notifications You must be signed in to change notification settings

bypasscc/Android-RealtimeUpdate-CleanArchitecture

 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%