Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/blue-students-smile.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/curly-lizards-teach.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cyan-donuts-joke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-news-teach.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nice-beers-worry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silly-horses-peel.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/spicy-trains-know.md

This file was deleted.

38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Loading