Fixed
Status Update
Comments
an...@google.com <an...@google.com> #2
I will reserve this bug for LiveData only. For RxJava2: b/153369097 , and for Flow: b/153375923
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 1789d0e0d1e6ed76465f0d372eaa8bf2ef2d5d98
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Mon Apr 06 11:21:39 2020
Adapter for LiveData
New module ui-livedata with an adapter for LiveData
Relnote: Added ui-livedata - new artifact with an adapter for LiveData. Example of the usage: val value by liveData.observeAsState()
Bug: 150465596
Test: new tests
Change-Id: Ie9e8c37c952358186ab311d0d232c188003631f4
M ui/settings.gradle
A ui/ui-livedata/OWNERS
A ui/ui-livedata/api/0.1.0-dev09.txt
A ui/ui-livedata/api/current.txt
A ui/ui-livedata/api/public_plus_experimental_0.1.0-dev09.txt
A ui/ui-livedata/api/public_plus_experimental_current.txt
A ui/ui-livedata/api/res-0.1.0-dev09.txt
A ui/ui-livedata/api/restricted_0.1.0-dev09.txt
A ui/ui-livedata/api/restricted_current.txt
A ui/ui-livedata/build.gradle
A ui/ui-livedata/samples/build.gradle
A ui/ui-livedata/samples/src/main/AndroidManifest.xml
A ui/ui-livedata/samples/src/main/java/androidx/ui/livedata/samples/Samples.kt
A ui/ui-livedata/src/androidTest/AndroidManifest.xml
A ui/ui-livedata/src/androidTest/java/androidx/ui/livedata/LiveDataAdapterTest.kt
A ui/ui-livedata/src/main/AndroidManifest.xml
A ui/ui-livedata/src/main/java/androidx/ui/livedata/LiveDataAdapter.kt
https://android-review.googlesource.com/1278632
Branch: androidx-master-dev
commit 1789d0e0d1e6ed76465f0d372eaa8bf2ef2d5d98
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Mon Apr 06 11:21:39 2020
Adapter for LiveData
New module ui-livedata with an adapter for LiveData
Relnote: Added ui-livedata - new artifact with an adapter for LiveData. Example of the usage: val value by liveData.observeAsState()
Bug: 150465596
Test: new tests
Change-Id: Ie9e8c37c952358186ab311d0d232c188003631f4
M ui/settings.gradle
A ui/ui-livedata/OWNERS
A ui/ui-livedata/api/0.1.0-dev09.txt
A ui/ui-livedata/api/current.txt
A ui/ui-livedata/api/public_plus_experimental_0.1.0-dev09.txt
A ui/ui-livedata/api/public_plus_experimental_current.txt
A ui/ui-livedata/api/res-0.1.0-dev09.txt
A ui/ui-livedata/api/restricted_0.1.0-dev09.txt
A ui/ui-livedata/api/restricted_current.txt
A ui/ui-livedata/build.gradle
A ui/ui-livedata/samples/build.gradle
A ui/ui-livedata/samples/src/main/AndroidManifest.xml
A ui/ui-livedata/samples/src/main/java/androidx/ui/livedata/samples/Samples.kt
A ui/ui-livedata/src/androidTest/AndroidManifest.xml
A ui/ui-livedata/src/androidTest/java/androidx/ui/livedata/LiveDataAdapterTest.kt
A ui/ui-livedata/src/main/AndroidManifest.xml
A ui/ui-livedata/src/main/java/androidx/ui/livedata/LiveDataAdapter.kt
Description
LiveData has been our recommended observable for a few years now, and is our opinionated guidance for developers to build MVVM architecture.
As Compose moves out of experimental, developers will want to integrate it into real applications. This means they will need a way to observe values from a LiveData in compose.
Also consider providing observe functions for other observables Flow, Flowable, Task (https://developers.google.com/android/reference/com/google/android/gms/tasks/Task ) that come up often in Android development etc.