MVVM Redux
Is an Android Library based in redux to help android developers apply with a simple way the reducer in your respective ViewModel.
Simplicity
MVVM Redux provides all you need to make your ViewModel uncoupled of view. With ViewModel extensions you can insert all you need in your constructor pragmatically.
When you need to change your feature it will be simple.
Read about our implementation in doc and you can use for your context the listener extensions.
The limit is your imagination. :)
Documentation
- BaseViewModel
- StateViewModel
- EventViewModel
- ReducerScope
- Reducer
- EventView
- StateView
- State
- Event
- StateEvent
- Listener Extensions
- ViewModel Extensions
- Unit Tests
Installation
Insert in project gradle:
allprojects {
repositories {
jcenter()
}
}
Insert in module gradle:
ext {
mvvm_redux_version = '1.0.2'
}
dependencies {
// MVVM Redux core features
implementation "com.mvvmredux:core:$mvvm_redux_version"
// MVVM Redux extension features
implementation "com.mvvmredux:ext:$mvvm_redux_version"
// MVVM Redux view model extensions features
implementation "com.mvvmredux:viewmodel:$mvvm_redux_version"
}
Inspired by Roxie and Jay Rambhia Article