-
#14: Use takeUntil internally (instead of a faulty custom operator)
While this fixes some intractable problems that could occur with the old system, it also includes a major behavior change: when the bind decides to stop subscribing, it calls
onCompleted
(whereas before it would just unsubscribe).When upgrading, you should check that your usages of
onCompleted
(either insubscribe()
,doOnCompleted()
, ordoOnTerminate()
) can handle the sequence ending due to the lifecycle bind.If you still need the old behavior in some spots, you should handle the
Subscription
yourself manually (and callunsubscribe()
when appropriate). -
#16: Lowered minSdkVersion to 14
Initial independent release (split from RxAndroid 0.25.0)
- Added support for AppCompatActivity via
RxAppCompatActivity
- Components (e.g.
RxActivity
) now supportbindUntilEvent()
andbindToLifecycle()
, which avoids having to deal with the lifecycleObservable
directly.
- Renamed
LifecycleObservable
toRxLifecycle
- Switched from wrapping
Observables
to usingTransformer
+compose()
(which allows for chaining) - Split
LifecycleEvent
into two parts -ActivityEvent
andFragmentEvent
, in order to prevent easy mixups that could occur before - Split
bindUntilLifecycleEvent()
intobindUntilFragmentEvent()
andbindUntilActivityEvent()
- Renamed
bindFragmentLifecycle()
tobindFragment()
- Renamed
bindActivityLifecycle()
tobindActivity()