Skip to content

marcelpallares/reactive-mvvm-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive MVVM with Flows 📱

A showcase app to demonstrate how a reactive MVVM approach using Flows could look in Android.

Android development

This MVVM implementation orchestrates the whole app functionality through the next Flows:

  • State = StateFlow
  • Events = Channel
  • Actions = Not using flows anymore. However, if needed, a SharedFlow could be used for this use case.

The app follows a Unidirectional Data Flow pattern (UDF) like MVI but leaves out complexities such as reducers or processors.

MVVM UDF

The app - Your Daily Quote 💬

The app is a simple random Quote generator with the ability to share the generated Quote.

Your Daily Quote app

Third party data

The quotes used throughout the app have been picked from the open source project Quotable.