From 716cb093b5505dd6a120952897a96e3272ef008e Mon Sep 17 00:00:00 2001 From: KyleWong Date: Thu, 27 Sep 2018 08:00:28 +0800 Subject: [PATCH] V0.8.2 fix compile problem with xcode10 (flutter/engine#6339) * Fix a compilation problem when using iPhoneOS12.0sdk(Xcode10). --- .../darwin/ios/framework/Source/FlutterAppDelegate.mm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm index 763374b968..a7921be5c6 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm @@ -132,9 +132,16 @@ [_lifeCycleDelegate application:application performFetchWithCompletionHandler:completionHandler]; } +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 120000 - (BOOL)application:(UIApplication*)application continueUserActivity:(NSUserActivity*)userActivity - restorationHandler:(void (^)(NSArray*))restorationHandler { + restorationHandler:(void (^)(NSArray>* __nullable + restorableObjects))restorationHandler { +#else +- (BOOL)application:(UIApplication*)application + continueUserActivity:(NSUserActivity*)userActivity + restorationHandler:(void (^)(NSArray* __nullable restorableObjects))restorationHandler { +#endif return [_lifeCycleDelegate application:application continueUserActivity:userActivity restorationHandler:restorationHandler];