Bot releases are hidden (Show)
The early versions of this project were fun experiments in Kotlin. As I played around with it more and talked to others, I hoped I might make this project useful to others, rather an as a simple experiment.
Therefore, I set down the following criteria for what I wanted from the library:
As this library now meets those goals, I think it's time to give it a beta label. Please try it out in your projects, and if we find it's all stable, we'll publish to 1.0.0 soon!
Published by brianegan over 8 years ago
This is a big change! Bansa is now written in Java, and no longer has a dependency on Rx. This drops the method count dramatically, and makes Bansa far easier to use in a normal Java Android app.
There is also a companion version available, called bansaKotlin
, that provides more idiomatic interfaces for the Kotlin programming language.
I've also tried to keep the migration path simple. If you've been using Bansa, it shouldn't be a big rewrite of the way you were doing things before. The most important changes:
{ state: MyState, action: Any ->...
to Reducer<MyState, Any> { state, action ->...
Subscriber
and Subscription
interfaces, replacing RxJava versions.createStore(intialState, reducer)
is now BaseStore(initialState, reducer, Middleware...)
Published by brianegan over 8 years ago
Drafting a new release with all of the good work put in by @clemp6r! This release has several important updates:
Store
has been moved to a proper interface. Yay!getState()
(returning the current state) and state
(the observable) to a more fluid api. From now on, simply use state
for the currentState, and stateChanges
for the underlying state observable. As always, you can simply subscribe!State
and Action
. They aren't necessary!Published by brianegan over 8 years ago
Published by brianegan over 8 years ago
Published by brianegan over 8 years ago
Published by brianegan over 8 years ago