From 193d873cae7c666d266be0e82ceb9f4034f7aa73 Mon Sep 17 00:00:00 2001 From: Brandon Parrish Date: Fri, 25 May 2018 11:29:11 -0700 Subject: [PATCH] Revert "Added application callback" (#5377) * Revert "Added application callback (#5369)" This reverts commit a1a54ad1f9d845c8cff31e0d5faca2a012213b80. --- .../darwin/ios/framework/Headers/FlutterPlugin.h | 9 --------- .../ios/framework/Source/FlutterAppDelegate.mm | 14 -------------- 2 files changed, 23 deletions(-) diff --git a/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h b/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h index 1fe71dd8b..646ffa30d 100644 --- a/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h +++ b/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h @@ -146,15 +146,6 @@ NS_ASSUME_NONNULL_BEGIN */ - (BOOL)application:(UIApplication*)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler; - -/** - Called if this plugin has been registered for `UIApplicationDelegate` callbacks. - - - Returns: `YES` if this plugin handles the request. - */ -- (BOOL)application:(UIApplication*)application - continueUserActivity:(NSUserActivity*)userActivity - restorationHandler:(void (^)(NSArray*))restorationHandler; @end /** diff --git a/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm b/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm index 0eddadab0..a5132bf4e 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm @@ -235,20 +235,6 @@ } } -- (void)application:(UIApplication*)application - continueUserActivity:(NSUserActivity*)userActivity - restorationHandler:(void (^)(NSArray*))restorationHandler { - for (id plugin in _pluginDelegates) { - if ([plugin respondsToSelector:_cmd]) { - if ([plugin application:application - continueUserActivity:userActivty - restorationHandler:restorationHandler]) { - return; - } - } - } -} - // TODO(xster): move when doing https://github.com/flutter/flutter/issues/3671. - (NSObject*)binaryMessenger { UIViewController* rootViewController = _window.rootViewController; -- GitLab