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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.2.3 (2025-10-01)

* Update WebRTC ver & code maintenance. (#41)

## 1.2.2+hotfix.1 (2025-06-30)

* Fixed: TranscriptionContext clean up (#36)
Expand Down
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
include: package:flutter_lints/flutter.yaml

analyzer:
language:
strict-casts: true
strict-inference: true
strict-raw-types: true

errors:
constant_identifier_names: ignore
no_wildcard_variable_uses: ignore
Expand All @@ -14,6 +19,7 @@ linter:
prefer_final_locals: true
unnecessary_brace_in_string_interps: false
avoid_print: true
depend_on_referenced_packages: true

# Enforce this for correct async logic
unawaited_futures: true
Expand Down
2 changes: 1 addition & 1 deletion example/macos/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :osx, '10.14'
platform :osx, '10.15'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
6 changes: 3 additions & 3 deletions example/macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -639,7 +639,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
Expand Down Expand Up @@ -689,7 +689,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down
1 change: 1 addition & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies:

livekit_components:
path: ..
livekit_client: ^2.5.4

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/context/room_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class RoomContext extends ChangeNotifier with ChatContextMixin, TranscriptionCon
if (connect && url != null && token != null) {
_url = url;
_token = token;
unawaited(this.connect(url: url, token: token).catchError((error, stack) {
unawaited(this.connect(url: url, token: token).catchError((Object error, StackTrace stack) {
Debug.event('RoomContext: auto connect failed: $error');
// Preserve original behavior by rethrowing after logging.
throw error;
Expand Down
8 changes: 4 additions & 4 deletions lib/src/ui/widgets/track/audio_visualizer_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class _SoundWaveformWidgetState extends State<SoundWaveformWidget> with SingleTi
sdk.EventsListener<sdk.ParticipantEvent>? _participantListener;

// Agent support
sdk.AgentState _agentState = sdk.AgentState.INITIALIZING;
sdk.AgentState _agentState = sdk.AgentState.initializing;

@override
void didUpdateWidget(SoundWaveformWidget oldWidget) {
Expand Down Expand Up @@ -155,7 +155,7 @@ class _SoundWaveformWidgetState extends State<SoundWaveformWidget> with SingleTi
if (!mounted) return;
final agentAttributes = sdk.AgentAttributes.fromJson(e.attributes);
setState(() {
_agentState = agentAttributes.lkAgentState ?? sdk.AgentState.INITIALIZING;
_agentState = agentAttributes.lkAgentState ?? sdk.AgentState.initializing;
});
});
}
Expand Down Expand Up @@ -260,13 +260,13 @@ class _SoundWaveformWidgetState extends State<SoundWaveformWidget> with SingleTi
}

VisualizerState _determineState() {
if (widget.participant?.kind == sdk.ParticipantKind.AGENT && _agentState == sdk.AgentState.THINKING) {
if (widget.participant?.kind == sdk.ParticipantKind.AGENT && _agentState == sdk.AgentState.thinking) {
return VisualizerState.thinking;
}

if (widget.participant == null ||
widget.participant?.kind == sdk.ParticipantKind.AGENT &&
(_agentState == sdk.AgentState.INITIALIZING || _agentState == sdk.AgentState.LISTENING)) {
(_agentState == sdk.AgentState.initializing || _agentState == sdk.AgentState.listening)) {
return VisualizerState.listening;
}

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: livekit_components
description: "Out-of-the-box flutter widgets for livekit client."
version: 1.2.2+hotfix.1
version: 1.2.3
homepage: https://github.com/livekit/components-flutter

environment:
Expand All @@ -10,7 +10,7 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_webrtc: 1.2.0
flutter_webrtc: 1.2.1
livekit_client: ^2.4.9
chat_bubbles: ^1.6.0
collection: ^1.19.0
Expand Down