Is an Android Library based in redux to help android developers apply with a simple way the reducer in your respective ViewModel.
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. :)
- BaseViewModel
- StateViewModel
- EventViewModel
- ReducerScope
- Reducer
- EventView
- StateView
- State
- Event
- StateEvent
- Listener Extensions
- ViewModel Extensions
- Unit Tests
Insert in project gradle:
allprojects {
repositories {
google()
mavenCentral()
// Insert repository reference here
maven { url 'https://jitpack.io' }
}
}
Insert in module gradle:
ext {
mvvm_redux_version = '1.0.3'
}
dependencies {
// MVVM Redux core features
implementation "com.github.gabrielbrasileiro.mvvm-redux:core:$mvvm_redux_version"
// MVVM Redux extension features
implementation "com.github.gabrielbrasileiro.mvvm-redux:ext:$mvvm_redux_version"
// MVVM Redux view model extensions features
implementation "com.github.gabrielbrasileiro.mvvm-redux:viewmodel:$mvvm_redux_version"
}
Inspired by Roxie and Jay Rambhia Article