Fluxy its a flow arquitecture implementation.
- Single information flow
- Single source of truth
- Reactivity
This library its created from https://github.com/minikorp/mini
But with a few diferences:
- Full courroutines implementation
- 0 auto gen code
- Easy to understand the core logic
val dispatcher = Dispatcher()
dispatcher.dispatch(MyAction())
data class MyState(val number: String = "")
data class MyAction(val number: String) : BaseAction
class MyStore : FluxyStore<MyState>() {
init {
reduce<MyAction> {
state.copy(number = it.number)
}
}
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation "com.github.hoop-carpool.fluxy:fluxy:x.y.z"
implementation "com.github.hoop-carpool.fluxy:timberlogger:x.y.z" // Optional default logger implementation using Timber
}