From 49b8839fda3439edc31581527e84036e58f55f0f Mon Sep 17 00:00:00 2001 From: lpw <pengwei.li@gamehollywood.com> Date: Tue, 26 Jan 2021 09:43:00 +0800 Subject: [PATCH] 3.9.2 --- frameworks/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h | 33 +++++++++++---------------------- 1 files changed, 11 insertions(+), 22 deletions(-) diff --git a/frameworks/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h b/frameworks/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h similarity index 66% copy from frameworks/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h copy to frameworks/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h index 710a600..aa0979d 100644 --- a/frameworks/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h +++ b/frameworks/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h @@ -16,26 +16,15 @@ // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -#import <Foundation/Foundation.h> +// Importing FBSDKCoreKit is tricky due to build variants. +// SPM require that it is imported as <FBSDKCoreKit.h> while CocoaPods, +// Carthage, Buck, and xcodebuild require <FBSDKCoreKit/FBSDKCoreKit.h> +// This file is not exposed via SPM so non SPM users will use <FBSDKCoreKit/FBSDKCoreKit.h> -#import <FBSDKCoreKit/FBSDKCopying.h> -#import <FBSDKShareKit/FBSDKShareConstants.h> - -NS_ASSUME_NONNULL_BEGIN - -/** - A base interface for Messenger share action buttons. - */ -DEPRECATED_FOR_MESSENGER -NS_SWIFT_NAME(ShareMessengerActionButton) -@protocol FBSDKShareMessengerActionButton <FBSDKCopying, NSSecureCoding> - -/** - The title displayed to the user for the button. - @return The title for the button. - */ -@property (nonatomic, copy) NSString *title; - -@end - -NS_ASSUME_NONNULL_END +// Even though this file is not available from projects using SPM, +// it is available when building the packages themselves so we need to include this check. +#if FBSDK_SWIFT_PACKAGE + #import <FBSDKCoreKit.h> +#else + #import <FBSDKCoreKit/FBSDKCoreKit.h> +#endif -- Gitblit v1.8.0