From e5d63803a9e9c28ddbc32c8342ead2342c974c2c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 09:10:35 +0000 Subject: [PATCH] v2.0.0 --- .changeset/blue-students-smile.md | 5 ---- .changeset/curly-lizards-teach.md | 5 ---- .changeset/cyan-donuts-joke.md | 5 ---- .changeset/dirty-news-teach.md | 5 ---- .changeset/nice-beers-worry.md | 5 ---- .changeset/silly-horses-peel.md | 5 ---- .changeset/spicy-trains-know.md | 21 ----------------- CHANGELOG.md | 38 +++++++++++++++++++++++++++++++ README.md | 4 ++-- gradle.properties | 2 +- package.json | 2 +- 11 files changed, 42 insertions(+), 55 deletions(-) delete mode 100644 .changeset/blue-students-smile.md delete mode 100644 .changeset/curly-lizards-teach.md delete mode 100644 .changeset/cyan-donuts-joke.md delete mode 100644 .changeset/dirty-news-teach.md delete mode 100644 .changeset/nice-beers-worry.md delete mode 100644 .changeset/silly-horses-peel.md delete mode 100644 .changeset/spicy-trains-know.md diff --git a/.changeset/blue-students-smile.md b/.changeset/blue-students-smile.md deleted file mode 100644 index ed0f3e4..0000000 --- a/.changeset/blue-students-smile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"components-android": minor ---- - -Add session and agent APIs diff --git a/.changeset/curly-lizards-teach.md b/.changeset/curly-lizards-teach.md deleted file mode 100644 index b7891b5..0000000 --- a/.changeset/curly-lizards-teach.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"components-android": patch ---- - -Fix RememberParticipantTrackReferences returning a new flow every recomposition diff --git a/.changeset/cyan-donuts-joke.md b/.changeset/cyan-donuts-joke.md deleted file mode 100644 index d098eab..0000000 --- a/.changeset/cyan-donuts-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"components-android": patch ---- - -rememberLiveKitRoom: Only disconnect Room if it has connected before to manage the connection diff --git a/.changeset/dirty-news-teach.md b/.changeset/dirty-news-teach.md deleted file mode 100644 index e95f75f..0000000 --- a/.changeset/dirty-news-teach.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"components-android": minor ---- - -Add rememberSpeakingParticipants diff --git a/.changeset/nice-beers-worry.md b/.changeset/nice-beers-worry.md deleted file mode 100644 index da217d3..0000000 --- a/.changeset/nice-beers-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"components-android": patch ---- - -rememberLiveKitRoom: Don't require local context if room is passed diff --git a/.changeset/silly-horses-peel.md b/.changeset/silly-horses-peel.md deleted file mode 100644 index 6d89562..0000000 --- a/.changeset/silly-horses-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"components-android": minor ---- - -Change Chat to use datastreams diff --git a/.changeset/spicy-trains-know.md b/.changeset/spicy-trains-know.md deleted file mode 100644 index ea5600c..0000000 --- a/.changeset/spicy-trains-know.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"components-android": major ---- - -Compose depends on the timing of reads of `State` objects to determine whether it is a dependency for certain -use cases, such as when using `derivedStateOf` or `snapshotFlow`. When we pass back state values, these timings -can be disassociated from their usage, causing Compose to not register the states appropriately and not update -when the state value changed. - -To address this, we've changed the return values of simple functions like `rememberConnectionState` to return -`State` objects instead of the values directly. This means that their reads will be more closely aligned with -their usages and prevent issues with Compose not updating appropriately. - -To migrate, switch to using the `by` delegate syntax when declaring an object to hold the state: - -``` -val connectionState by rememberConnectionState() -``` - -In places where we return data objects to hold multiple values (such as `rememberRoomInfo`), we've kept the API -to return values, as these have been converted to be delegates to the state objects backing them. \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c21bdcc..505b422 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,43 @@ # components-android +## 2.0.0 + +### Major Changes + +- Compose depends on the timing of reads of `State` objects to determine whether it is a dependency for certain - [#50](https://github.com/livekit/components-android/pull/50) ([@davidliu](https://github.com/davidliu)) + use cases, such as when using `derivedStateOf` or `snapshotFlow`. When we pass back state values, these timings + can be disassociated from their usage, causing Compose to not register the states appropriately and not update + when the state value changed. + + To address this, we've changed the return values of simple functions like `rememberConnectionState` to return + `State` objects instead of the values directly. This means that their reads will be more closely aligned with + their usages and prevent issues with Compose not updating appropriately. + + To migrate, switch to using the `by` delegate syntax when declaring an object to hold the state: + + ``` + val connectionState by rememberConnectionState() + ``` + + In places where we return data objects to hold multiple values (such as `rememberRoomInfo`), we've kept the API + to return values, as these have been converted to be delegates to the state objects backing them. + +### Minor Changes + +- Add session and agent APIs - [#50](https://github.com/livekit/components-android/pull/50) ([@davidliu](https://github.com/davidliu)) + +- Add rememberSpeakingParticipants - [#50](https://github.com/livekit/components-android/pull/50) ([@davidliu](https://github.com/davidliu)) + +- Change Chat to use datastreams - [#50](https://github.com/livekit/components-android/pull/50) ([@davidliu](https://github.com/davidliu)) + +### Patch Changes + +- Fix RememberParticipantTrackReferences returning a new flow every recomposition - [#50](https://github.com/livekit/components-android/pull/50) ([@davidliu](https://github.com/davidliu)) + +- rememberLiveKitRoom: Only disconnect Room if it has connected before to manage the connection - [#50](https://github.com/livekit/components-android/pull/50) ([@davidliu](https://github.com/davidliu)) + +- rememberLiveKitRoom: Don't require local context if room is passed - [#50](https://github.com/livekit/components-android/pull/50) ([@davidliu](https://github.com/davidliu)) + ## 1.4.0 ### Minor Changes diff --git a/README.md b/README.md index 9e75421..0071da9 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,10 @@ LiveKit Components for Android is available as a Maven package. ... dependencies { // The components package has a different versioning than the main LiveKit SDK. - implementation "io.livekit:livekit-android-compose-components:1.4.0" + implementation "io.livekit:livekit-android-compose-components:2.0.0" // Snapshots of the latest development version are available at: - // implementation "io.livekit:livekit-android-compose-components:1.4.1-SNAPSHOT" + // implementation "io.livekit:livekit-android-compose-components:2.0.1-SNAPSHOT" // Depend on LiveKit SDK separately to keep up to date. implementation "io.livekit:livekit-android:$livekit_version" diff --git a/gradle.properties b/gradle.properties index 946f4f9..fecc329 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ android.nonTransitiveRClass=true ############################################################### GROUP=io.livekit -VERSION_NAME=1.4.0 +VERSION_NAME=2.0.0 POM_DESCRIPTION=Compose Components for LiveKit Android SDK diff --git a/package.json b/package.json index 4ef2f05..ee8e00c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "components-android", - "version": "1.4.0", + "version": "2.0.0", "repository": "https://github.com/livekit/components-android.git", "license": "Apache License 2.0", "private": true,