Skip to content

Commit

Permalink
FLUT-277: Updated to focus_detector_v2 so that latest version of `v…
Browse files Browse the repository at this point in the history
…isibility_detector` is used (#1735)

* added focus_detector_v2 package

* removed version locking from Example app

* 🤖 Automated Format and Fix

---------

Co-authored-by: Decoder07 <[email protected]>
Co-authored-by: Decoder07 <[email protected]>
  • Loading branch information
3 people authored Mar 21, 2024
1 parent 725c1d7 commit 4fc15e7
Show file tree
Hide file tree
Showing 14 changed files with 249 additions and 143 deletions.
32 changes: 24 additions & 8 deletions packages/hms_room_kit/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
focus_detector:
focus_detector_v2:
dependency: transitive
description:
name: focus_detector
sha256: "05e32d9dd378cd54f1a3f9ce813c05156f28eb83f8e68f5bf1a37e9cdb21af1c"
name: focus_detector_v2
sha256: d4abc4c755ba894238ab92f42f6eee7ade78aa285199e112f45926c7053f90c6
url: "https://pub.dev"
source: hosted
version: "2.0.1"
version: "3.1.0+1"
google_fonts:
dependency: "direct main"
description:
Expand Down Expand Up @@ -402,10 +402,18 @@ packages:
dependency: transitive
description:
name: permission_handler_apple
sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5"
sha256: "8c90be7f8244eeb2bbfa4248221d38a66ca3e3cc3ab967a25a2529d86eee7c45"
url: "https://pub.dev"
source: hosted
version: "9.1.4"
version: "9.4.1"
permission_handler_html:
dependency: transitive
description:
name: permission_handler_html
sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d"
url: "https://pub.dev"
source: hosted
version: "0.1.1"
permission_handler_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -719,10 +727,18 @@ packages:
dependency: transitive
description:
name: visibility_detector
sha256: ec932527913f32f65aa01d3a393504240b9e9021ecc77123f017755605e48832
sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420
url: "https://pub.dev"
source: hosted
version: "0.4.0+2"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: e7d5ecd604e499358c5fe35ee828c0298a320d54455e791e9dcf73486bc8d9f0
url: "https://pub.dev"
source: hosted
version: "0.2.2"
version: "14.1.0"
web:
dependency: transitive
description:
Expand Down
5 changes: 3 additions & 2 deletions packages/hms_room_kit/lib/src/meeting/meeting_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,9 @@ class MeetingStore extends ChangeNotifier
if (each.isLocal) {
int index = peerTracks
.indexWhere((element) => element.uid == "${each.peerId}mainVideo");
if (index == -1) {
///We add tile for local peer irrespective of whether it can publish or not
if (index == -1 &&
(each.audioTrack != null || each.videoTrack != null)) {
///We add tile for local peer only if the peer can publish audio or video
peerTracks.add(PeerTrackNode(
peer: each,
uid: "${each.peerId}mainVideo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'dart:async';

///Package imports
import 'package:flutter/material.dart';
import 'package:focus_detector/focus_detector.dart';
import 'package:focus_detector_v2/focus_detector_v2.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:provider/provider.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:focus_detector/focus_detector.dart';
import 'package:focus_detector_v2/focus_detector_v2.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:provider/provider.dart';

Expand Down
32 changes: 24 additions & 8 deletions packages/hms_room_kit/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
focus_detector:
focus_detector_v2:
dependency: "direct main"
description:
name: focus_detector
sha256: "05e32d9dd378cd54f1a3f9ce813c05156f28eb83f8e68f5bf1a37e9cdb21af1c"
name: focus_detector_v2
sha256: d4abc4c755ba894238ab92f42f6eee7ade78aa285199e112f45926c7053f90c6
url: "https://pub.dev"
source: hosted
version: "2.0.1"
version: "3.1.0+1"
google_fonts:
dependency: "direct main"
description:
Expand Down Expand Up @@ -379,10 +379,18 @@ packages:
dependency: transitive
description:
name: permission_handler_apple
sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5"
sha256: "8c90be7f8244eeb2bbfa4248221d38a66ca3e3cc3ab967a25a2529d86eee7c45"
url: "https://pub.dev"
source: hosted
version: "9.1.4"
version: "9.4.1"
permission_handler_html:
dependency: transitive
description:
name: permission_handler_html
sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d"
url: "https://pub.dev"
source: hosted
version: "0.1.1"
permission_handler_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -696,10 +704,18 @@ packages:
dependency: transitive
description:
name: visibility_detector
sha256: ec932527913f32f65aa01d3a393504240b9e9021ecc77123f017755605e48832
sha256: dd5cc11e13494f432d15939c3aa8ae76844c42b723398643ce9addb88a5ed420
url: "https://pub.dev"
source: hosted
version: "0.4.0+2"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: e7d5ecd604e499358c5fe35ee828c0298a320d54455e791e9dcf73486bc8d9f0
url: "https://pub.dev"
source: hosted
version: "0.2.2"
version: "14.1.0"
web:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/hms_room_kit/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
flutter_svg: ^2.0.5
path_provider: ^2.0.15
dropdown_button2: ^2.1.4
focus_detector: ^2.0.1
focus_detector_v2: ^3.1.0+1
flutter_linkify: ^6.0.0
tuple: ^2.0.2
url_launcher: ^6.1.11
Expand Down
4 changes: 2 additions & 2 deletions packages/hmssdk_flutter/example/android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.899.0)
aws-partitions (1.898.0)
aws-sdk-core (3.191.4)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
Expand All @@ -24,7 +24,7 @@ GEM
aws-sdk-kms (1.78.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.146.0)
aws-sdk-s3 (1.145.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.8)
Expand Down
2 changes: 1 addition & 1 deletion packages/hmssdk_flutter/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ flutter {

dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.firebase:firebase-crashlytics:18.3.6'
implementation 'com.google.firebase:firebase-crashlytics:18.6.2'
}

apply plugin: 'com.google.gms.google-services'
Expand Down
4 changes: 2 additions & 2 deletions packages/hmssdk_flutter/example/ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.899.0)
aws-partitions (1.898.0)
aws-sdk-core (3.191.4)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
Expand All @@ -24,7 +24,7 @@ GEM
aws-sdk-kms (1.78.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.146.0)
aws-sdk-s3 (1.145.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.8)
Expand Down
97 changes: 48 additions & 49 deletions packages/hmssdk_flutter/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
PODS:
- Firebase/CoreOnly (10.18.0):
- FirebaseCore (= 10.18.0)
- Firebase/Crashlytics (10.18.0):
- Firebase/CoreOnly (10.22.0):
- FirebaseCore (= 10.22.0)
- Firebase/Crashlytics (10.22.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 10.18.0)
- Firebase/DynamicLinks (10.18.0):
- FirebaseCrashlytics (~> 10.22.0)
- Firebase/DynamicLinks (10.22.0):
- Firebase/CoreOnly
- FirebaseDynamicLinks (~> 10.18.0)
- Firebase/Performance (10.18.0):
- FirebaseDynamicLinks (~> 10.22.0)
- Firebase/Performance (10.22.0):
- Firebase/CoreOnly
- FirebasePerformance (~> 10.18.0)
- firebase_core (2.24.2):
- Firebase/CoreOnly (= 10.18.0)
- FirebasePerformance (~> 10.22.0)
- firebase_core (2.27.1):
- Firebase/CoreOnly (= 10.22.0)
- Flutter
- firebase_crashlytics (3.4.9):
- Firebase/Crashlytics (= 10.18.0)
- firebase_crashlytics (3.4.19):
- Firebase/Crashlytics (= 10.22.0)
- firebase_core
- Flutter
- firebase_dynamic_links (5.4.8):
- Firebase/DynamicLinks (= 10.18.0)
- firebase_dynamic_links (5.4.18):
- Firebase/DynamicLinks (= 10.22.0)
- firebase_core
- Flutter
- firebase_performance (0.9.3-8):
- Firebase/Performance (= 10.18.0)
- firebase_performance (0.9.3-18):
- Firebase/Performance (= 10.22.0)
- firebase_core
- Flutter
- FirebaseABTesting (10.23.0):
- FirebaseCore (~> 10.0)
- FirebaseCore (10.18.0):
- FirebaseCore (10.22.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreExtension (10.23.0):
- FirebaseCoreExtension (10.22.0):
- FirebaseCore (~> 10.0)
- FirebaseCoreInternal (10.23.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseCrashlytics (10.18.0):
- FirebaseCrashlytics (10.22.0):
- FirebaseCore (~> 10.5)
- FirebaseInstallations (~> 10.0)
- FirebaseSessions (~> 10.5)
- GoogleDataTransport (~> 9.2)
- GoogleUtilities/Environment (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (~> 2.1)
- FirebaseDynamicLinks (10.18.0):
- FirebaseDynamicLinks (10.22.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (10.23.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebasePerformance (10.18.0):
- FirebasePerformance (10.22.0):
- FirebaseCore (~> 10.5)
- FirebaseInstallations (~> 10.0)
- FirebaseRemoteConfig (~> 10.0)
Expand All @@ -59,8 +59,8 @@ PODS:
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/ISASwizzler (~> 7.8)
- GoogleUtilities/MethodSwizzler (~> 7.8)
- nanopb (< 2.30910.0, >= 2.30908.0)
- FirebaseRemoteConfig (10.23.0):
- nanopb (< 2.30911.0, >= 2.30908.0)
- FirebaseRemoteConfig (10.22.0):
- FirebaseABTesting (~> 10.0)
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
Expand Down Expand Up @@ -116,11 +116,11 @@ PODS:
- HMSSDK (= 1.7.0)
- HMSWebRTC (1.0.5118)
- MTBBarcodeScanner (5.0.11)
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- nanopb (2.30910.0):
- nanopb/decode (= 2.30910.0)
- nanopb/encode (= 2.30910.0)
- nanopb/decode (2.30910.0)
- nanopb/encode (2.30910.0)
- package_info_plus (0.4.5):
- Flutter
- path_provider_foundation (0.0.1):
Expand Down Expand Up @@ -222,24 +222,23 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06
firebase_core: 0af4a2b24f62071f9bf283691c0ee41556dcb3f5
firebase_crashlytics: 4b91b8ad60ee7c168fe88979f84c9573a729de7a
firebase_dynamic_links: b626a11f5eb02033981ae377377c3f297eb4c1b0
firebase_performance: 2183122a3c7a650c80d8c164e9e28f13c4c62fc7
FirebaseABTesting: aec61ed9a34d85a95e2013a3fdf051426a2419df
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f
FirebaseCoreExtension: cb88851781a24e031d1b58e0bd01eb1f46b044b5
FirebaseCoreInternal: 6a292e6f0bece1243a737e81556e56e5e19282e3
FirebaseCrashlytics: 86d5bce01f42fa1db265f87ff1d591f04db610ec
FirebaseDynamicLinks: c37307441c53838d66a9650dabca9e0459502527
FirebaseInstallations: 42d6ead4605d6eafb3b6683674e80e18eb6f2c35
FirebasePerformance: c406a9198d8aabfbac281b42855f5122fc1bcf69
FirebaseRemoteConfig: 70ebe9542cf5242d762d1c0b4d53bfc472e0a4ce
FirebaseRemoteConfigInterop: cbc87ffa4932719a7911a08e94510f18f026f5a7
FirebaseSessions: f06853e30f99fe42aa511014d7ee6c8c319f08a3
FirebaseSharedSwift: c92645b392db3c41a83a0aa967de16f8bad25568
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Firebase: 797fd7297b7e1be954432743a0b3f90038e45a71
firebase_core: d6dfb4cb86a9ebd92464bb8736075fe967211c97
firebase_crashlytics: 0be8c89a6b91fd964a7a8fe574109fd528d310bb
firebase_dynamic_links: 9129abba70e20f931bac9c2d630ab8a68cacb591
firebase_performance: e664b27462836c2cbbcbb3bfca8d5598987fce81
FirebaseABTesting: 66d2594b36d4ff6e7d3c8719802100990de05857
FirebaseCore: 0326ec9b05fbed8f8716cddbf0e36894a13837f7
FirebaseCoreExtension: 6394c00b887d0bebadbc7049c464aa0cbddc5d41
FirebaseCoreInternal: bca337352024b18424a61e478460547d46c4c753
FirebaseCrashlytics: e568d68ce89117c80cddb04073ab9018725fbb8c
FirebaseDynamicLinks: 25ed0e87b0afb4769cc0ec8e942a532219abac28
FirebaseInstallations: 763814908793c0da14c18b3dcffdec71e29ed55e
FirebasePerformance: 095debad1fc8d7d73148a835fcaec9e528946166
FirebaseRemoteConfig: e1b992a94d3674dddbcaf5d0d31a0312156ceb1c
FirebaseSessions: cd97fb07674f3906619c871eefbd260a1546c9d3
FirebaseSharedSwift: 48076404e6e52372290d15a07d2ed1d2f1754023
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_foreground_task: 21ef182ab0a29a3005cc72cd70e5f45cb7f7f817
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
Expand All @@ -250,10 +249,10 @@ SPEC CHECKSUMS:
hmssdk_flutter: dd0d9bcb8fb90c54319d0114e917c4607c0bc382
HMSWebRTC: 4487c7200f1e9358412c1d8cd974edd2766467dc
MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
nanopb: 438bc412db1928dac798aa6fd75726007be04262
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
qr_code_scanner: bb67d64904c3b9658ada8c402e8b4d406d5d796e
Expand Down
Loading

0 comments on commit 4fc15e7

Please sign in to comment.