From 13e53a03f4d50169d0cf7f72d414753ae6b421ce Mon Sep 17 00:00:00 2001
From: hank <hank.zhang@proficientcity.com>
Date: Tue, 22 Jan 2019 11:04:39 +0800
Subject: [PATCH] 添加V3.8.0
---
frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h | 45 +++++++++++++++++++++++++++++++++++----------
1 files changed, 35 insertions(+), 10 deletions(-)
diff --git a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h
index c97b6b3..39b5dc0 100644
--- a/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h
+++ b/frameworks/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h
@@ -18,12 +18,15 @@
#import <Foundation/Foundation.h>
+#import "FBSDKAppLinkResolving.h"
+
@class BFTask;
+
// Check if Bolts.framework is available for import
#if __has_include(<Bolts/BFAppLinkResolving.h>)
// Import it if it's available
-# import <Bolts/BFAppLinkResolving.h>
+#import <Bolts/BFAppLinkResolving.h>
#else
// Otherwise - redeclare BFAppLinkResolving protocol to resolve the problem of missing symbols
// Please note: Bolts.framework is still required for AppLink resolving to work,
@@ -34,15 +37,17 @@
App Links that may include pre-fetching, caching, or querying for App Link
data from an index provided by a service provider.
*/
+DEPRECATED_MSG_ATTRIBUTE("Use `FBSDKAppLinkResolving`")
@protocol BFAppLinkResolving <NSObject>
/**
Asynchronously resolves App Link data for a given URL.
- - Parameter url: The URL to resolve into an App Link.
- - Returns: A BFTask that will return a BFAppLink for the given URL.
+ @param url The URL to resolve into an App Link.
+ @return A BFTask that will return a BFAppLink for the given URL.
*/
-- (BFTask *)appLinkFromURLInBackground:(NSURL *)url;
+- (BFTask *)appLinkFromURLInBackground:(NSURL *)url
+DEPRECATED_MSG_ATTRIBUTE("Use `appLinkFromURL:handler:`");
@end
@@ -59,20 +64,40 @@
Usage of this type requires a client token. See `[FBSDKSettings setClientToken:]` and linking
Bolts.framework
*/
-@interface FBSDKAppLinkResolver : NSObject<BFAppLinkResolving>
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+@interface FBSDKAppLinkResolver : NSObject<FBSDKAppLinkResolving, BFAppLinkResolving>
+#pragma clang diagnostic pop
/**
Asynchronously resolves App Link data for multiple URLs.
- - Parameter urls: An array of NSURLs to resolve into App Links.
- - Returns: A BFTask that will return dictionary mapping input NSURLs to their
+ @param urls An array of NSURLs to resolve into App Links.
+ @return A BFTask that will return dictionary mapping input NSURLs to their
corresponding BFAppLink.
-
-
You should set the client token before making this call. See `[FBSDKSettings setClientToken:]`
*/
-- (BFTask *)appLinksFromURLsInBackground:(NSArray *)urls;
+- (BFTask *)appLinksFromURLsInBackground:(NSArray<NSURL *> *)urls
+DEPRECATED_MSG_ATTRIBUTE("Use `appLinkFromURLs:handler:`");
+
+/**
+ Asynchronously resolves App Link data for a given URL.
+
+ @param url The URL to resolve into an App Link.
+ @return A BFTask that will return a BFAppLink for the given URL.
+ */
+- (BFTask *)appLinkFromURLInBackground:(NSURL *)url
+DEPRECATED_MSG_ATTRIBUTE("Use `appLinkFromURL:handler:`");
+
+/**
+ Asynchronously resolves App Link data for a given array of URLs.
+
+ @param urls The URLs to resolve into an App Link.
+ @param handler The completion block that will return an App Link for the given URL.
+ */
+- (void)appLinksFromURLs:(NSArray<NSURL *> *)urls handler:(FBSDKAppLinksFromURLArrayHandler)handler
+NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension");
/**
Allocates and initializes a new instance of FBSDKAppLinkResolver.
--
Gitblit v1.8.0