/SSB

generator to set up a Redux/MVVM architecture project for android with DI set up and debug draw

Primary LanguageKotlinApache License 2.0Apache-2.0

Android Kotlin MVVM + Redux

yeoman generator to set up a flux MVVM(without databinding lib by default) type project for android with DI set up and debug draw

How to run

cd to generator-ssb

run: npm link

cd to folder you want to create app in

run: yo ssb

This project uses:

MVVM + Redux is a user interface architectural pattern engineered to facilitate Unidirectional data flow:

  • The ViewModel gets an Event via add event then mutates the State and/or triggers asynchronous action that will comeback with a new Event after state is mutated its published to the State relay for observes to react to.
  • The State is the model that represents the current state of the app or feature.
  • The View (BaseActivity/BaseFragment) Any componite that is responsable for updateing the view based on State. Can optionally talk to the ViewModel via Events that happen to ui componite.
  • The Event is a type that can be accepted by a event relay inorder to communicate to the ViewModel