diff --git a/dogfooding/ios/Runner.xcodeproj/project.pbxproj b/dogfooding/ios/Runner.xcodeproj/project.pbxproj index f695360e3..100d2ff8c 100644 --- a/dogfooding/ios/Runner.xcodeproj/project.pbxproj +++ b/dogfooding/ios/Runner.xcodeproj/project.pbxproj @@ -265,7 +265,6 @@ 6099701D2AE95D8E00EAC270 /* Embed Foundation Extensions */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, B0C7CCC1D4BA2BE364A3B947 /* [CP] Embed Pods Frameworks */, - F3D53FC8035587DC253BE5F4 /* [CP] Copy Pods Resources */, 1F1E64B33B1059FB96103230 /* FlutterFire: "flutterfire upload-crashlytics-symbols" */, ); buildRules = ( @@ -455,23 +454,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - F3D53FC8035587DC253BE5F4 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Copy Pods Resources"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ diff --git a/dogfooding/ios/Runner/AppDelegate.swift b/dogfooding/ios/Runner/AppDelegate.swift index b7a5ac141..ad03e0705 100644 --- a/dogfooding/ios/Runner/AppDelegate.swift +++ b/dogfooding/ios/Runner/AppDelegate.swift @@ -6,27 +6,28 @@ import stream_video_push_notification import stream_webrtc_flutter @main -@objc class AppDelegate: FlutterAppDelegate { +@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { private let CHANNEL = "io.getstream.video.flutter.dogfooding.channel" override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - GeneratedPluginRegistrant.register(with: self) - // Register for push notifications. StreamVideoPKDelegateManager.shared.registerForPushNotifications() UNUserNotificationCenter.current().delegate = self - let controller = window?.rootViewController as! FlutterViewController + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } + + func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { + GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) + let channel = FlutterMethodChannel( - name: CHANNEL, binaryMessenger: controller.binaryMessenger) + name: CHANNEL, binaryMessenger: engineBridge.applicationRegistrar.messenger()) channel.setMethodCallHandler { [weak self] (call, result) in self?.handleMethodCall(call: call, result: result) } - - return super.application(application, didFinishLaunchingWithOptions: launchOptions) } // This method will be called when notification is received diff --git a/dogfooding/ios/Runner/Info.plist b/dogfooding/ios/Runner/Info.plist index 745e6931f..5385b3df7 100644 --- a/dogfooding/ios/Runner/Info.plist +++ b/dogfooding/ios/Runner/Info.plist @@ -84,5 +84,26 @@ Grant access to your photo library to allow users access to send media on your device to a chat while on a call UIViewControllerBasedStatusBarAppearance + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneDelegateClassName + FlutterSceneDelegate + UISceneConfigurationName + flutter + UISceneStoryboardFile + Main + + + + diff --git a/dogfooding/pubspec.yaml b/dogfooding/pubspec.yaml index e006691ae..f0f29dd96 100644 --- a/dogfooding/pubspec.yaml +++ b/dogfooding/pubspec.yaml @@ -10,7 +10,7 @@ environment: resolution: workspace dependencies: - app_links: ^6.4.1 + app_links: ^7.2.1 collection: ^1.19.1 crypto: ^3.0.6 cupertino_icons: ^1.0.8 diff --git a/packages/stream_video_flutter/example/ios/Runner/AppDelegate.swift b/packages/stream_video_flutter/example/ios/Runner/AppDelegate.swift index 9e8fb0243..62ccc100b 100644 --- a/packages/stream_video_flutter/example/ios/Runner/AppDelegate.swift +++ b/packages/stream_video_flutter/example/ios/Runner/AppDelegate.swift @@ -3,13 +3,16 @@ import UIKit import stream_video_push_notification @main -@objc class AppDelegate: FlutterAppDelegate { +@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - GeneratedPluginRegistrant.register(with: self) StreamVideoPKDelegateManager.shared.registerForPushNotifications() return super.application(application, didFinishLaunchingWithOptions: launchOptions) } + + func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { + GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) + } } diff --git a/packages/stream_video_flutter/example/ios/Runner/Info.plist b/packages/stream_video_flutter/example/ios/Runner/Info.plist index 1eb8ae10a..773e1ad2e 100644 --- a/packages/stream_video_flutter/example/ios/Runner/Info.plist +++ b/packages/stream_video_flutter/example/ios/Runner/Info.plist @@ -63,5 +63,26 @@ UIViewControllerBasedStatusBarAppearance + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneDelegateClassName + FlutterSceneDelegate + UISceneConfigurationName + flutter + UISceneStoryboardFile + Main + + + + diff --git a/packages/stream_video_noise_cancellation/example/ios/Runner/AppDelegate.swift b/packages/stream_video_noise_cancellation/example/ios/Runner/AppDelegate.swift index 626664468..c30b367ec 100644 --- a/packages/stream_video_noise_cancellation/example/ios/Runner/AppDelegate.swift +++ b/packages/stream_video_noise_cancellation/example/ios/Runner/AppDelegate.swift @@ -2,12 +2,15 @@ import Flutter import UIKit @main -@objc class AppDelegate: FlutterAppDelegate { +@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } + + func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { + GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) + } } diff --git a/packages/stream_video_noise_cancellation/example/ios/Runner/Info.plist b/packages/stream_video_noise_cancellation/example/ios/Runner/Info.plist index 5458fc418..52cf36cf8 100644 --- a/packages/stream_video_noise_cancellation/example/ios/Runner/Info.plist +++ b/packages/stream_video_noise_cancellation/example/ios/Runner/Info.plist @@ -45,5 +45,26 @@ UIApplicationSupportsIndirectInputEvents + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneDelegateClassName + FlutterSceneDelegate + UISceneConfigurationName + flutter + UISceneStoryboardFile + Main + + + + diff --git a/packages/stream_video_push_notification/example/ios/Runner/AppDelegate.swift b/packages/stream_video_push_notification/example/ios/Runner/AppDelegate.swift index 626664468..c30b367ec 100644 --- a/packages/stream_video_push_notification/example/ios/Runner/AppDelegate.swift +++ b/packages/stream_video_push_notification/example/ios/Runner/AppDelegate.swift @@ -2,12 +2,15 @@ import Flutter import UIKit @main -@objc class AppDelegate: FlutterAppDelegate { +@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } + + func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { + GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) + } } diff --git a/packages/stream_video_push_notification/example/ios/Runner/Info.plist b/packages/stream_video_push_notification/example/ios/Runner/Info.plist index 5458fc418..52cf36cf8 100644 --- a/packages/stream_video_push_notification/example/ios/Runner/Info.plist +++ b/packages/stream_video_push_notification/example/ios/Runner/Info.plist @@ -45,5 +45,26 @@ UIApplicationSupportsIndirectInputEvents + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneDelegateClassName + FlutterSceneDelegate + UISceneConfigurationName + flutter + UISceneStoryboardFile + Main + + + + diff --git a/pubspec.lock b/pubspec.lock index c3b0caaf5..30167de7e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: transitive description: name: app_links - sha256: "5f88447519add627fe1cbcab4fd1da3d4fed15b9baf29f28b22535c95ecee3e8" + sha256: f8db46d2ea9ff6f3a37191a7fd5b7813da1253ace8c32c1b9eadace41d1188ea url: "https://pub.dev" source: hosted - version: "6.4.1" + version: "7.2.1" app_links_linux: dependency: transitive description: @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: app_links_platform_interface - sha256: "78a18580eecac98108d1eef52a7db668bc317714f5205e616973363326efe333" + sha256: "7546f09a6e93f4a2df2fe2bd40a5c6c64310ac461b036d82b43033be7a59f809" url: "https://pub.dev" source: hosted - version: "2.0.3" + version: "2.0.4" app_links_web: dependency: transitive description: