diff --git a/packages/hms_room_kit/example/pubspec.lock b/packages/hms_room_kit/example/pubspec.lock index 3d0e34b1d..f40ae70c1 100644 --- a/packages/hms_room_kit/example/pubspec.lock +++ b/packages/hms_room_kit/example/pubspec.lock @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.17.2" convert: dependency: transitive description: @@ -77,10 +77,10 @@ packages: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "2f9d2cbccb76127ba28528cb3ae2c2326a122446a83de5a056aaa3880d3882c5" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.3+7" crypto: dependency: transitive description: @@ -133,10 +133,10 @@ packages: dependency: transitive description: name: ffi - sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.0" file: dependency: transitive description: @@ -145,27 +145,11 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.0" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" - url: "https://pub.dev" - source: hosted - version: "1.1.0" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" - flutter_foreground_task: - dependency: transitive - description: - name: flutter_foreground_task - sha256: "9bcfcb43bba4a5446a056e723d21118ff6e184926b5557365c32c13caca157c2" - url: "https://pub.dev" - source: hosted - version: "6.1.3" flutter_linkify: dependency: transitive description: @@ -235,10 +219,10 @@ packages: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.1.0" http_parser: dependency: transitive description: @@ -259,34 +243,10 @@ packages: dependency: transitive description: name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" - url: "https://pub.dev" - source: hosted - version: "10.0.4" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" - url: "https://pub.dev" - source: hosted - version: "3.0.3" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "0.6.7" linkify: dependency: transitive description: @@ -315,34 +275,34 @@ packages: dependency: transitive description: name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.16+1" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.5.0" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.9.1" mime: dependency: transitive description: name: mime - sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e url: "https://pub.dev" source: hosted - version: "1.0.5" + version: "1.0.4" nested: dependency: transitive description: @@ -355,10 +315,10 @@ packages: dependency: transitive description: name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.8.3" path_parsing: dependency: transitive description: @@ -419,58 +379,50 @@ packages: dependency: transitive description: name: permission_handler - sha256: "74e962b7fad7ff75959161bb2c0ad8fe7f2568ee82621c9c2660b751146bfe44" + sha256: "284a66179cabdf942f838543e10413246f06424d960c92ba95c84439154fcac8" url: "https://pub.dev" source: hosted - version: "11.3.0" + version: "11.0.1" permission_handler_android: dependency: transitive description: name: permission_handler_android - sha256: "1acac6bae58144b442f11e66621c062aead9c99841093c38f5bcdcc24c1c3474" + sha256: f9fddd3b46109bd69ff3f9efa5006d2d309b7aec0f3c1c5637a60a2d5659e76e url: "https://pub.dev" source: hosted - version: "12.0.5" + version: "11.1.0" permission_handler_apple: dependency: transitive description: name: permission_handler_apple - sha256: bdafc6db74253abb63907f4e357302e6bb786ab41465e8635f362ee71fd8707b + sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5" url: "https://pub.dev" source: hosted - version: "9.4.0" - permission_handler_html: - dependency: transitive - description: - name: permission_handler_html - sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d" - url: "https://pub.dev" - source: hosted - version: "0.1.1" + version: "9.1.4" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface - sha256: "23dfba8447c076ab5be3dee9ceb66aad345c4a648f0cac292c77b1eb0e800b78" + sha256: "6760eb5ef34589224771010805bea6054ad28453906936f843a8cc4d3a55c4a4" url: "https://pub.dev" source: hosted - version: "4.2.0" + version: "3.12.0" permission_handler_windows: dependency: transitive description: name: permission_handler_windows - sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" + sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098 url: "https://pub.dev" source: hosted - version: "0.2.1" + version: "0.1.3" petitparser: dependency: transitive description: name: petitparser - sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 url: "https://pub.dev" source: hosted - version: "6.0.2" + version: "5.4.0" platform: dependency: transitive description: @@ -563,10 +515,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.1" shared_preferences_windows: dependency: transitive description: @@ -600,18 +552,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.1" string_scanner: dependency: transitive description: @@ -632,10 +584,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.6.0" tuple: dependency: transitive description: @@ -656,10 +608,10 @@ packages: dependency: transitive description: name: url_launcher - sha256: "0ecc004c62fd3ed36a2ffcbe0dd9700aee63bd7532d0b642a488b1ec310f492e" + sha256: c512655380d241a337521703af62d2c122bf7b77a46ff7dd750092aa9433499c url: "https://pub.dev" source: hosted - version: "6.2.5" + version: "6.2.4" url_launcher_android: dependency: transitive description: @@ -672,10 +624,10 @@ packages: dependency: transitive description: name: url_launcher_ios - sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5" + sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" url: "https://pub.dev" source: hosted - version: "6.2.5" + version: "6.2.4" url_launcher_linux: dependency: transitive description: @@ -704,10 +656,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d" + sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.0" url_launcher_windows: dependency: transitive description: @@ -720,10 +672,10 @@ packages: dependency: transitive description: name: uuid - sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 + sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" url: "https://pub.dev" source: hosted - version: "4.3.3" + version: "4.2.2" vector_graphics: dependency: transitive description: @@ -764,30 +716,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.2" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: e7d5ecd604e499358c5fe35ee828c0298a320d54455e791e9dcf73486bc8d9f0 - url: "https://pub.dev" - source: hosted - version: "14.1.0" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.1.4-beta" win32: dependency: transitive description: name: win32 - sha256: "8cb58b45c47dcb42ab3651533626161d6b67a2921917d8d429791f76972b3480" + sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574 url: "https://pub.dev" source: hosted - version: "5.3.0" + version: "5.1.1" xdg_directories: dependency: transitive description: @@ -800,10 +744,10 @@ packages: dependency: transitive description: name: xml - sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" url: "https://pub.dev" source: hosted - version: "6.5.0" + version: "6.3.0" sdks: - dart: ">=3.3.0 <4.0.0" - flutter: ">=3.19.0" + dart: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" 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 7e1f436e9..fc25e44bc 100644 --- a/packages/hms_room_kit/lib/src/common/utility_functions.dart +++ b/packages/hms_room_kit/lib/src/common/utility_functions.dart @@ -6,7 +6,6 @@ import 'dart:math' as math; ///Package imports import 'package:flutter/material.dart'; -import 'package:flutter_foreground_task/flutter_foreground_task.dart'; import 'package:hmssdk_flutter/hmssdk_flutter.dart'; import 'package:permission_handler/permission_handler.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -453,23 +452,4 @@ class Utilities { return ""; } } - - static void initForegroundTask() { - FlutterForegroundTask.init( - androidNotificationOptions: AndroidNotificationOptions( - channelId: '100ms_flutter_notification', - channelName: '100ms Flutter Notification', - channelDescription: - 'This notification appears when the foreground service is running.', - channelImportance: NotificationChannelImportance.LOW, - priority: NotificationPriority.LOW, - iconData: const NotificationIconData( - resType: ResourceType.mipmap, - resPrefix: ResourcePrefix.ic, - name: 'launcher', - )), - iosNotificationOptions: - const IOSNotificationOptions(showNotification: false), - foregroundTaskOptions: const ForegroundTaskOptions()); - } } diff --git a/packages/hms_room_kit/lib/src/meeting/meeting_page.dart b/packages/hms_room_kit/lib/src/meeting/meeting_page.dart index e46dac16d..beb80e001 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_page.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_page.dart @@ -4,7 +4,6 @@ import 'dart:math'; ///Package imports import 'package:flutter/material.dart'; -import 'package:flutter_foreground_task/flutter_foreground_task.dart'; import 'package:provider/provider.dart'; import 'package:tuple/tuple.dart'; import 'package:hmssdk_flutter/hmssdk_flutter.dart'; @@ -50,7 +49,6 @@ class _MeetingPageState extends State { void initState() { super.initState(); checkAudioState(); - _enableForegroundService(); _visibilityController = MeetingNavigationVisibilityController(); _visibilityController!.startTimerToHideButtons(); } @@ -65,10 +63,6 @@ class _MeetingPageState extends State { widget.currentAudioDeviceMode; } - void _enableForegroundService() { - context.read().initForegroundTask(); - } - bool showError(int? errorCode) { if (errorCode != null) { List errorCodes = [1003, 2000, 4005, 424, 404]; @@ -80,360 +74,342 @@ class _MeetingPageState extends State { @override Widget build(BuildContext context) { return WillPopScope( - onWillPop: () async { - bool ans = await UtilityComponents.onBackPressed(context) ?? false; - return ans; - }, - child: WithForegroundTask( - child: Selector>( - selector: (_, meetingStore) => Tuple4( - meetingStore.isRoomEnded, - meetingStore.hmsException, - meetingStore.isEndRoomCalled, - meetingStore.localPeer?.role.permissions.hlsStreaming ?? - false), - builder: (_, failureErrors, __) { - if (failureErrors.item1) { - WidgetsBinding.instance.addPostFrameCallback((_) { - Navigator.of(context).pushReplacement(MaterialPageRoute( - builder: (context) => HMSLeftRoomScreen( - isEndRoomCalled: failureErrors.item3, - doesRoleHasStreamPermission: failureErrors.item4, - ))); - }); - } - return Selector( - selector: (_, meetingStore) => meetingStore.isPipActive, - builder: (_, isPipActive, __) { - return isPipActive && Platform.isAndroid - ? const PipView() - : Scaffold( - backgroundColor: HMSThemeColors.backgroundDim, - resizeToAvoidBottomInset: false, - body: SafeArea( - child: Theme( - data: ThemeData( - brightness: Brightness.dark, - primaryColor: - HMSThemeColors.primaryDefault, - scaffoldBackgroundColor: - HMSThemeColors.backgroundDim), - child: SingleChildScrollView( - child: SizedBox( - width: MediaQuery.of(context).size.width, - height: MediaQuery.of(context) - .size - .height - - MediaQuery.of(context).padding.top - - MediaQuery.of(context).padding.bottom, - child: Stack( + onWillPop: () async { + bool ans = await UtilityComponents.onBackPressed(context) ?? false; + return ans; + }, + child: Selector>( + selector: (_, meetingStore) => Tuple4( + meetingStore.isRoomEnded, + meetingStore.hmsException, + meetingStore.isEndRoomCalled, + meetingStore.localPeer?.role.permissions.hlsStreaming ?? false), + builder: (_, failureErrors, __) { + if (failureErrors.item1) { + WidgetsBinding.instance.addPostFrameCallback((_) { + Navigator.of(context).pushReplacement(MaterialPageRoute( + builder: (context) => HMSLeftRoomScreen( + isEndRoomCalled: failureErrors.item3, + doesRoleHasStreamPermission: failureErrors.item4, + ))); + }); + } + return Selector( + selector: (_, meetingStore) => meetingStore.isPipActive, + builder: (_, isPipActive, __) { + return isPipActive && Platform.isAndroid + ? const PipView() + : Scaffold( + backgroundColor: HMSThemeColors.backgroundDim, + resizeToAvoidBottomInset: false, + body: SafeArea( + child: Theme( + data: ThemeData( + brightness: Brightness.dark, + primaryColor: HMSThemeColors.primaryDefault, + scaffoldBackgroundColor: + HMSThemeColors.backgroundDim), + child: SingleChildScrollView( + child: SizedBox( + width: MediaQuery.of(context).size.width, + height: MediaQuery.of(context).size.height - + MediaQuery.of(context).padding.top - + MediaQuery.of(context).padding.bottom, + child: Stack( + children: [ + ChangeNotifierProvider.value( + value: _visibilityController, + child: MeetingGridComponent( + visibilityController: + _visibilityController)), + Column( + mainAxisAlignment: + MainAxisAlignment.spaceBetween, children: [ - ChangeNotifierProvider.value( - value: _visibilityController, - child: MeetingGridComponent( - visibilityController: - _visibilityController)), - Column( - mainAxisAlignment: - MainAxisAlignment.spaceBetween, - children: [ - Padding( - padding: - const EdgeInsets.only( - left: 15, - right: 15, - top: 5, - bottom: 2), - child: ChangeNotifierProvider.value( - value: - _visibilityController, - child: - const MeetingHeader())), - Padding( - padding: - const EdgeInsets.only( - bottom: 8.0), - child: ChangeNotifierProvider.value( - value: - _visibilityController, - child: - const MeetingBottomNavigationBar())), - ], - ), + Padding( + padding: const EdgeInsets.only( + left: 15, + right: 15, + top: 5, + bottom: 2), + child: ChangeNotifierProvider.value( + value: _visibilityController, + child: + const MeetingHeader())), + Padding( + padding: const EdgeInsets.only( + bottom: 8.0), + child: ChangeNotifierProvider.value( + value: _visibilityController, + child: + const MeetingBottomNavigationBar())), + ], + ), - ///This gets rendered when the previewForRole method is called - ///This is used to show the preview for role component - Selector< - MeetingStore, - Tuple3< - HMSLocalVideoTrack?, - HMSLocalAudioTrack?, - HMSRoleChangeRequest?>>( - selector: (_, meetingStore) => Tuple3( - meetingStore - .previewForRoleVideoTrack, - meetingStore - .previewForRoleAudioTrack, - meetingStore - .currentRoleChangeRequest), - builder: (_, previewForRoleTracks, - __) { - ///If the preview for role tracks are not null - ///or role change request is not null - ///we show the preview for role component - ///else we show and empty Container - if (previewForRoleTracks.item1 != null || - previewForRoleTracks - .item2 != - null || - previewForRoleTracks - .item3 != - null) { - WidgetsBinding.instance - .addPostFrameCallback( - (timeStamp) { - ///For preview for role component we use the [showGeneralDialog] - showGeneralDialog( - context: context, - pageBuilder: - (ctx, _, __) { - return ListenableProvider - .value( - value: context.read< - MeetingStore>(), - child: Scaffold( - body: SafeArea( - child: - Container( - color: HMSThemeColors - .backgroundDim, - height: MediaQuery.of( + ///This gets rendered when the previewForRole method is called + ///This is used to show the preview for role component + Selector< + MeetingStore, + Tuple3< + HMSLocalVideoTrack?, + HMSLocalAudioTrack?, + HMSRoleChangeRequest?>>( + selector: (_, meetingStore) => Tuple3( + meetingStore + .previewForRoleVideoTrack, + meetingStore + .previewForRoleAudioTrack, + meetingStore + .currentRoleChangeRequest), + builder: + (_, previewForRoleTracks, __) { + ///If the preview for role tracks are not null + ///or role change request is not null + ///we show the preview for role component + ///else we show and empty Container + if (previewForRoleTracks.item1 != null || + previewForRoleTracks.item2 != + null || + previewForRoleTracks.item3 != + null) { + WidgetsBinding.instance + .addPostFrameCallback( + (timeStamp) { + ///For preview for role component we use the [showGeneralDialog] + showGeneralDialog( + context: context, + pageBuilder: (ctx, _, __) { + return ListenableProvider + .value( + value: context.read< + MeetingStore>(), + child: Scaffold( + body: SafeArea( + child: Container( + color: HMSThemeColors + .backgroundDim, + height: + MediaQuery.of( context) .size .height, - width: MediaQuery.of( + width: + MediaQuery.of( context) .size .width, - ///We render the preview for role component - child: Stack( - children: [ - ///This renders the video component - ///[HMSTextureView] is only rendered if video is ON - /// - ///else we render the [HMSCircularAvatar] - Selector< - MeetingStore, - bool>( - selector: (_, meetingStore) => meetingStore + ///We render the preview for role component + child: Stack( + children: [ + ///This renders the video component + ///[HMSTextureView] is only rendered if video is ON + /// + ///else we render the [HMSCircularAvatar] + Selector< + MeetingStore, + bool>( + selector: (_, + meetingStore) => + meetingStore .isVideoOn, - builder: (_, - isVideoOn, - __) { - return Container( - height: MediaQuery.of(context).size.height, - width: MediaQuery.of(context).size.width, - color: HMSThemeColors.backgroundDim, - child: (isVideoOn && previewForRoleTracks.item1 != null) - ? Center( - child: HMSTextureView( - scaleType: ScaleType.SCALE_ASPECT_FILL, - track: previewForRoleTracks.item1!, - setMirror: true, - ), - ) - : Center( - child: HMSCircularAvatar(name: context.read().localPeer?.name ?? ""), - ), - ); - }), + builder: (_, + isVideoOn, + __) { + return Container( + height: MediaQuery.of(context) + .size + .height, + width: MediaQuery.of(context) + .size + .width, + color: + HMSThemeColors.backgroundDim, + child: (isVideoOn && previewForRoleTracks.item1 != null) + ? Center( + child: HMSTextureView( + scaleType: ScaleType.SCALE_ASPECT_FILL, + track: previewForRoleTracks.item1!, + setMirror: true, + ), + ) + : Center( + child: HMSCircularAvatar(name: context.read().localPeer?.name ?? ""), + ), + ); + }), - ///This renders the preview for role header - const PreviewForRoleHeader(), + ///This renders the preview for role header + const PreviewForRoleHeader(), - ///This renders the preview for role bottom sheet - PreviewForRoleBottomSheet( - meetingStore: - context.read(), - roleChangeRequest: context - .read() - .currentRoleChangeRequest, - ) - ], - ), - ), + ///This renders the preview for role bottom sheet + PreviewForRoleBottomSheet( + meetingStore: + context.read< + MeetingStore>(), + roleChangeRequest: context + .read< + MeetingStore>() + .currentRoleChangeRequest, + ) + ], ), ), - ); - }); - }); - } - return Container(); - }), + ), + ), + ); + }); + }); + } + return Container(); + }), - Selector( - selector: (_, meetingStore) => - meetingStore - .hmsTrackChangeRequest, - builder: (_, - hmsTrackChangeRequest, __) { - if (hmsTrackChangeRequest != - null) { - HMSTrackChangeRequest - currentRequest = - hmsTrackChangeRequest; - context - .read() - .hmsTrackChangeRequest = - null; - WidgetsBinding.instance - .addPostFrameCallback( - (_) { - UtilityComponents - .showTrackChangeDialog( - context, - currentRequest); - }); - } - return const SizedBox(); - }), - Selector( - selector: (_, meetingStore) => - meetingStore - .showAudioDeviceChangePopup, - builder: (_, - showAudioDeviceChangePopup, - __) { - if (showAudioDeviceChangePopup) { - context - .read() - .showAudioDeviceChangePopup = - false; - WidgetsBinding.instance - .addPostFrameCallback( - (_) { - showDialog( - context: context, - builder: (_) => - AudioDeviceChangeDialog( - currentAudioDevice: context - .read< - MeetingStore>() - .currentAudioOutputDevice!, - audioDevicesList: context - .read< - MeetingStore>() - .availableAudioOutputDevices, - changeAudioDevice: - (audioDevice) { - context - .read< - MeetingStore>() - .switchAudioOutput( - audioDevice: - audioDevice); - }, - )); - }); - } - return const SizedBox(); - }), - Selector< - MeetingStore, - Tuple2, - int>>( - selector: (_, meetingStore) => - Tuple2( - meetingStore.toasts, - meetingStore - .toasts.length), - builder: (_, toastsItem, __) { - if (toastsItem.item1.isEmpty) { - return Container(); - } - return Stack( - children: toastsItem.item1 - .sublist( - 0, - min( - 3, - toastsItem - .item2)) - .asMap() - .entries - .map((toasts) { - var meetingStore = context - .read(); - return ChangeNotifierProvider - .value( - value: - _visibilityController, - child: ToastWidget( - toast: toasts.value, - index: toasts.key, - toastsCount: - toastsItem.item2, - meetingStore: - meetingStore), - ); - }).toList()); - }), - Selector( - selector: (_, meetingStore) => - meetingStore.reconnecting, - builder: (_, reconnecting, __) { - if (reconnecting) { - return UtilityComponents - .showReconnectingDialog( - context); - } - return const SizedBox(); - }), - if (HMSTheme - .HMSRoomLayout - .roleLayoutData - ?.screens - ?.preview - ?.joinForm - ?.joinBtnType == - HMSTheme.JoinButtonType - .JOIN_BTN_TYPE_JOIN_AND_GO_LIVE) - Selector>( - selector: (_, meetingStore) => - Tuple2( - meetingStore - .isHLSStarting, - meetingStore - .peerTracks.length), - builder: (_, hlsData, __) { - return (!hlsData.item1 || - hlsData.item2 == 0) - ? const SizedBox() - : HMSHLSStartingOverlay(); - }), - if (failureErrors.item2 != null) - if (showError(failureErrors - .item2?.code?.errorCode)) - UtilityComponents - .showFailureError( - failureErrors.item2!, - context, - () => context - .read() - .leave()), - ], - ), - ), + Selector( + selector: (_, meetingStore) => + meetingStore + .hmsTrackChangeRequest, + builder: + (_, hmsTrackChangeRequest, __) { + if (hmsTrackChangeRequest != null) { + HMSTrackChangeRequest + currentRequest = + hmsTrackChangeRequest; + context + .read() + .hmsTrackChangeRequest = null; + WidgetsBinding.instance + .addPostFrameCallback((_) { + UtilityComponents + .showTrackChangeDialog( + context, + currentRequest); + }); + } + return const SizedBox(); + }), + Selector( + selector: (_, meetingStore) => + meetingStore + .showAudioDeviceChangePopup, + builder: (_, + showAudioDeviceChangePopup, __) { + if (showAudioDeviceChangePopup) { + context + .read() + .showAudioDeviceChangePopup = + false; + WidgetsBinding.instance + .addPostFrameCallback((_) { + showDialog( + context: context, + builder: (_) => + AudioDeviceChangeDialog( + currentAudioDevice: context + .read< + MeetingStore>() + .currentAudioOutputDevice!, + audioDevicesList: context + .read< + MeetingStore>() + .availableAudioOutputDevices, + changeAudioDevice: + (audioDevice) { + context + .read< + MeetingStore>() + .switchAudioOutput( + audioDevice: + audioDevice); + }, + )); + }); + } + return const SizedBox(); + }), + Selector, int>>( + selector: (_, meetingStore) => Tuple2( + meetingStore.toasts, + meetingStore.toasts.length), + builder: (_, toastsItem, __) { + if (toastsItem.item1.isEmpty) { + return Container(); + } + return Stack( + children: toastsItem.item1 + .sublist( + 0, + min(3, + toastsItem.item2)) + .asMap() + .entries + .map((toasts) { + var meetingStore = + context.read(); + return ChangeNotifierProvider + .value( + value: _visibilityController, + child: ToastWidget( + toast: toasts.value, + index: toasts.key, + toastsCount: + toastsItem.item2, + meetingStore: meetingStore), + ); + }).toList()); + }), + Selector( + selector: (_, meetingStore) => + meetingStore.reconnecting, + builder: (_, reconnecting, __) { + if (reconnecting) { + return UtilityComponents + .showReconnectingDialog( + context); + } + return const SizedBox(); + }), + if (HMSTheme + .HMSRoomLayout + .roleLayoutData + ?.screens + ?.preview + ?.joinForm + ?.joinBtnType == + HMSTheme.JoinButtonType + .JOIN_BTN_TYPE_JOIN_AND_GO_LIVE) + Selector>( + selector: (_, meetingStore) => + Tuple2( + meetingStore.isHLSStarting, + meetingStore + .peerTracks.length), + builder: (_, hlsData, __) { + return (!hlsData.item1 || + hlsData.item2 == 0) + ? const SizedBox() + : HMSHLSStartingOverlay(); + }), + if (failureErrors.item2 != null) + if (showError(failureErrors + .item2?.code?.errorCode)) + UtilityComponents.showFailureError( + failureErrors.item2!, + context, + () => context + .read() + .leave()), + ], ), ), ), - ); - }); - }), - )); + ), + ), + ); + }); + }), + ); } } 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 3b8bdd719..31f04a758 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_store.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_store.dart @@ -9,7 +9,6 @@ import 'dart:io'; import 'package:hmssdk_flutter/hmssdk_flutter.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_foreground_task/flutter_foreground_task.dart'; import 'package:intl/intl.dart'; //Project imports @@ -839,6 +838,7 @@ class MeetingStore extends ChangeNotifier room.hmshlsStreamingState?.state ?? HMSStreamingState.none; setParticipantsList(roles); + toggleAlwaysScreenOn(); for (HMSPeer each in room.peers!) { if (each.isLocal) { int index = peerTracks @@ -941,12 +941,6 @@ class MeetingStore extends ChangeNotifier }); } - void initForegroundTask() { - FlutterForegroundTask.startService( - notificationTitle: "100ms foreground service running", - notificationText: "Tap to return to the app"); - } - void getSpotlightPeer() async { String? metadata = await _hmsSessionStore?.getSessionMetadataForKey(key: "spotlight"); @@ -1365,7 +1359,6 @@ class MeetingStore extends ChangeNotifier void resetForegroundTaskAndOrientation() { setLandscapeLock(false); - FlutterForegroundTask.stopService(); } // void clearPIPState() { diff --git a/packages/hms_room_kit/lib/src/meeting_screen_controller.dart b/packages/hms_room_kit/lib/src/meeting_screen_controller.dart index 4a0542854..18c94bd96 100644 --- a/packages/hms_room_kit/lib/src/meeting_screen_controller.dart +++ b/packages/hms_room_kit/lib/src/meeting_screen_controller.dart @@ -95,7 +95,6 @@ class _MeetingScreenControllerState extends State { null) { _setHLSPlayerStore(); } - Utilities.initForegroundTask(); } ///This function joins the room only if the name is not empty 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 09dbf06f1..f3a39576d 100644 --- a/packages/hms_room_kit/lib/src/preview/preview_store.dart +++ b/packages/hms_room_kit/lib/src/preview/preview_store.dart @@ -227,7 +227,6 @@ class PreviewStore extends ChangeNotifier Constant.onLeave!(); } HMSThemeColors.resetLayoutColors(); - hmsSDKInteractor.toggleAlwaysScreenOn(); destroy(); } diff --git a/packages/hms_room_kit/pubspec.lock b/packages/hms_room_kit/pubspec.lock index 0f71e8475..51630e56a 100644 --- a/packages/hms_room_kit/pubspec.lock +++ b/packages/hms_room_kit/pubspec.lock @@ -61,10 +61,10 @@ packages: dependency: "direct main" description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.17.2" convert: dependency: transitive description: @@ -77,10 +77,10 @@ packages: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "2f9d2cbccb76127ba28528cb3ae2c2326a122446a83de5a056aaa3880d3882c5" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.3+7" crypto: dependency: transitive description: @@ -125,10 +125,10 @@ packages: dependency: transitive description: name: ffi - sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.0" file: dependency: transitive description: @@ -137,27 +137,11 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.0" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" - url: "https://pub.dev" - source: hosted - version: "1.1.0" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" - flutter_foreground_task: - dependency: "direct main" - description: - name: flutter_foreground_task - sha256: "9bcfcb43bba4a5446a056e723d21118ff6e184926b5557365c32c13caca157c2" - url: "https://pub.dev" - source: hosted - version: "6.1.3" flutter_linkify: dependency: "direct main" description: @@ -212,10 +196,10 @@ packages: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.1.0" http_parser: dependency: transitive description: @@ -236,34 +220,10 @@ packages: dependency: transitive description: name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" - url: "https://pub.dev" - source: hosted - version: "10.0.4" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" - url: "https://pub.dev" - source: hosted - version: "3.0.3" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "0.6.7" linkify: dependency: transitive description: @@ -292,34 +252,34 @@ packages: dependency: transitive description: name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.16+1" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.5.0" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.9.1" mime: dependency: transitive description: name: mime - sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e url: "https://pub.dev" source: hosted - version: "1.0.5" + version: "1.0.4" nested: dependency: transitive description: @@ -332,10 +292,10 @@ packages: dependency: transitive description: name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.8.3" path_parsing: dependency: transitive description: @@ -396,58 +356,50 @@ packages: dependency: "direct main" description: name: permission_handler - sha256: "74e962b7fad7ff75959161bb2c0ad8fe7f2568ee82621c9c2660b751146bfe44" + sha256: "284a66179cabdf942f838543e10413246f06424d960c92ba95c84439154fcac8" url: "https://pub.dev" source: hosted - version: "11.3.0" + version: "11.0.1" permission_handler_android: dependency: transitive description: name: permission_handler_android - sha256: "1acac6bae58144b442f11e66621c062aead9c99841093c38f5bcdcc24c1c3474" + sha256: f9fddd3b46109bd69ff3f9efa5006d2d309b7aec0f3c1c5637a60a2d5659e76e url: "https://pub.dev" source: hosted - version: "12.0.5" + version: "11.1.0" permission_handler_apple: dependency: transitive description: name: permission_handler_apple - sha256: bdafc6db74253abb63907f4e357302e6bb786ab41465e8635f362ee71fd8707b + sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5" url: "https://pub.dev" source: hosted - version: "9.4.0" - permission_handler_html: - dependency: transitive - description: - name: permission_handler_html - sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d" - url: "https://pub.dev" - source: hosted - version: "0.1.1" + version: "9.1.4" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface - sha256: "23dfba8447c076ab5be3dee9ceb66aad345c4a648f0cac292c77b1eb0e800b78" + sha256: "6760eb5ef34589224771010805bea6054ad28453906936f843a8cc4d3a55c4a4" url: "https://pub.dev" source: hosted - version: "4.2.0" + version: "3.12.0" permission_handler_windows: dependency: transitive description: name: permission_handler_windows - sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" + sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098 url: "https://pub.dev" source: hosted - version: "0.2.1" + version: "0.1.3" petitparser: dependency: transitive description: name: petitparser - sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 url: "https://pub.dev" source: hosted - version: "6.0.2" + version: "5.4.0" platform: dependency: transitive description: @@ -540,10 +492,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.1" shared_preferences_windows: dependency: transitive description: @@ -577,18 +529,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.1" string_scanner: dependency: transitive description: @@ -609,10 +561,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.6.0" tuple: dependency: "direct main" description: @@ -633,10 +585,10 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "0ecc004c62fd3ed36a2ffcbe0dd9700aee63bd7532d0b642a488b1ec310f492e" + sha256: c512655380d241a337521703af62d2c122bf7b77a46ff7dd750092aa9433499c url: "https://pub.dev" source: hosted - version: "6.2.5" + version: "6.2.4" url_launcher_android: dependency: transitive description: @@ -649,10 +601,10 @@ packages: dependency: transitive description: name: url_launcher_ios - sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5" + sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" url: "https://pub.dev" source: hosted - version: "6.2.5" + version: "6.2.4" url_launcher_linux: dependency: transitive description: @@ -681,10 +633,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d" + sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.0" url_launcher_windows: dependency: transitive description: @@ -697,10 +649,10 @@ packages: dependency: transitive description: name: uuid - sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 + sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" url: "https://pub.dev" source: hosted - version: "4.3.3" + version: "4.2.2" vector_graphics: dependency: transitive description: @@ -741,30 +693,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.2" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: e7d5ecd604e499358c5fe35ee828c0298a320d54455e791e9dcf73486bc8d9f0 - url: "https://pub.dev" - source: hosted - version: "14.1.0" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.1.4-beta" win32: dependency: transitive description: name: win32 - sha256: "8cb58b45c47dcb42ab3651533626161d6b67a2921917d8d429791f76972b3480" + sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574 url: "https://pub.dev" source: hosted - version: "5.3.0" + version: "5.1.1" xdg_directories: dependency: transitive description: @@ -777,10 +721,10 @@ packages: dependency: transitive description: name: xml - sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" url: "https://pub.dev" source: hosted - version: "6.5.0" + version: "6.3.0" sdks: - dart: ">=3.3.0 <4.0.0" - flutter: ">=3.19.0" + dart: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" diff --git a/packages/hms_room_kit/pubspec.yaml b/packages/hms_room_kit/pubspec.yaml index 9034bab47..801db139c 100644 --- a/packages/hms_room_kit/pubspec.yaml +++ b/packages/hms_room_kit/pubspec.yaml @@ -31,7 +31,6 @@ dependencies: tuple: ^2.0.2 url_launcher: ^6.1.11 share_plus: ^7.0.2 - flutter_foreground_task: ^6.1.2 collection: ^1.17.0 dots_indicator: ^3.0.0 diff --git a/packages/hmssdk_flutter/example/android/build.gradle b/packages/hmssdk_flutter/example/android/build.gradle index 199387090..a0f4058ea 100755 --- a/packages/hmssdk_flutter/example/android/build.gradle +++ b/packages/hmssdk_flutter/example/android/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '+' + ext.kotlin_version = '1.9.0' repositories { google() mavenCentral() @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.4.2' + classpath 'com.android.tools.build:gradle:7.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.8' classpath 'com.google.gms:google-services:4.3.15' diff --git a/packages/hmssdk_flutter/example/pubspec.lock b/packages/hmssdk_flutter/example/pubspec.lock index 1cea3ebb5..b1eba0a04 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: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.17.2" convert: dependency: transitive description: @@ -85,10 +85,10 @@ packages: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "2f9d2cbccb76127ba28528cb3ae2c2326a122446a83de5a056aaa3880d3882c5" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.3+7" crypto: dependency: transitive description: @@ -133,10 +133,10 @@ packages: dependency: transitive description: name: ffi - sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.0" file: dependency: transitive description: @@ -225,14 +225,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.1.4+2" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" - url: "https://pub.dev" - source: hosted - version: "1.1.0" flutter: dependency: "direct main" description: flutter @@ -307,10 +299,10 @@ packages: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.1.0" http_parser: dependency: transitive description: @@ -335,30 +327,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.6.7" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" - url: "https://pub.dev" - source: hosted - version: "10.0.4" - leak_tracker_flutter_testing: - dependency: transitive - description: - name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" - url: "https://pub.dev" - source: hosted - version: "3.0.3" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.dev" - source: hosted - version: "3.0.1" linkify: dependency: transitive description: @@ -379,34 +347,34 @@ packages: dependency: transitive description: name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.16+1" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.5.0" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.9.1" mime: dependency: transitive description: name: mime - sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e url: "https://pub.dev" source: hosted - version: "1.0.5" + version: "1.0.4" nested: dependency: transitive description: @@ -435,10 +403,10 @@ packages: dependency: transitive description: name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.8.3" path_parsing: dependency: transitive description: @@ -499,58 +467,50 @@ packages: dependency: transitive description: name: permission_handler - sha256: "74e962b7fad7ff75959161bb2c0ad8fe7f2568ee82621c9c2660b751146bfe44" + sha256: "284a66179cabdf942f838543e10413246f06424d960c92ba95c84439154fcac8" url: "https://pub.dev" source: hosted - version: "11.3.0" + version: "11.0.1" permission_handler_android: dependency: transitive description: name: permission_handler_android - sha256: "1acac6bae58144b442f11e66621c062aead9c99841093c38f5bcdcc24c1c3474" + sha256: f9fddd3b46109bd69ff3f9efa5006d2d309b7aec0f3c1c5637a60a2d5659e76e url: "https://pub.dev" source: hosted - version: "12.0.5" + version: "11.1.0" permission_handler_apple: dependency: transitive description: name: permission_handler_apple - sha256: bdafc6db74253abb63907f4e357302e6bb786ab41465e8635f362ee71fd8707b + sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5" url: "https://pub.dev" source: hosted - version: "9.4.0" - permission_handler_html: - dependency: transitive - description: - name: permission_handler_html - sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d" - url: "https://pub.dev" - source: hosted - version: "0.1.1" + version: "9.1.4" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface - sha256: "23dfba8447c076ab5be3dee9ceb66aad345c4a648f0cac292c77b1eb0e800b78" + sha256: "6760eb5ef34589224771010805bea6054ad28453906936f843a8cc4d3a55c4a4" url: "https://pub.dev" source: hosted - version: "4.2.0" + version: "3.12.0" permission_handler_windows: dependency: transitive description: name: permission_handler_windows - sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" + sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098 url: "https://pub.dev" source: hosted - version: "0.2.1" + version: "0.1.3" petitparser: dependency: transitive description: name: petitparser - sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 url: "https://pub.dev" source: hosted - version: "6.0.2" + version: "5.4.0" platform: dependency: transitive description: @@ -651,10 +611,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.1" shared_preferences_windows: dependency: transitive description: @@ -688,18 +648,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.1" string_scanner: dependency: transitive description: @@ -720,10 +680,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.6.0" tuple: dependency: transitive description: @@ -768,10 +728,10 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "0ecc004c62fd3ed36a2ffcbe0dd9700aee63bd7532d0b642a488b1ec310f492e" + sha256: c512655380d241a337521703af62d2c122bf7b77a46ff7dd750092aa9433499c url: "https://pub.dev" source: hosted - version: "6.2.5" + version: "6.2.4" url_launcher_android: dependency: transitive description: @@ -784,10 +744,10 @@ packages: dependency: transitive description: name: url_launcher_ios - sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5" + sha256: "75bb6fe3f60070407704282a2d295630cab232991eb52542b18347a8a941df03" url: "https://pub.dev" source: hosted - version: "6.2.5" + version: "6.2.4" url_launcher_linux: dependency: transitive description: @@ -816,10 +776,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d" + sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.0" url_launcher_windows: dependency: transitive description: @@ -832,10 +792,10 @@ packages: dependency: "direct main" description: name: uuid - sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 + sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" url: "https://pub.dev" source: hosted - version: "4.3.3" + version: "4.2.2" vector_graphics: dependency: transitive description: @@ -876,30 +836,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.2" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: e7d5ecd604e499358c5fe35ee828c0298a320d54455e791e9dcf73486bc8d9f0 - url: "https://pub.dev" - source: hosted - version: "14.1.0" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.1.4-beta" win32: dependency: transitive description: name: win32 - sha256: "8cb58b45c47dcb42ab3651533626161d6b67a2921917d8d429791f76972b3480" + sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574 url: "https://pub.dev" source: hosted - version: "5.3.0" + version: "5.1.1" xdg_directories: dependency: transitive description: @@ -912,10 +864,10 @@ packages: dependency: transitive description: name: xml - sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" url: "https://pub.dev" source: hosted - version: "6.5.0" + version: "6.3.0" sdks: - dart: ">=3.3.0 <4.0.0" - flutter: ">=3.19.0" + dart: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0"