/android-flux-livedata

This is a very simple sample app using Flux architecture with LiveData and ViewModel from Android Jetpack

Primary LanguageKotlin

Android Flux Livedata Sample

This is a very simple sample app using Flux architecture with Jetpack's LiveData and ViewModel. 🚀

Heavily inspired by https://github.com/mercari/RxRedux

Architecture used

Because an image is worth a thousand words, and you are too busy to read one thousand words: FluxLiveData

Move it move it

  • Clicks on -1 button will dispatch a DecreaseCounter action
  • Clicks on +1 button will dispatch a IncreaseCounter action
  • -1 button is enabled only if state.counter > 0 to avoid having negative counter

Sample