- [BREAKING]
map
andswitchMap
operators are now using the implementation of Android LiveData KTX . - [BREAKING] NonNullLiveData class has been removed. .nonNull() is now returning a regular live data.
- [BREAKING]
zip
andcombineLatest
functions are now nullable.
- [BREAKING] Update the dependencies to AndroidX
- Removed synchronized blocks, since all LiveData operation is already handled on the main thread
- [BREAKING] change the name of
just(value)
toliveDataOf(value)
, since just was too broad. - [BREAKING] change the name of
from { }
toliveDataOf { }
, since just was too broad. - [BREAKING] change the name of
empty()
toemptyLiveData()
, since empty was too broad.
LiveData.sampleWith(otherLiveData)
: Samples the current live data with other live data, resulting in a live data that emits the last value emitted by the original live data (if any) whenever the other live data emitsscan(accumulator)
: Applies the accumulator function to each emitted item, starting with the second emitted item. Initial value of the accumulator is the first item.scan(seed, accumulator)
: Applies the accumulator function to each emitted item, starting with the initial seed.combineLatest(firstLiveData, secondLiveData, combineFunction)
: combines both of the LiveDatas using the combineFunction and emits a value after any of them have emitted a value.
- change
api
toimplementation
when importing the architecture components libraries to make them compile-only
- Add support for android v15.
- Add the operator empty() to easily create MutableLiveData objects.