diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index dd23187e..a98fecb8 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -1,8 +1,8 @@ import UIKit -import app_links import Flutter +import app_links -@main +@UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, @@ -10,13 +10,17 @@ import Flutter ) -> Bool { GeneratedPluginRegistrant.register(with: self) - // Retrieve the link from parameters + // Handle deep link if let url = AppLinks.shared.getLink(launchOptions: launchOptions) { - // We have a link, propagate it to your Flutter app or not AppLinks.shared.handleLink(url: url) - return true // Returning true will stop the propagation to other packages + return true } return super.application(application, didFinishLaunchingWithOptions: launchOptions) } + + override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { + AppLinks.shared.handleLink(url: url) + return super.application(app, open: url, options: options) + } } \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index b1debc1d..254f2503 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -534,11 +534,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.4.1" - flutter_driver: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" flutter_expandable_fab: dependency: "direct main" description: @@ -754,11 +749,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.0" - fuchsia_remote_debug_protocol: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" go_router: dependency: "direct main" description: @@ -887,11 +877,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.1+1" - integration_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" intl: dependency: "direct main" description: @@ -1252,14 +1237,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.8" - process: - dependency: transitive - description: - name: process - sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" - url: "https://pub.dev" - source: hosted - version: "5.0.2" provider: dependency: "direct main" description: @@ -1489,14 +1466,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.0" - sync_http: - dependency: transitive - description: - name: sync_http - sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" - url: "https://pub.dev" - source: hosted - version: "0.3.1" synchronized: dependency: "direct main" description: @@ -1657,14 +1626,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.1" - webdriver: - dependency: transitive - description: - name: webdriver - sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" - url: "https://pub.dev" - source: hosted - version: "3.0.3" webview_flutter: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 6b67fa71..f52a159b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -114,8 +114,9 @@ dev_dependencies: lints: ^5.0.0 # build_runner: ^2.4.13 # mockito: ^5.4.4 - integration_test: - sdk: flutter + # integration_test: + # sdk: flutter + flutter_test: sdk: flutter diff --git a/integration_test/app_test.dart b/test/integration_test/app_test.dart similarity index 100% rename from integration_test/app_test.dart rename to test/integration_test/app_test.dart