From d008e7617d70b9b6be6a0a9bbf7cc1e1671e2569 Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 18 Jan 2024 13:07:51 +0530 Subject: [PATCH 1/5] Added changelog --- packages/hms_room_kit/CHANGELOG.md | 13 ++++++ packages/hms_room_kit/example/pubspec.lock | 7 ++- packages/hms_room_kit/pubspec.lock | 7 ++- packages/hms_room_kit/pubspec.yaml | 3 +- packages/hmssdk_flutter/CHANGELOG.md | 11 +++++ .../hms/hmssdk_flutter/HmssdkFlutterPlugin.kt | 44 ++++++++----------- packages/hmssdk_flutter/example/pubspec.lock | 7 ++- 7 files changed, 54 insertions(+), 38 deletions(-) diff --git a/packages/hms_room_kit/CHANGELOG.md b/packages/hms_room_kit/CHANGELOG.md index 573647237..1f0ddb750 100644 --- a/packages/hms_room_kit/CHANGELOG.md +++ b/packages/hms_room_kit/CHANGELOG.md @@ -5,6 +5,19 @@ | hms_room_kit | [![Pub Version](https://img.shields.io/pub/v/hms_room_kit)](https://pub.dev/packages/hms_room_kit) | | hmssdk_flutter | [![Pub Version](https://img.shields.io/pub/v/hmssdk_flutter)](https://pub.dev/packages/hmssdk_flutter) | +## 1.0.10 - 2024-01-18 + +| Package | Version | +| -------------- | ------------------------------------------------------------------------------------------------------ | +| hms_room_kit | 1.0.10 | +| hmssdk_flutter | 1.9.7 | + +### 🚀 Added + +- Auto-Hide Top & Bottom Bars after 5 seconds + + Top & Bottom Bars will be hidden after 5 seconds of inactivity. + ## 1.0.9 - 2024-01-15 | Package | Version | diff --git a/packages/hms_room_kit/example/pubspec.lock b/packages/hms_room_kit/example/pubspec.lock index 7db874700..4e93043bc 100644 --- a/packages/hms_room_kit/example/pubspec.lock +++ b/packages/hms_room_kit/example/pubspec.lock @@ -218,10 +218,9 @@ packages: hmssdk_flutter: dependency: transitive description: - name: hmssdk_flutter - sha256: "112381755d47a639ef296295ace5b9d73267b89458f33ac767d1b6536a3fc898" - url: "https://pub.dev" - source: hosted + path: "../../hmssdk_flutter" + relative: true + source: path version: "1.9.6" http: dependency: transitive diff --git a/packages/hms_room_kit/pubspec.lock b/packages/hms_room_kit/pubspec.lock index dd3607692..9b2883f03 100644 --- a/packages/hms_room_kit/pubspec.lock +++ b/packages/hms_room_kit/pubspec.lock @@ -203,10 +203,9 @@ packages: hmssdk_flutter: dependency: "direct main" description: - name: hmssdk_flutter - sha256: "112381755d47a639ef296295ace5b9d73267b89458f33ac767d1b6536a3fc898" - url: "https://pub.dev" - source: hosted + path: "../hmssdk_flutter" + relative: true + source: path version: "1.9.6" http: dependency: transitive diff --git a/packages/hms_room_kit/pubspec.yaml b/packages/hms_room_kit/pubspec.yaml index 52feef84e..a7b71912c 100644 --- a/packages/hms_room_kit/pubspec.yaml +++ b/packages/hms_room_kit/pubspec.yaml @@ -14,7 +14,8 @@ dependencies: flutter: sdk: flutter - hmssdk_flutter: 1.9.6 + hmssdk_flutter: + path: ../hmssdk_flutter intl: ^0.18.0 permission_handler: ^11.0.0 provider: ^6.0.5 diff --git a/packages/hmssdk_flutter/CHANGELOG.md b/packages/hmssdk_flutter/CHANGELOG.md index 47ca3c5a5..dbe992062 100644 --- a/packages/hmssdk_flutter/CHANGELOG.md +++ b/packages/hmssdk_flutter/CHANGELOG.md @@ -5,6 +5,17 @@ | hms_room_kit | [![Pub Version](https://img.shields.io/pub/v/hms_room_kit)](https://pub.dev/packages/hms_room_kit) | | hmssdk_flutter | [![Pub Version](https://img.shields.io/pub/v/hmssdk_flutter)](https://pub.dev/packages/hmssdk_flutter) | +# 1.9.7 - 2024-01-18 + +| Package | Version | +| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| hms_room_kit | 1.0.10 | +| hmssdk_flutter | 1.9.7 | + +Updated to Android SDK 2.8.8 & iOS SDK 1.4.2 + +**Full Changelog**: [1.9.5...1.9.6](https://github.com/100mslive/100ms-flutter/compare/1.9.6...1.9.7) + # 1.9.6 - 2024-01-15 | Package | Version | diff --git a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt index 06fb32e83..6fabd902e 100644 --- a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt +++ b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt @@ -1996,25 +1996,22 @@ class HmssdkFlutterPlugin : private val audioPreviewDeviceChangeListener = object : AudioManagerDeviceChangeListener { + override fun onAudioDeviceChanged( - p0: AudioDevice?, - p1: Set?, + selectedAudioDevice: AudioDevice, + availableAudioDevices: Set, ) { val args = HashMap() args["event_name"] = "on_audio_device_changed" val dict = HashMap() - if (p0 != null) { - dict["current_audio_device"] = p0.name - } - if (p1 != null) { - val audioDevicesList = ArrayList() - hmssdk?.getAudioDevicesList()?.let { audioDevices -> - audioDevices.forEach { device -> - audioDevicesList.add(device.name) - } + dict["current_audio_device"] = selectedAudioDevice.name + val audioDevicesList = ArrayList() + hmssdk?.getAudioDevicesList()?.let { audioDevices -> + audioDevices.forEach { device -> + audioDevicesList.add(device.name) } - dict["available_audio_device"] = audioDevicesList } + dict["available_audio_device"] = audioDevicesList args["data"] = dict if (args["data"] != null) { CoroutineScope(Dispatchers.Main).launch { @@ -2023,10 +2020,10 @@ class HmssdkFlutterPlugin : } } - override fun onError(e: HMSException?) { + override fun onError(e: HMSException) { val args = HashMap() - args.put("event_name", "on_error") - args.put("data", HMSExceptionExtension.toDictionary(e)) + args["event_name"] = "on_error" + args["data"] = HMSExceptionExtension.toDictionary(e) if (args["data"] != null) { CoroutineScope(Dispatchers.Main).launch { @@ -2034,27 +2031,24 @@ class HmssdkFlutterPlugin : } } } + } private val audioDeviceChangeListener = object : AudioManagerDeviceChangeListener { override fun onAudioDeviceChanged( - p0: AudioDevice?, - p1: Set?, + selectedAudioDevice: AudioDevice, + availableAudioDevices: Set, ) { val args = HashMap() args["event_name"] = "on_audio_device_changed" val dict = HashMap() - if (p0 != null) { - dict["current_audio_device"] = p0.name - } - if (p1 != null) { + dict["current_audio_device"] = selectedAudioDevice.name val audioDevicesList = ArrayList() hmssdk?.getAudioDevicesList()?.let { audioDevices -> audioDevices.forEach { device -> audioDevicesList.add(device.name) } - } dict["available_audio_device"] = audioDevicesList } args["data"] = dict @@ -2065,10 +2059,10 @@ class HmssdkFlutterPlugin : } } - override fun onError(e: HMSException?) { + override fun onError(e: HMSException) { val args = HashMap() - args.put("event_name", "on_error") - args.put("data", HMSExceptionExtension.toDictionary(e)) + args["event_name"] = "on_error" + args["data"] = HMSExceptionExtension.toDictionary(e) if (args["data"] != null) { CoroutineScope(Dispatchers.Main).launch { diff --git a/packages/hmssdk_flutter/example/pubspec.lock b/packages/hmssdk_flutter/example/pubspec.lock index 2ea44d33f..cb0c5b7b7 100644 --- a/packages/hmssdk_flutter/example/pubspec.lock +++ b/packages/hmssdk_flutter/example/pubspec.lock @@ -290,10 +290,9 @@ packages: hmssdk_flutter: dependency: transitive description: - name: hmssdk_flutter - sha256: "112381755d47a639ef296295ace5b9d73267b89458f33ac767d1b6536a3fc898" - url: "https://pub.dev" - source: hosted + path: ".." + relative: true + source: path version: "1.9.6" http: dependency: transitive From b62b71df2f686c019dbaed513b162d4a758c3bee Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 18 Jan 2024 07:40:21 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=A4=96=20Automated=20Format=20and=20F?= =?UTF-8?q?ix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hmssdk_flutter/example/pubspec.lock | 26 ++++++++++---------- packages/hmssdk_flutter/pubspec.lock | 26 ++++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/hmssdk_flutter/example/pubspec.lock b/packages/hmssdk_flutter/example/pubspec.lock index cb0c5b7b7..098334077 100644 --- a/packages/hmssdk_flutter/example/pubspec.lock +++ b/packages/hmssdk_flutter/example/pubspec.lock @@ -69,10 +69,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" convert: dependency: transitive description: @@ -362,10 +362,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" mime: dependency: transitive description: @@ -647,18 +647,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -679,10 +679,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" tuple: dependency: transitive description: @@ -839,10 +839,10 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" win32: dependency: transitive description: @@ -868,5 +868,5 @@ packages: source: hosted version: "6.3.0" sdks: - dart: ">=3.1.0 <4.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" flutter: ">=3.13.0" diff --git a/packages/hmssdk_flutter/pubspec.lock b/packages/hmssdk_flutter/pubspec.lock index c3cc2c33e..53939cd59 100644 --- a/packages/hmssdk_flutter/pubspec.lock +++ b/packages/hmssdk_flutter/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" fake_async: dependency: transitive description: @@ -79,10 +79,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" path: dependency: transitive description: @@ -108,18 +108,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -140,10 +140,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" vector_math: dependency: transitive description: @@ -156,10 +156,10 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" flutter: ">=2.10.0" From 67462686356cb5ba9e42848d1232b27c77e73ec5 Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 18 Jan 2024 13:13:23 +0530 Subject: [PATCH 3/5] Added changelog --- packages/hmssdk_flutter/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hmssdk_flutter/CHANGELOG.md b/packages/hmssdk_flutter/CHANGELOG.md index dbe992062..60f00d23c 100644 --- a/packages/hmssdk_flutter/CHANGELOG.md +++ b/packages/hmssdk_flutter/CHANGELOG.md @@ -14,7 +14,7 @@ Updated to Android SDK 2.8.8 & iOS SDK 1.4.2 -**Full Changelog**: [1.9.5...1.9.6](https://github.com/100mslive/100ms-flutter/compare/1.9.6...1.9.7) +**Full Changelog**: [1.9.6...1.9.7](https://github.com/100mslive/100ms-flutter/compare/1.9.6...1.9.7) # 1.9.6 - 2024-01-15 From 41009aab826b8220ffe6062c34df85e6af3ca129 Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 18 Jan 2024 14:37:28 +0530 Subject: [PATCH 4/5] Fixed FLUT-215 --- .../lib/src/meeting/meeting_header.dart | 2 +- .../live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/hms_room_kit/lib/src/meeting/meeting_header.dart b/packages/hms_room_kit/lib/src/meeting/meeting_header.dart index e251bcf62..49b4fc786 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_header.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_header.dart @@ -292,7 +292,7 @@ class _MeetingHeaderState extends State { ///else we render an empty SizedBox Selector>( selector: (_, meetingStore) => Tuple2( - meetingStore.currentAudioDeviceMode, + meetingStore.currentAudioOutputDevice, meetingStore.isSpeakerOn), builder: (_, data, __) { return HMSEmbeddedButton( diff --git a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt index 6fabd902e..6b4bcb136 100644 --- a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt +++ b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HmssdkFlutterPlugin.kt @@ -2006,10 +2006,8 @@ class HmssdkFlutterPlugin : val dict = HashMap() dict["current_audio_device"] = selectedAudioDevice.name val audioDevicesList = ArrayList() - hmssdk?.getAudioDevicesList()?.let { audioDevices -> - audioDevices.forEach { device -> - audioDevicesList.add(device.name) - } + availableAudioDevices.forEach { device -> + audioDevicesList.add(device.name) } dict["available_audio_device"] = audioDevicesList args["data"] = dict @@ -2045,12 +2043,10 @@ class HmssdkFlutterPlugin : val dict = HashMap() dict["current_audio_device"] = selectedAudioDevice.name val audioDevicesList = ArrayList() - hmssdk?.getAudioDevicesList()?.let { audioDevices -> - audioDevices.forEach { device -> - audioDevicesList.add(device.name) - } + availableAudioDevices.forEach { device -> + audioDevicesList.add(device.name) + } dict["available_audio_device"] = audioDevicesList - } args["data"] = dict if (args["data"] != null) { CoroutineScope(Dispatchers.Main).launch { From 4c5fb2526f0eb752e86bf7090676afcf03320f8f Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 18 Jan 2024 14:52:25 +0530 Subject: [PATCH 5/5] removed bluetooth permissions --- .../hms_room_kit/lib/src/common/utility_functions.dart | 10 +--------- .../android/src/main/AndroidManifest.xml | 4 ---- .../example/android/app/src/main/AndroidManifest.xml | 2 -- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/hms_room_kit/lib/src/common/utility_functions.dart b/packages/hms_room_kit/lib/src/common/utility_functions.dart index 6049c2b87..8d46d51d4 100644 --- a/packages/hms_room_kit/lib/src/common/utility_functions.dart +++ b/packages/hms_room_kit/lib/src/common/utility_functions.dart @@ -140,10 +140,7 @@ class Utilities { await Permission.microphone.request(); if (Platform.isIOS) { await Permission.bluetooth.request(); - } else if (Platform.isAndroid) { - await Permission.bluetoothConnect.request(); } - await Permission.phone.request(); ///We check if the permissions are granted @@ -158,8 +155,7 @@ class Utilities { } else if (Platform.isAndroid) { if (await Permission.camera.isGranted && await Permission.microphone.isGranted && - await Permission.phone.isGranted && - await Permission.bluetoothConnect.isGranted) { + await Permission.phone.isGranted) { return true; } } @@ -179,10 +175,6 @@ class Utilities { if (Platform.isIOS) { isBluetoothPermissionsDenied = await Permission.bluetooth.isPermanentlyDenied; - } else if (Platform.isAndroid) { - isBluetoothPermissionsDenied = - (await Permission.bluetoothConnect.isDenied && - !await Permission.bluetoothConnect.shouldShowRequestRationale); } ///We open the app settings if the user has permanently denied the permissions diff --git a/packages/hmssdk_flutter/android/src/main/AndroidManifest.xml b/packages/hmssdk_flutter/android/src/main/AndroidManifest.xml index aba43d192..2cf4b2071 100644 --- a/packages/hmssdk_flutter/android/src/main/AndroidManifest.xml +++ b/packages/hmssdk_flutter/android/src/main/AndroidManifest.xml @@ -13,10 +13,6 @@ - - - - diff --git a/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml b/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml index c5faff7ff..54890f3c7 100644 --- a/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml +++ b/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml @@ -18,8 +18,6 @@ - -