Moved to https://github.com/jvm-redux/
Avoiding duplicate efforts.
The project defines an API & Specs to implement Redux on the JVM. It provides adapters for some existing implementations.
A simple Google request reveals many implementations of Redux for the JVM.
This project has two goals :
- Evaluate a given implementation (compliance to specs)
- Provides a high-level API. Hence, any library can be written once and fit then all.
Redux is better expressed using a functionnal language, hence the API is defined in Kotlin. The implementations may use another language.
Please, find the API here
The repository also provides adapters for the following implementations :
Please, create an issue if you want to add an adapter to another implementation.
A comparison of stores is available here
Acknowledgements : The api started out of Redux-Kotlin and some updates were made to it. Redux-Kotlin has also a nice port of the official Redux project, for that reason the tests were also imported. Thank you @pardom.
Any add-ons (Middlewares, DevTools, ...) written on top of this API can fit any implementation with an adapter.
Examples :
- jvm-redux-devtools-instrument : dev tools
Set-up JitPack
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
compile 'com.github.glung.jvm-redux:specs:-SNAPSHOT'
compile 'com.github.glung.jvm-redux:adapter-bansa:-SNAPSHOT'
compile 'com.github.glung.jvm-redux:adapter-kedux:-SNAPSHOT'
compile 'com.github.glung.jvm-redux:adapter-reduks:-SNAPSHOT'
compile 'com.github.glung.jvm-redux:adapter-redux-java:-SNAPSHOT'
compile 'com.github.glung.jvm-redux:adapter-redux-kotlin:-SNAPSHOT'