Skip to content

Releases: adibfara/Lives

2.0.0

24 Apr 07:18
Compare
Choose a tag to compare
  • Update to latest version of LiveData.
  • [BREAKING] map and switchMap 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 and combineLatest functions are now nullable.

Migration to AndroidX

22 Apr 18:59
Compare
Choose a tag to compare

Changed

Update the dependencies to AndroidX

  • Removed synchronized blocks, since all LiveData operation is already handled on the main thread

Release 1.2.1

24 Jan 15:31
Compare
Choose a tag to compare

Changed

  • [BREAKING] change the name of just(value) to liveDataOf(value), since just was too broad.
  • [BREAKING] change the name of from { } to liveDataOf { }, since just was too broad.
  • [BREAKING] change the name of empty() to emptyLiveData(), since empty was too broad.
  • OnNextAction is now a typealias instead of an interface.

Version 1.2.0

24 Jan 13:17
Compare
Choose a tag to compare

This release adds support for the following operators:

Sample

  • 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 emits

Scan

  • scan(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

  • combineLatest(firstLiveData, secondLiveData, combineFunction): combines both of the LiveDatas using the combineFunction and emits a value after any of them have emitted a value.

Version 1.0.1

03 May 08:10
Compare
Choose a tag to compare
  • Added support for android v15.
  • Added the operator empty<T>() to easily create MutableLiveData objects.

Initial Version

05 Apr 17:51
967c6bf
Compare
Choose a tag to compare

Initial version is up and running on maven.