From 3a35eb75318e1f8064f059f7388520e529b99658 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Thu, 31 Jan 2019 15:22:15 +0800 Subject: [PATCH] [iOS] Remove application:openURL:sourceApplication:annotation: of LinkingManager --- Libraries/LinkingIOS/RCTLinkingManager.h | 5 ----- Libraries/LinkingIOS/RCTLinkingManager.m | 9 --------- RNTester/RNTester/AppDelegate.m | 7 ------- 3 files changed, 21 deletions(-) diff --git a/Libraries/LinkingIOS/RCTLinkingManager.h b/Libraries/LinkingIOS/RCTLinkingManager.h index de38c85de62216..4c2b522f31ab60 100644 --- a/Libraries/LinkingIOS/RCTLinkingManager.h +++ b/Libraries/LinkingIOS/RCTLinkingManager.h @@ -15,11 +15,6 @@ openURL:(nonnull NSURL *)URL options:(nonnull NSDictionary *)options; -+ (BOOL)application:(nonnull UIApplication *)application - openURL:(nonnull NSURL *)URL - sourceApplication:(nullable NSString *)sourceApplication - annotation:(nonnull id)annotation; - + (BOOL)application:(nonnull UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray *__nullable))restorationHandler; diff --git a/Libraries/LinkingIOS/RCTLinkingManager.m b/Libraries/LinkingIOS/RCTLinkingManager.m index 768f47edb063b4..fe1cf15fb45c20 100644 --- a/Libraries/LinkingIOS/RCTLinkingManager.m +++ b/Libraries/LinkingIOS/RCTLinkingManager.m @@ -56,15 +56,6 @@ + (BOOL)application:(UIApplication *)app return YES; } -+ (BOOL)application:(UIApplication *)application - openURL:(NSURL *)URL - sourceApplication:(NSString *)sourceApplication - annotation:(id)annotation -{ - postNotificationWithURL(URL, self); - return YES; -} - + (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * __nullable))restorationHandler diff --git a/RNTester/RNTester/AppDelegate.m b/RNTester/RNTester/AppDelegate.m index ff34483af67861..5986de77da29bf 100644 --- a/RNTester/RNTester/AppDelegate.m +++ b/RNTester/RNTester/AppDelegate.m @@ -61,13 +61,6 @@ - (BOOL)application:(UIApplication *)app return [RCTLinkingManager application:app openURL:url options:options]; } -- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url - sourceApplication:(NSString *)sourceApplication annotation:(id)annotation -{ - return [RCTLinkingManager application:application openURL:url - sourceApplication:sourceApplication annotation:annotation]; -} - - (void)loadSourceForBridge:(RCTBridge *)bridge onProgress:(RCTSourceLoadProgressBlock)onProgress onComplete:(RCTSourceLoadBlock)loadCallback