diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1b94f5f7..8e109acf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,8 +36,6 @@ jobs: channel: 'stable' - name: Install project dependencies run: flutter pub get - - name: Upgrade to major versions - run: flutter pub upgrade --major-versions - name: Dart Format Check run: dart format lib/ test/ --set-exit-if-changed - name: Import Sorter Check diff --git a/CHANGELOG.md b/CHANGELOG.md index a95b8a7c..d67123c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # CHANGELOG +## 2.2.7 + +* feat: support bypass voice processing. (#595) +* fix: Dispose LocalParticipant when room.disconnect. (#609) +* Fix spelling error in method name: _checkPremissions to _checkPermissions (#605) +* fix: fix speaker switching behavior for android. (#604) +* fix: Optimize stats display (#602) +* fix: Handle disconnect reasons correctly. (#594) + ## 2.2.6 * fix: android build failure. (#587) diff --git a/ios/livekit_client.podspec b/ios/livekit_client.podspec index e17340ac..ccc38a7c 100644 --- a/ios/livekit_client.podspec +++ b/ios/livekit_client.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'livekit_client' - s.version = '2.2.6' + s.version = '2.2.7' s.summary = 'Open source platform for real-time audio and video.' s.description = 'Open source platform for real-time audio and video.' s.homepage = 'https://livekit.io/' diff --git a/lib/src/livekit.dart b/lib/src/livekit.dart index 6e9ba56f..ef974753 100644 --- a/lib/src/livekit.dart +++ b/lib/src/livekit.dart @@ -14,17 +14,22 @@ import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc; +import 'package:livekit_client/livekit_client.dart'; + /// Main entry point to connect to a room. /// {@category Room} class LiveKitClient { - static const version = '2.2.6'; + static const version = '2.2.7'; /// Initialize the WebRTC plugin. If this is not manually called, will be /// initialized with default settings. /// This method must be called before calling any LiveKit SDK API. static Future initialize({bool bypassVoiceProcessing = false}) async { - await rtc.WebRTC.initialize(options: { - if (bypassVoiceProcessing) 'bypassVoiceProcessing': bypassVoiceProcessing, - }); + if (lkPlatformIsMobile()) { + await rtc.WebRTC.initialize(options: { + if (bypassVoiceProcessing) + 'bypassVoiceProcessing': bypassVoiceProcessing, + }); + } } } diff --git a/lib/src/proto/google/protobuf/timestamp.pb.dart b/lib/src/proto/google/protobuf/timestamp.pb.dart index 042c8965..8dab5ab6 100644 --- a/lib/src/proto/google/protobuf/timestamp.pb.dart +++ b/lib/src/proto/google/protobuf/timestamp.pb.dart @@ -23,7 +23,6 @@ import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; - import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { diff --git a/macos/livekit_client.podspec b/macos/livekit_client.podspec index 7b986da5..d7904385 100644 --- a/macos/livekit_client.podspec +++ b/macos/livekit_client.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'livekit_client' - s.version = '2.2.6' + s.version = '2.2.7' s.summary = 'Open source platform for real-time audio and video.' s.description = 'Open source platform for real-time audio and video.' s.homepage = 'https://livekit.io/' diff --git a/pubspec.yaml b/pubspec.yaml index b2062dd1..5496bd3e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ name: livekit_client description: Flutter Client SDK for LiveKit. Build real-time video and audio into your apps. Supports iOS, Android, and Web. -version: 2.2.6 +version: 2.2.7 homepage: https://github.com/livekit/client-sdk-flutter environment: @@ -37,10 +37,7 @@ dependencies: uuid: '>=3.0.6' synchronized: ^3.0.0+3 protobuf: ^3.0.0 - flutter_webrtc: - git: - url: https://github.com/flutter-webrtc/flutter-webrtc.git - ref: feat/support-unprocessed-audio + flutter_webrtc: ^0.12.1 device_info_plus: '>=8.0.0' js: '>=0.6.4' platform_detect: ^2.0.7