Skip to content

Commit 6759b0c

Browse files
authored
Fix xcode 9 build of FDLBuilderTestAppObjC (#2219)
1 parent db62a27 commit 6759b0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Example/DynamicLinks/FDLBuilderTestAppObjC/AppDelegate.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ - (BOOL)application:(UIApplication *)application
6161
- (BOOL)application:(UIApplication *)application
6262
continueUserActivity:(NSUserActivity *)userActivity
6363
restorationHandler:
64+
#if __has_include(<UIKit/UIUserActivity.h>)
6465
(void (^)(NSArray<id<UIUserActivityRestoring>> *_Nullable))restorationHandler {
66+
#else
67+
(void (^)(NSArray *))restorationHandler {
68+
#endif
6569
BOOL handled = [[FIRDynamicLinks dynamicLinks]
6670
handleUniversalLink:userActivity.webpageURL
6771
completion:^(FIRDynamicLink *_Nullable dynamicLink, NSError *_Nullable error) {

0 commit comments

Comments
 (0)