diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d1128384..f7f7c355f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,6 @@ on: push: branches: - main - - develop pull_request: types: - opened @@ -19,8 +18,6 @@ on: branches: - main - develop - paths: - - "**/*.dart" paths-ignore: - "**.md" - doc/** @@ -56,10 +53,6 @@ jobs: uses: invertase/github-action-dart-analyzer@v1 with: working-directory: packages/hmssdk_flutter - - name: Flutter Analyze in Room Kit - uses: invertase/github-action-dart-analyzer@v1 - with: - working-directory: packages/hms_room_kit - name: Commit and Push changes uses: stefanzweifel/git-auto-commit-action@v5 with: diff --git a/packages/hms_room_kit/CHANGELOG.md b/packages/hms_room_kit/CHANGELOG.md index 60a73b128..89d4b21a1 100644 --- a/packages/hms_room_kit/CHANGELOG.md +++ b/packages/hms_room_kit/CHANGELOG.md @@ -5,6 +5,12 @@ | 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.5 - 2023-11-09 + +### 🚀 Fixed + +- To handle error in case the logo url returns error + ## 1.0.4 - 2023-11-03 ### 🚀 Added diff --git a/packages/hms_room_kit/example/ios/Podfile.lock b/packages/hms_room_kit/example/ios/Podfile.lock index cca57bb49..b121c7c7f 100644 --- a/packages/hms_room_kit/example/ios/Podfile.lock +++ b/packages/hms_room_kit/example/ios/Podfile.lock @@ -6,14 +6,14 @@ PODS: - HMSBroadcastExtensionSDK (0.0.9) - HMSHLSPlayerSDK (0.0.2): - HMSAnalyticsSDK (= 0.0.2) - - HMSSDK (1.1.0): + - HMSSDK (1.2.0): - HMSAnalyticsSDK (= 0.0.2) - HMSWebRTC (= 1.0.5116) - - hmssdk_flutter (1.9.1): + - hmssdk_flutter (1.9.2): - Flutter - HMSBroadcastExtensionSDK (= 0.0.9) - HMSHLSPlayerSDK (= 0.0.2) - - HMSSDK (= 1.1.0) + - HMSSDK (= 1.2.0) - HMSWebRTC (1.0.5116) - path_provider_foundation (0.0.1): - Flutter @@ -70,15 +70,15 @@ SPEC CHECKSUMS: HMSAnalyticsSDK: 4d2a88a729b1eb42f3d25f217c28937ec318a5b7 HMSBroadcastExtensionSDK: d80fe325f6c928bd8e5176290b5a4b7ae15d6fbb HMSHLSPlayerSDK: 6a54ad4d12f3dc2270d1ecd24019d71282a4f6a3 - HMSSDK: 49e3ac665ceb8904d41787ddf99742e8d7d6529a - hmssdk_flutter: 6c69bfe89445350e9cd8d1c37a72808aedfbdf02 + HMSSDK: 010fdd904b8d221bb297864800503132fd721d9e + hmssdk_flutter: 1d4cfbb745095ebf399eaf533b6cde0c2006d6e1 HMSWebRTC: ae54e9dd91b869051b283b43b14f57d43b7bf8e1 path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6 share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 - url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4 + url_launcher_ios: 68d46cc9766d0c41dbdc884310529557e3cd7a86 PODFILE CHECKSUM: cc1f88378b4bfcf93a6ce00d2c587857c6008d3b -COCOAPODS: 1.13.0 +COCOAPODS: 1.14.2 diff --git a/packages/hms_room_kit/example/ios/Runner.xcodeproj/project.pbxproj b/packages/hms_room_kit/example/ios/Runner.xcodeproj/project.pbxproj index 00abbc8b9..16761b9f3 100644 --- a/packages/hms_room_kit/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/hms_room_kit/example/ios/Runner.xcodeproj/project.pbxproj @@ -155,7 +155,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1300; + LastUpgradeCheck = 1430; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { diff --git a/packages/hms_room_kit/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/hms_room_kit/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index c87d15a33..a6b826db2 100644 --- a/packages/hms_room_kit/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/packages/hms_room_kit/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ =2.19.6 <3.0.0" diff --git a/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart b/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart index 6f9e42d6b..33d8f8a5f 100644 --- a/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart +++ b/packages/hms_room_kit/lib/src/hls_viewer/hls_viewer_header.dart @@ -1,4 +1,5 @@ ///Dart imports +import 'dart:developer'; import 'dart:io'; import 'package:flutter/material.dart'; @@ -44,6 +45,13 @@ class HLSViewerHeader extends StatelessWidget { HMSRoomLayout.roleLayoutData!.logo!.url!) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ), 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 704703cfe..3a2a42abf 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_header.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_header.dart @@ -1,4 +1,5 @@ ///Dart imports +import 'dart:developer'; import 'dart:io'; ///Package imports @@ -60,6 +61,13 @@ class _MeetingHeaderState extends State { ) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ), diff --git a/packages/hms_room_kit/lib/src/meeting/meeting_store.dart b/packages/hms_room_kit/lib/src/meeting/meeting_store.dart index 151fc3255..90652c18a 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_store.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_store.dart @@ -825,7 +825,6 @@ class MeetingStore extends ChangeNotifier roles.removeWhere((element) => element.name == "__internal_recorder"); setParticipantsList(roles); } - Utilities.saveStringData(key: "meetingLink", value: meetingUrl); getCurrentAudioDevice(); getAudioDevicesList(); notifyListeners(); @@ -2237,19 +2236,6 @@ class MeetingStore extends ChangeNotifier toggleCameraMuteState(); lastVideoStatus = false; } - - List? peersList = await getPeers(); - - peersList?.forEach((element) { - if (!element.isLocal && (Platform.isAndroid)) { - (element.audioTrack as HMSRemoteAudioTrack?)?.setVolume(10.0); - element.auxiliaryTracks?.forEach((element) { - if (element.kind == HMSTrackKind.kHMSTrackKindAudio) { - (element as HMSRemoteAudioTrack?)?.setVolume(10.0); - } - }); - } - }); } else if (state == AppLifecycleState.paused) { HMSLocalPeer? localPeer = await getLocalPeer(); if (localPeer != null && diff --git a/packages/hms_room_kit/lib/src/preview/preview_header.dart b/packages/hms_room_kit/lib/src/preview/preview_header.dart index 1d56cc9f1..c4b2650cb 100644 --- a/packages/hms_room_kit/lib/src/preview/preview_header.dart +++ b/packages/hms_room_kit/lib/src/preview/preview_header.dart @@ -1,4 +1,5 @@ ///dart imports +import 'dart:developer'; import 'dart:io'; ///Package imports @@ -69,6 +70,13 @@ class PreviewHeader extends StatelessWidget { ) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ), diff --git a/packages/hms_room_kit/lib/src/preview/preview_store.dart b/packages/hms_room_kit/lib/src/preview/preview_store.dart index 594723366..637b13bbe 100644 --- a/packages/hms_room_kit/lib/src/preview/preview_store.dart +++ b/packages/hms_room_kit/lib/src/preview/preview_store.dart @@ -100,7 +100,6 @@ class PreviewStore extends ChangeNotifier } } this.localTracks = videoTracks; - Utilities.saveStringData(key: "meetingLink", value: meetingUrl); getRoles(); getCurrentAudioDevice(); getAudioDevicesList(); diff --git a/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart b/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart index 0b1571cf5..c25deda2e 100644 --- a/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart +++ b/packages/hms_room_kit/lib/src/preview_for_role/preview_for_role_header.dart @@ -1,3 +1,6 @@ +///Dart imports +import 'dart:developer'; + ///Package imports import 'package:flutter/cupertino.dart'; import 'package:flutter_svg/flutter_svg.dart'; @@ -37,6 +40,13 @@ class _PreviewForRoleHeaderState extends State { HMSRoomLayout.roleLayoutData!.logo!.url!) : Image.network( HMSRoomLayout.roleLayoutData!.logo!.url!, + errorBuilder: (context, exception, _) { + log('Error is $exception'); + return const SizedBox( + width: 30, + height: 30, + ); + }, height: 30, width: 30, ), diff --git a/packages/hms_room_kit/pubspec.lock b/packages/hms_room_kit/pubspec.lock index eba1d8dde..6aec473d0 100644 --- a/packages/hms_room_kit/pubspec.lock +++ b/packages/hms_room_kit/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: archive - sha256: "7e0d52067d05f2e0324268097ba723b71cb41ac8a6a2b24d1edf9c536b987b03" + sha256: "7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b" url: "https://pub.dev" source: hosted - version: "3.4.6" + version: "3.4.9" args: dependency: transitive description: @@ -178,10 +178,10 @@ packages: dependency: "direct main" description: name: flutter_svg - sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338" + sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c url: "https://pub.dev" source: hosted - version: "2.0.7" + version: "2.0.9" flutter_test: dependency: "direct dev" description: flutter @@ -212,10 +212,10 @@ packages: dependency: "direct main" description: name: hmssdk_flutter - sha256: "370556fc44ccb950508f9ec67a47285fd901fc2ecce7d0008f0a25e8bbd08389" + sha256: c560e8bbb938676fdfb3c5bbfc28d4fdd10454e0d56762042027624922d8fbf8 url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.9.2" http: dependency: transitive description: @@ -268,10 +268,10 @@ packages: dependency: "direct main" description: name: lottie - sha256: b8bdd54b488c54068c57d41ae85d02808da09e2bee8b8dd1f59f441e7efa60cd + sha256: a93542cc2d60a7057255405f62252533f8e8956e7e06754955669fd32fb4b216 url: "https://pub.dev" source: hosted - version: "2.6.0" + version: "2.7.0" matcher: dependency: transitive description: @@ -340,10 +340,10 @@ packages: dependency: transitive description: name: path_provider_android - sha256: "6b8b19bd80da4f11ce91b2d1fb931f3006911477cec227cce23d3253d80df3f1" + sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.1" path_provider_foundation: dependency: transitive description: @@ -609,98 +609,98 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "47e208a6711459d813ba18af120d9663c20bdf6985d6ad39fe165d2538378d27" + sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba url: "https://pub.dev" source: hosted - version: "6.1.14" + version: "6.2.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: b04af59516ab45762b2ca6da40fa830d72d0f6045cd97744450b73493fa76330 + sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def" url: "https://pub.dev" source: hosted - version: "6.1.0" + version: "6.2.0" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "7c65021d5dee51813d652357bc65b8dd4a6177082a9966bc8ba6ee477baa795f" + sha256: "4ac97281cf60e2e8c5cc703b2b28528f9b50c8f7cebc71df6bdf0845f647268a" url: "https://pub.dev" source: hosted - version: "6.1.5" + version: "6.2.0" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: b651aad005e0cb06a01dbd84b428a301916dc75f0e7ea6165f80057fee2d8e8e + sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd" url: "https://pub.dev" source: hosted - version: "3.0.6" + version: "3.1.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: b55486791f666e62e0e8ff825e58a023fd6b1f71c49926483f1128d3bbd8fe88 + sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234 url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "3.1.0" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "95465b39f83bfe95fcb9d174829d6476216f2d548b79c38ab2506e0458787618" + sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50" url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.2.0" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: "2942294a500b4fa0b918685aff406773ba0a4cd34b7f42198742a94083020ce5" + sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" url: "https://pub.dev" source: hosted - version: "2.0.20" + version: "2.2.0" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "95fef3129dc7cfaba2bc3d5ba2e16063bb561fc6d78e63eee16162bc70029069" + sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc" url: "https://pub.dev" source: hosted - version: "3.0.8" + version: "3.1.0" uuid: dependency: transitive description: name: uuid - sha256: b715b8d3858b6fa9f68f87d20d98830283628014750c2b09b6f516c1da4af2a7 + sha256: df5a4d8f22ee4ccd77f8839ac7cb274ebc11ef9adcce8b92be14b797fe889921 url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "4.2.1" vector_graphics: dependency: transitive description: name: vector_graphics - sha256: b16dadf7eb610e20da044c141b4a0199a5e8082ca21daba68322756f953ce714 + sha256: "0f0c746dd2d6254a0057218ff980fc7f5670fd0fcf5e4db38a490d31eed4ad43" url: "https://pub.dev" source: hosted - version: "1.1.9" + version: "1.1.9+1" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: a4b01403d5c613db115e30e71eca33f7e9e09f2d3c52c3fb84e16333ecddc539 + sha256: "0edf6d630d1bfd5589114138ed8fada3234deacc37966bec033d3047c29248b7" url: "https://pub.dev" source: hosted - version: "1.1.9" + version: "1.1.9+1" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: d26c0e2f237476426523eb25512e4c09fa27c6d33ed659a0e69d79e20b5dc47f + sha256: d24333727332d9bd20990f1483af4e09abdb9b1fc7c3db940b56ab5c42790c26 url: "https://pub.dev" source: hosted - version: "1.1.9" + version: "1.1.9+1" vector_math: dependency: transitive description: diff --git a/packages/hms_room_kit/pubspec.yaml b/packages/hms_room_kit/pubspec.yaml index 16a6d6d4a..a4d7b9771 100644 --- a/packages/hms_room_kit/pubspec.yaml +++ b/packages/hms_room_kit/pubspec.yaml @@ -1,6 +1,6 @@ name: hms_room_kit description: 100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps. -version: 1.0.4 +version: 1.0.5 homepage: https://www.100ms.live/ repository: https://github.com/100mslive/100ms-flutter issue_tracker: https://github.com/100mslive/100ms-flutter/issues @@ -14,7 +14,7 @@ dependencies: flutter: sdk: flutter - hmssdk_flutter: ^1.9.1 + hmssdk_flutter: ^1.9.2 intl: ^0.18.1 permission_handler: ^11.0.0 provider: ^6.0.5 @@ -32,7 +32,7 @@ dependencies: tuple: ^2.0.2 url_launcher: ^6.1.11 share_plus: ^7.0.2 - flutter_foreground_task: ^6.0.0+1 + flutter_foreground_task: ^6.1.2 collection: ^1.17.0 dots_indicator: ^3.0.0 diff --git a/packages/hmssdk_flutter/CHANGELOG.md b/packages/hmssdk_flutter/CHANGELOG.md index 54709c0cb..beab67e80 100644 --- a/packages/hmssdk_flutter/CHANGELOG.md +++ b/packages/hmssdk_flutter/CHANGELOG.md @@ -5,6 +5,20 @@ | 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.2 - 2023-11-09 + +### Changed + +- Auto simulcast in `HMSVideoView` correctly picks the layers based on the size of the view. + +- Resolved an issue where after a Call Interruption the voices of users were robotic + +- Removed default usage of Software Echo Cancellation. Now, by default Hardware echo cancellation will be used. More information is available [here](https://www.100ms.live/docs/flutter/v2/how-to-guides/configure-your-device/microphone/echo-cancellation) + +Updated to Android SDK 2.8.0 & iOS SDK 1.2.0 + +**Full Changelog**: [1.9.1...1.9.2](https://github.com/100mslive/100ms-flutter/compare/1.9.1...1.9.2) + ## 1.9.1 - 2023-11-02 ### Fixed diff --git a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSPeerExtension.kt b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSPeerExtension.kt index 60dbae826..68ad7efb6 100644 --- a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSPeerExtension.kt +++ b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSPeerExtension.kt @@ -20,7 +20,7 @@ class HMSPeerExtension { args["audio_track"] = HMSTrackExtension.toDictionary(peer.audioTrack) args["video_track"] = HMSTrackExtension.toDictionary(peer.videoTrack) args["network_quality"] = HMSNetworkQualityExtension.toDictionary(peer.networkQuality) - args["joined_at"] = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(peer.joinedAt).toString() + args["joined_at"] = peer.joinedAt val auxTrackList = ArrayList() peer.auxiliaryTracks.forEach { diff --git a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSTrackSettingsExtension.kt b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSTrackSettingsExtension.kt index e222dffb8..d93e9c80f 100644 --- a/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSTrackSettingsExtension.kt +++ b/packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/HMSTrackSettingsExtension.kt @@ -28,8 +28,6 @@ class HMSTrackSettingsExtension { hmsVideoTrackHashMap: HashMap?, ): HMSTrackSettings { var hmsAudioTrackSettings = HMSAudioTrackSettings.Builder() - - hmsAudioTrackSettings.setUseHardwareAcousticEchoCanceler(false) hmsAudioTrackSettings.setPhoneCallMuteState(PhoneCallState.DISABLE_MUTE_ON_VOIP_PHONE_CALL_RING) hmsAudioTrackHashMap?.let { audioHashMap -> diff --git a/packages/hmssdk_flutter/example/ExampleAppChangelog.txt b/packages/hmssdk_flutter/example/ExampleAppChangelog.txt index 9c8d39a7d..7051f9698 100644 --- a/packages/hmssdk_flutter/example/ExampleAppChangelog.txt +++ b/packages/hmssdk_flutter/example/ExampleAppChangelog.txt @@ -1,18 +1,27 @@ Board: https://100ms.atlassian.net/jira/software/projects/FLUT/boards/34/ -Disabled chat from the dashboard but can see chat cta and send message -- https://100ms.atlassian.net/browse/FLUT-97 +Implement sending of Subscriber Stats +- https://100ms.atlassian.net/browse/FLUT-134 -Disconnect error message in toast -- https://100ms.atlassian.net/browse/FLUT-136 +Upgrade Android SDK to fix Auto simulcast issue in HmsVideoView +- https://100ms.atlassian.net/browse/FLUT-145 -The application is crashing while joining a room with server recording ON -- https://100ms.atlassian.net/browse/FLUT-138 +Remove default usage of Software Echo Cancellation +- https://100ms.atlassian.net/browse/FLUT-146 -Unable to hide header and footer -- https://100ms.atlassian.net/browse/FLUT-44 +Post call interruption fix +- https://100ms.atlassian.net/browse/FLUT-143 + +Persist Room meeting link after successfully joining the Room +- https://100ms.atlassian.net/browse/FLUT-147 + +Incorrect DateTime format on iOS prevents the user from Joining a Room +- https://100ms.atlassian.net/browse/FLUT-144 + +To handle error in case the logo url returns error +- https://100ms.atlassian.net/browse/FLUT-152 Room Kit: 1.0.3 -Core SDK: 1.9.1 -Android SDK: 2.7.9 -iOS SDK: 1.1.0 +Core SDK: 1.9.2 +Android SDK: 2.8.0 +iOS SDK: 1.2.0 diff --git a/packages/hmssdk_flutter/example/android/Gemfile.lock b/packages/hmssdk_flutter/example/android/Gemfile.lock index 670047e8b..aee2aa74c 100644 --- a/packages/hmssdk_flutter/example/android/Gemfile.lock +++ b/packages/hmssdk_flutter/example/android/Gemfile.lock @@ -13,8 +13,8 @@ GEM artifactory (3.0.15) atomos (0.1.3) aws-eventstream (1.2.0) - aws-partitions (1.836.0) - aws-sdk-core (3.185.1) + aws-partitions (1.847.0) + aws-sdk-core (3.186.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.5) @@ -26,7 +26,7 @@ GEM aws-sdk-core (~> 3, >= 3.181.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.6) - aws-sigv4 (1.6.0) + aws-sigv4 (1.6.1) aws-eventstream (~> 1, >= 1.0.2) babosa (1.0.4) claide (1.1.0) @@ -117,7 +117,7 @@ GEM gh_inspector (1.1.3) google-apis-androidpublisher_v3 (0.51.0) google-apis-core (>= 0.11.0, < 2.a) - google-apis-core (0.11.1) + google-apis-core (0.11.2) addressable (~> 2.5, >= 2.5.1) googleauth (>= 0.16.2, < 2.a) httpclient (>= 2.8.1, < 3.a) @@ -132,19 +132,19 @@ GEM google-apis-core (>= 0.11.0, < 2.a) google-apis-playcustomapp_v1 (0.13.0) google-apis-core (>= 0.11.0, < 2.a) - google-apis-storage_v1 (0.19.0) - google-apis-core (>= 0.9.0, < 2.a) + google-apis-storage_v1 (0.29.0) + google-apis-core (>= 0.11.0, < 2.a) google-cloud-core (1.6.0) google-cloud-env (~> 1.0) google-cloud-errors (~> 1.0) google-cloud-env (1.6.0) faraday (>= 0.17.3, < 3.0) google-cloud-errors (1.3.1) - google-cloud-storage (1.44.0) + google-cloud-storage (1.45.0) addressable (~> 2.8) digest-crc (~> 0.4) google-apis-iamcredentials_v1 (~> 0.1) - google-apis-storage_v1 (~> 0.19.0) + google-apis-storage_v1 (~> 0.29.0) google-cloud-core (~> 1.6) googleauth (>= 0.16.2, < 2.a) mini_mime (~> 1.0) @@ -174,7 +174,7 @@ GEM os (1.1.4) plist (3.7.0) public_suffix (5.0.3) - rake (13.0.6) + rake (13.1.0) representable (3.2.0) declarative (< 0.1.0) trailblazer-option (>= 0.1.1, < 0.2.0) diff --git a/packages/hmssdk_flutter/example/android/app/build.gradle b/packages/hmssdk_flutter/example/android/app/build.gradle index e2feec773..1d963de84 100644 --- a/packages/hmssdk_flutter/example/android/app/build.gradle +++ b/packages/hmssdk_flutter/example/android/app/build.gradle @@ -32,8 +32,8 @@ android { applicationId "live.hms.flutter" minSdkVersion 21 targetSdkVersion 33 - versionCode 383 - versionName "1.5.83" + versionCode 388 + versionName "1.5.88" } signingConfigs { diff --git a/packages/hmssdk_flutter/example/ios/Gemfile.lock b/packages/hmssdk_flutter/example/ios/Gemfile.lock index c74fedc36..68c52c04a 100644 --- a/packages/hmssdk_flutter/example/ios/Gemfile.lock +++ b/packages/hmssdk_flutter/example/ios/Gemfile.lock @@ -13,8 +13,8 @@ GEM artifactory (3.0.15) atomos (0.1.3) aws-eventstream (1.2.0) - aws-partitions (1.836.0) - aws-sdk-core (3.185.1) + aws-partitions (1.847.0) + aws-sdk-core (3.186.0) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.5) @@ -26,7 +26,7 @@ GEM aws-sdk-core (~> 3, >= 3.181.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.6) - aws-sigv4 (1.6.0) + aws-sigv4 (1.6.1) aws-eventstream (~> 1, >= 1.0.2) babosa (1.0.4) claide (1.1.0) @@ -118,7 +118,7 @@ GEM gh_inspector (1.1.3) google-apis-androidpublisher_v3 (0.51.0) google-apis-core (>= 0.11.0, < 2.a) - google-apis-core (0.11.1) + google-apis-core (0.11.2) addressable (~> 2.5, >= 2.5.1) googleauth (>= 0.16.2, < 2.a) httpclient (>= 2.8.1, < 3.a) @@ -133,19 +133,19 @@ GEM google-apis-core (>= 0.11.0, < 2.a) google-apis-playcustomapp_v1 (0.13.0) google-apis-core (>= 0.11.0, < 2.a) - google-apis-storage_v1 (0.19.0) - google-apis-core (>= 0.9.0, < 2.a) + google-apis-storage_v1 (0.29.0) + google-apis-core (>= 0.11.0, < 2.a) google-cloud-core (1.6.0) google-cloud-env (~> 1.0) google-cloud-errors (~> 1.0) google-cloud-env (1.6.0) faraday (>= 0.17.3, < 3.0) google-cloud-errors (1.3.1) - google-cloud-storage (1.44.0) + google-cloud-storage (1.45.0) addressable (~> 2.8) digest-crc (~> 0.4) google-apis-iamcredentials_v1 (~> 0.1) - google-apis-storage_v1 (~> 0.19.0) + google-apis-storage_v1 (~> 0.29.0) google-cloud-core (~> 1.6) googleauth (>= 0.16.2, < 2.a) mini_mime (~> 1.0) @@ -175,7 +175,7 @@ GEM os (1.1.4) plist (3.7.0) public_suffix (5.0.3) - rake (13.0.6) + rake (13.1.0) representable (3.2.0) declarative (< 0.1.0) trailblazer-option (>= 0.1.1, < 0.2.0) diff --git a/packages/hmssdk_flutter/example/ios/Podfile.lock b/packages/hmssdk_flutter/example/ios/Podfile.lock index 04927d6a1..8490ac914 100644 --- a/packages/hmssdk_flutter/example/ios/Podfile.lock +++ b/packages/hmssdk_flutter/example/ios/Podfile.lock @@ -25,15 +25,15 @@ PODS: - Firebase/Performance (= 10.9.0) - firebase_core - Flutter - - FirebaseABTesting (10.16.0): + - FirebaseABTesting (10.17.0): - FirebaseCore (~> 10.0) - FirebaseCore (10.9.0): - FirebaseCoreInternal (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/Logger (~> 7.8) - - FirebaseCoreExtension (10.16.0): + - FirebaseCoreExtension (10.17.0): - FirebaseCore (~> 10.0) - - FirebaseCoreInternal (10.16.0): + - FirebaseCoreInternal (10.17.0): - "GoogleUtilities/NSData+zlib (~> 7.8)" - FirebaseCrashlytics (10.9.0): - FirebaseCore (~> 10.5) @@ -45,7 +45,7 @@ PODS: - PromisesObjC (~> 2.1) - FirebaseDynamicLinks (10.9.0): - FirebaseCore (~> 10.0) - - FirebaseInstallations (10.16.0): + - FirebaseInstallations (10.17.0): - FirebaseCore (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) @@ -60,13 +60,14 @@ PODS: - GoogleUtilities/ISASwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - - FirebaseRemoteConfig (10.16.0): + - FirebaseRemoteConfig (10.17.0): - FirebaseABTesting (~> 10.0) - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) + - FirebaseSharedSwift (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - - FirebaseSessions (10.16.0): + - FirebaseSessions (10.17.0): - FirebaseCore (~> 10.5) - FirebaseCoreExtension (~> 10.0) - FirebaseInstallations (~> 10.0) @@ -74,6 +75,7 @@ PODS: - GoogleUtilities/Environment (~> 7.10) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesSwift (~> 2.1) + - FirebaseSharedSwift (10.17.0) - Flutter (1.0.0) - flutter_foreground_task (0.0.1): - Flutter @@ -81,35 +83,35 @@ PODS: - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/Environment (7.11.5): + - GoogleUtilities/Environment (7.12.0): - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/ISASwizzler (7.11.5) - - GoogleUtilities/Logger (7.11.5): + - GoogleUtilities/ISASwizzler (7.12.0) + - GoogleUtilities/Logger (7.12.0): - GoogleUtilities/Environment - - GoogleUtilities/MethodSwizzler (7.11.5): + - GoogleUtilities/MethodSwizzler (7.12.0): - GoogleUtilities/Logger - - "GoogleUtilities/NSData+zlib (7.11.5)" - - GoogleUtilities/UserDefaults (7.11.5): + - "GoogleUtilities/NSData+zlib (7.12.0)" + - GoogleUtilities/UserDefaults (7.12.0): - GoogleUtilities/Logger - HMSAnalyticsSDK (0.0.2) - HMSBroadcastExtensionSDK (0.0.9) - HMSHLSPlayerSDK (0.0.2): - HMSAnalyticsSDK (= 0.0.2) - - HMSSDK (1.1.0): + - HMSSDK (1.2.0): - HMSAnalyticsSDK (= 0.0.2) - HMSWebRTC (= 1.0.5116) - - hmssdk_flutter (1.9.1): + - hmssdk_flutter (1.9.2): - Flutter - HMSBroadcastExtensionSDK (= 0.0.9) - HMSHLSPlayerSDK (= 0.0.2) - - HMSSDK (= 1.1.0) + - HMSSDK (= 1.2.0) - HMSWebRTC (1.0.5116) - MTBBarcodeScanner (5.0.11) - - nanopb (2.30909.0): - - nanopb/decode (= 2.30909.0) - - nanopb/encode (= 2.30909.0) - - nanopb/decode (2.30909.0) - - nanopb/encode (2.30909.0) + - nanopb (2.30909.1): + - nanopb/decode (= 2.30909.1) + - nanopb/encode (= 2.30909.1) + - nanopb/decode (2.30909.1) + - nanopb/encode (2.30909.1) - package_info_plus (0.4.5): - Flutter - path_provider_foundation (0.0.1): @@ -164,6 +166,7 @@ SPEC REPOS: - FirebasePerformance - FirebaseRemoteConfig - FirebaseSessions + - FirebaseSharedSwift - GoogleDataTransport - GoogleUtilities - HMSAnalyticsSDK @@ -214,28 +217,29 @@ SPEC CHECKSUMS: firebase_crashlytics: 9b80d1944507cc07fa1c4455797f7d2eb7c8873f firebase_dynamic_links: db9f2ebcc3ea646e76a1d3ee37e9e57890ff0a83 firebase_performance: d11d1fd9591547f6b75f325aaadd6550eaf7e090 - FirebaseABTesting: 03f0a8b88cf618350527f2c6a2234e29b9c65064 + FirebaseABTesting: 609e15b57b5f1096c8feb984e8995d9e769858fe FirebaseCore: b68d3616526ec02e4d155166bbafb8eca64af557 - FirebaseCoreExtension: 2dbc745b337eb99d2026a7a309ae037bd873f45e - FirebaseCoreInternal: 26233f705cc4531236818a07ac84d20c333e505a + FirebaseCoreExtension: 47720bb330d7041047c0935a34a3a4b92f818074 + FirebaseCoreInternal: 2cf9202e226e3f78d2bf6d56c472686b935bfb7f FirebaseCrashlytics: b60329455285aff853e54139d8ddbfe1e5f2b9f9 FirebaseDynamicLinks: 8cb66c4f403aa6ddf86ff3bc3c383a652f344ce9 - FirebaseInstallations: b822f91a61f7d1ba763e5ccc9d4f2e6f2ed3b3ee + FirebaseInstallations: 9387bf15abfc69a714f54e54f74a251264fdb79b FirebasePerformance: eee2f5da94fd7e5d15487649f8fe10a90c87c174 - FirebaseRemoteConfig: 17ec974c6cac5cdc6cf8297062c2219851857f06 - FirebaseSessions: 96e7781e545929cde06dd91088ddbb0841391b43 + FirebaseRemoteConfig: 94ab72cd7aa865b6226ee527b1fa5c4f961a4e7b + FirebaseSessions: 49f39e5c10e3f9fdd38d01b748329bae2a2fa8ed + FirebaseSharedSwift: e8fe8d63d434266a1b2c7f02807d5b64462e1851 Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 flutter_foreground_task: 21ef182ab0a29a3005cc72cd70e5f45cb7f7f817 GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2 - GoogleUtilities: 13e2c67ede716b8741c7989e26893d151b2b2084 + GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 HMSAnalyticsSDK: 4d2a88a729b1eb42f3d25f217c28937ec318a5b7 HMSBroadcastExtensionSDK: d80fe325f6c928bd8e5176290b5a4b7ae15d6fbb HMSHLSPlayerSDK: 6a54ad4d12f3dc2270d1ecd24019d71282a4f6a3 - HMSSDK: 49e3ac665ceb8904d41787ddf99742e8d7d6529a - hmssdk_flutter: 6c69bfe89445350e9cd8d1c37a72808aedfbdf02 + HMSSDK: 010fdd904b8d221bb297864800503132fd721d9e + hmssdk_flutter: 1d4cfbb745095ebf399eaf533b6cde0c2006d6e1 HMSWebRTC: ae54e9dd91b869051b283b43b14f57d43b7bf8e1 MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb - nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431 + nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85 path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6 @@ -245,8 +249,8 @@ SPEC CHECKSUMS: share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 uni_links: d97da20c7701486ba192624d99bffaaffcfc298a - url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4 + url_launcher_ios: 68d46cc9766d0c41dbdc884310529557e3cd7a86 PODFILE CHECKSUM: 919064996fff867cd85dbf9e7730ff45bac23884 -COCOAPODS: 1.13.0 +COCOAPODS: 1.14.2 diff --git a/packages/hmssdk_flutter/example/ios/Runner/Info.plist b/packages/hmssdk_flutter/example/ios/Runner/Info.plist index 2f28b3b49..670b17342 100644 --- a/packages/hmssdk_flutter/example/ios/Runner/Info.plist +++ b/packages/hmssdk_flutter/example/ios/Runner/Info.plist @@ -21,7 +21,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.5.83 + 1.5.88 CFBundleSignature ???? CFBundleURLTypes @@ -48,7 +48,7 @@ CFBundleVersion - 383 + 388 ITSAppUsesNonExemptEncryption LSApplicationCategoryType diff --git a/packages/hmssdk_flutter/example/lib/main.dart b/packages/hmssdk_flutter/example/lib/main.dart index 7f7ae1c85..7cdf8690f 100644 --- a/packages/hmssdk_flutter/example/lib/main.dart +++ b/packages/hmssdk_flutter/example/lib/main.dart @@ -60,8 +60,6 @@ class HMSExampleApp extends StatefulWidget { class _HMSExampleAppState extends State { ThemeMode _themeMode = ThemeMode.dark; Uri? _currentURI; - bool isDarkMode = - WidgetsBinding.instance.window.platformBrightness == Brightness.dark; ThemeData _darkTheme = ThemeData( bottomSheetTheme: BottomSheetThemeData( @@ -90,7 +88,6 @@ class _HMSExampleAppState extends State { _initURIHandler(); _incomingLinkHandler(); initDynamicLinks(); - setThemeMode(); } Future _initURIHandler() async { @@ -167,15 +164,6 @@ class _HMSExampleAppState extends State { } } - void setThemeMode() async { - _themeMode = await Utilities.getBoolData(key: "dark-mode") ?? true - ? ThemeMode.dark - : ThemeMode.light; - if (_themeMode == ThemeMode.light) { - changeTheme(_themeMode); - } - } - @override void dispose() { _streamSubscription?.cancel(); @@ -193,14 +181,6 @@ class _HMSExampleAppState extends State { themeMode: _themeMode, ); } - - void changeTheme(ThemeMode themeMode) { - setState(() { - _themeMode = themeMode; - isDarkMode = themeMode == ThemeMode.dark; - updateColor(_themeMode); - }); - } } class HomePage extends StatefulWidget { @@ -301,6 +281,8 @@ class _HomePageState extends State { Constant.roomCode = meetingLinkController.text.trim(); } + Utilities.saveStringData( + key: "meetingLink", value: meetingLinkController.text.trim()); FocusManager.instance.primaryFocus?.unfocus(); Navigator.push( context, diff --git a/packages/hmssdk_flutter/example/pubspec.lock b/packages/hmssdk_flutter/example/pubspec.lock index 98dd1f3d3..3b20f8b2b 100644 --- a/packages/hmssdk_flutter/example/pubspec.lock +++ b/packages/hmssdk_flutter/example/pubspec.lock @@ -13,10 +13,10 @@ packages: dependency: transitive description: name: archive - sha256: "7e0d52067d05f2e0324268097ba723b71cb41ac8a6a2b24d1edf9c536b987b03" + sha256: "7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b" url: "https://pub.dev" source: hosted - version: "3.4.6" + version: "3.4.9" args: dependency: transitive description: @@ -258,10 +258,10 @@ packages: dependency: transitive description: name: flutter_svg - sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338" + sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c url: "https://pub.dev" source: hosted - version: "2.0.7" + version: "2.0.9" flutter_test: dependency: "direct dev" description: flutter @@ -294,14 +294,15 @@ packages: path: "../../hms_room_kit" relative: true source: path - version: "1.0.4" + version: "1.0.5" hmssdk_flutter: dependency: transitive description: - path: ".." - relative: true - source: path - version: "1.9.1" + name: hmssdk_flutter + sha256: c560e8bbb938676fdfb3c5bbfc28d4fdd10454e0d56762042027624922d8fbf8 + url: "https://pub.dev" + source: hosted + version: "1.9.2" http: dependency: transitive description: @@ -346,10 +347,10 @@ packages: dependency: transitive description: name: lottie - sha256: b8bdd54b488c54068c57d41ae85d02808da09e2bee8b8dd1f59f441e7efa60cd + sha256: a93542cc2d60a7057255405f62252533f8e8956e7e06754955669fd32fb4b216 url: "https://pub.dev" source: hosted - version: "2.6.0" + version: "2.7.0" matcher: dependency: transitive description: @@ -434,10 +435,10 @@ packages: dependency: transitive description: name: path_provider_android - sha256: "6b8b19bd80da4f11ce91b2d1fb931f3006911477cec227cce23d3253d80df3f1" + sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.1" path_provider_foundation: dependency: transitive description: @@ -735,98 +736,98 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "47e208a6711459d813ba18af120d9663c20bdf6985d6ad39fe165d2538378d27" + sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba url: "https://pub.dev" source: hosted - version: "6.1.14" + version: "6.2.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: b04af59516ab45762b2ca6da40fa830d72d0f6045cd97744450b73493fa76330 + sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def" url: "https://pub.dev" source: hosted - version: "6.1.0" + version: "6.2.0" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "7c65021d5dee51813d652357bc65b8dd4a6177082a9966bc8ba6ee477baa795f" + sha256: "4ac97281cf60e2e8c5cc703b2b28528f9b50c8f7cebc71df6bdf0845f647268a" url: "https://pub.dev" source: hosted - version: "6.1.5" + version: "6.2.0" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: b651aad005e0cb06a01dbd84b428a301916dc75f0e7ea6165f80057fee2d8e8e + sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd" url: "https://pub.dev" source: hosted - version: "3.0.6" + version: "3.1.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: b55486791f666e62e0e8ff825e58a023fd6b1f71c49926483f1128d3bbd8fe88 + sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234 url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "3.1.0" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "95465b39f83bfe95fcb9d174829d6476216f2d548b79c38ab2506e0458787618" + sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50" url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.2.0" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: "2942294a500b4fa0b918685aff406773ba0a4cd34b7f42198742a94083020ce5" + sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" url: "https://pub.dev" source: hosted - version: "2.0.20" + version: "2.2.0" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "95fef3129dc7cfaba2bc3d5ba2e16063bb561fc6d78e63eee16162bc70029069" + sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc" url: "https://pub.dev" source: hosted - version: "3.0.8" + version: "3.1.0" uuid: dependency: transitive description: name: uuid - sha256: b715b8d3858b6fa9f68f87d20d98830283628014750c2b09b6f516c1da4af2a7 + sha256: df5a4d8f22ee4ccd77f8839ac7cb274ebc11ef9adcce8b92be14b797fe889921 url: "https://pub.dev" source: hosted - version: "4.1.0" + version: "4.2.1" vector_graphics: dependency: transitive description: name: vector_graphics - sha256: b16dadf7eb610e20da044c141b4a0199a5e8082ca21daba68322756f953ce714 + sha256: "0f0c746dd2d6254a0057218ff980fc7f5670fd0fcf5e4db38a490d31eed4ad43" url: "https://pub.dev" source: hosted - version: "1.1.9" + version: "1.1.9+1" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: a4b01403d5c613db115e30e71eca33f7e9e09f2d3c52c3fb84e16333ecddc539 + sha256: "0edf6d630d1bfd5589114138ed8fada3234deacc37966bec033d3047c29248b7" url: "https://pub.dev" source: hosted - version: "1.1.9" + version: "1.1.9+1" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: d26c0e2f237476426523eb25512e4c09fa27c6d33ed659a0e69d79e20b5dc47f + sha256: d24333727332d9bd20990f1483af4e09abdb9b1fc7c3db940b56ab5c42790c26 url: "https://pub.dev" source: hosted - version: "1.1.9" + version: "1.1.9+1" vector_math: dependency: transitive description: diff --git a/packages/hmssdk_flutter/example/pubspec.yaml b/packages/hmssdk_flutter/example/pubspec.yaml index 98ac3c653..2d8e43632 100644 --- a/packages/hmssdk_flutter/example/pubspec.yaml +++ b/packages/hmssdk_flutter/example/pubspec.yaml @@ -4,7 +4,7 @@ description: Demonstrates how to use the hmssdk_flutter plugin. # The following line prevents the package from being accidentally published to # pub.dev using `pub publish`. This is preferred for private packages. publish_to: "none" # Remove this line if you wish to publish to pub.dev -version: 1.9.1 +version: 1.9.2 environment: sdk: ">=2.16.0 <4.0.0" diff --git a/packages/hmssdk_flutter/ios/Classes/Models/HMSPeerExtension.swift b/packages/hmssdk_flutter/ios/Classes/Models/HMSPeerExtension.swift index 556cb731d..873ddf980 100644 --- a/packages/hmssdk_flutter/ios/Classes/Models/HMSPeerExtension.swift +++ b/packages/hmssdk_flutter/ios/Classes/Models/HMSPeerExtension.swift @@ -19,8 +19,8 @@ class HMSPeerExtension { "is_hand_raised": peer.isHandRaised, "customer_description": peer.metadata ?? "", "customer_user_id": peer.customerUserID ?? "", - "joined_at": "\(peer.joinedAt)", - "updated_at": "\(peer.updatedAt)" + "joined_at": Int(peer.joinedAt.timeIntervalSince1970 * 1000), + "updated_at": Int(peer.updatedAt.timeIntervalSince1970 * 1000) ] as [String: Any] if let metadata = peer.metadata { diff --git a/packages/hmssdk_flutter/lib/assets/sdk-versions.json b/packages/hmssdk_flutter/lib/assets/sdk-versions.json index 38a7ecca1..57b4bafaf 100644 --- a/packages/hmssdk_flutter/lib/assets/sdk-versions.json +++ b/packages/hmssdk_flutter/lib/assets/sdk-versions.json @@ -1,7 +1,7 @@ { - "flutter": "1.9.1", - "ios": "1.1.0", + "flutter": "1.9.2", + "ios": "1.2.0", "iOSBroadcastExtension": "0.0.9", "iOSHLSPlayerSDK": "0.0.2", - "android": "2.7.9" + "android": "2.8.0" } diff --git a/packages/hmssdk_flutter/lib/src/model/hls_player/hms_hls_cue.dart b/packages/hmssdk_flutter/lib/src/model/hls_player/hms_hls_cue.dart index c007ef9b9..1ffd1408f 100644 --- a/packages/hmssdk_flutter/lib/src/model/hls_player/hms_hls_cue.dart +++ b/packages/hmssdk_flutter/lib/src/model/hls_player/hms_hls_cue.dart @@ -22,10 +22,10 @@ class HMSHLSCue { factory HMSHLSCue.fromMap(Map map) { return HMSHLSCue( - startDate: HMSDateExtension.convertDate(map["start_date"]), + startDate: HMSDateExtension.convertDateFromString(map["start_date"]), endDate: map["end_date"] == null ? null - : HMSDateExtension.convertDate(map["end_date"]), + : HMSDateExtension.convertDateFromString(map["end_date"]), id: map["id"], payload: map["payload"]); } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_browser_recording_state.dart b/packages/hmssdk_flutter/lib/src/model/hms_browser_recording_state.dart index b67463262..eab39848f 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_browser_recording_state.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_browser_recording_state.dart @@ -21,7 +21,7 @@ class HMSBrowserRecordingState { error: map["error"] != null ? HMSException.fromMap(map) : null, running: map['running'], startedAt: map['started_at'] != null - ? HMSDateExtension.convertDate(map['started_at']) + ? HMSDateExtension.convertDateFromString(map['started_at']) : null, initialising: map['initialising']); } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_date_extension.dart b/packages/hmssdk_flutter/lib/src/model/hms_date_extension.dart index 0e9a423f1..caf3f96c0 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_date_extension.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_date_extension.dart @@ -2,9 +2,26 @@ /// ///[HMSDateExtension] is used to convert android and ios native time format to DateTime type ///in local time zone format. + +///Dart imports +import 'dart:developer'; + class HMSDateExtension { - static DateTime convertDate(String date) { + ///Returns DateTime object from String + static DateTime convertDateFromString(String date) { DateTime _dateTime = DateTime.parse(date).toLocal(); return _dateTime; } + + ///Returns optional DateTime object from epoch in milliseconds + static DateTime? convertDateFromEpoch(int date) { + try { + DateTime _dateTime = + DateTime.fromMillisecondsSinceEpoch(date, isUtc: false); + return _dateTime; + } catch (e) { + log(e.toString()); + } + return null; + } } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_hls_recording_state.dart b/packages/hmssdk_flutter/lib/src/model/hms_hls_recording_state.dart index a82e01fe5..840647dca 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_hls_recording_state.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_hls_recording_state.dart @@ -19,7 +19,7 @@ class HMSHLSRecordingState { : null, running: map['running'], startedAt: map['started_at'] != null - ? HMSDateExtension.convertDate(map['started_at']) + ? HMSDateExtension.convertDateFromString(map['started_at']) : null); } } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_hls_variant.dart b/packages/hmssdk_flutter/lib/src/model/hms_hls_variant.dart index 44a0bd4ae..d875b9f06 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_hls_variant.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_hls_variant.dart @@ -38,7 +38,7 @@ class HMSHLSVariant { meetingUrl: map['meeting_url'] as String?, metadata: map['metadata'] as String?, startedAt: map['started_at'] != null - ? HMSDateExtension.convertDate(map['started_at']) + ? HMSDateExtension.convertDateFromString(map['started_at']) : null, ); } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_local_peer.dart b/packages/hmssdk_flutter/lib/src/model/hms_local_peer.dart index 0f7276c25..59957cf29 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_local_peer.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_local_peer.dart @@ -62,10 +62,10 @@ class HMSLocalPeer extends HMSPeer { ? HMSNetworkQuality.fromMap(map["network_quality"]) : null, joinedAt: map.containsKey("joined_at") - ? HMSDateExtension.convertDate(map["joined_at"]) + ? HMSDateExtension.convertDateFromEpoch(map["joined_at"]) : null, updatedAt: map.containsKey("updated_at") - ? HMSDateExtension.convertDate(map["updated_at"]) + ? HMSDateExtension.convertDateFromEpoch(map["updated_at"]) : null, ); } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_message.dart b/packages/hmssdk_flutter/lib/src/model/hms_message.dart index 4cb69fb37..a7093063b 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_message.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_message.dart @@ -56,7 +56,7 @@ class HMSMessage { sender: sender, message: messageMap['message'] as String, type: messageMap['type'] as String, - time: HMSDateExtension.convertDate(messageMap['time']), + time: HMSDateExtension.convertDateFromString(messageMap['time']), hmsMessageRecipient: recipient); } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_peer.dart b/packages/hmssdk_flutter/lib/src/model/hms_peer.dart index 0fa5c7719..d1eb9a1ac 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_peer.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_peer.dart @@ -1,6 +1,5 @@ // Project imports: import 'package:hmssdk_flutter/hmssdk_flutter.dart'; -import 'package:hmssdk_flutter/src/model/hms_date_extension.dart'; import 'package:hmssdk_flutter/src/service/platform_service.dart'; ///100ms HMSPeer. @@ -80,61 +79,9 @@ class HMSPeer { int get hashCode => peerId.hashCode; factory HMSPeer.fromMap(Map map) { - HMSRole role = HMSRole.fromMap(map['role']); - - // TODO: add auxiliary tracks - - HMSPeer peer = (map['is_local'] == true) - ? HMSLocalPeer( - peerId: map['peer_id'], - name: map['name'], - isLocal: map['is_local'], - isHandRaised: map['is_hand_raised'], - role: role, - metadata: map['metadata'], - customerUserId: map['customer_user_id'], - networkQuality: map['network_quality'] == null - ? null - : HMSNetworkQuality.fromMap( - map['network_quality'], - ), - joinedAt: map.containsKey("joined_at") - ? HMSDateExtension.convertDate(map["joined_at"]) - : null, - updatedAt: map.containsKey("updated_at") - ? HMSDateExtension.convertDate(map["updated_at"]) - : null, - ) - : HMSRemotePeer( - peerId: map['peer_id'], - name: map['name'], - isLocal: map['is_local'], - isHandRaised: map['is_hand_raised'], - role: role, - metadata: map['metadata'], - customerUserId: map['customer_user_id'], - networkQuality: map['network_quality'] == null - ? null - : HMSNetworkQuality.fromMap(map['network_quality']), - joinedAt: map.containsKey("joined_at") - ? HMSDateExtension.convertDate(map["joined_at"]) - : null, - updatedAt: map.containsKey("updated_at") - ? HMSDateExtension.convertDate(map["updated_at"]) - : null, - ); - - if (map['audio_track'] != null) { - peer.audioTrack = HMSAudioTrack.fromMap( - map: map['audio_track']!, isLocal: peer.isLocal); - } - - if (map['video_track'] != null) { - peer.videoTrack = HMSVideoTrack.fromMap( - map: map['video_track']!, isLocal: peer.isLocal); - } - - return peer; + return (map['is_local'] == true) + ? HMSLocalPeer.fromMap(map) + : HMSRemotePeer.fromMap(map); } @override diff --git a/packages/hmssdk_flutter/lib/src/model/hms_remote_peer.dart b/packages/hmssdk_flutter/lib/src/model/hms_remote_peer.dart index 8f22b400b..b820c6f0b 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_remote_peer.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_remote_peer.dart @@ -63,7 +63,6 @@ class HMSRemotePeer extends HMSPeer { factory HMSRemotePeer.fromMap(Map map) { HMSRole role = HMSRole.fromMap(map['role']); - // TODO: add auxiliary tracks HMSRemotePeer peer = HMSRemotePeer( peerId: map['peer_id'], name: map['name'], @@ -76,10 +75,10 @@ class HMSRemotePeer extends HMSPeer { ? HMSNetworkQuality.fromMap(map["network_quality"]) : null, joinedAt: map.containsKey("joined_at") - ? HMSDateExtension.convertDate(map["joined_at"]) + ? HMSDateExtension.convertDateFromEpoch(map["joined_at"]) : null, updatedAt: map.containsKey("updated_at") - ? HMSDateExtension.convertDate(map["updated_at"]) + ? HMSDateExtension.convertDateFromEpoch(map["updated_at"]) : null, ); diff --git a/packages/hmssdk_flutter/lib/src/model/hms_rtmp_streaming_state.dart b/packages/hmssdk_flutter/lib/src/model/hms_rtmp_streaming_state.dart index 6b3d72baf..65b46dc8e 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_rtmp_streaming_state.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_rtmp_streaming_state.dart @@ -17,7 +17,7 @@ class HMSRtmpStreamingState { error: map["error"] != null ? HMSException.fromMap(map) : null, running: map['running'], startedAt: map['started_at'] != null - ? HMSDateExtension.convertDate(map['started_at']) + ? HMSDateExtension.convertDateFromString(map['started_at']) : null); } } diff --git a/packages/hmssdk_flutter/lib/src/model/hms_server_recording_state.dart b/packages/hmssdk_flutter/lib/src/model/hms_server_recording_state.dart index fe051c427..127bd0c24 100644 --- a/packages/hmssdk_flutter/lib/src/model/hms_server_recording_state.dart +++ b/packages/hmssdk_flutter/lib/src/model/hms_server_recording_state.dart @@ -18,7 +18,7 @@ class HMSServerRecordingState { error: map["error"] != null ? HMSException.fromMap(map) : null, running: map['running'], startedAt: map['started_at'] != null - ? HMSDateExtension.convertDate(map['started_at']) + ? HMSDateExtension.convertDateFromString(map['started_at']) : null); } } diff --git a/packages/hmssdk_flutter/pubspec.yaml b/packages/hmssdk_flutter/pubspec.yaml index 68da5c1a4..e7149ca87 100644 --- a/packages/hmssdk_flutter/pubspec.yaml +++ b/packages/hmssdk_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: hmssdk_flutter description: Add Real Time Audio & Video calls, Interactive Live Streaming & Recording, Chat, HLS, RTMP, PiP, CallKit, VoIP, Video conferencing, Stream Player & WebRTC-based communications API -version: 1.9.1 +version: 1.9.2 homepage: https://www.100ms.live/ repository: https://github.com/100mslive/100ms-flutter issue_tracker: https://github.com/100mslive/100ms-flutter/issues