Fluxy is a Flux architecture implementation written in Kotlin.
Fluxy its a flow arquitecture implementation.
This library its created from https://github.com/minikorp/mini
But with a few diferences:
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
}