Releases: trello-archive/RxLifecycle
v2.0
This major revision was made to support RxJava 2. RxLifecycle 2.0 lives in a new namespace and package
names so that it can work side-by-side with RxLifecycle 1.0 (while transitioning).
The biggest change is that LifecycleTransformer
now works for all RxJava types:
Observable
, Flowable
, Single
, Maybe
and Completable
. Unlike before, there's
no extra steps you have to take to make it work with types other than Observable
.
v1.0: Merge pull request #165 from trello/dlew/prep-1.x
First and (hopefully) final release of 1.x branch!
This release marks the start of maintenance mode for RxJava 1 support. Future work will be devoted to supporting
RxJava 2. Important bugs may be squashed but new features will have to be extraordinarily compelling in order
to be added.
v0.8.0
v0.7.0
There are a couple major breaking changes in this release, so read carefully.
-
#143: Split Android parts of rxlifecycle into rxlifecycle-android
Now the
rxlifecycle
dependency is a pure Java core. To use RxLifecycle with Android, you should also include
rxlifecycle-android
as well now.RxLifecycle
methods that are for Android (bindActivity()
,bindFragment()
andbindView()
) are now in
RxLifecycleAndroid
(found in therxlifecycle-android
artifact).Deprecated methods in
RxLifecycle
were removed as well. -
#138 / #139:
ReplaceActivityLifecycleProvider
andFragmentLifecycleProvider
withLifecycleProvider<T>
.This means that you need to replace
ActivityLifecycleProvider
withLifecycleProvider<ActivityEvent>
and
FragmentLifecycleProvider
withLifecycleProvider<FragmentEvent>
.
Other changes:
v0.6.1
v0.6.0
v0.5.0
There are a few methods which have been deprecated and will be removed in a future release. Each one has a drop-in replacement (and currently calling the deprecated version just routes to the new one):
bindUntilActivityEvent()
andbindUntilFragmentEvent()
->bindUntilEvent()
bindView()
->bind()
The other changes mostly involve opening up the API for more customization:
- #78: Added rxlifecycle-kotlin (adds some extensions)
- #79: Made bindUntilEvent() public, deprecated more specific calls
- #82: Opened up bind() methods for public consumption
- #83, #85: Added
annotations for better lint checking - #88: Use
.equals()
instead of == for event comparison (for
custom event support with the newly opened-upbind()
) - #89: Make OutsideLifecycleException public (for anyone who wants
to write their ownbind()
implementations)
v0.4.0
- #62, #67: Added
Navi-based implementation of providers. - #61: Moved
ActivityLifecycleProvider
and
FragmentLifecycleProvider
into the core library so that multiple implementations can share them easily. The package
name changed so you may need to re-import them in your code. - #60: Reverted generic parameters back to
Transformer<T, T>
v0.3.1
v0.3.0
- #12: Added
RxLifecycle.bindView()
. This allows binding a
Subscription
until aView
detaches itself from the window. - #30: Calling
bindActivity()
orbindFragment()
outside of the
lifecycle causes the sequence to immediately complete (instead of throwing an error). - #31: Passing nulls to RxLifecycle now always immediately throws an
exception.