diff --git a/ios/Classes/Module/FacebookModule.h b/ios/Classes/Module/FacebookModule.h index 5ab84e57..cc5994f7 100644 --- a/ios/Classes/Module/FacebookModule.h +++ b/ios/Classes/Module/FacebookModule.h @@ -21,7 +21,7 @@ NS_ASSUME_NONNULL_BEGIN /*! @brief The root-namespace for the Facebook module */ -@interface FacebookModule : TiModule { +@interface FacebookModule : TiModule { NSString *_userID; NSArray *_permissions; NSNumber *_loginTracking; @@ -358,22 +358,6 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)presentPhotoShareDialog:(NSArray *> *_Nonnull)args; -/*! - @brief Build up and present a game request. - - @param args The arguments passed to the send-request-dialog. - - @code - const fb = require('facebook'); - - fb.presentSendRequestDialog({ - title: 'New Game available', - message: 'Check this new game!' - }); - @endcode - */ -- (void)presentSendRequestDialog:(NSArray *> *_Nonnull)args; - /*! @brief Refresh the current access token's permission state and extend the token's expiration date, if possible. diff --git a/ios/Classes/Module/FacebookModule.m b/ios/Classes/Module/FacebookModule.m index 02dfb70f..e8db4949 100644 --- a/ios/Classes/Module/FacebookModule.m +++ b/ios/Classes/Module/FacebookModule.m @@ -67,7 +67,7 @@ - (void)handleRelaunch:(NSNotification *_Nullable)notification - (void)resumed:(id)note { [self handleRelaunch:nil]; - [FBSDKAppEvents activateApp]; + [[FBSDKAppEvents shared] activateApp]; } - (void)activateApp:(NSNotification *_Nullable)notification @@ -96,12 +96,12 @@ - (NSNumber *_Nonnull)loggedIn - (NSString *_Nonnull)appID { - return [FBSDKSettings appID]; + return FBSDKSettings.sharedSettings.appID; } - (void)setAppID:(NSString *_Nonnull)appID { - [FBSDKSettings setAppID:[TiUtils stringValue:appID]]; + FBSDKSettings.sharedSettings.appID = [TiUtils stringValue:appID]; } - (NSArray *_Nullable)permissions @@ -184,9 +184,9 @@ - (void)logPurchase:(NSArray *_Nonnull)purchase NSDictionary *parameters = [purchase objectAtIndex:2]; ENSURE_TYPE(parameters, NSDictionary); - [FBSDKAppEvents logPurchase:[amount doubleValue] currency:currency parameters:parameters]; + [FBSDKAppEvents.shared logPurchase:[amount doubleValue] currency:currency parameters:parameters]; } else { - [FBSDKAppEvents logPurchase:[amount doubleValue] currency:currency]; + [FBSDKAppEvents.shared logPurchase:[amount doubleValue] currency:currency]; } } @@ -194,7 +194,7 @@ - (void)logRegistrationCompleted:(NSString *_Nonnull)registrationMethod { NSDictionary *params = @{ FBSDKAppEventParameterNameRegistrationMethod : registrationMethod }; - [FBSDKAppEvents logEvent:FBSDKAppEventNameCompletedRegistration parameters:params]; + [FBSDKAppEvents.shared logEvent:FBSDKAppEventNameCompletedRegistration parameters:params]; } - (void)logCustomEvent:(NSArray *_Nonnull)customEvent @@ -214,14 +214,14 @@ - (void)logCustomEvent:(NSArray *_Nonnull)customEvent ENSURE_SINGLE_ARG_OR_NIL(args2, NSDictionary); NSDictionary *parameters = args2; - [FBSDKAppEvents logEvent:event valueToSum:valueToSum parameters:parameters]; + [FBSDKAppEvents.shared logEvent:event valueToSum:valueToSum parameters:parameters]; } - (void)logPushNotificationOpen:(NSArray *_Nonnull)pushNotification { if ([pushNotification count] == 1) { NSDictionary *payload = [pushNotification objectAtIndex:0]; - [FBSDKAppEvents logPushNotificationOpen:payload]; + [FBSDKAppEvents.shared logPushNotificationOpen:payload]; } else if ([pushNotification count] == 2) { id payload = [pushNotification objectAtIndex:0]; id action = [pushNotification objectAtIndex:1]; @@ -229,7 +229,7 @@ - (void)logPushNotificationOpen:(NSArray *_Nonnull)pushNotification ENSURE_TYPE(payload, NSDictionary); ENSURE_TYPE(action, NSString); - [FBSDKAppEvents logPushNotificationOpen:payload action:action]; + [FBSDKAppEvents.shared logPushNotificationOpen:payload action:action]; } else { NSLog(@"[ERROR] Invalid number of arguments provided, please check the docs for 'logPushNotificationOpen' and try again!"); } @@ -238,7 +238,7 @@ - (void)logPushNotificationOpen:(NSArray *_Nonnull)pushNotification - (void)setPushNotificationsDeviceToken:(NSString *_Nonnull)deviceToken { ENSURE_TYPE(deviceToken, NSString); - [FBSDKAppEvents setPushNotificationsDeviceToken:[FacebookModule dataFromHexString:deviceToken]]; + [FBSDKAppEvents.shared setPushNotificationsDeviceToken:[FacebookModule dataFromHexString:deviceToken]]; } - (void)authorize:(__unused id)unused @@ -313,12 +313,11 @@ - (void)presentShareDialog:(NSArray *> *_Nonnull)ar TiThreadPerformOnMainThread( ^{ FBSDKShareLinkContent *content = [FacebookModule shareLinkContentFromDictionary:params]; - FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init]; + FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] initWithViewController:nil content:content delegate:self]; - [dialog setMode:[TiUtils intValue:[params objectForKey:@"mode"] def:FBSDKShareDialogModeAutomatic]]; - [dialog setFromViewController:nil]; - [dialog setShareContent:content]; - [dialog setDelegate:self]; + if ([params objectForKey:@"mode"] != nil) { + dialog.mode = [TiUtils intValue:[params objectForKey:@"mode"] def:FBSDKShareDialogModeAutomatic]; + } [dialog show]; }, @@ -332,64 +331,23 @@ - (void)presentPhotoShareDialog:(NSArray *> *_Nonnu TiThreadPerformOnMainThread( ^{ FBSDKSharePhotoContent *content = [FacebookModule sharePhotoContentFromDictionary:params]; - FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init]; + FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] initWithViewController:nil content:content delegate:self]; - [dialog setMode:[TiUtils intValue:[params objectForKey:@"mode"] def:FBSDKShareDialogModeAutomatic]]; - [dialog setFromViewController:nil]; - [dialog setShareContent:content]; - [dialog setDelegate:self]; + if ([params objectForKey:@"mode"] != nil) { + dialog.mode = [TiUtils intValue:[params objectForKey:@"mode"] def:FBSDKShareDialogModeAutomatic]; + } [dialog show]; }, NO); } -- (void)presentSendRequestDialog:(NSArray *> *)args -{ - NSDictionary *_Nonnull params = [args objectAtIndex:0]; - - NSString *message = [params objectForKey:@"message"]; - NSString *title = [params objectForKey:@"title"]; - NSArray *recipients = [params objectForKey:@"recipients"]; - NSArray *recipientSuggestions = [params objectForKey:@"recipientSuggestions"]; - FBSDKGameRequestFilter filters = [TiUtils intValue:[params objectForKey:@"filters"]]; - NSString *objectID = [params objectForKey:@"objectID"]; - id tempData = [params objectForKey:@"data"]; - NSString *data = nil; - if ([tempData isKindOfClass:[NSDictionary class]]) { - NSData *dictonaryData = [NSJSONSerialization dataWithJSONObject:tempData options:NSJSONWritingPrettyPrinted error:nil]; - data = [[NSString alloc] initWithData:dictonaryData - encoding:NSUTF8StringEncoding]; - } else { - data = (NSString *)tempData; - } - - FBSDKGameRequestActionType actionType = [TiUtils intValue:[params objectForKey:@"actionType"]]; - - TiThreadPerformOnMainThread( - ^{ - FBSDKGameRequestContent *gameRequestContent = [[FBSDKGameRequestContent alloc] init]; - - gameRequestContent.title = title; - gameRequestContent.message = message; - gameRequestContent.recipients = recipients; - gameRequestContent.objectID = objectID; - gameRequestContent.data = data; - gameRequestContent.recipientSuggestions = recipientSuggestions; - gameRequestContent.filters = filters; - gameRequestContent.actionType = actionType; - - [FBSDKGameRequestDialog showWithContent:gameRequestContent delegate:self]; - }, - NO); -} - - (void)refreshPermissionsFromServer:(__unused id)unused { TiThreadPerformOnMainThread( ^{ - [FBSDKAccessToken refreshCurrentAccessToken:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { - [self fireEvent:@"tokenUpdated" withObject:nil]; + [FBSDKAccessToken refreshCurrentAccessTokenWithCompletion:^(id _Nullable connection, id _Nullable result, NSError * _Nullable error) { + [self fireEvent:@"tokenUpdated" withObject:@{ @"success": @(error == nil), @"error": NULL_IF_NIL(error.localizedDescription) }]; }]; }, NO); @@ -540,7 +498,7 @@ - (void)requestWithGraphPath:(NSArray *_Nonnull)args ^{ if ([FBSDKAccessToken currentAccessToken]) { [[[FBSDKGraphRequest alloc] initWithGraphPath:path parameters:params HTTPMethod:httpMethod] - startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + startWithCompletion:^(id _Nullable connection, id _Nullable result, NSError * _Nullable error) { NSDictionary *returnedObject; BOOL success = NO; @@ -682,7 +640,7 @@ - (void)fireLogin:(id _Nullable)result authenticationToken:(FBSDKAuthenticationT - (void)logEvents:(NSNotification *)notification { - [FBSDKAppEvents activateApp]; + [FBSDKAppEvents.shared activateApp]; } - (void)accessTokenChanged:(NSNotification *)notification @@ -719,23 +677,6 @@ - (void)sharerDidCancel:(id)sharer [self fireDialogEventWithName:TiFacebookEventTypeShareCompleted andSuccess:NO error:nil cancelled:YES]; } -#pragma Game request delegates - -- (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didCompleteWithResults:(NSDictionary *)results -{ - [self fireDialogEventWithName:TiFacebookEventTypeRequestDialogCompleted andSuccess:YES error:nil cancelled:NO]; -} - -- (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didFailWithError:(NSError *)error -{ - [self fireDialogEventWithName:TiFacebookEventTypeRequestDialogCompleted andSuccess:NO error:error cancelled:NO]; -} - -- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog *)gameRequestDialog -{ - [self fireDialogEventWithName:TiFacebookEventTypeRequestDialogCompleted andSuccess:NO error:nil cancelled:YES]; -} - #pragma mark Dialog utilities - (void)fireDialogEventWithName:(NSString *_Nonnull)name andSuccess:(BOOL)success error:(NSError *_Nullable)error cancelled:(BOOL)cancelled @@ -809,7 +750,7 @@ + (FBSDKShareLinkContent *_Nonnull)shareLinkContentFromDictionary:(NSDictionary [content setContentURL:link]; if (hashtag != nil) { - [content setHashtag:[FBSDKHashtag hashtagWithString:hashtag]]; + [content setHashtag:[[FBSDKHashtag alloc] initWithString:hashtag]]; } if (quote != nil) { @@ -839,18 +780,21 @@ + (FBSDKSharePhotoContent *_Nonnull)sharePhotoContentFromDictionary:(NSDictionar NSMutableArray *nativePhotos = [NSMutableArray arrayWithCapacity:photos.count]; for (NSDictionary *photoDictionary in photos) { + FBSDKSharePhoto *nativePhoto = nil; id photo = photoDictionary[@"photo"]; NSString *caption = photoDictionary[@"caption"]; - FBSDKSharePhoto *nativePhoto = [FBSDKSharePhoto new]; BOOL userGenerated = [TiUtils boolValue:photoDictionary[@"userGenerated"]]; // A photo can either be a Blob or String if ([photo isKindOfClass:[TiBlob class]]) { - nativePhoto.image = [(TiBlob *)photo image]; + UIImage *image = [(TiBlob *)photo image]; + nativePhoto = [[FBSDKSharePhoto alloc] initWithImage:image isUserGenerated:userGenerated]; } else if ([photo isKindOfClass:[NSString class]]) { - nativePhoto.imageURL = [NSURL URLWithString:(NSString *)photo]; + NSURL *imageURL = [NSURL URLWithString:(NSString *)photo]; + nativePhoto = [[FBSDKSharePhoto alloc] initWithImageURL:imageURL isUserGenerated:userGenerated]; } else { NSLog(@"[ERROR] Required \"photo\" not found or of unknown type: %@", NSStringFromClass([photo class])); + return; } // An optional caption @@ -858,9 +802,6 @@ + (FBSDKSharePhotoContent *_Nonnull)sharePhotoContentFromDictionary:(NSDictionar nativePhoto.caption = caption; } - // An optional flag indicating if the photo was user generated - nativePhoto.userGenerated = userGenerated; - [nativePhotos addObject:nativePhoto]; } @@ -896,15 +837,6 @@ + (NSData *)dataFromHexString:(NSString *)string MAKE_SYSTEM_PROP(AUDIENCE_FRIENDS, FBSDKDefaultAudienceFriends); MAKE_SYSTEM_PROP(AUDIENCE_EVERYONE, FBSDKDefaultAudienceEveryone); -MAKE_SYSTEM_PROP(ACTION_TYPE_NONE, FBSDKGameRequestActionTypeNone); -MAKE_SYSTEM_PROP(ACTION_TYPE_SEND, FBSDKGameRequestActionTypeSend); -MAKE_SYSTEM_PROP(ACTION_TYPE_ASK_FOR, FBSDKGameRequestActionTypeAskFor); -MAKE_SYSTEM_PROP(ACTION_TYPE_TURN, FBSDKGameRequestActionTypeTurn); - -MAKE_SYSTEM_PROP(FILTER_NONE, FBSDKGameRequestFilterNone); -MAKE_SYSTEM_PROP(FILTER_APP_USERS, FBSDKGameRequestFilterAppUsers); -MAKE_SYSTEM_PROP(FILTER_APP_NON_USERS, FBSDKGameRequestFilterAppNonUsers); - MAKE_SYSTEM_PROP(MESSENGER_BUTTON_MODE_RECTANGULAR, TiFacebookShareButtonModeRectangular); MAKE_SYSTEM_PROP(MESSENGER_BUTTON_MODE_CIRCULAR, TiFacebookShareButtonModeCircular); diff --git a/ios/manifest b/ios/manifest index aec2a624..b95c8c87 100644 --- a/ios/manifest +++ b/ios/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 11.0.1 +version: 12.0.0 apiversion: 2 description: Use the native Facebook iOS SDK in Axway Titanium. author: Mark Mokryn, Ng Chee Kiat and Hans Knoechel @@ -15,5 +15,5 @@ moduleid: facebook guid: e4f7ac61-1ee7-44c5-bc27-fa6876e2dce9 platform: iphone minsdk: 9.2.0 -mac: false -architectures: armv7 arm64 i386 x86_64 +mac: true +architectures: arm64 x86_64 diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h deleted file mode 100644 index 202bcfca..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKCopying.h" - -#ifdef BUCK -#import -#else -#import "FBSDKGraphRequestConnection.h" -#endif - -NS_ASSUME_NONNULL_BEGIN - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 - -/** - Notification indicating that the `currentAccessToken` has changed. - - the userInfo dictionary of the notification will contain keys - `FBSDKAccessTokenChangeOldKey` and - `FBSDKAccessTokenChangeNewKey`. - */ -FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification -NS_SWIFT_NAME(AccessTokenDidChange); - -#else - -/** - Notification indicating that the `currentAccessToken` has changed. - - the userInfo dictionary of the notification will contain keys - `FBSDKAccessTokenChangeOldKey` and - `FBSDKAccessTokenChangeNewKey`. - */ -FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeNotification -NS_SWIFT_NAME(AccessTokenDidChangeNotification); -#endif - -/** - A key in the notification's userInfo that will be set - if and only if the user ID changed between the old and new tokens. - - Token refreshes can occur automatically with the SDK - which do not change the user. If you're only interested in user - changes (such as logging out), you should check for the existence - of this key. The value is a NSNumber with a boolValue. - - On a fresh start of the app where the SDK reads in the cached value - of an access token, this key will also exist since the access token - is moving from a null state (no user) to a non-null state (user). - */ -FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserIDKey -NS_SWIFT_NAME(AccessTokenDidChangeUserIDKey); - -/* - key in notification's userInfo object for getting the old token. - - If there was no old token, the key will not be present. - */ -FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey -NS_SWIFT_NAME(AccessTokenChangeOldKey); - -/* - key in notification's userInfo object for getting the new token. - - If there is no new token, the key will not be present. - */ -FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey -NS_SWIFT_NAME(AccessTokenChangeNewKey); - -/* - A key in the notification's userInfo that will be set - if and only if the token has expired. - */ -FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpireKey -NS_SWIFT_NAME(AccessTokenDidExpireKey); - - -/** - Represents an immutable access token for using Facebook services. - */ -NS_SWIFT_NAME(AccessToken) -@interface FBSDKAccessToken : NSObject - - -/** - The "global" access token that represents the currently logged in user. - - The `currentAccessToken` is a convenient representation of the token of the - current user and is used by other SDK components (like `FBSDKLoginManager`). - */ -@property (class, nonatomic, copy, nullable) FBSDKAccessToken *currentAccessToken; - -/** - Returns YES if currentAccessToken is not nil AND currentAccessToken is not expired - - */ -@property (class, nonatomic, assign, readonly, getter=isCurrentAccessTokenActive) BOOL currentAccessTokenIsActive; - -/** - Returns the app ID. - */ -@property (nonatomic, copy, readonly) NSString *appID; - -/** - Returns the expiration date for data access - */ -@property (nonatomic, copy, readonly) NSDate *dataAccessExpirationDate; - -/** - Returns the known declined permissions. - */ -@property (nonatomic, copy, readonly) NSSet *declinedPermissions -NS_REFINED_FOR_SWIFT; - -/** - Returns the known declined permissions. - */ -@property (nonatomic, copy, readonly) NSSet *expiredPermissions -NS_REFINED_FOR_SWIFT; - -/** - Returns the expiration date. - */ -@property (nonatomic, copy, readonly) NSDate *expirationDate; - -/** - Returns the known granted permissions. - */ -@property (nonatomic, copy, readonly) NSSet *permissions -NS_REFINED_FOR_SWIFT; - -/** - Returns the date the token was last refreshed. -*/ -@property (nonatomic, copy, readonly) NSDate *refreshDate; - -/** - Returns the opaque token string. - */ -@property (nonatomic, copy, readonly) NSString *tokenString; - -/** - Returns the user ID. - */ -@property (nonatomic, copy, readonly) NSString *userID; - -/** - The graph domain where this access token is valid. - */ -@property (nonatomic, copy, readonly) NSString *graphDomain DEPRECATED_MSG_ATTRIBUTE("The graphDomain property will be removed from AccessToken in the next major release. Use the graphDomain property on AuthenticationToken instead."); - -/** - Returns whether the access token is expired by checking its expirationDate property - */ -@property (readonly, assign, nonatomic, getter=isExpired) BOOL expired; - -/** - Returns whether user data access is still active for the given access token - */ -@property (readonly, assign, nonatomic, getter=isDataAccessExpired) BOOL dataAccessExpired; - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Initializes a new instance. - @param tokenString the opaque token string. - @param permissions the granted permissions. Note this is converted to NSSet and is only - an NSArray for the convenience of literal syntax. - @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only - an NSArray for the convenience of literal syntax. - @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only - an NSArray for the convenience of literal syntax. - @param appID the app ID. - @param userID the user ID. - @param expirationDate the optional expiration date (defaults to distantFuture). - @param refreshDate the optional date the token was last refreshed (defaults to today). - @param dataAccessExpirationDate the date which data access will expire for the given user - (defaults to distantFuture). - - This initializer should only be used for advanced apps that - manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` - along with `+currentAccessToken`. - */ -- (instancetype)initWithTokenString:(NSString *)tokenString - permissions:(NSArray *)permissions - declinedPermissions:(NSArray *)declinedPermissions - expiredPermissions:(NSArray *)expiredPermissions - appID:(NSString *)appID - userID:(NSString *)userID - expirationDate:(nullable NSDate *)expirationDate - refreshDate:(nullable NSDate *)refreshDate - dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate -NS_DESIGNATED_INITIALIZER; - -/** - Convenience initializer. - @param tokenString the opaque token string. - @param permissions the granted permissions. Note this is converted to NSSet and is only - an NSArray for the convenience of literal syntax. - @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only - an NSArray for the convenience of literal syntax. - @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only - an NSArray for the convenience of literal syntax. - @param appID the app ID. - @param userID the user ID. - @param expirationDate the optional expiration date (defaults to distantFuture). - @param refreshDate the optional date the token was last refreshed (defaults to today). - @param dataAccessExpirationDate the date which data access will expire for the given user - (defaults to distantFuture). - @param graphDomain the domain this access token can be used in. - - This initializer should only be used for advanced apps that - manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` - along with `+currentAccessToken`. - */ -- (instancetype)initWithTokenString:(NSString *)tokenString - permissions:(NSArray *)permissions - declinedPermissions:(NSArray *)declinedPermissions - expiredPermissions:(NSArray *)expiredPermissions - appID:(NSString *)appID - userID:(NSString *)userID - expirationDate:(nullable NSDate *)expirationDate - refreshDate:(nullable NSDate *)refreshDate - dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate - graphDomain:(nullable NSString *)graphDomain -DEPRECATED_MSG_ATTRIBUTE("The graphDomain property will be removed from AccessToken in the next major release. Use initializers that do not take in graphDomain domain instead."); - -/** - Convenience getter to determine if a permission has been granted - @param permission The permission to check. - */ -- (BOOL)hasGranted:(NSString *)permission -NS_SWIFT_NAME(hasGranted(permission:)); - -/** - Compares the receiver to another FBSDKAccessToken - @param token The other token - @return YES if the receiver's values are equal to the other token's values; otherwise NO - */ -- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token; - -/** - Refresh the current access token's permission state and extend the token's expiration date, - if possible. - @param completionHandler an optional callback handler that can surface any errors related to permission refreshing. - - On a successful refresh, the currentAccessToken will be updated so you typically only need to - observe the `FBSDKAccessTokenDidChangeNotification` notification. - - If a token is already expired, it cannot be refreshed. - */ -+ (void)refreshCurrentAccessToken:(nullable FBSDKGraphRequestBlock)completionHandler; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h deleted file mode 100644 index 28ab1855..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h +++ /dev/null @@ -1,867 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#if !TARGET_OS_TV -#import -#endif - -#ifdef BUCK -#import -#else -#import "FBSDKGraphRequestConnection.h" -#endif - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKAccessToken; -@class FBSDKGraphRequest; - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 - -/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */ -FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification -NS_SWIFT_NAME(AppEventsLoggingResult); - -#else - -/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */ -FOUNDATION_EXPORT NSString *const FBSDKAppEventsLoggingResultNotification -NS_SWIFT_NAME(AppEventsLoggingResultNotification); - -#endif - -/** optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` */ -FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey -NS_SWIFT_NAME(AppEventsOverrideAppIDBundleKey); - -/** - - NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior) - - Specifies when `FBSDKAppEvents` sends log events to the server. - - */ -typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushBehavior) -{ - - /** Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. */ - FBSDKAppEventsFlushBehaviorAuto = 0, - - /** Only flush when the `flush` method is called. When an app is moved to background/terminated, the - events are persisted and re-established at activation, but they will only be written with an - explicit call to `flush`. */ - FBSDKAppEventsFlushBehaviorExplicitOnly, -} NS_SWIFT_NAME(AppEvents.FlushBehavior); - -/** - NS_ENUM(NSUInteger, FBSDKProductAvailability) - Specifies product availability for Product Catalog product item update - */ -typedef NS_ENUM(NSUInteger, FBSDKProductAvailability) -{ - /** - * Item ships immediately - */ - FBSDKProductAvailabilityInStock = 0, - /** - * No plan to restock - */ - FBSDKProductAvailabilityOutOfStock, - /** - * Available in future - */ - FBSDKProductAvailabilityPreOrder, - /** - * Ships in 1-2 weeks - */ - FBSDKProductAvailabilityAvailableForOrder, - /** - * Discontinued - */ - FBSDKProductAvailabilityDiscontinued, -} NS_SWIFT_NAME(AppEvents.ProductAvailability); - -/** - NS_ENUM(NSUInteger, FBSDKProductCondition) - Specifies product condition for Product Catalog product item update - */ -typedef NS_ENUM(NSUInteger, FBSDKProductCondition) -{ - FBSDKProductConditionNew = 0, - FBSDKProductConditionRefurbished, - FBSDKProductConditionUsed, -} NS_SWIFT_NAME(AppEvents.ProductCondition); - -/** - @methodgroup Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBSDKAppEvents`. - Common event parameters are provided in the `FBSDKAppEventsParameterNames*` constants. - */ - -/// typedef for FBSDKAppEventName -typedef NSString *const FBSDKAppEventName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.Name); - -/** Log this event when the user has achieved a level in the app. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAchievedLevel; - -/** Log this event when the user has entered their payment info. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAddedPaymentInfo; - -/** Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAddedToCart; - -/** Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAddedToWishlist; - -/** Log this event when a user has completed registration with the app. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameCompletedRegistration; - -/** Log this event when the user has completed a tutorial in the app. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameCompletedTutorial; - -/** Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameInitiatedCheckout; - -/** Log this event when the user has completed a transaction. The valueToSum passed to logEvent should be the total price of the transaction. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNamePurchased; - -/** Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameRated; - -/** Log this event when a user has performed a search within the app. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSearched; - -/** Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSpentCredits; - -/** Log this event when the user has unlocked an achievement in the app. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameUnlockedAchievement; - -/** Log this event when a user has viewed a form of content in the app. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameViewedContent; - -/** A telephone/SMS, email, chat or other type of contact between a customer and your business. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameContact; - -/** The customization of products through a configuration tool or other application your business owns. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameCustomizeProduct; - -/** The donation of funds to your organization or cause. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameDonate; - -/** When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameFindLocation; - -/** The booking of an appointment to visit one of your locations. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSchedule; - -/** The start of a free trial of a product or service you offer (example: trial subscription). */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameStartTrial; - -/** The submission of an application for a product, service or program you offer (example: credit card, educational program or job). */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSubmitApplication; - -/** The start of a paid subscription for a product or service you offer. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSubscribe; - -/** Log this event when the user views an ad. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAdImpression; - -/** Log this event when the user clicks an ad. */ -FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAdClick; - -/** - @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family - of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. - */ - -/// typedef for FBSDKAppEventParameterName -typedef NSString *const FBSDKAppEventParameterName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterName); - - /** - * Parameter key used to specify data for the one or more pieces of content being logged about. - * Data should be a JSON encoded string. - * Example: - * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" - */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameContent; - -/** Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameContentID; - -/** Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameContentType; - -/** Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameCurrency; - -/** Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameDescription; - -/** Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameLevel; - -/** Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameMaxRatingValue; - -/** Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameNumItems; - -/** Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNamePaymentInfoAvailable; - -/** Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameRegistrationMethod; - -/** Parameter key used to specify the string provided by the user for a search operation. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameSearchString; - -/** Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameSuccess; - -/** - @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logProductItem` method on `FBSDKAppEvents`. - */ - -/// typedef for FBSDKAppEventParameterProduct -typedef NSString *const FBSDKAppEventParameterProduct NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterProduct); - -/** Parameter key used to specify the product item's category. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory; - -/** Parameter key used to specify the product item's custom label 0. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0; - -/** Parameter key used to specify the product item's custom label 1. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1; - -/** Parameter key used to specify the product item's custom label 2. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2; - -/** Parameter key used to specify the product item's custom label 3. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3; - -/** Parameter key used to specify the product item's custom label 4. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4; - -/** Parameter key used to specify the product item's AppLink app URL for iOS. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl; - -/** Parameter key used to specify the product item's AppLink app ID for iOS App Store. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID; - -/** Parameter key used to specify the product item's AppLink app name for iOS. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName; - -/** Parameter key used to specify the product item's AppLink app URL for iPhone. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl; - -/** Parameter key used to specify the product item's AppLink app ID for iPhone App Store. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID; - -/** Parameter key used to specify the product item's AppLink app name for iPhone. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName; - -/** Parameter key used to specify the product item's AppLink app URL for iPad. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl; - -/** Parameter key used to specify the product item's AppLink app ID for iPad App Store. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID; - -/** Parameter key used to specify the product item's AppLink app name for iPad. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName; - -/** Parameter key used to specify the product item's AppLink app URL for Android. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl; - -/** Parameter key used to specify the product item's AppLink fully-qualified package name for intent generation. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage; - -/** Parameter key used to specify the product item's AppLink app name for Android. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName; - -/** Parameter key used to specify the product item's AppLink app URL for Windows Phone. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl; - -/** Parameter key used to specify the product item's AppLink app ID, as a GUID, for App Store. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID; - -/** Parameter key used to specify the product item's AppLink app name for Windows Phone. */ -FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName; - -/* - @methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family - of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants. - */ - -/// typedef for FBSDKAppEventParameterValue -typedef NSString *const FBSDKAppEventParameterValue NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterValue); - -/** Yes-valued parameter value to be used with parameter keys that need a Yes/No value */ -FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes; - -/** No-valued parameter value to be used with parameter keys that need a Yes/No value */ -FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo; - -/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression - * or FBSDKAppEventNameAdClick event. - * E.g. "banner", "interstitial", "rewarded_video", "native" */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameAdType; - -/** Parameter key used to specify the unique ID for all events within a subscription - * in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */ -FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameOrderID; - -/* - @methodgroup Predefined values to assign to user data store - */ - -/// typedef for FBSDKAppEventUserDataType -typedef NSString *const FBSDKAppEventUserDataType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.UserDataType); - -/** Parameter key used to specify user's email. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventEmail; - -/** Parameter key used to specify user's first name. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventFirstName; - -/** Parameter key used to specify user's last name. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventLastName; - -/** Parameter key used to specify user's phone. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventPhone; - -/** Parameter key used to specify user's date of birth. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth; - -/** Parameter key used to specify user's gender. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventGender; - -/** Parameter key used to specify user's city. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCity; - -/** Parameter key used to specify user's state. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventState; - -/** Parameter key used to specify user's zip. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventZip; - -/** Parameter key used to specify user's country. */ -FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCountry; - -/** - - - Client-side event logging for specialized application analytics available through Facebook App Insights - and for use with Facebook Ads conversion tracking and optimization. - - - - The `FBSDKAppEvents` static class has a few related roles: - - + Logging predefined and application-defined events to Facebook App Insights with a - numeric value to sum across a large number of events, and an optional set of key/value - parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or - 'gamerLevel' : 'intermediate') - - + Logging events to later be used for ads optimization around lifetime value. - - + Methods that control the way in which events are flushed out to the Facebook servers. - - Here are some important characteristics of the logging mechanism provided by `FBSDKAppEvents`: - - + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers - in a number of situations: - - when an event count threshold is passed (currently 100 logged events). - - when a time threshold is passed (currently 15 seconds). - - when an app has gone to background and is then brought back to the foreground. - - + Events will be accumulated when the app is in a disconnected state, and sent when the connection is - restored and one of the above 'flush' conditions are met. - - + The `FBSDKAppEvents` class is thread-safe in that events may be logged from any of the app's threads. - - + The developer can set the `flushBehavior` on `FBSDKAppEvents` to force the flushing of events to only - occur on an explicit call to the `flush` method. - - + The developer can turn on console debug output for event logging and flushing to the server by using - the `FBSDKLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. - - Some things to note when logging events: - - + There is a limit on the number of unique event names an app can use, on the order of 1000. - + There is a limit to the number of unique parameter names in the provided parameters that can - be used per event, on the order of 25. This is not just for an individual call, but for all - invocations for that eventName. - + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and - must consist of alphanumeric characters, _, -, or spaces. - + The length of each parameter value can be no more than on the order of 100 characters. - - */ - -NS_SWIFT_NAME(AppEvents) -@interface FBSDKAppEvents : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/* - * Control over event batching/flushing - */ - -/** - - The current event flushing behavior specifying when events are sent back to Facebook servers. - */ -@property (class, nonatomic, assign) FBSDKAppEventsFlushBehavior flushBehavior; - -/** - Set the 'override' App ID for App Event logging. - - - - In some cases, apps want to use one Facebook App ID for login and social presence and another - for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but - want distinct logging.) By default, this value is `nil`, and defers to the `FBSDKAppEventsOverrideAppIDBundleKey` - plist value. If that's not set, it defaults to `[FBSDKSettings appID]`. - - This should be set before any other calls are made to `FBSDKAppEvents`. Thus, you should set it in your application - delegate's `application:didFinishLaunchingWithOptions:` delegate. - */ -@property (class, nonatomic, copy, nullable) NSString *loggingOverrideAppID; - -/* - The custom user ID to associate with all app events. - - The userID is persisted until it is cleared by passing nil. - */ -@property (class, nonatomic, copy, nullable) NSString *userID; - -/* - Returns generated anonymous id that persisted with current install of the app -*/ -@property (class, nonatomic, readonly) NSString *anonymousID; - -/* - * Basic event logging - */ - -/** - - Log an event with just an eventName. - - @param eventName The name of the event to record. Limitations on number of events and name length - are given in the `FBSDKAppEvents` documentation. - - */ -+ (void)logEvent:(FBSDKAppEventName)eventName; - -/** - - Log an event with an eventName and a numeric value to be aggregated with other events of this name. - - @param eventName The name of the event to record. Limitations on number of events and name length - are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. - */ -+ (void)logEvent:(FBSDKAppEventName)eventName - valueToSum:(double)valueToSum; - - -/** - - Log an event with an eventName and a set of key/value pairs in the parameters dictionary. - Parameter limitations are described above. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names - are provided in `FBSDKAppEventParameterName*` constants. - */ -+ (void)logEvent:(FBSDKAppEventName)eventName - parameters:(NSDictionary *)parameters; - -/** - - Log an event with an eventName, a numeric value to be aggregated with other events of this name, - and a set of key/value pairs in the parameters dictionary. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names - are provided in `FBSDKAppEventParameterName*` constants. - - */ -+ (void)logEvent:(FBSDKAppEventName)eventName - valueToSum:(double)valueToSum - parameters:(NSDictionary *)parameters; - - -/** - - Log an event with an eventName, a numeric value to be aggregated with other events of this name, - and a set of key/value pairs in the parameters dictionary. Providing session lets the developer - target a particular . If nil is provided, then `[FBSession activeSession]` will be used. - - @param eventName The name of the event to record. Limitations on number of events and name construction - are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. - - @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report - the cumulative and average value of this amount. Note that this is an NSNumber, and a value of `nil` denotes - that this event doesn't have a value associated with it for summation. - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names - are provided in `FBSDKAppEventParameterName*` constants. - - @param accessToken The optional access token to log the event as. - */ -+ (void)logEvent:(FBSDKAppEventName)eventName - valueToSum:(nullable NSNumber *)valueToSum - parameters:(NSDictionary *)parameters - accessToken:(nullable FBSDKAccessToken *)accessToken; - -/* - * Purchase logging - */ - -/** - - Log a purchase of the specified amount, in the specified currency. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - - This event immediately triggers a flush of the `FBSDKAppEvents` event queue, unless the `flushBehavior` is set - to `FBSDKAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency; - -/** - - Log a purchase of the specified amount, in the specified currency, also providing a set of - additional characteristics describing the purchase. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names - are provided in `FBSDKAppEventParameterName*` constants. - - - This event immediately triggers a flush of the `FBSDKAppEvents` event queue, unless the `flushBehavior` is set - to `FBSDKAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency - parameters:(NSDictionary *)parameters; - -/** - - Log a purchase of the specified amount, in the specified currency, also providing a set of - additional characteristics describing the purchase, as well as an to log to. - - @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value - will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). - - @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for - specific values. One reference for these is . - - @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must - be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of - parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names - are provided in `FBSDKAppEventParameterName*` constants. - - @param accessToken The optional access token to log the event as. - - - This event immediately triggers a flush of the `FBSDKAppEvents` event queue, unless the `flushBehavior` is set - to `FBSDKAppEventsFlushBehaviorExplicitOnly`. - - */ -+ (void)logPurchase:(double)purchaseAmount - currency:(NSString *)currency - parameters:(NSDictionary *)parameters - accessToken:(nullable FBSDKAccessToken *)accessToken; - - -/* - * Push Notifications Logging - */ - -/** - Log an app event that tracks that the application was open via Push Notification. - - @param payload Notification payload received via `UIApplicationDelegate`. - */ -+ (void)logPushNotificationOpen:(NSDictionary *)payload; - -/** - Log an app event that tracks that a custom action was taken from a push notification. - - @param payload Notification payload received via `UIApplicationDelegate`. - @param action Name of the action that was taken. - */ -+ (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action; - -/** - Uploads product catalog product item as an app event - @param itemID Unique ID for the item. Can be a variant for a product. - Max size is 100. - @param availability If item is in stock. Accepted values are: - in stock - Item ships immediately - out of stock - No plan to restock - preorder - Available in future - available for order - Ships in 1-2 weeks - discontinued - Discontinued - @param condition Product condition: new, refurbished or used. - @param description Short text describing product. Max size is 5000. - @param imageLink Link to item image used in ad. - @param link Link to merchant's site where someone can buy the item. - @param title Title of item. - @param priceAmount Amount of purchase, in the currency specified by the 'currency' - parameter. This value will be rounded to the thousandths place - (e.g., 12.34567 becomes 12.346). - @param currency Currency used to specify the amount. - E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is - @param gtin Global Trade Item Number including UPC, EAN, JAN and ISBN - @param mpn Unique manufacture ID for product - @param brand Name of the brand - Note: Either gtin, mpn or brand is required. - @param parameters Optional fields for deep link specification. - */ -+ (void)logProductItem:(NSString *)itemID - availability:(FBSDKProductAvailability)availability - condition:(FBSDKProductCondition)condition - description:(NSString *)description - imageLink:(NSString *)imageLink - link:(NSString *)link - title:(NSString *)title - priceAmount:(double)priceAmount - currency:(NSString *)currency - gtin:(nullable NSString *)gtin - mpn:(nullable NSString *)mpn - brand:(nullable NSString *)brand - parameters:(nullable NSDictionary *)parameters; - -/** - - Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. - This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless - one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. - In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the - app delegates' `applicationDidBecomeActive:` method. - - This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to - track user acquisition and app install ads conversions. - - - - `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. - "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" - event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much - time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data - is all visible in your app's App Events Insights. - */ -+ (void)activateApp; - -/* - * Push Notifications Registration and Uninstall Tracking - */ - -/** - Sets and sends device token to register the current application for push notifications. - - - - Sets and sends a device token from `NSData` representation that you get from `UIApplicationDelegate.-application:didRegisterForRemoteNotificationsWithDeviceToken:`. - - @param deviceToken Device token data. - */ -+ (void)setPushNotificationsDeviceToken:(NSData *)deviceToken; - -/** - Sets and sends device token string to register the current application for push notifications. - - - - Sets and sends a device token string - - @param deviceTokenString Device token string. - */ -+ (void)setPushNotificationsDeviceTokenString:(NSString *)deviceTokenString -NS_SWIFT_NAME(setPushNotificationsDeviceToken(_:)); - -/** - Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate - kick off. Server failures will be reported through the NotificationCenter with notification ID `FBSDKAppEventsLoggingResultNotification`. - */ -+ (void)flush; - -/** - Creates a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. - Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, - and then use the resultant Custom Audience to target ads. - - The JSON in the request's response will include an "custom_audience_third_party_id" key/value pair, with the value being the ID retrieved. - This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. - Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior - across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. - - The ID retrieved represents the Facebook user identified in the following way: if the specified access token is valid, - the ID will represent the user associated with that token; otherwise the ID will represent the user logged into the - native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out - at the iOS level from ad tracking, then a `nil` ID will be returned. - - This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage - via the `[FBSDKSettings limitEventAndDataUsage]` flag, or a specific Facebook user cannot be identified. - - @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. - If `nil`, then the `[FBSDKAccessToken currentAccessToken]` is used. - */ -+ (nullable FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(nullable FBSDKAccessToken *)accessToken; - -/* - Clears the custom user ID to associate with all app events. - */ -+ (void)clearUserID; - -/* - Sets custom user data to associate with all app events. All user data are hashed - and used to match Facebook user from this instance of an application. - - The user data will be persisted between application instances. - - @param email user's email - @param firstName user's first name - @param lastName user's last name - @param phone user's phone - @param dateOfBirth user's date of birth - @param gender user's gender - @param city user's city - @param state user's state - @param zip user's zip - @param country user's country - */ -+ (void)setUserEmail:(nullable NSString *)email - firstName:(nullable NSString *)firstName - lastName:(nullable NSString *)lastName - phone:(nullable NSString *)phone - dateOfBirth:(nullable NSString *)dateOfBirth - gender:(nullable NSString *)gender - city:(nullable NSString *)city - state:(nullable NSString *)state - zip:(nullable NSString *)zip - country:(nullable NSString *)country -NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:)); - -/* - Returns the set user data else nil -*/ -+ (nullable NSString *)getUserData; - -/* - Clears the current user data -*/ -+ (void)clearUserData; - -/* - Sets custom user data to associate with all app events. All user data are hashed - and used to match Facebook user from this instance of an application. - - The user data will be persisted between application instances. - - @param data data - @param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone - */ -+ (void)setUserData:(nullable NSString *)data - forType:(FBSDKAppEventUserDataType)type; - -/* - Clears the current user data of certain type - */ -+ (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; - -/* - Sends a request to update the properties for the current user, set by `setUserID:` - - You must call `FBSDKAppEvents setUserID:` before making this call. - @param properties the custom user properties - @param handler the optional completion handler - */ -+ (void)updateUserProperties:(NSDictionary *)properties handler:(nullable FBSDKGraphRequestBlock)handler __attribute__((deprecated("updateUserProperties is deprecated"))); - -#if !TARGET_OS_TV -/* - Intended to be used as part of a hybrid webapp. - If you call this method, the FB SDK will inject a new JavaScript object into your webview. - If the FB Pixel is used within the webview, and references the app ID of this app, - then it will detect the presence of this injected JavaScript object - and pass Pixel events back to the FB SDK for logging using the AppEvents framework. - - @param webView The webview to augment with the additional JavaScript behaviour - */ -+ (void)augmentHybridWKWebView:(WKWebView *)webView; -#endif - -/* - * Unity helper functions - */ - -/** - - Set if the Unity is already initialized - - @param isUnityInit whether Unity is initialized. - - */ -+ (void)setIsUnityInit:(BOOL)isUnityInit; - -/* - Send event binding to Unity - */ -+ (void)sendEventBindingsToUnity; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h deleted file mode 100644 index 9d681b29..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKAppLinkTarget.h" - -NS_ASSUME_NONNULL_BEGIN - -/** The version of the App Link protocol that this library supports */ -FOUNDATION_EXPORT NSString *const FBSDKAppLinkVersion -NS_SWIFT_NAME(AppLinkVersion); - -/** - Contains App Link metadata relevant for navigation on this device - derived from the HTML at a given URL. - */ -NS_SWIFT_NAME(AppLink) -@interface FBSDKAppLink : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Creates a FBSDKAppLink with the given list of FBSDKAppLinkTargets and target URL. - - Generally, this will only be used by implementers of the FBSDKAppLinkResolving protocol, - as these implementers will produce App Link metadata for a given URL. - - @param sourceURL the URL from which this App Link is derived - @param targets an ordered list of FBSDKAppLinkTargets for this platform derived - from App Link metadata. - @param webURL the fallback web URL, if any, for the app link. - */ -+ (instancetype)appLinkWithSourceURL:(nullable NSURL *)sourceURL - targets:(NSArray *)targets - webURL:(nullable NSURL *)webURL -NS_SWIFT_NAME(init(sourceURL:targets:webURL:)); - -/** The URL from which this FBSDKAppLink was derived */ -@property (nonatomic, strong, readonly, nullable) NSURL *sourceURL; - -/** - The ordered list of targets applicable to this platform that will be used - for navigation. - */ -@property (nonatomic, copy, readonly) NSArray *targets; - -/** The fallback web URL to use if no targets are installed on this device. */ -@property (nonatomic, strong, readonly, nullable) NSURL *webURL; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h deleted file mode 100644 index 88898b62..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKAppLinkResolving.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - Describes the callback for appLinkFromURLInBackground. - @param appLinks the FBSDKAppLinks representing the deferred App Links - @param error the error during the request, if any - */ -typedef void (^FBSDKAppLinksBlock)(NSDictionary * appLinks, - NSError * _Nullable error) -NS_SWIFT_NAME(AppLinksBlock); - -/** - - Provides an implementation of the FBSDKAppLinkResolving protocol that uses the Facebook App Link - Index API to resolve App Links given a URL. It also provides an additional helper method that can resolve - multiple App Links in a single call. - - Usage of this type requires a client token. See `[FBSDKSettings setClientToken:]` - */ - -NS_SWIFT_NAME(AppLinkResolver) -@interface FBSDKAppLinkResolver : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - 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 *)urls handler:(FBSDKAppLinksBlock)handler -NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); - -/** - Allocates and initializes a new instance of FBSDKAppLinkResolver. - */ -+ (instancetype)resolver -NS_SWIFT_NAME(init()); - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolverRequestBuilder.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolverRequestBuilder.h deleted file mode 100644 index 9f33044f..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolverRequestBuilder.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKAppLinkResolving.h" -#import "FBSDKGraphRequest.h" -NS_ASSUME_NONNULL_BEGIN - -/** - Class responsible for generating the appropriate FBSDKGraphRequest for a given set of urls - */ -NS_SWIFT_NAME(AppLinkResolverRequestBuilder) -@interface FBSDKAppLinkResolverRequestBuilder : NSObject - -/** - Generates the FBSDKGraphRequest - - @param urls The URLs to build the requests for - */ -- (FBSDKGraphRequest* _Nonnull)requestForURLs:(NSArray * _Nonnull)urls -NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); - -- (NSString* _Nullable)getIdiomSpecificField -NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h deleted file mode 100644 index 623a644f..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKAppLink; - -/** - Describes the callback for appLinkFromURLInBackground. - @param appLink the FBSDKAppLink representing the deferred App Link - @param error the error during the request, if any - - */ -typedef void (^FBSDKAppLinkBlock)(FBSDKAppLink * _Nullable appLink, NSError * _Nullable error) -NS_SWIFT_NAME(AppLinkBlock); - - -/** - Implement this protocol to provide an alternate strategy for resolving - App Links that may include pre-fetching, caching, or querying for App Link - data from an index provided by a service provider. - */ -NS_SWIFT_NAME(AppLinkResolving) -@protocol FBSDKAppLinkResolving - -/** - Asynchronously resolves App Link data for a given URL. - - @param url The URL to resolve into an App Link. - @param handler The completion block that will return an App Link for the given URL. - */ -- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler -NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererController.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererController.h deleted file mode 100644 index e54b047a..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererController.h +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKAppLinkReturnToRefererView.h" - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKAppLink; -@class FBSDKAppLinkReturnToRefererController; - -/** - Protocol that a class can implement in order to be notified when the user has navigated back - to the referer of an App Link. - */ -NS_SWIFT_NAME(AppLinkReturnToRefererControllerDelegate) -@protocol FBSDKAppLinkReturnToRefererControllerDelegate - -@optional - -/** Called when the user has tapped to navigate, but before the navigation has been performed. */ -- (void)returnToRefererController:(FBSDKAppLinkReturnToRefererController *)controller - willNavigateToAppLink:(FBSDKAppLink *)appLink -NS_SWIFT_NAME(return(to:willNavigateTo:)); - -/** Called after the navigation has been attempted, with an indication of whether the referer - app link was successfully opened. */ -- (void)returnToRefererController:(FBSDKAppLinkReturnToRefererController *)controller - didNavigateToAppLink:(FBSDKAppLink *)url - type:(FBSDKAppLinkNavigationType)type -NS_SWIFT_NAME(return(to:didNavigateTo:type:)); - -@end - -/** - A controller class that implements default behavior for a FBSDKAppLinkReturnToRefererView, including - the ability to display the view above the navigation bar for navigation-based apps. - */ -NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension") -NS_SWIFT_NAME(AppLinkReturnToRefererController) -@interface FBSDKAppLinkReturnToRefererController : NSObject - -/** - The delegate that will be notified when the user navigates back to the referer. - */ -@property (nonatomic, weak, nullable) id delegate; - -/** - The FBSDKAppLinkReturnToRefererView this controller is controlling. - */ -@property (nonatomic, strong) FBSDKAppLinkReturnToRefererView *view; - -/** - Initializes a controller suitable for controlling a FBSDKAppLinkReturnToRefererView that is to be displayed - contained within another UIView (i.e., not displayed above the navigation bar). - */ -- (instancetype)init NS_DESIGNATED_INITIALIZER; - -/** - Initializes a controller suitable for controlling a FBSDKAppLinkReturnToRefererView that is to be displayed - displayed above the navigation bar. - - @param navController The Navigation Controller for display above - */ -- (instancetype)initForDisplayAboveNavController:(UINavigationController *)navController -NS_SWIFT_NAME(init(navController:)); - -/** - Removes the view entirely from the navigation controller it is currently displayed in. - */ -- (void)removeFromNavController; - -/** - Shows the FBSDKAppLinkReturnToRefererView with the specified referer information. If nil or missing data, - the view will not be displayed. */ -- (void)showViewForRefererAppLink:(FBSDKAppLink *)refererAppLink -NS_SWIFT_NAME(showView(forReferer:)); - -/** - Shows the FBSDKAppLinkReturnToRefererView with referer information extracted from the specified URL. - If nil or missing referer App Link data, the view will not be displayed. */ -- (void)showViewForRefererURL:(NSURL *)url -NS_SWIFT_NAME(showView(forReferer:)); - -/** - Closes the view, possibly animating it. - */ -- (void)closeViewAnimated:(BOOL)animated; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererView.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererView.h deleted file mode 100644 index 7293e751..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererView.h +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKAppLinkNavigation.h" - -NS_ASSUME_NONNULL_BEGIN - -typedef NS_ENUM(NSUInteger, FBSDKIncludeStatusBarInSize) { - FBSDKIncludeStatusBarInSizeNever, - FBSDKIncludeStatusBarInSizeAlways, -} NS_SWIFT_NAME(FBAppLinkReturnToRefererView.StatusBarSizeInclude); - -@class FBSDKAppLinkReturnToRefererView; -@class FBSDKURL; - -/** - Protocol that a class can implement in order to be notified when the user has navigated back - to the referer of an App Link. - */ -NS_SWIFT_NAME(AppLinkReturnToRefererViewDelegate) -@protocol FBSDKAppLinkReturnToRefererViewDelegate - -/** - Called when the user has tapped inside the close button. - */ -- (void)returnToRefererViewDidTapInsideCloseButton:(FBSDKAppLinkReturnToRefererView *)view -NS_SWIFT_NAME(returnToRefererViewDidTapInsideCloseButton(_:)); - -/** - Called when the user has tapped inside the App Link portion of the view. - */ -- (void)returnToRefererViewDidTapInsideLink:(FBSDKAppLinkReturnToRefererView *)view - link:(FBSDKAppLink *)link -NS_SWIFT_NAME(returnToRefererView(_:didTapInside:)); - -@end - -/** - Provides a UIView that displays a button allowing users to navigate back to the - application that launched the App Link currently being handled, if the App Link - contained referer data. The user can also close the view by clicking a close button - rather than navigating away. If the view is provided an App Link that does not contain - referer data, it will have zero size and no UI will be displayed. - */ -NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension") -NS_SWIFT_NAME(FBAppLinkReturnToRefererView) -@interface FBSDKAppLinkReturnToRefererView : UIView - -/** - The delegate that will be notified when the user navigates back to the referer. - */ -@property (nonatomic, weak, nullable) id delegate; - -/** - The color of the text label and close button. - */ -@property (nonatomic, strong) UIColor *textColor; - -@property (nonatomic, strong) FBSDKAppLink *refererAppLink; - -/** - Indicates whether to extend the size of the view to include the current status bar - size, for use in scenarios where the view might extend under the status bar on iOS 7 and - above; this property has no effect on earlier versions of iOS. - */ -@property (nonatomic, assign) FBSDKIncludeStatusBarInSize includeStatusBarInSize -NS_SWIFT_NAME(statusBarSizeInclude); - -/** - Indicates whether the user has closed the view by clicking the close button. - */ -@property (nonatomic, assign, getter=isClosed) BOOL closed; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h deleted file mode 100644 index efcb2441..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -NS_ASSUME_NONNULL_BEGIN - -/** - Represents a target defined in App Link metadata, consisting of at least - a URL, and optionally an App Store ID and name. - */ -NS_SWIFT_NAME(AppLinkTarget) -@interface FBSDKAppLinkTarget : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** Creates a FBSDKAppLinkTarget with the given app site and target URL. */ -+ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url - appStoreId:(nullable NSString *)appStoreId - appName:(NSString *)appName -NS_SWIFT_NAME(init(url:appStoreId:appName:)); - -/** The URL prefix for this app link target */ -@property (nonatomic, strong, readonly, nullable) NSURL *URL; - -/** The app ID for the app store */ -@property (nonatomic, copy, readonly, nullable) NSString *appStoreId; - -/** The name of the app */ -@property (nonatomic, copy, readonly) NSString *appName; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h deleted file mode 100644 index f4bde723..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - - The FBSDKApplicationDelegate is designed to post process the results from Facebook Login - or Facebook Dialogs (or any action that requires switching over to the native Facebook - app or Safari). - - - - The methods in this class are designed to mirror those in UIApplicationDelegate, and you - should call them in the respective methods in your AppDelegate implementation. - */ -NS_SWIFT_NAME(ApplicationDelegate) -@interface FBSDKApplicationDelegate : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Gets the singleton instance. - */ -@property (class, nonatomic, readonly, strong) FBSDKApplicationDelegate *sharedInstance -NS_SWIFT_NAME(shared); - -/** - Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. - - @param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -- (BOOL)application:(UIApplication *)application - openURL:(NSURL *)url - sourceApplication:(nullable NSString *)sourceApplication - annotation:(nullable id)annotation; - -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_0 -/** - Call this method from the [UIApplicationDelegate application:openURL:options:] method - of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction - with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. - - @param application The application as passed to [UIApplicationDelegate application:openURL:options:]. - - @param url The URL as passed to [UIApplicationDelegate application:openURL:options:]. - - @param options The options dictionary as passed to [UIApplicationDelegate application:openURL:options:]. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -- (BOOL)application:(UIApplication *)application - openURL:(NSURL *)url - options:(NSDictionary *)options; -#endif - -/** - Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method - of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. - As part of SDK initialization basic auto logging of app events will occur, this can be -controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. - - @param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. - - @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. - - @return YES if the url was intended for the Facebook SDK, NO if not. - */ -- (BOOL)application:(UIApplication *)application -didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; - -/** - Call this method to manually initialize SDK. - - @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. - Could be nil if you don't call this function from [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. - */ -+ (void)initializeSDK:(nullable NSDictionary *)launchOptions; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h deleted file mode 100644 index 4bd38651..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - Represent an AuthenticationToken used for a login attempt -*/ -NS_SWIFT_NAME(AuthenticationToken) -@interface FBSDKAuthenticationToken : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - The "global" authentication token that represents the currently logged in user. - - The `currentAuthenticationToken` represents the authentication token of the - current user and can be used by a client to verify an authentication attempt. - */ -@property (class, nonatomic, copy, nullable) FBSDKAuthenticationToken *currentAuthenticationToken; - -/** - The raw token string from the authentication response - */ -@property (nonatomic, copy, readonly) NSString *tokenString; - -/** - The nonce from the decoded authentication response - */ -@property (nonatomic, copy, readonly) NSString *nonce; - -/** - The graph domain where the user is authenticated. - */ -@property (nonatomic, copy, readonly) NSString *graphDomain; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKButton.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKButton.h deleted file mode 100644 index bf5f0047..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKButton.h +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - A base class for common SDK buttons. - */ -NS_SWIFT_NAME(FBButton) -@interface FBSDKButton : UIButton - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKConstants.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKConstants.h deleted file mode 100644 index fbed2667..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKConstants.h +++ /dev/null @@ -1,375 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 - -/** - The error domain for all errors from FBSDKCoreKit. - - Error codes from the SDK in the range 0-99 are reserved for this domain. - */ -FOUNDATION_EXPORT NSErrorDomain const FBSDKErrorDomain -NS_SWIFT_NAME(ErrorDomain); - -#else - -/** - The error domain for all errors from FBSDKCoreKit. - - Error codes from the SDK in the range 0-99 are reserved for this domain. - */ -FOUNDATION_EXPORT NSString *const FBSDKErrorDomain -NS_SWIFT_NAME(ErrorDomain); - -#endif - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0 - -/* - @methodgroup error userInfo keys - */ - -/** - The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. - - If the invalid argument is a collection, the collection can be found with this key and the individual - invalid item can be found with FBSDKErrorArgumentValueKey. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey -NS_SWIFT_NAME(ErrorArgumentCollectionKey); - -/** - The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey -NS_SWIFT_NAME(ErrorArgumentNameKey); - -/** - The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey -NS_SWIFT_NAME(ErrorArgumentValueKey); - -/** - The userInfo key for the message for developers in NSErrors that originate from the SDK. - - The developer message will not be localized and is not intended to be presented within the app. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey -NS_SWIFT_NAME(ErrorDeveloperMessageKey); - -/** - The userInfo key describing a localized description that can be presented to the user. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey -NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); - -/** - The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey -NS_SWIFT_NAME(ErrorLocalizedTitleKey); - -/* - @methodgroup FBSDKGraphRequest error userInfo keys - */ - -/** - The userInfo key describing the error category, for error recovery purposes. - - See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorKey -NS_SWIFT_NAME(GraphRequestErrorKey); - -/* - The userInfo key for the Graph API error code. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey -NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); - -/* - The userInfo key for the Graph API error subcode. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey -NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); - -/* - The userInfo key for the HTTP status code. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey -NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); - -/* - The userInfo key for the raw JSON response. - */ -FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey -NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); - -#else - -/* - @methodgroup error userInfo keys - */ - -/** - The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. - - If the invalid argument is a collection, the collection can be found with this key and the individual - invalid item can be found with FBSDKErrorArgumentValueKey. - */ -FOUNDATION_EXPORT NSString *const FBSDKErrorArgumentCollectionKey -NS_SWIFT_NAME(ErrorArgumentCollectionKey); - -/** - The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. - */ -FOUNDATION_EXPORT NSString *const FBSDKErrorArgumentNameKey -NS_SWIFT_NAME(ErrorArgumentNameKey); - -/** - The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. - */ -FOUNDATION_EXPORT NSString *const FBSDKErrorArgumentValueKey -NS_SWIFT_NAME(ErrorArgumentValueKey); - -/** - The userInfo key for the message for developers in NSErrors that originate from the SDK. - - The developer message will not be localized and is not intended to be presented within the app. - */ -FOUNDATION_EXPORT NSString *const FBSDKErrorDeveloperMessageKey -NS_SWIFT_NAME(ErrorDeveloperMessageKey); - -/** - The userInfo key describing a localized description that can be presented to the user. - */ -FOUNDATION_EXPORT NSString *const FBSDKErrorLocalizedDescriptionKey -NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); - -/** - The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. - */ -FOUNDATION_EXPORT NSString *const FBSDKErrorLocalizedTitleKey -NS_SWIFT_NAME(ErrorLocalizedTitleKey); - -/* - @methodgroup FBSDKGraphRequest error userInfo keys - */ - -/** - The userInfo key describing the error category, for error recovery purposes. - - See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. - */ -FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorKey -NS_SWIFT_NAME(GraphRequestErrorKey); - -/* - The userInfo key for the Graph API error code. - */ -FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorGraphErrorCodeKey -NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); - -/* - The userInfo key for the Graph API error subcode. - */ -FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorGraphErrorSubcodeKey -NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); - -/* - The userInfo key for the HTTP status code. - */ -FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorHTTPStatusCodeKey -NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); - -/* - The userInfo key for the raw JSON response. - */ -FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorParsedJSONResponseKey -NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); - -#endif - -/* - @methodgroup Common Code Block typedefs - */ - -/** - Success Block - */ -typedef void (^FBSDKCodeBlock)(void) -NS_SWIFT_NAME(CodeBlock); - -/** - Error Block - */ -typedef void (^FBSDKErrorBlock)(NSError *_Nullable error) -NS_SWIFT_NAME(ErrorBlock); - -/** - Success Block - */ -typedef void (^FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) -NS_SWIFT_NAME(SuccessBlock); - -/* - @methodgroup Enums - */ - -#ifndef NS_ERROR_ENUM -#define NS_ERROR_ENUM(_domain, _name) \ -enum _name: NSInteger _name; \ -enum __attribute__((ns_error_domain(_domain))) _name: NSInteger -#endif - -/** - FBSDKCoreError - Error codes for FBSDKErrorDomain. - */ -typedef NS_ERROR_ENUM(FBSDKErrorDomain, FBSDKCoreError) -{ - /** - Reserved. - */ - FBSDKErrorReserved = 0, - - /** - The error code for errors from invalid encryption on incoming encryption URLs. - */ - FBSDKErrorEncryption, - - /** - The error code for errors from invalid arguments to SDK methods. - */ - FBSDKErrorInvalidArgument, - - /** - The error code for unknown errors. - */ - FBSDKErrorUnknown, - - /** - A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve - the error object from the NSURLSession for more information. - */ - FBSDKErrorNetwork, - - /** - The error code for errors encountered during an App Events flush. - */ - FBSDKErrorAppEventsFlush, - - /** - An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. - - Endpoints that return image/jpg, etc. should be accessed using NSURLRequest - */ - FBSDKErrorGraphRequestNonTextMimeTypeReturned, - - /** - The operation failed because the server returned an unexpected response. - - You can get this error if you are not using the most recent SDK, or you are accessing a version of the - Graph API incompatible with the current SDK. - */ - FBSDKErrorGraphRequestProtocolMismatch, - - /** - The Graph API returned an error. - - See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) - */ - FBSDKErrorGraphRequestGraphAPI, - - /** - The specified dialog configuration is not available. - - This error may signify that the configuration for the dialogs has not yet been downloaded from the server - or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. - */ - FBSDKErrorDialogUnavailable, - - /** - Indicates an operation failed because a required access token was not found. - */ - FBSDKErrorAccessTokenRequired, - - /** - Indicates an app switch (typically for a dialog) failed because the destination app is out of date. - */ - FBSDKErrorAppVersionUnsupported, - - /** - Indicates an app switch to the browser (typically for a dialog) failed. - */ - FBSDKErrorBrowserUnavailable, - - /** - Indicates that a bridge api interaction was interrupted. - */ - FBSDKErrorBridgeAPIInterruption, -} NS_SWIFT_NAME(CoreError); - -/** - FBSDKGraphRequestError - Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. - */ -typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) -{ - /** The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. */ - FBSDKGraphRequestErrorOther = 0, - /** Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. */ - FBSDKGraphRequestErrorTransient = 1, - /** Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. */ - FBSDKGraphRequestErrorRecoverable = 2 -} NS_SWIFT_NAME(GraphRequestError); - -/** - a formal protocol very similar to the informal protocol NSErrorRecoveryAttempting - */ -NS_SWIFT_UNAVAILABLE("") -@protocol FBSDKErrorRecoveryAttempting - -/** - attempt the recovery - @param error the error - @param recoveryOptionIndex the selected option index - @param delegate the delegate - @param didRecoverSelector the callback selector, see discussion. - @param contextInfo context info to pass back to callback selector, see discussion. - - - Given that an error alert has been presented document-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and send the selected message to the specified delegate. The option index is an index into the error's array of localized recovery options. The method selected by didRecoverSelector must have the same signature as: - - - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo; - - The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. - */ -- (void)attemptRecoveryFromError:(NSError *)error - optionIndex:(NSUInteger)recoveryOptionIndex - delegate:(nullable id)delegate - didRecoverSelector:(SEL)didRecoverSelector - contextInfo:(nullable void *)contextInfo; -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCopying.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCopying.h deleted file mode 100644 index fc938bbd..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCopying.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - Extension protocol for NSCopying that adds the copy method, which is implemented on NSObject. - - NSObject implicitly conforms to this protocol. - */ -NS_SWIFT_NAME(Copying) -@protocol FBSDKCopying - -/** - Implemented by NSObject as a convenience to copyWithZone:. - @return A copy of the receiver. - */ -- (id)copy; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h deleted file mode 100644 index 8a283ed7..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#ifdef BUCK - - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - - #if !TARGET_OS_TV - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #import - #else - #import - #import - #endif - -#else - - #import "FBSDKAccessToken.h" - #import "FBSDKAppEvents.h" - #import "FBSDKApplicationDelegate.h" - #import "FBSDKAuthenticationToken.h" - #import "FBSDKButton.h" - #import "FBSDKConstants.h" - #import "FBSDKCopying.h" - #import "FBSDKGraphRequest.h" - #import "FBSDKGraphRequestConnection.h" - #import "FBSDKGraphRequestDataAttachment.h" - #import "FBSDKSettings.h" - #import "FBSDKTestUsersManager.h" - #import "FBSDKUtility.h" - - #if !TARGET_OS_TV - #import "FBSDKAppLink.h" - #import "FBSDKAppLinkNavigation.h" - #import "FBSDKAppLinkResolver.h" - #import "FBSDKAppLinkResolverRequestBuilder.h" - #import "FBSDKAppLinkResolving.h" - #import "FBSDKAppLinkReturnToRefererController.h" - #import "FBSDKAppLinkReturnToRefererView.h" - #import "FBSDKAppLinkTarget.h" - #import "FBSDKAppLinkUtility.h" - #import "FBSDKGraphErrorRecoveryProcessor.h" - #import "FBSDKMeasurementEvent.h" - #import "FBSDKMutableCopying.h" - #import "FBSDKProfile.h" - #import "FBSDKProfilePictureView.h" - #import "FBSDKURL.h" - #import "FBSDKWebViewAppLinkResolver.h" - #else - #import "FBSDKDeviceButton.h" - #import "FBSDKDeviceViewControllerBase.h" - #endif - -#endif - -#define FBSDK_VERSION_STRING @"9.0.0" -#define FBSDK_TARGET_PLATFORM_VERSION @"v9.0" diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h deleted file mode 100644 index 28f85811..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKGraphRequestConnection.h" - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKAccessToken; - -/// typedef for FBSDKHTTPMethod -typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); - -/// GET Request -FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodGET NS_SWIFT_NAME(get); - -/// POST Request -FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodPOST NS_SWIFT_NAME(post); - -/// DELETE Request -FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodDELETE NS_SWIFT_NAME(delete); - -/** - Represents a request to the Facebook Graph API. - - - `FBSDKGraphRequest` encapsulates the components of a request (the - Graph API path, the parameters, error recovery behavior) and should be - used in conjunction with `FBSDKGraphRequestConnection` to issue the request. - - Nearly all Graph APIs require an access token. Unless specified, the - `[FBSDKAccessToken currentAccessToken]` is used. Therefore, most requests - will require login first (see `FBSDKLoginManager` in FBSDKLoginKit.framework). - - A `- start` method is provided for convenience for single requests. - - By default, FBSDKGraphRequest will attempt to recover any errors returned from - Facebook. You can disable this via `disableErrorRecovery:`. - - @see FBSDKGraphErrorRecoveryProcessor - */ -NS_SWIFT_NAME(GraphRequest) -@interface FBSDKGraphRequest : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. - @param graphPath the graph path (e.g., @"me"). - */ -- (instancetype)initWithGraphPath:(NSString *)graphPath; - -/** - Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. - @param graphPath the graph path (e.g., @"me"). - @param method the HTTP method. Empty String defaults to @"GET". - */ -- (instancetype)initWithGraphPath:(NSString *)graphPath - HTTPMethod:(FBSDKHTTPMethod)method; - -/** - Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. - @param graphPath the graph path (e.g., @"me"). - @param parameters the optional parameters dictionary. - */ -- (instancetype)initWithGraphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters; - -/** - Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. - @param graphPath the graph path (e.g., @"me"). - @param parameters the optional parameters dictionary. - @param method the HTTP method. Empty String defaults to @"GET". - */ -- (instancetype)initWithGraphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - HTTPMethod:(FBSDKHTTPMethod)method; - -/** - Initializes a new instance. - @param graphPath the graph path (e.g., @"me"). - @param parameters the optional parameters dictionary. - @param tokenString the token string to use. Specifying nil will cause no token to be used. - @param version the optional Graph API version (e.g., @"v2.0"). nil defaults to `[FBSDKSettings graphAPIVersion]`. - @param method the HTTP method. Empty String defaults to @"GET". - */ -- (instancetype)initWithGraphPath:(NSString *)graphPath - parameters:(NSDictionary *)parameters - tokenString:(nullable NSString *)tokenString - version:(nullable NSString *)version - HTTPMethod:(FBSDKHTTPMethod)method -NS_DESIGNATED_INITIALIZER; - -/** - The request parameters. - */ -@property (nonatomic, copy) NSDictionary *parameters; - -/** - The access token string used by the request. - */ -@property (nonatomic, copy, readonly, nullable) NSString *tokenString; - -/** - The Graph API endpoint to use for the request, for example "me". - */ -@property (nonatomic, copy, readonly) NSString *graphPath; - -/** - The HTTPMethod to use for the request, for example "GET" or "POST". - */ -@property (nonatomic, copy, readonly) FBSDKHTTPMethod HTTPMethod; - -/** - The Graph API version to use (e.g., "v2.0") - */ -@property (nonatomic, copy, readonly) NSString *version; - -/** - If set, disables the automatic error recovery mechanism. - @param disable whether to disable the automatic error recovery mechanism - - By default, non-batched FBSDKGraphRequest instances will automatically try to recover - from errors by constructing a `FBSDKGraphErrorRecoveryProcessor` instance that - re-issues the request on successful recoveries. The re-issued request will call the same - handler as the receiver but may occur with a different `FBSDKGraphRequestConnection` instance. - - This will override [FBSDKSettings setGraphErrorRecoveryDisabled:]. - */ -- (void)setGraphErrorRecoveryDisabled:(BOOL)disable -NS_SWIFT_NAME(setGraphErrorRecovery(disabled:)); - -/** - Starts a connection to the Graph API. - @param handler The handler block to call when the request completes. - */ -- (FBSDKGraphRequestConnection *)startWithCompletionHandler:(nullable FBSDKGraphRequestBlock)handler; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h deleted file mode 100644 index bdab4dc7..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h +++ /dev/null @@ -1,310 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - The key in the result dictionary for requests to old versions of the Graph API - whose response is not a JSON object. - - - When a request returns a non-JSON response (such as a "true" literal), that response - will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API - prior to v2.1. - */ -FOUNDATION_EXPORT NSString *const FBSDKNonJSONResponseProperty -NS_SWIFT_NAME(NonJSONResponseProperty); - -@class FBSDKGraphRequest; -@class FBSDKGraphRequestConnection; - -/** - FBSDKGraphRequestBlock - - A block that is passed to addRequest to register for a callback with the results of that - request once the connection completes. - - Pass a block of this type when calling addRequest. This will be called once - the request completes. The call occurs on the UI thread. - - @param connection The `FBSDKGraphRequestConnection` that sent the request. - - @param result The result of the request. This is a translation of - JSON data to `NSDictionary` and `NSArray` objects. This - is nil if there was an error. - - @param error The `NSError` representing any error that occurred. - - */ -typedef void (^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection *_Nullable connection, - id _Nullable result, - NSError *_Nullable error) -NS_SWIFT_NAME(GraphRequestBlock); - -/** - @protocol - - The `FBSDKGraphRequestConnectionDelegate` protocol defines the methods used to receive network - activity progress information from a . - */ -NS_SWIFT_NAME(GraphRequestConnectionDelegate) -@protocol FBSDKGraphRequestConnectionDelegate - -@optional - -/** - @method - - Tells the delegate the request connection will begin loading - - - - If the is created using one of the convenience factory methods prefixed with - start, the object returned from the convenience method has already begun loading and this method - will not be called when the delegate is set. - - @param connection The request connection that is starting a network request - */ -- (void)requestConnectionWillBeginLoading:(FBSDKGraphRequestConnection *)connection; - -/** - @method - - Tells the delegate the request connection finished loading - - - - If the request connection completes without a network error occurring then this method is called. - Invocation of this method does not indicate success of every made, only that the - request connection has no further activity. Use the error argument passed to the FBSDKGraphRequestBlock - block to determine success or failure of each . - - This method is invoked after the completion handler for each . - - @param connection The request connection that successfully completed a network request - */ -- (void)requestConnectionDidFinishLoading:(FBSDKGraphRequestConnection *)connection; - -/** - @method - - Tells the delegate the request connection failed with an error - - - - If the request connection fails with a network error then this method is called. The `error` - argument specifies why the network connection failed. The `NSError` object passed to the - FBSDKGraphRequestBlock block may contain additional information. - - @param connection The request connection that successfully completed a network request - @param error The `NSError` representing the network error that occurred, if any. May be nil - in some circumstances. Consult the `NSError` for the for reliable - failure information. - */ -- (void)requestConnection:(FBSDKGraphRequestConnection *)connection - didFailWithError:(NSError *)error; - -/** - @method - - Tells the delegate how much data has been sent and is planned to send to the remote host - - - - The byte count arguments refer to the aggregated objects, not a particular . - - Like `NSURLSession`, the values may change in unexpected ways if data needs to be resent. - - @param connection The request connection transmitting data to a remote host - @param bytesWritten The number of bytes sent in the last transmission - @param totalBytesWritten The total number of bytes sent to the remote host - @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host - */ -- (void)requestConnection:(FBSDKGraphRequestConnection *)connection - didSendBodyData:(NSInteger)bytesWritten - totalBytesWritten:(NSInteger)totalBytesWritten -totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; - -@end - -/** - - The `FBSDKGraphRequestConnection` represents a single connection to Facebook to service a request. - - - - The request settings are encapsulated in a reusable object. The - `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication - e.g. starting a connection, canceling a connection, or batching requests. - - */ -NS_SWIFT_NAME(GraphRequestConnection) -@interface FBSDKGraphRequestConnection : NSObject - -/** - The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. - */ -@property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; - -/** - The delegate object that receives updates. - */ -@property (nonatomic, weak, nullable) id delegate; - -/** - Gets or sets the timeout interval to wait for a response before giving up. - */ -@property (nonatomic, assign) NSTimeInterval timeout; - -/** - The raw response that was returned from the server. (readonly) - - - - This property can be used to inspect HTTP headers that were returned from - the server. - - The property is nil until the request completes. If there was a response - then this property will be non-nil during the FBSDKGraphRequestBlock callback. - */ -@property (nonatomic, retain, readonly, nullable) NSHTTPURLResponse *urlResponse; - -/** - Determines the operation queue that is used to call methods on the connection's delegate. - - By default, a connection is scheduled on the current thread in the default mode when it is created. - You cannot reschedule a connection after it has started. - */ -@property (nonatomic, retain) NSOperationQueue *delegateQueue; - -/** - @methodgroup Class methods - */ - -/** - @methodgroup Adding requests - */ - -/** - @method - - This method adds an object to this connection. - - @param request A request to be included in the round-trip when start is called. - @param handler A handler to call back when the round-trip completes or times out. - - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. - */ -- (void)addRequest:(FBSDKGraphRequest *)request - completionHandler:(FBSDKGraphRequestBlock)handler; - -/** - @method - - This method adds an object to this connection. - - @param request A request to be included in the round-trip when start is called. - - @param handler A handler to call back when the round-trip completes or times out. - The handler will be invoked on the main thread. - - @param name A name for this request. This can be used to feed - the results of one request to the input of another in the same - `FBSDKGraphRequestConnection` as described in - [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). - - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. This request can be named - to allow for using the request's response in a subsequent request. - */ -- (void)addRequest:(FBSDKGraphRequest *)request - batchEntryName:(NSString *)name - completionHandler:(FBSDKGraphRequestBlock)handler; - -/** - @method - - This method adds an object to this connection. - - @param request A request to be included in the round-trip when start is called. - - @param handler A handler to call back when the round-trip completes or times out. - - @param batchParameters The dictionary of parameters to include for this request - as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). - Examples include "depends_on", "name", or "omit_response_on_success". - - The completion handler is retained until the block is called upon the - completion or cancellation of the connection. This request can be named - to allow for using the request's response in a subsequent request. - */ -- (void)addRequest:(FBSDKGraphRequest *)request - batchParameters:(nullable NSDictionary *)batchParameters - completionHandler:(FBSDKGraphRequestBlock)handler; - -/** - @methodgroup Instance methods - */ - -/** - @method - - Signals that a connection should be logically terminated as the - application is no longer interested in a response. - - Synchronously calls any handlers indicating the request was cancelled. Cancel - does not guarantee that the request-related processing will cease. It - does promise that all handlers will complete before the cancel returns. A call to - cancel prior to a start implies a cancellation of all requests associated - with the connection. - */ -- (void)cancel; - -/** - @method - - This method starts a connection with the server and is capable of handling all of the - requests that were added to the connection. - - - By default, a connection is scheduled on the current thread in the default mode when it is created. - See `setDelegateQueue:` for other options. - - This method cannot be called twice for an `FBSDKGraphRequestConnection` instance. - */ -- (void)start; - -/** - @method - - Overrides the default version for a batch request - - The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning - for applications. If you want to override the version part while using batch requests on the connection, call - this method to set the version for the batch request. - - @param version This is a string in the form @"v2.0" which will be used for the version part of an API path - */ -- (void)overrideGraphAPIVersion:(NSString *)version; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h deleted file mode 100644 index ea07c782..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - A container class for data attachments so that additional metadata can be provided about the attachment. - */ -NS_SWIFT_NAME(GraphRequestDataAttachment) -@interface FBSDKGraphRequestDataAttachment : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Initializes the receiver with the attachment data and metadata. - @param data The attachment data (retained, not copied) - @param filename The filename for the attachment - @param contentType The content type for the attachment - */ -- (instancetype)initWithData:(NSData *)data - filename:(NSString *)filename - contentType:(NSString *)contentType -NS_DESIGNATED_INITIALIZER; - -/** - The content type for the attachment. - */ -@property (nonatomic, copy, readonly) NSString *contentType; - -/** - The attachment data. - */ -@property (nonatomic, strong, readonly) NSData *data; - -/** - The filename for the attachment. - */ -@property (nonatomic, copy, readonly) NSString *filename; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h deleted file mode 100644 index 7bd2da92..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -NS_ASSUME_NONNULL_BEGIN - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 - -/** The name of the notification posted by FBSDKMeasurementEvent */ -FOUNDATION_EXPORT NSNotificationName const FBSDKMeasurementEventNotification -NS_SWIFT_NAME(MeasurementEvent); - -#else - -/** The name of the notification posted by FBSDKMeasurementEvent */ -FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventNotification -NS_SWIFT_NAME(MeasurementEventNotification); - -#endif - -/** Defines keys in the userInfo object for the notification named FBSDKMeasurementEventNotificationName */ -/** The string field for the name of the event */ -FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventNameKey -NS_SWIFT_NAME(MeasurementEventNameKey); -/** The dictionary field for the arguments of the event */ -FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventArgsKey -NS_SWIFT_NAME(MeasurementEventArgsKey); - -/** Events raised by FBSDKMeasurementEvent for Applink */ -/** - The name of the event posted when [FBSDKURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL. - */ -FOUNDATION_EXPORT NSString *const FBSDKAppLinkParseEventName -NS_SWIFT_NAME(AppLinkParseEventName); - -/** - The name of the event posted when [FBSDKURL URLWithInboundURL:] is called successfully. - This represents parsing an inbound app link URL from a different application - */ -FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateInEventName -NS_SWIFT_NAME(AppLinkNavigateInEventName); - -/** The event raised when the user navigates from your app to other apps */ -FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateOutEventName -NS_SWIFT_NAME(AppLinkNavigateOutEventName); - -/** - The event raised when the user navigates out from your app and back to the referrer app. - e.g when the user leaves your app after tapping the back-to-referrer navigation bar - */ -FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateBackToReferrerEventName -NS_SWIFT_NAME(AppLinkNavigateBackToReferrerEventName); - -NS_SWIFT_NAME(MeasurementEvent) -@interface FBSDKMeasurementEvent : NSObject - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h deleted file mode 100644 index 7efaeeb4..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCopying.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - Extension protocol for NSMutableCopying that adds the mutableCopy method, which is implemented on NSObject. - - NSObject implicitly conforms to this protocol. - */ -NS_SWIFT_NAME(MutableCopying) -@protocol FBSDKMutableCopying - -/** - Implemented by NSObject as a convenience to mutableCopyWithZone:. - @return A mutable copy of the receiver. - */ -- (id)mutableCopy; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKProfile.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKProfile.h deleted file mode 100644 index e85324ec..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKProfile.h +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import "FBSDKProfilePictureView.h" - -@class FBSDKAuthenticationTokenClaims; -@class FBSDKProfile; - -NS_ASSUME_NONNULL_BEGIN - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 - -/** - Notification indicating that the `currentProfile` has changed. - - the userInfo dictionary of the notification will contain keys - `FBSDKProfileChangeOldKey` and - `FBSDKProfileChangeNewKey`. - */ -FOUNDATION_EXPORT NSNotificationName const FBSDKProfileDidChangeNotification -NS_SWIFT_NAME(ProfileDidChange); - -#else - -/** - Notification indicating that the `currentProfile` has changed. - - the userInfo dictionary of the notification will contain keys - `FBSDKProfileChangeOldKey` and - `FBSDKProfileChangeNewKey`. - */ -FOUNDATION_EXPORT NSString *const FBSDKProfileDidChangeNotification -NS_SWIFT_NAME(ProfileDidChangeNotification); - -#endif - -/* key in notification's userInfo object for getting the old profile. - - If there was no old profile, the key will not be present. - */ -FOUNDATION_EXPORT NSString *const FBSDKProfileChangeOldKey -NS_SWIFT_NAME(ProfileChangeOldKey); - -/* key in notification's userInfo object for getting the new profile. - - If there is no new profile, the key will not be present. - */ -FOUNDATION_EXPORT NSString *const FBSDKProfileChangeNewKey -NS_SWIFT_NAME(ProfileChangeNewKey); - -/** - Describes the callback for loadCurrentProfileWithCompletion. - @param profile the FBSDKProfile - @param error the error during the request, if any - - */ -typedef void (^FBSDKProfileBlock)(FBSDKProfile *_Nullable profile, NSError *_Nullable error) -NS_SWIFT_NAME(ProfileBlock); - -/** - Represents an immutable Facebook profile - - This class provides a global "currentProfile" instance to more easily - add social context to your application. When the profile changes, a notification is - posted so that you can update relevant parts of your UI and is persisted to NSUserDefaults. - - Typically, you will want to call `enableUpdatesOnAccessTokenChange:YES` so that - it automatically observes changes to the `[FBSDKAccessToken currentAccessToken]`. - - You can use this class to build your own `FBSDKProfilePictureView` or in place of typical requests to "/me". - */ -NS_SWIFT_NAME(Profile) -@interface FBSDKProfile : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - initializes a new instance. - @param userID the user ID - @param firstName the user's first name - @param middleName the user's middle name - @param lastName the user's last name - @param name the user's complete name - @param linkURL the link for this profile - @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. - */ -- (instancetype)initWithUserID:(NSString *)userID - firstName:(nullable NSString *)firstName - middleName:(nullable NSString *)middleName - lastName:(nullable NSString *)lastName - name:(nullable NSString *)name - linkURL:(nullable NSURL *)linkURL - refreshDate:(nullable NSDate *)refreshDate; - -/** - initializes a new instance. - @param userID the user ID - @param firstName the user's first name - @param middleName the user's middle name - @param lastName the user's last name - @param name the user's complete name - @param linkURL the link for this profile - @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. - @param imageURL an optional URL to use for fetching a user's profile image - @param email the user's email - */ -- (instancetype)initWithUserID:(NSString *)userID - firstName:(nullable NSString *)firstName - middleName:(nullable NSString *)middleName - lastName:(nullable NSString *)lastName - name:(nullable NSString *)name - linkURL:(nullable NSURL *)linkURL - refreshDate:(nullable NSDate *)refreshDate - imageURL:(nullable NSURL *)imageURL - email:(nullable NSString *)email -NS_DESIGNATED_INITIALIZER; - -/** - The current profile instance and posts the appropriate notification - if the profile parameter is different than the receiver. - - This persists the profile to NSUserDefaults. - */ - -/// The current profile -@property (class, nonatomic, strong, nullable) FBSDKProfile *currentProfile -NS_SWIFT_NAME(current); - -/** - The user id - */ -@property (nonatomic, copy, readonly) NSString *userID; -/** - The user's first name - */ -@property (nonatomic, copy, readonly, nullable) NSString *firstName; -/** - The user's middle name - */ -@property (nonatomic, copy, readonly, nullable) NSString *middleName; -/** - The user's last name - */ -@property (nonatomic, copy, readonly, nullable) NSString *lastName; -/** - The user's complete name - */ -@property (nonatomic, copy, readonly, nullable) NSString *name; -/** - A URL to the user's profile. - - IMPORTANT: This field will only be populated if your user has granted your application the 'user_link' permission - - Consider using `FBSDKAppLinkResolver` to resolve this - to an app link to link directly to the user's profile in the Facebook app. - */ -@property (nonatomic, readonly, nullable) NSURL *linkURL; - -/** - The last time the profile data was fetched. - */ -@property (nonatomic, readonly) NSDate *refreshDate; -/** - A URL to use for fetching a user's profile image. - */ -@property (nonatomic, readonly, nullable) NSURL *imageURL; -/** - The user's email. - - IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. - */ -@property (nonatomic, copy, readonly, nullable) NSString *email; - -/** - Indicates if `currentProfile` will automatically observe `FBSDKAccessTokenDidChangeNotification` notifications - @param enable YES is observing - - If observing, this class will issue a graph request for public profile data when the current token's userID - differs from the current profile. You can observe `FBSDKProfileDidChangeNotification` for when the profile is updated. - - Note that if `[FBSDKAccessToken currentAccessToken]` is unset, the `currentProfile` instance remains. It's also possible - for `currentProfile` to return nil until the data is fetched. - */ -+ (void)enableUpdatesOnAccessTokenChange:(BOOL)enable -NS_SWIFT_NAME(enableUpdatesOnAccessTokenChange(_:)); - -/** - Loads the current profile and passes it to the completion block. - @param completion The block to be executed once the profile is loaded - - If the profile is already loaded, this method will call the completion block synchronously, otherwise it - will begin a graph request to update `currentProfile` and then call the completion block when finished. - */ -+ (void)loadCurrentProfileWithCompletion:(nullable FBSDKProfileBlock)completion; - -/** - A convenience method for returning a complete `NSURL` for retrieving the user's profile image. - @param mode The picture mode - @param size The height and width. This will be rounded to integer precision. - */ -- (nullable NSURL *)imageURLForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size -NS_SWIFT_NAME(imageURL(forMode:size:)); - -/** - Returns YES if the profile is equivalent to the receiver. - @param profile the profile to compare to. - */ -- (BOOL)isEqualToProfile:(FBSDKProfile *)profile; -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h deleted file mode 100644 index cbef2ce9..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -@class FBSDKProfile; - -NS_ASSUME_NONNULL_BEGIN - -/** - FBSDKProfilePictureMode enum - Defines the aspect ratio mode for the source image of the profile picture. - */ -typedef NS_ENUM(NSUInteger, FBSDKProfilePictureMode) -{ - /** - A square cropped version of the image will be included in the view. - */ - FBSDKProfilePictureModeSquare, - /** - The original picture's aspect ratio will be used for the source image in the view. - */ - FBSDKProfilePictureModeNormal, - /** - The original picture's aspect ratio will be used for the source image in the view. - */ - FBSDKProfilePictureModeAlbum, - /** - The original picture's aspect ratio will be used for the source image in the view. - */ - FBSDKProfilePictureModeSmall, - /** - The original picture's aspect ratio will be used for the source image in the view. - */ - FBSDKProfilePictureModeLarge, -} NS_SWIFT_NAME(Profile.PictureMode); - -/** - A view to display a profile picture. - */ -NS_SWIFT_NAME(FBProfilePictureView) -@interface FBSDKProfilePictureView : UIView - -/** - Create a new instance of `FBSDKProfilePictureView`. - - - Parameter frame: Frame rectangle for the view. - - Parameter profile: Optional profile to display a picture for. - */ -- (instancetype)initWithFrame:(CGRect)frame - profile:(FBSDKProfile * _Nullable)profile; - -/** - Create a new instance of `FBSDKProfilePictureView`. - - - Parameter profile: Optional profile to display a picture for. - */ -- (instancetype)initWithProfile:(FBSDKProfile * _Nullable)profile; - -/** - The mode for the receiver to determine the aspect ratio of the source image. - */ -@property (nonatomic, assign) FBSDKProfilePictureMode pictureMode; - -/** - The profile ID to show the picture for. - */ -@property (nonatomic, copy) NSString *profileID; - -/** - Explicitly marks the receiver as needing to update the image. - - This method is called whenever any properties that affect the source image are modified, but this can also - be used to trigger a manual update of the image if it needs to be re-downloaded. - */ -- (void)setNeedsImageUpdate; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKSettings.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKSettings.h deleted file mode 100644 index 7e337c35..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKSettings.h +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/* - * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. - */ - -/// typedef for FBSDKAppEventName -typedef NSString *const FBSDKLoggingBehavior NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoggingBehavior); - -/** Include access token in logging. */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens; - -/** Log performance characteristics */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics; - -/** Log FBSDKAppEvents interactions */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents; - -/** Log Informational occurrences */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational; - -/** Log cache errors. */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors; - -/** Log errors from SDK UI controls */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors; - -/** Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning; - -/** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. - Info is the lowest level of severity, using it will result in logging all previously mentioned levels. - */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo; - -/** Log errors from SDK network requests */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests; - -/** Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. */ -FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors; - -NS_SWIFT_NAME(Settings) -@interface FBSDKSettings : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Retrieve the current iOS SDK version. - */ -@property (class, nonatomic, copy, readonly) NSString *sdkVersion; - -/** - Retrieve the current default Graph API version. - */ -@property (class, nonatomic, copy, readonly) NSString *defaultGraphAPIVersion; - -/** - The quality of JPEG images sent to Facebook from the SDK, - expressed as a value from 0.0 to 1.0. - - If not explicitly set, the default is 0.9. - - @see [UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */ -@property (class, nonatomic, assign) CGFloat JPEGCompressionQuality -NS_SWIFT_NAME(jpegCompressionQuality); - -/** - Controls the auto logging of basic app events, such as activateApp and deactivateApp. - If not explicitly set, the default is true - */ -@property (class, nonatomic, assign, getter=isAutoLogAppEventsEnabled) BOOL autoLogAppEventsEnabled; - -/** - Controls the fb_codeless_debug logging event - If not explicitly set, the default is true - */ -@property (class, nonatomic, assign, getter=isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; - -/** - Controls the access to IDFA - If not explicitly set, the default is true - */ -@property (class, nonatomic, assign, getter=isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; - -/** - Whether data such as that generated through FBSDKAppEvents and sent to Facebook - should be restricted from being used for other than analytics and conversions. - Defaults to NO. This value is stored on the device and persists across app launches. - */ -@property (class, nonatomic, assign, getter=shouldLimitEventAndDataUsage) BOOL limitEventAndDataUsage; - -/** - A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. - */ -@property (class, nonatomic, assign, getter=isGraphErrorRecoveryEnabled) BOOL graphErrorRecoveryEnabled; - -/** - The Facebook App ID used by the SDK. - - If not explicitly set, the default will be read from the application's plist (FacebookAppID). - */ -@property (class, nonatomic, copy, nullable) NSString *appID; - -/** - The default url scheme suffix used for sessions. - - If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). - */ -@property (class, nonatomic, copy, nullable) NSString *appURLSchemeSuffix; - -/** - The Client Token that has been set via [FBSDKSettings setClientToken]. - This is needed for certain API calls when made anonymously, without a user-based access token. - - The Facebook App's "client token", which, for a given appid can be found in the Security - section of the Advanced tab of the Facebook App settings found at - - If not explicitly set, the default will be read from the application's plist (FacebookClientToken). - */ -@property (class, nonatomic, copy, nullable) NSString *clientToken; - -/** - The Facebook Display Name used by the SDK. - - This should match the Display Name that has been set for the app with the corresponding Facebook App ID, - in the Facebook App Dashboard. - - If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). - */ -@property (class, nonatomic, copy, nullable) NSString *displayName; - -/** - The Facebook domain part. This can be used to change the Facebook domain - (e.g. @"beta") so that requests will be sent to `graph.beta.facebook.com` - - If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). - */ -@property (class, nonatomic, copy, nullable) NSString *facebookDomainPart; - -/** - The current Facebook SDK logging behavior. This should consist of strings - defined as constants with FBSDKLoggingBehavior*. - - This should consist a set of strings indicating what information should be logged - defined as constants with FBSDKLoggingBehavior*. Set to an empty set in order to disable all logging. - - You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLogginBehavior: - - The default is a set consisting of FBSDKLoggingBehaviorDeveloperErrors - */ -@property (class, nonatomic, copy) NSSet *loggingBehaviors -NS_REFINED_FOR_SWIFT; - -/** - Overrides the default Graph API version to use with `FBSDKGraphRequests`. This overrides `FBSDK_TARGET_PLATFORM_VERSION`. - - The string should be of the form `@"v2.7"`. - - Defaults to `FBSDK_TARGET_PLATFORM_VERSION`. -*/ -@property (class, nonatomic, copy, null_resettable) NSString *graphAPIVersion; - -/** - The value of the flag advertiser_tracking_enabled that controls the advertiser tracking status of the data sent to Facebook - If not explicitly set in iOS14 or above, the default is false in iOS14 or above. - */ -+ (BOOL)isAdvertiserTrackingEnabled; - -/** -Set the advertiser_tracking_enabled flag. It only works in iOS14 and above. - -@param advertiserTrackingEnabled the value of the flag -@return Whether the the value is set successfully. It will always return NO in iOS 13 and below. - */ -+ (BOOL)setAdvertiserTrackingEnabled:(BOOL)advertiserTrackingEnabled; - -/** -Set the data processing options. - -@param options list of options -*/ -+ (void)setDataProcessingOptions:(nullable NSArray *)options; - -/** -Set the data processing options. - -@param options list of the options -@param country code of the country -@param state code of the state -*/ -+ (void)setDataProcessingOptions:(nullable NSArray *)options - country:(int)country - state:(int)state; - -/** - Enable a particular Facebook SDK logging behavior. - - @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. - */ -+ (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; - -/** - Disable a particular Facebook SDK logging behavior. - - @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. - */ -+ (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h deleted file mode 100644 index 8b5ed3ea..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKConstants.h" - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKAccessToken; - -/** - Callback block for returning an array of FBSDKAccessToken instances (and possibly `NSNull` instances); or an error. - */ -typedef void (^FBSDKAccessTokensBlock)(NSArray *tokens, NSError *_Nullable error) -NS_SWIFT_NAME(AccessTokensBlock); - - -/** - Provides methods for managing test accounts for testing Facebook integration. - - - Facebook allows developers to create test accounts for testing their applications' - Facebook integration (see https://developers.facebook.com/docs/test_users/). This class - simplifies use of these accounts for writing tests. It is not designed for use in - production application code. - - This class will make Graph API calls on behalf of your app to manage test accounts and requires - an app id and app secret. You will typically use this class to write unit or integration tests. - Make sure you NEVER include your app secret in your production app. - */ -NS_SWIFT_NAME(TestUsersManager) -@interface FBSDKTestUsersManager : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - construct or return the shared instance - @param appID the Facebook app id - @param appSecret the Facebook app secret - */ -+ (instancetype)sharedInstanceForAppID:(NSString *)appID appSecret:(NSString *)appSecret -NS_SWIFT_NAME(shared(forAppID:appSecret:)); - -/** - retrieve FBSDKAccessToken instances for test accounts with the specific permissions. - @param arraysOfPermissions an array of permissions sets, such as @[ [NSSet setWithObject:@"email"], [NSSet setWithObject:@"user_birthday"]] - if you needed two test accounts with email and birthday permissions, respectively. You can pass in empty nested sets - if you need two arbitrary test accounts. - @param createIfNotFound if YES, new test accounts are created if no test accounts existed that fit the permissions - requirement - @param handler the callback to invoke which will return an array of `FBAccessTokenData` instances or an `NSError`. - If param `createIfNotFound` is NO, the array may contain `[NSNull null]` instances. - - - If you are requesting test accounts with differing number of permissions, try to order - `arrayOfPermissionsArrays` so that the most number of permissions come first to minimize creation of new - test accounts. - */ -- (void)requestTestAccountTokensWithArraysOfPermissions:(NSArray *> *)arraysOfPermissions - createIfNotFound:(BOOL)createIfNotFound - completionHandler:(nullable FBSDKAccessTokensBlock)handler -NS_SWIFT_NAME(requestTestAccountTokens(withPermissions:createIfNotFound:completionHandler:)); - -/** - add a test account with the specified permissions - @param permissions the set of permissions, e.g., [NSSet setWithObjects:@"email", @"user_friends"] - @param handler the callback handler - */ -- (void)addTestAccountWithPermissions:(NSSet *)permissions - completionHandler:(nullable FBSDKAccessTokensBlock)handler; - -/** - remove a test account for the given user id - @param userId the user id - @param handler the callback handler - */ -- (void)removeTestAccount:(NSString *)userId - completionHandler:(nullable FBSDKErrorBlock)handler; - -/** - Make two test users friends with each other. - @param first the token of the first user - @param second the token of the second user - @param callback the callback handler - */ -- (void)makeFriendsWithFirst:(FBSDKAccessToken *)first - second:(FBSDKAccessToken *)second - callback:(nullable FBSDKErrorBlock)callback -NS_SWIFT_NAME(makeFriends(first:second:callback:)); - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKURL.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKURL.h deleted file mode 100644 index 969d8e0c..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKURL.h +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKAppLink; - -/** - Provides a set of utilities for working with NSURLs, such as parsing of query parameters - and handling for App Link requests. - */ -NS_SWIFT_NAME(AppLinkURL) -@interface FBSDKURL : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Creates a link target from a raw URL. - On success, this posts the FBSDKAppLinkParseEventName measurement event. If you are constructing the FBSDKURL within your application delegate's - application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication: - to support better FBSDKMeasurementEvent notifications - @param url The instance of `NSURL` to create FBSDKURL from. - */ -+ (instancetype)URLWithURL:(NSURL *)url -NS_SWIFT_NAME(init(url:)); - -/** - Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's - application:openURL:sourceApplication:annotation: and will post the FBSDKAppLinkNavigateInEventName measurement event. - @param url The instance of `NSURL` to create FBSDKURL from. - @param sourceApplication the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation: - */ -+ (instancetype)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication -NS_SWIFT_NAME(init(inboundURL:sourceApplication:)); - -/** - Gets the target URL. If the link is an App Link, this is the target of the App Link. - Otherwise, it is the url that created the target. - */ -@property (nonatomic, strong, readonly) NSURL *targetURL; - -/** - Gets the query parameters for the target, parsed into an NSDictionary. - */ -@property (nonatomic, strong, readonly) NSDictionary *targetQueryParameters; - -/** - If this link target is an App Link, this is the data found in al_applink_data. - Otherwise, it is nil. - */ -@property (nonatomic, strong, readonly, nullable) NSDictionary *appLinkData; - -/** - If this link target is an App Link, this is the data found in extras. - */ -@property (nonatomic, strong, readonly, nullable) NSDictionary *appLinkExtras; - -/** - The App Link indicating how to navigate back to the referer app, if any. - */ -@property (nonatomic, strong, readonly, nullable) FBSDKAppLink *appLinkReferer; - -/** - The URL that was used to create this FBSDKURL. - */ -@property (nonatomic, strong, readonly) NSURL *inputURL; - -/** - The query parameters of the inputURL, parsed into an NSDictionary. - */ -@property (nonatomic, strong, readonly) NSDictionary *inputQueryParameters; - -/** - The flag indicating whether the URL comes from auto app link -*/ -@property (nonatomic, readonly, getter=isAutoAppLink) BOOL isAutoAppLink; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h b/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h deleted file mode 100644 index 4ba20ccf..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKAppLinkResolving.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A reference implementation for an App Link resolver that uses a hidden WKWebView - to parse the HTML containing App Link metadata. - */ -NS_SWIFT_NAME(WebViewAppLinkResolver) -@interface FBSDKWebViewAppLinkResolver : NSObject - -/** - Gets the instance of a FBSDKWebViewAppLinkResolver. - */ -@property (class, nonatomic, readonly, strong) FBSDKWebViewAppLinkResolver *sharedInstance -NS_SWIFT_NAME(shared); - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm.swiftsourceinfo deleted file mode 100644 index b12d0257..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo deleted file mode 100644 index 7de80722..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm64.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm64.swiftsourceinfo deleted file mode 100644 index 7de80722..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/arm64.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo deleted file mode 100644 index b12d0257..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/armv7.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/armv7.swiftsourceinfo deleted file mode 100644 index b12d0257..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/armv7.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo deleted file mode 100644 index f919a69a..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/i386.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/i386.swiftsourceinfo deleted file mode 100644 index f919a69a..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/i386.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo deleted file mode 100644 index 7e2907f7..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/x86_64.swiftsourceinfo b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/x86_64.swiftsourceinfo deleted file mode 100644 index 7e2907f7..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/Project/x86_64.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftinterface deleted file mode 100644 index 10268629..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftmodule deleted file mode 100644 index 6cbc4d55..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftinterface deleted file mode 100644 index 83a9549a..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftmodule deleted file mode 100644 index 51b2a216..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftinterface deleted file mode 100644 index 83a9549a..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftmodule deleted file mode 100644 index 51b2a216..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftinterface deleted file mode 100644 index 10268629..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftmodule deleted file mode 100644 index 6cbc4d55..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftdoc b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftdoc deleted file mode 100644 index 19b7e10f..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftinterface deleted file mode 100644 index 10268629..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftmodule deleted file mode 100644 index 6cbc4d55..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftdoc deleted file mode 100644 index 41ac3db8..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftinterface deleted file mode 100644 index b82599fd..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftmodule deleted file mode 100644 index f37a1c9d..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftdoc b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftdoc deleted file mode 100644 index 41ac3db8..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftinterface deleted file mode 100644 index b82599fd..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftmodule deleted file mode 100644 index f37a1c9d..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/i386.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc deleted file mode 100644 index 9698e00b..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface deleted file mode 100644 index 1a0301d9..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule deleted file mode 100644 index 4972c0b7..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftdoc b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftdoc deleted file mode 100644 index 9698e00b..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftinterface b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftinterface deleted file mode 100644 index 1a0301d9..00000000 --- a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftinterface +++ /dev/null @@ -1,74 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit -@_exported import FBSDKCoreKit -import Foundation -import Swift -public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { - case publicProfile - case userFriends - case email - case userAboutMe - case userActionsBooks - case userActionsFitness - case userActionsMusic - case userActionsNews - case userActionsVideo - case userBirthday - case userEducationHistory - case userEvents - case userGamesActivity - case userGender - case userHometown - case userLikes - case userLocation - case userManagedGroups - case userPhotos - case userPosts - case userRelationships - case userRelationshipDetails - case userReligionPolitics - case userTaggedPlaces - case userVideos - case userWebsite - case userWorkHistory - case readCustomFriendlists - case readInsights - case readAudienceNetworkInsights - case readPageMailboxes - case pagesShowList - case pagesManageCta - case pagesManageInstantArticles - case adsRead - case custom(Swift.String) - public init(stringLiteral value: Swift.String) - public var name: Swift.String { - get - } - public var hashValue: Swift.Int { - get - } - public func hash(into hasher: inout Swift.Hasher) - public typealias StringLiteralType = Swift.String - public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool - public typealias ExtendedGraphemeClusterLiteralType = Swift.String - public typealias UnicodeScalarLiteralType = Swift.String -} -extension Settings { - public static var loggingBehaviors: Swift.Set { - get - set - } -} -extension AccessToken { - public var permissions: Swift.Set { - get - } - public var declinedPermissions: Swift.Set { - get - } - public var expiredPermissions: Swift.Set { - get - } - public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool -} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftmodule b/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftmodule deleted file mode 100644 index 4972c0b7..00000000 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/Info.plist b/ios/platform/FBSDKCoreKit.xcframework/Info.plist new file mode 100644 index 00000000..86f7ab29 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/Info.plist @@ -0,0 +1,82 @@ + + + + + AvailableLibraries + + + LibraryIdentifier + tvos-arm64_x86_64-simulator + LibraryPath + FBSDKCoreKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + tvos + SupportedPlatformVariant + simulator + + + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + FBSDKCoreKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + LibraryIdentifier + ios-arm64_x86_64-maccatalyst + LibraryPath + FBSDKCoreKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + maccatalyst + + + LibraryIdentifier + ios-arm64 + LibraryPath + FBSDKCoreKit.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + LibraryIdentifier + tvos-arm64 + LibraryPath + FBSDKCoreKit.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + tvos + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/ios/platform/FBSDKCoreKit.xcframework/LICENSE b/ios/platform/FBSDKCoreKit.xcframework/LICENSE new file mode 100644 index 00000000..2eecb625 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/LICENSE @@ -0,0 +1,17 @@ +Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + +You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +copy, modify, and distribute this software in source code or binary form for use +in connection with the web services and APIs provided by Facebook. + +As with any software that integrates with the Facebook platform, your use of +this software is subject to the Facebook Platform Policy +[http://developers.facebook.com/policy/]. This copyright notice shall be +included in all copies or substantial portions of the software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +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. diff --git a/ios/platform/FBSDKShareKit.framework/FBSDKShareKit b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit similarity index 50% rename from ios/platform/FBSDKShareKit.framework/FBSDKShareKit rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit index 6fc4d74b..69413149 100644 Binary files a/ios/platform/FBSDKShareKit.framework/FBSDKShareKit and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/FBSDKCoreKit differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h new file mode 100644 index 00000000..87494ec0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h @@ -0,0 +1,188 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentAccessToken` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKAccessTokenChangeOldKey` and + `FBSDKAccessTokenChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification +NS_SWIFT_NAME(AccessTokenDidChange); + +/** + A key in the notification's userInfo that will be set + if and only if the user ID changed between the old and new tokens. + + Token refreshes can occur automatically with the SDK + which do not change the user. If you're only interested in user + changes (such as logging out), you should check for the existence + of this key. The value is a NSNumber with a boolValue. + + On a fresh start of the app where the SDK reads in the cached value + of an access token, this key will also exist since the access token + is moving from a null state (no user) to a non-null state (user). + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserIDKey +NS_SWIFT_NAME(AccessTokenDidChangeUserIDKey); + +/* + key in notification's userInfo object for getting the old token. + + If there was no old token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey +NS_SWIFT_NAME(AccessTokenChangeOldKey); + +/* + key in notification's userInfo object for getting the new token. + + If there is no new token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey +NS_SWIFT_NAME(AccessTokenChangeNewKey); + +/* + A key in the notification's userInfo that will be set + if and only if the token has expired. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpireKey +NS_SWIFT_NAME(AccessTokenDidExpireKey); + +/// Represents an immutable access token for using Facebook services. +NS_SWIFT_NAME(AccessToken) +@interface FBSDKAccessToken : NSObject + +/** + The "global" access token that represents the currently logged in user. + + The `currentAccessToken` is a convenient representation of the token of the + current user and is used by other SDK components (like `FBSDKLoginManager`). + */ +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +/// Returns YES if currentAccessToken is not nil AND currentAccessToken is not expired +@property (class, nonatomic, readonly, getter = isCurrentAccessTokenActive, assign) BOOL currentAccessTokenIsActive; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +/// Returns the app ID. +@property (nonatomic, readonly, copy) NSString *appID; + +/// Returns the expiration date for data access +@property (nonatomic, readonly, copy) NSDate *dataAccessExpirationDate; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *declinedPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *expiredPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// Returns the known granted permissions. +@property (nonatomic, readonly, copy) NSSet *permissions + NS_REFINED_FOR_SWIFT; + +/// Returns the date the token was last refreshed. +@property (nonatomic, readonly, copy) NSDate *refreshDate; + +/// Returns the opaque token string. +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// Returns the user ID. +@property (nonatomic, readonly, copy) NSString *userID; + +/// Returns whether the access token is expired by checking its expirationDate property +@property (nonatomic, readonly, getter = isExpired, assign) BOOL expired; + +/// Returns whether user data access is still active for the given access token +@property (nonatomic, readonly, getter = isDataAccessExpired, assign) BOOL dataAccessExpired; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes a new instance. + @param tokenString the opaque token string. + @param permissions the granted permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param appID the app ID. + @param userID the user ID. + @param expirationDate the optional expiration date (defaults to distantFuture). + @param refreshDate the optional date the token was last refreshed (defaults to today). + @param dataAccessExpirationDate the date which data access will expire for the given user + (defaults to distantFuture). + + This initializer should only be used for advanced apps that + manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` + along with `+currentAccessToken`. + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray *)permissions + declinedPermissions:(NSArray *)declinedPermissions + expiredPermissions:(NSArray *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(nullable NSDate *)expirationDate + refreshDate:(nullable NSDate *)refreshDate + dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate + NS_DESIGNATED_INITIALIZER; + +/** + Convenience getter to determine if a permission has been granted + @param permission The permission to check. + */ +// UNCRUSTIFY_FORMAT_OFF +- (BOOL)hasGranted:(NSString *)permission +NS_SWIFT_NAME(hasGranted(permission:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Compares the receiver to another FBSDKAccessToken + @param token The other token + @return YES if the receiver's values are equal to the other token's values; otherwise NO + */ +- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token; + +/** + Refresh the current access token's permission state and extend the token's expiration date, + if possible. + @param completion an optional callback handler that can surface any errors related to permission refreshing. + + On a successful refresh, the currentAccessToken will be updated so you typically only need to + observe the `FBSDKAccessTokenDidChangeNotification` notification. + + If a token is already expired, it cannot be refreshed. + */ ++ (void)refreshCurrentAccessTokenWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h new file mode 100644 index 00000000..5c033caa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@protocol FBSDKTokenCaching; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenProviding) +@protocol FBSDKAccessTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAccessToken *currentAccessToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenSetting) +@protocol FBSDKAccessTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h new file mode 100644 index 00000000..730b90da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKAdvertisingTrackingStatus) { + FBSDKAdvertisingTrackingAllowed, + FBSDKAdvertisingTrackingDisallowed, + FBSDKAdvertisingTrackingUnspecified, +} NS_SWIFT_NAME(AdvertisingTrackingStatus); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h new file mode 100644 index 00000000..21a1f444 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppAvailabilityChecker) +@protocol FBSDKAppAvailabilityChecker + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isFacebookAppInstalled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h new file mode 100644 index 00000000..b55589b9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBSDKAppEvents`. + Common event parameters are provided in the `FBSDKAppEventParameterName` constants. + */ + +/// typedef for FBSDKAppEventName +typedef NSString *FBSDKAppEventName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.Name); + +// MARK: - General Purpose + +/// Log this event when the user clicks an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdClick; + +/// Log this event when the user views an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdImpression; + +/// Log this event when a user has completed registration with the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedRegistration; + +/// Log this event when the user has completed a tutorial in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedTutorial; + +/// A telephone/SMS, email, chat or other type of contact between a customer and your business. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameContact; + +/// The customization of products through a configuration tool or other application your business owns. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCustomizeProduct; + +/// The donation of funds to your organization or cause. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameDonate; + +/// When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameFindLocation; + +/// Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameRated; + +/// The booking of an appointment to visit one of your locations. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSchedule; + +/// Log this event when a user has performed a search within the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSearched; + +/// The start of a free trial of a product or service you offer (example: trial subscription). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameStartTrial; + +/// The submission of an application for a product, service or program you offer (example: credit card, educational program or job). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubmitApplication; + +/// The start of a paid subscription for a product or service you offer. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubscribe; + +/// Log this event when a user has viewed a form of content in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameViewedContent; + +// MARK: - E-Commerce + +/// Log this event when the user has entered their payment info. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedPaymentInfo; + +/// Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToCart; + +/// Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToWishlist; + +/// Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameInitiatedCheckout; + +/// Log this event when the user has completed a transaction. The valueToSum passed to logEvent should be the total price of the transaction. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNamePurchased; + +// MARK: - Gaming + +/// Log this event when the user has achieved a level in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAchievedLevel; + +/// Log this event when the user has unlocked an achievement in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameUnlockedAchievement; + +/// Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSpentCredits; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h new file mode 100644 index 00000000..ceb5e2d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h @@ -0,0 +1,73 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. + */ + +/// typedef for FBSDKAppEventParameterName +typedef NSString *FBSDKAppEventParameterName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterName); + +/** + * Parameter key used to specify data for the one or more pieces of content being logged about. + * Data should be a JSON encoded string. + * Example: + * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" + */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContent; + +/// Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentID; + +/// Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentType; + +/// Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameCurrency; + +/// Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameDescription; + +/// Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLevel; + +/// Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameMaxRatingValue; + +/// Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameNumItems; + +/// Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNamePaymentInfoAvailable; + +/// Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameRegistrationMethod; + +/// Parameter key used to specify the string provided by the user for a search operation. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSearchString; + +/// Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSuccess; + +/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression + * or FBSDKAppEventNameAdClick event. + * E.g. "banner", "interstitial", "rewarded_video", "native" */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameAdType; + +/** Parameter key used to specify the unique ID for all events within a subscription + * in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameOrderID; + +/// Parameter key used to specify event name. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameEventName; + +/// Parameter key used to specify event log time. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLogTime; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h new file mode 100644 index 00000000..ff0b036c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logProductItem` method on `FBSDKAppEvents`. + +/// typedef for FBSDKAppEventParameterProduct +typedef NSString *const FBSDKAppEventParameterProduct NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterProduct); + +/// Parameter key used to specify the product item's category. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory; + +/// Parameter key used to specify the product item's custom label 0. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0; + +/// Parameter key used to specify the product item's custom label 1. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1; + +/// Parameter key used to specify the product item's custom label 2. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2; + +/// Parameter key used to specify the product item's custom label 3. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3; + +/// Parameter key used to specify the product item's custom label 4. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4; + +/// Parameter key used to specify the product item's AppLink app URL for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iOS App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPhone App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPad App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl; + +/// Parameter key used to specify the product item's AppLink fully-qualified package name for intent generation. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage; + +/// Parameter key used to specify the product item's AppLink app name for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID, as a GUID, for App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID; + +/// Parameter key used to specify the product item's AppLink app name for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h new file mode 100644 index 00000000..796e2e10 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/* + @methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants. + */ + +/// typedef for FBSDKAppEventParameterValue +typedef NSString *const FBSDKAppEventParameterValue NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterValue); + +/// Yes-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes; + +/// No-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h new file mode 100644 index 00000000..194443d5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *const FBSDKAppEventUserDataType NS_TYPED_EXTENSIBLE_ENUM; + +/// Parameter key used to specify user's email. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventEmail; + +/// Parameter key used to specify user's first name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventFirstName; + +/// Parameter key used to specify user's last name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventLastName; + +/// Parameter key used to specify user's phone. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventPhone; + +/// Parameter key used to specify user's date of birth. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth; + +/// Parameter key used to specify user's gender. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventGender; + +/// Parameter key used to specify user's city. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCity; + +/// Parameter key used to specify user's state. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventState; + +/// Parameter key used to specify user's zip. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventZip; + +/// Parameter key used to specify user's country. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCountry; + +/// Parameter key used to specify user's external id. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventExternalId; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h new file mode 100644 index 00000000..1504e744 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h @@ -0,0 +1,521 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + #import +#endif + +#import +#import +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/// Optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` +FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey +NS_SWIFT_NAME(AppEventsOverrideAppIDBundleKey); + +/** + Client-side event logging for specialized application analytics available through Facebook App Insights + and for use with Facebook Ads conversion tracking and optimization. + + The `FBSDKAppEvents` static class has a few related roles: + + + Logging predefined and application-defined events to Facebook App Insights with a + numeric value to sum across a large number of events, and an optional set of key/value + parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or + 'gamerLevel' : 'intermediate') + + + Logging events to later be used for ads optimization around lifetime value. + + + Methods that control the way in which events are flushed out to the Facebook servers. + + Here are some important characteristics of the logging mechanism provided by `FBSDKAppEvents`: + + + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers + in a number of situations: + - when an event count threshold is passed (currently 100 logged events). + - when a time threshold is passed (currently 15 seconds). + - when an app has gone to background and is then brought back to the foreground. + + + Events will be accumulated when the app is in a disconnected state, and sent when the connection is + restored and one of the above 'flush' conditions are met. + + + The `FBSDKAppEvents` class is thread-safe in that events may be logged from any of the app's threads. + + + The developer can set the `flushBehavior` on `FBSDKAppEvents` to force the flushing of events to only + occur on an explicit call to the `flush` method. + + + The developer can turn on console debug output for event logging and flushing to the server by using + the `FBSDKLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. + + Some things to note when logging events: + + + There is a limit on the number of unique event names an app can use, on the order of 1000. + + There is a limit to the number of unique parameter names in the provided parameters that can + be used per event, on the order of 25. This is not just for an individual call, but for all + invocations for that eventName. + + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and + must consist of alphanumeric characters, _, -, or spaces. + + The length of each parameter value can be no more than on the order of 100 characters. + */ +NS_SWIFT_NAME(AppEvents) +@interface FBSDKAppEvents : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The shared instance of AppEvents. +@property (class, nonatomic, readonly, strong) FBSDKAppEvents *shared; + +/// Control over event batching/flushing + +/// The current event flushing behavior specifying when events are sent back to Facebook servers. +@property (nonatomic) FBSDKAppEventsFlushBehavior flushBehavior; + +/** + Set the 'override' App ID for App Event logging. + + In some cases, apps want to use one Facebook App ID for login and social presence and another + for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but + want distinct logging.) By default, this value is `nil`, and defers to the `FBSDKAppEventsOverrideAppIDBundleKey` + plist value. If that's not set, it defaults to `Settings.shared.appID`. + + This should be set before any other calls are made to `AppEvents`. Thus, you should set it in your application + delegate's `application(_:didFinishLaunchingWithOptions:)` method. + */ +@property (nullable, nonatomic, copy) NSString *loggingOverrideAppID; + +/** + The custom user ID to associate with all app events. + + The userID is persisted until it is cleared by passing `nil`. + */ +@property (nullable, nonatomic, copy) NSString *userID; + +/// Returns generated anonymous id that persisted with current install of the app +@property (nonatomic, readonly) NSString *anonymousID; + +/* + * Basic event logging + */ + +/** + Log an event with just an event name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. + */ +- (void)logEvent:(FBSDKAppEventName)eventName; + +/** + Log an event with an event name and a numeric value to be aggregated with other events of this name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum; + +/** + Log an event with an event name and a set of key/value pairs in the parameters dictionary. + Parameter limitations are described above. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. Note that this is an `NSNumber`, and a value of `nil` denotes + that this event doesn't have a value associated with it for summation. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(nullable NSNumber *)valueToSum + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken; + +/* + * Purchase logging + */ + +/** + Log a purchase of the specified amount, in the specified currency. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency + NS_SWIFT_NAME(logPurchase(amount:currency:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/* + * Push Notifications Logging + */ + +/** + Log an app event that tracks that the application was open via Push Notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload + NS_SWIFT_NAME(logPushNotificationOpen(payload:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log an app event that tracks that a custom action was taken from a push notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + @param action Name of the action that was taken. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action + NS_SWIFT_NAME(logPushNotificationOpen(payload:action:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Uploads product catalog product item as an app event + + @param itemID Unique ID for the item. Can be a variant for a product. + Max size is 100. + @param availability If item is in stock. Accepted values are: + in stock - Item ships immediately + out of stock - No plan to restock + preorder - Available in future + available for order - Ships in 1-2 weeks + discontinued - Discontinued + @param condition Product condition: new, refurbished or used. + @param description Short text describing product. Max size is 5000. + @param imageLink Link to item image used in ad. + @param link Link to merchant's site where someone can buy the item. + @param title Title of item. + @param priceAmount Amount of purchase, in the currency specified by the 'currency' + parameter. This value will be rounded to the thousandths place + (e.g., 12.34567 becomes 12.346). + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + @param gtin Global Trade Item Number including UPC, EAN, JAN and ISBN + @param mpn Unique manufacture ID for product + @param brand Name of the brand + Note: Either gtin, mpn or brand is required. + @param parameters Optional fields for deep link specification. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logProductItem:(NSString *)itemID + availability:(FBSDKProductAvailability)availability + condition:(FBSDKProductCondition)condition + description:(NSString *)description + imageLink:(NSString *)imageLink + link:(NSString *)link + title:(NSString *)title + priceAmount:(double)priceAmount + currency:(NSString *)currency + gtin:(nullable NSString *)gtin + mpn:(nullable NSString *)mpn + brand:(nullable NSString *)brand + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logProductItem(id:availability:condition:description:imageLink:link:title:priceAmount:currency:gtin:mpn:brand:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. + This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless + one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. + In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the + app delegates' `applicationDidBecomeActive:` method. + + This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to + track user acquisition and app install ads conversions. + + `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. + "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" + event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much + time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data + is all visible in your app's App Events Insights. + */ +- (void)activateApp; + +/* + * Push Notifications Registration and Uninstall Tracking + */ + +/** + Sets and sends device token to register the current application for push notifications. + + Sets and sends a device token from the `Data` representation that you get from + `UIApplicationDelegate.application(_:didRegisterForRemoteNotificationsWithDeviceToken:)`. + + @param deviceToken Device token data. + */ +- (void)setPushNotificationsDeviceToken:(nullable NSData *)deviceToken; + +/** + Sets and sends device token string to register the current application for push notifications. + + Sets and sends a device token string + + @param deviceTokenString Device token string. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)setPushNotificationsDeviceTokenString:(nullable NSString *)deviceTokenString +NS_SWIFT_NAME(setPushNotificationsDeviceToken(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate + kick off. Server failures will be reported through the NotificationCenter with notification ID `FBSDKAppEventsLoggingResultNotification`. + */ +- (void)flush; + +/** + Creates a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. + Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, + and then use the resultant Custom Audience to target ads. + + The JSON in the request's response will include a "custom_audience_third_party_id" key/value pair with the value being the ID retrieved. + This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. + Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior + across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. + + The ID retrieved represents the Facebook user identified in the following way: if the specified access token is valid, + the ID will represent the user associated with that token; otherwise the ID will represent the user logged into the + native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out + at the iOS level from ad tracking, then a `nil` ID will be returned. + + This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage + via the `Settings.shared.isEventDataUsageLimited` flag, or a specific Facebook user cannot be identified. + + @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. + If `nil`, then `AccessToken.current` is used. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(nullable FBSDKAccessToken *)accessToken +NS_SWIFT_NAME(requestForCustomAudienceThirdPartyID(accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param email user's email + @param firstName user's first name + @param lastName user's last name + @param phone user's phone + @param dateOfBirth user's date of birth + @param gender user's gender + @param city user's city + @param state user's state + @param zip user's zip + @param country user's country + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the set user data else nil +- (nullable NSString *)getUserData; + +/// Clears the current user data +- (void)clearUserData; + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param data data + @param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone + */ +- (void)setUserData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type; + +/// Clears the current user data of certain type +- (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; + +#if !TARGET_OS_TV +/** + Intended to be used as part of a hybrid webapp. + If you call this method, the FB SDK will inject a new JavaScript object into your webview. + If the FB Pixel is used within the webview, and references the app ID of this app, + then it will detect the presence of this injected JavaScript object + and pass Pixel events back to the FB SDK for logging using the AppEvents framework. + + @param webView The webview to augment with the additional JavaScript behavior + */ +- (void)augmentHybridWebView:(WKWebView *)webView; +#endif + +/* + * Unity helper functions + */ + +/** + Set whether Unity is already initialized. + + @param isUnityInitialized Whether Unity is initialized. + */ +- (void)setIsUnityInitialized:(BOOL)isUnityInitialized; + +/// Send event bindings to Unity +- (void)sendEventBindingsToUnity; + +/* + * SDK Specific Event Logging + * Do not call directly outside of the SDK itself. + */ + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(nullable FBSDKAccessToken *)accessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h new file mode 100644 index 00000000..872ef491 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior) + + Specifies when `FBSDKAppEvents` sends log events to the server. + */ +typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushBehavior) { + /// Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. + FBSDKAppEventsFlushBehaviorAuto = 0, + + /** Only flush when the `flush` method is called. When an app is moved to background/terminated, the + events are persisted and re-established at activation, but they will only be written with an + explicit call to `flush`. */ + FBSDKAppEventsFlushBehaviorExplicitOnly, +} NS_SWIFT_NAME(AppEvents.FlushBehavior); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h new file mode 100644 index 00000000..159e27d7 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. +FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification +NS_SWIFT_NAME(AppEventsLoggingResult); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h new file mode 100644 index 00000000..a995c02e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// The version of the App Link protocol that this library supports +FOUNDATION_EXPORT NSString *const FBSDKAppLinkVersion +NS_SWIFT_NAME(AppLinkVersion); + +/** + Contains App Link metadata relevant for navigation on this device + derived from the HTML at a given URL. + */ +NS_SWIFT_NAME(AppLink) +@interface FBSDKAppLink : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a FBSDKAppLink with the given list of FBSDKAppLinkTargets and target URL. + + Generally, this will only be used by implementers of the FBSDKAppLinkResolving protocol, + as these implementers will produce App Link metadata for a given URL. + + @param sourceURL the URL from which this App Link is derived + @param targets an ordered list of FBSDKAppLinkTargets for this platform derived + from App Link metadata. + @param webURL the fallback web URL, if any, for the app link. + */ +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkWithSourceURL:(nullable NSURL *)sourceURL + targets:(NSArray *)targets + webURL:(nullable NSURL *)webURL +NS_SWIFT_NAME(init(sourceURL:targets:webURL:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL from which this FBSDKAppLink was derived +@property (nullable, nonatomic, readonly, strong) NSURL *sourceURL; + +/** + The ordered list of targets applicable to this platform that will be used + for navigation. + */ +@property (nonatomic, readonly, copy) NSArray> *targets; + +/// The fallback web URL to use if no targets are installed on this device. +@property (nullable, nonatomic, readonly, strong) NSURL *webURL; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h similarity index 58% rename from ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h index 4905ca7e..bfc1bbfc 100644 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h @@ -1,51 +1,38 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ #if !TARGET_OS_TV #import -#import "FBSDKAppLink.h" -#import "FBSDKAppLinkResolving.h" +#import +#import + +@protocol FBSDKSettings; NS_ASSUME_NONNULL_BEGIN -/** - The result of calling navigate on a FBSDKAppLinkNavigation - */ +/// The result of calling navigate on a FBSDKAppLinkNavigation typedef NS_ENUM(NSInteger, FBSDKAppLinkNavigationType) { - /** Indicates that the navigation failed and no app was opened */ - FBSDKAppLinkNavigationTypeFailure, - /** Indicates that the navigation succeeded by opening the URL in the browser */ - FBSDKAppLinkNavigationTypeBrowser, - /** Indicates that the navigation succeeded by opening the URL in an app on the device */ - FBSDKAppLinkNavigationTypeApp + /// Indicates that the navigation failed and no app was opened + FBSDKAppLinkNavigationTypeFailure, + /// Indicates that the navigation succeeded by opening the URL in the browser + FBSDKAppLinkNavigationTypeBrowser, + /// Indicates that the navigation succeeded by opening the URL in an app on the device + FBSDKAppLinkNavigationTypeApp, } NS_SWIFT_NAME(AppLinkNavigation.Type); /** Describes the callback for appLinkFromURLInBackground. @param navType the FBSDKAppLink representing the deferred App Link @param error the error during the request, if any - */ -typedef void (^FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType navType, NSError * _Nullable error) +typedef void (^ FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType navType, NSError *_Nullable error) NS_SWIFT_NAME(AppLinkNavigationBlock); /** @@ -73,17 +60,17 @@ NS_SWIFT_NAME(default); data that should be passed along with the request, such as advertiser or affiliate IDs or other such metadata relevant on this device. */ -@property (nonatomic, copy, readonly) NSDictionary *extras; +@property (nonatomic, readonly, copy) NSDictionary *extras; /** The al_applink_data for the AppLinkNavigation. This will generally contain data common to navigation attempts such as back-links, user agents, and other information that may be used in routing and handling an App Link request. */ -@property (nonatomic, copy, readonly) NSDictionary *appLinkData; +@property (nonatomic, readonly, copy) NSDictionary *appLinkData; -/** The AppLink to navigate to */ -@property (nonatomic, strong, readonly) FBSDKAppLink *appLink; +/// The AppLink to navigate to +@property (nonatomic, readonly, strong) FBSDKAppLink *appLink; /** Return navigation type for current instance. @@ -91,35 +78,38 @@ NS_SWIFT_NAME(default); */ @property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; -/** Creates an AppLinkNavigation with the given link, extras, and App Link data */ +// UNCRUSTIFY_FORMAT_OFF +/// Creates an AppLinkNavigation with the given link, extras, and App Link data + (instancetype)navigationWithAppLink:(FBSDKAppLink *)appLink extras:(NSDictionary *)extras appLinkData:(NSDictionary *)appLinkData -NS_SWIFT_NAME(init(appLink:extras:appLinkData:)); + settings:(id)settings +NS_SWIFT_NAME(init(appLink:extras:appLinkData:settings:)); /** - Creates an NSDictionary with the correct format for iOS callback URLs, + Creates an NSDictionary with the correct format for iOS callback URLs, to be used as 'appLinkData' argument in the call to navigationWithAppLink:extras:appLinkData: */ + (NSDictionary *> *)callbackAppLinkDataForAppWithName:(NSString *)appName url:(NSString *)url NS_SWIFT_NAME(callbackAppLinkData(forApp:url:)); +// UNCRUSTIFY_FORMAT_ON -/** Performs the navigation */ +/// Performs the navigation - (FBSDKAppLinkNavigationType)navigate:(NSError **)error -__attribute__((swift_error(nonnull_error))); + __attribute__((swift_error(nonnull_error))); -/** Returns a FBSDKAppLink for the given URL */ +/// Returns a FBSDKAppLink for the given URL + (void)resolveAppLink:(NSURL *)destination handler:(FBSDKAppLinkBlock)handler; -/** Returns a FBSDKAppLink for the given URL using the given App Link resolution strategy */ +/// Returns a FBSDKAppLink for the given URL using the given App Link resolution strategy + (void)resolveAppLink:(NSURL *)destination resolver:(id)resolver handler:(FBSDKAppLinkBlock)handler; -/** Navigates to a FBSDKAppLink and returns whether it opened in-app or in-browser */ +/// Navigates to a FBSDKAppLink and returns whether it opened in-app or in-browser + (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink *)link error:(NSError **)error -__attribute__((swift_error(nonnull_error))); + __attribute__((swift_error(nonnull_error))); /** Returns a FBSDKAppLinkNavigationType based on a FBSDKAppLink. @@ -129,7 +119,7 @@ __attribute__((swift_error(nonnull_error))); */ + (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink *)link; -/** Navigates to a URL (an asynchronous action) and returns a FBSDKNavigationType */ +/// Navigates to a URL (an asynchronous action) and returns a FBSDKNavigationType + (void)navigateToURL:(NSURL *)destination handler:(FBSDKAppLinkNavigationBlock)handler; /** diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h new file mode 100644 index 00000000..23056a35 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLinks the FBSDKAppLinks representing the deferred App Links + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinksBlock)(NSDictionary *appLinks, + NSError *_Nullable error) +NS_SWIFT_NAME(AppLinksBlock); + +/** + Provides an implementation of the FBSDKAppLinkResolving protocol that uses the Facebook App Link + Index API to resolve App Links given a URL. It also provides an additional helper method that can resolve + multiple App Links in a single call. + + Usage of this type requires a client token. See `[FBSDKSettings setClientToken:]` + */ + +NS_SWIFT_NAME(AppLinkResolver) +@interface FBSDKAppLinkResolver : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + 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 *)urls handler:(FBSDKAppLinksBlock)handler + NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +/// Allocates and initializes a new instance of FBSDKAppLinkResolver. ++ (instancetype)resolver + NS_SWIFT_NAME(init()); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h new file mode 100644 index 00000000..41a9276d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h @@ -0,0 +1,46 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAppLink; + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLink the FBSDKAppLink representing the deferred App Link + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinkBlock)(FBSDKAppLink *_Nullable appLink, NSError *_Nullable error) +NS_SWIFT_NAME(AppLinkBlock); + +/** + Implement this protocol to provide an alternate strategy for resolving + App Links that may include pre-fetching, caching, or querying for App Link + data from an index provided by a service provider. + */ +NS_SWIFT_NAME(AppLinkResolving) +@protocol FBSDKAppLinkResolving + +/** + Asynchronously resolves App Link data for a given URL. + + @param url The URL to resolve into an App Link. + @param handler The completion block that will return an App Link for the given URL. + */ +- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler + NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h new file mode 100644 index 00000000..75ecb373 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h @@ -0,0 +1,48 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a target defined in App Link metadata, consisting of at least + a URL, and optionally an App Store ID and name. + */ +NS_SWIFT_NAME(AppLinkTarget) +@interface FBSDKAppLinkTarget : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// Creates a FBSDKAppLinkTarget with the given app site and target URL. +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url + appStoreId:(nullable NSString *)appStoreId + appName:(NSString *)appName +NS_SWIFT_NAME(init(url:appStoreId:appName:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL prefix for this app link target +@property (nullable, nonatomic, readonly, strong) NSURL *URL; + +/// The app ID for the app store +@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; + +/// The name of the app +@property (nonatomic, readonly, copy) NSString *appName; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h new file mode 100644 index 00000000..2bd5cd39 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A protocol to describe an AppLinkTarget +NS_SWIFT_NAME(AppLinkTargetProtocol) +@protocol FBSDKAppLinkTarget + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url + appStoreId:(nullable NSString *)appStoreId + appName:(NSString *)appName +NS_SWIFT_NAME(init(url:appStoreId:appName:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL prefix for this app link target +@property (nullable, nonatomic, readonly) NSURL *URL; + +/// The app ID for the app store +@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; + +/// The name of the app +@property (nonatomic, readonly, copy) NSString *appName; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h similarity index 57% rename from ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h index 86c51213..cc886b5e 100644 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h @@ -1,22 +1,10 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ #if !TARGET_OS_TV @@ -25,21 +13,17 @@ NS_ASSUME_NONNULL_BEGIN /** - Describes the callback for fetchDeferredAppLink. + Describes the callback for fetchDeferredAppLink. @param url the url representing the deferred App Link @param error the error during the request, if any - The url may also have a fb_click_time_utc query parameter that represents when the click occurred that caused the deferred App Link to be created. */ -typedef void (^FBSDKURLBlock)(NSURL *_Nullable url, NSError *_Nullable error) +typedef void (^ FBSDKURLBlock)(NSURL *_Nullable url, NSError *_Nullable error) NS_SWIFT_NAME(URLBlock); - -/** - Class containing App Links related utility methods. - */ +/// Class containing App Links related utility methods. NS_SWIFT_NAME(AppLinkUtility) @interface FBSDKAppLinkUtility : NSObject @@ -47,7 +31,7 @@ NS_SWIFT_NAME(AppLinkUtility) + (instancetype)new NS_UNAVAILABLE; /** - Call this method from the main thread to fetch deferred applink data if you use Mobile App + Call this method from the main thread to fetch deferred applink data if you use Mobile App Engagement Ads (https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads-engagement). This may require a network round trip. If successful, the handler is invoked with the link data (this will only return a valid URL once, and future calls will result in a nil URL @@ -55,7 +39,6 @@ NS_SWIFT_NAME(AppLinkUtility) @param handler the handler to be invoked if there is deferred App Link data - The handler may contain an NSError instance to capture any errors. In the common case where there simply was no app link data, the NSError instance will be nil. @@ -65,25 +48,24 @@ NS_SWIFT_NAME(AppLinkUtility) */ + (void)fetchDeferredAppLink:(nullable FBSDKURLBlock)handler; -/* - Call this method to fetch promotion code from the url, if it's present. +/** + Call this method to fetch promotion code from the url, if it's present. @param url App Link url that was passed to the app. @return Promotion code string. - Call this method to fetch App Invite Promotion Code from applink if present. This can be used to fetch the promotion code that was associated with the invite when it was created. This method should be called with the url from the openURL method. -*/ + */ + (nullable NSString *)appInvitePromotionCodeFromURL:(NSURL *)url; /** Check whether the scheme is defined in the app's URL schemes. @param scheme the scheme of App Link URL @return YES if the scheme is defined, otherwise NO. -*/ + */ + (BOOL)isMatchURLScheme:(NSString *)scheme; @end diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h new file mode 100644 index 00000000..c8b39faa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppURLSchemeProviding) +@protocol FBSDKAppURLSchemeProviding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, copy) NSString *appURLScheme; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)validateURLSchemes; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h new file mode 100644 index 00000000..ad1b6c78 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h @@ -0,0 +1,131 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The FBSDKApplicationDelegate is designed to post process the results from Facebook Login + or Facebook Dialogs (or any action that requires switching over to the native Facebook + app or Safari). + + The methods in this class are designed to mirror those in UIApplicationDelegate, and you + should call them in the respective methods in your AppDelegate implementation. + */ +NS_SWIFT_NAME(ApplicationDelegate) +@interface FBSDKApplicationDelegate : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +#if DEBUG && FBTEST +@property (nonnull, nonatomic, readonly) NSHashTable> *applicationObservers; +#endif + +/// Gets the singleton instance. +@property (class, nonatomic, readonly, strong) FBSDKApplicationDelegate *sharedInstance +NS_SWIFT_NAME(shared); + +/** + Call this method from the [UIApplicationDelegate application:continue:restorationHandler:] method + of the AppDelegate for your app. It should be invoked in order to properly process the web URL (universal link) + once the end user is redirected to your app. + + @param application The application as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + @param userActivity The user activity as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. +*/ +- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity; + +/** + Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +/** + Call this method from the [UIApplicationDelegate application:openURL:options:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:options:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:options:]. + + @param options The options dictionary as passed to [UIApplicationDelegate application:openURL:options:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options; + +/** + Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method + of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + + @param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @return True if there are any added application observers that themselves return true from calling `application:didFinishLaunchingWithOptions:`. + Otherwise will return false. Note: If this method is called after calling `initializeSDK` then the return type will always be false. + */ +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +/** + Initializes the SDK. + + If you are using the SDK within the context of the UIApplication lifecycle, do not use this method. + Instead use `application: didFinishLaunchingWithOptions:`. + + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + */ +- (void)initializeSDK; + +/** + Adds an observer that will be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)addObserver:(id)observer; + +/** + Removes an observer so that it will no longer be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)removeObserver:(id)observer; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h new file mode 100644 index 00000000..14de8940 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + Describes any types that optionally responds to various lifecycle events + received by the system and propagated by `ApplicationDelegate`. + */ +@protocol FBSDKApplicationObserving + +@optional +- (void)applicationDidBecomeActive:(nullable UIApplication *)application; +- (void)applicationWillResignActive:(nullable UIApplication *)application; +- (void)applicationDidEnterBackground:(nullable UIApplication *)application; +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h new file mode 100644 index 00000000..90648c92 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAuthenticationTokenClaims; +@protocol FBSDKTokenCaching; + +NS_ASSUME_NONNULL_BEGIN + +/// Represent an AuthenticationToken used for a login attempt +NS_SWIFT_NAME(AuthenticationToken) +@interface FBSDKAuthenticationToken : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The "global" authentication token that represents the currently logged in user. + + The `currentAuthenticationToken` represents the authentication token of the + current user and can be used by a client to verify an authentication attempt. + */ +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +/// The raw token string from the authentication response +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// The nonce from the decoded authentication response +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The graph domain where the user is authenticated. +@property (nonatomic, readonly, copy) NSString *graphDomain; + +/// Returns the claims encoded in the AuthenticationToken +- (nullable FBSDKAuthenticationTokenClaims *)claims; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h new file mode 100644 index 00000000..874fe073 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h @@ -0,0 +1,89 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenClaims) +@interface FBSDKAuthenticationTokenClaims : NSObject + +/// A unique identifier for the token. +@property (nonatomic, readonly, strong) NSString *jti; + +/// Issuer Identifier for the Issuer of the response. +@property (nonatomic, readonly, strong) NSString *iss; + +/// Audience(s) that this ID Token is intended for. +@property (nonatomic, readonly, strong) NSString *aud; + +/// String value used to associate a Client session with an ID Token, and to mitigate replay attacks. +@property (nonatomic, readonly, strong) NSString *nonce; + +/// Expiration time on or after which the ID Token MUST NOT be accepted for processing. +@property (nonatomic, readonly, assign) NSTimeInterval exp; + +/// Time at which the JWT was issued. +@property (nonatomic, readonly, assign) NSTimeInterval iat; + +/// Subject - Identifier for the End-User at the Issuer. +@property (nonatomic, readonly, strong) NSString *sub; + +/// End-User's full name in displayable form including all name parts. +@property (nullable, nonatomic, readonly, strong) NSString *name; + +/// End-User's given name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *givenName; + +/// End-User's middle name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *middleName; + +/// End-User's family name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *familyName; + +/** + End-User's preferred e-mail address. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSString *email; + +/// URL of the End-User's profile picture. +@property (nullable, nonatomic, readonly, strong) NSString *picture; + +/** + End-User's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSArray *userFriends; + +/// End-User's birthday +@property (nullable, nonatomic, readonly, strong) NSString *userBirthday; + +/// End-User's age range +@property (nullable, nonatomic, readonly, strong) NSDictionary *userAgeRange; + +/// End-User's hometown +@property (nullable, nonatomic, readonly, strong) NSDictionary *userHometown; + +/// End-User's location +@property (nullable, nonatomic, readonly, strong) NSDictionary *userLocation; + +/// End-User's gender +@property (nullable, nonatomic, readonly, strong) NSString *userGender; + +/// End-User's link +@property (nullable, nonatomic, readonly, strong) NSString *userLink; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h new file mode 100644 index 00000000..4f642307 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenProviding) +@protocol FBSDKAuthenticationTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAuthenticationToken *currentAuthenticationToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_SWIFT_NAME(AuthenticationTokenSetting) +@protocol FBSDKAuthenticationTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h new file mode 100644 index 00000000..75036b66 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + #import + #import + #import + #import + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPI) +@interface FBSDKBridgeAPI : NSObject + +@property (class, nonatomic, readonly, strong) FBSDKBridgeAPI *sharedInstance +NS_SWIFT_NAME(shared); +@property (nonatomic, readonly, getter = isActive) BOOL active; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h new file mode 100644 index 00000000..d394ff30 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIAppIDKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPISchemeSuffixKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIVersionKey; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIProtocol) +@protocol FBSDKBridgeAPIProtocol + +- (nullable NSURL *)requestURLWithActionID:(NSString *)actionID + scheme:(NSString *)scheme + methodName:(NSString *)methodName + parameters:(NSDictionary *)parameters + error:(NSError *_Nullable *)errorRef; +- (nullable NSDictionary *)responseParametersForActionID:(NSString *)actionID + queryParameters:(NSDictionary *)queryParameters + cancelled:(nullable BOOL *)cancelledRef + error:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h new file mode 100644 index 00000000..7f866232 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKBridgeAPIProtocolType) { + FBSDKBridgeAPIProtocolTypeNative, + FBSDKBridgeAPIProtocolTypeWeb, +}; + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h new file mode 100644 index 00000000..b55f8704 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h @@ -0,0 +1,50 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequest) +@interface FBSDKBridgeAPIRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; ++ (nullable instancetype)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(FBSDKURLScheme)scheme + methodName:(nullable NSString *)methodName + parameters:(nullable NSDictionary *)parameters + userInfo:(nullable NSDictionary *)userInfo; + +@property (nonatomic, readonly, copy) NSString *actionID; +@property (nullable, nonatomic, readonly, copy) NSString *methodName; +@property (nullable, nonatomic, readonly, copy) NSDictionary *parameters; +@property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType; +@property (nonatomic, readonly, copy) FBSDKURLScheme scheme; +@property (nullable, nonatomic, readonly, copy) NSDictionary *userInfo; + +- (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h new file mode 100644 index 00000000..5c76020d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@protocol FBSDKBridgeAPIRequest; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestCreating) +@protocol FBSDKBridgeAPIRequestCreating + +- (nullable id)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(NSString *)scheme + methodName:(nullable NSString *)methodName + parameters:(nullable NSDictionary *)parameters + userInfo:(nullable NSDictionary *)userInfo; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h new file mode 100644 index 00000000..11039fb5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import +#import + +#import +#import + +@protocol FBSDKBridgeAPIRequest; +@protocol FBSDKURLOpening; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestOpening) +@protocol FBSDKBridgeAPIRequestOpening + +- (void)openBridgeAPIRequest:(NSObject *)request + useSafariViewController:(BOOL)useSafariViewController + fromViewController:(nullable UIViewController *)fromViewController + completionBlock:(FBSDKBridgeAPIResponseBlock)completionBlock; + +// UNCRUSTIFY_FORMAT_OFF +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(nullable id)sender + fromViewController:(nullable UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler +NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +- (void)openURL:(NSURL *)url + sender:(nullable id)sender + handler:(FBSDKSuccessBlock)handler; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h new file mode 100644 index 00000000..4cdbd851 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@protocol FBSDKBridgeAPIProtocol; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestProtocol) +@protocol FBSDKBridgeAPIRequest + +@property (nonatomic, readonly, copy) NSString *scheme; +@property (nonatomic, readonly, copy) NSString *actionID; +@property (nullable, nonatomic, readonly, copy) NSString *methodName; +@property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType; +@property (nullable, nonatomic, readonly, strong) id protocol; + +- (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h new file mode 100644 index 00000000..d9c3c3e0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@protocol FBSDKBridgeAPIRequest; +@class FBSDKBridgeAPIResponse; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^ FBSDKBridgeAPIResponseBlock)(FBSDKBridgeAPIResponse *response) +NS_SWIFT_NAME(BridgeAPIResponseBlock); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIResponse) +@interface FBSDKBridgeAPIResponse : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (instancetype)bridgeAPIResponseWithRequest:(NSObject *)request error:(NSError *)error; ++ (nullable instancetype)bridgeAPIResponseWithRequest:(NSObject *)request + responseURL:(NSURL *)responseURL + sourceApplication:(nullable NSString *)sourceApplication + error:(NSError *__autoreleasing *)errorRef; ++ (instancetype)bridgeAPIResponseCancelledWithRequest:(NSObject *)request; + +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; +@property (nullable, nonatomic, readonly, copy) NSError *error; +@property (nonatomic, readonly, copy) NSObject *request; +@property (nullable, nonatomic, readonly, copy) NSDictionary *responseParameters; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKButton.h new file mode 100644 index 00000000..beae11a1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKButton.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +@class FBSDKIcon; + +NS_ASSUME_NONNULL_BEGIN + +/// A base class for common SDK buttons. +NS_SWIFT_NAME(FBButton) +@interface FBSDKButton : FBSDKImpressionLoggingButton + +@property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled; + +- (void)checkImplicitlyDisabled; +- (void)configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void) configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor + selectedTitle:(nullable NSString *)selectedTitle + selectedIcon:(nullable FBSDKIcon *)selectedIcon + selectedColor:(nullable UIColor *)selectedColor + selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (UIColor *)defaultBackgroundColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logTapEventWithEventName:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h new file mode 100644 index 00000000..806edb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FBButtonImpressionLogging) +@protocol FBSDKButtonImpressionLogging + +@property (nullable, nonatomic, readonly, copy) NSDictionary *analyticsParameters; +@property (nonatomic, readonly, copy) FBSDKAppEventName impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString *impressionTrackingIdentifier; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKConstants.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKConstants.h new file mode 100644 index 00000000..d746dca3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKConstants.h @@ -0,0 +1,206 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKCoreKit. + + Error codes from the SDK in the range 0-99 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKErrorDomain +NS_SWIFT_NAME(ErrorDomain); + +/* + @methodgroup error userInfo keys + */ + +/** + The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. + + If the invalid argument is a collection, the collection can be found with this key and the individual + invalid item can be found with FBSDKErrorArgumentValueKey. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey +NS_SWIFT_NAME(ErrorArgumentCollectionKey); + +/// The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey +NS_SWIFT_NAME(ErrorArgumentNameKey); + +/// The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey +NS_SWIFT_NAME(ErrorArgumentValueKey); + +/** + The userInfo key for the message for developers in NSErrors that originate from the SDK. + + The developer message will not be localized and is not intended to be presented within the app. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey +NS_SWIFT_NAME(ErrorDeveloperMessageKey); + +/// The userInfo key describing a localized description that can be presented to the user. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey +NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); + +/// The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey +NS_SWIFT_NAME(ErrorLocalizedTitleKey); + +/* + @methodgroup FBSDKGraphRequest error userInfo keys + */ + +/** + The userInfo key describing the error category, for error recovery purposes. + + See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorKey +NS_SWIFT_NAME(GraphRequestErrorKey); + +/* + The userInfo key for the Graph API error code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); + +/* + The userInfo key for the Graph API error subcode. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); + +/* + The userInfo key for the HTTP status code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey +NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); + +/* + The userInfo key for the raw JSON response. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey +NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); + +/* + @methodgroup Common Code Block typedefs + */ + +/// Success Block +typedef void (^ FBSDKCodeBlock)(void) +NS_SWIFT_NAME(CodeBlock); + +/// Error Block +typedef void (^ FBSDKErrorBlock)(NSError *_Nullable error) +NS_SWIFT_NAME(ErrorBlock); + +/// Success Block +typedef void (^ FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) +NS_SWIFT_NAME(SuccessBlock); + +/* + @methodgroup Enums + */ + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKCoreError + Error codes for FBSDKErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKErrorDomain, FBSDKCoreError) +{ + /// Reserved. + FBSDKErrorReserved = 0, + + /// The error code for errors from invalid encryption on incoming encryption URLs. + FBSDKErrorEncryption, + + /// The error code for errors from invalid arguments to SDK methods. + FBSDKErrorInvalidArgument, + + /// The error code for unknown errors. + FBSDKErrorUnknown, + + /** + A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve + the error object from the NSURLSession for more information. + */ + FBSDKErrorNetwork, + + /// The error code for errors encountered during an App Events flush. + FBSDKErrorAppEventsFlush, + + /** + An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. + + Endpoints that return image/jpg, etc. should be accessed using NSURLRequest + */ + FBSDKErrorGraphRequestNonTextMimeTypeReturned, + + /** + The operation failed because the server returned an unexpected response. + + You can get this error if you are not using the most recent SDK, or you are accessing a version of the + Graph API incompatible with the current SDK. + */ + FBSDKErrorGraphRequestProtocolMismatch, + + /** + The Graph API returned an error. + + See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) + */ + FBSDKErrorGraphRequestGraphAPI, + + /** + The specified dialog configuration is not available. + + This error may signify that the configuration for the dialogs has not yet been downloaded from the server + or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. + */ + FBSDKErrorDialogUnavailable, + + /// Indicates an operation failed because a required access token was not found. + FBSDKErrorAccessTokenRequired, + + /// Indicates an app switch (typically for a dialog) failed because the destination app is out of date. + FBSDKErrorAppVersionUnsupported, + + /// Indicates an app switch to the browser (typically for a dialog) failed. + FBSDKErrorBrowserUnavailable, + + /// Indicates that a bridge api interaction was interrupted. + FBSDKErrorBridgeAPIInterruption, + + /// Indicates that a bridge api response creation failed. + FBSDKErrorBridgeAPIResponse, +} NS_SWIFT_NAME(CoreError); + +/** + FBSDKGraphRequestError + Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. + */ +typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) { + /// The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. + FBSDKGraphRequestErrorOther = 0, + /// Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. + FBSDKGraphRequestErrorTransient = 1, + /// Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. + FBSDKGraphRequestErrorRecoverable = 2, +} NS_SWIFT_NAME(GraphRequestError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h new file mode 100644 index 00000000..cfadc7f3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h @@ -0,0 +1,254 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h new file mode 100644 index 00000000..8a4569c0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h @@ -0,0 +1,112 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import + +#if !TARGET_OS_TV + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h new file mode 100644 index 00000000..e9eb97c5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#define FBSDK_VERSION_STRING @"13.1.0" +#define FBSDK_DEFAULT_GRAPH_API_VERSION @"v13.0" diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h new file mode 100644 index 00000000..73ac8512 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceButton) +@interface FBSDKDeviceButton : FBSDKButton +- (CGSize)sizeThatFits:(CGSize)size attributedTitle:(NSAttributedString *)title; +- (nullable NSAttributedString *)attributedTitleStringFromString:(NSString *)string; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h new file mode 100644 index 00000000..b98e1221 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +NS_SWIFT_NAME(FBDeviceDialogView) +@interface FBSDKDeviceDialogView : UIView + +@property (nonatomic, weak) id delegate; +@property (nonatomic, copy) NSString *confirmationCode; + +// override point for subclasses. +- (void)buildView; + +@end + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate + +- (void)deviceDialogViewDidCancel:(FBSDKDeviceDialogView *)deviceDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h new file mode 100644 index 00000000..b4e309a9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceViewControllerBase) +@interface FBSDKDeviceViewControllerBase : UIViewController +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h new file mode 100644 index 00000000..a46a303e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(DynamicFrameworkLoaderProxy) +@interface FBSDKDynamicFrameworkLoaderProxy : NSObject +/** + Load the kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value from the Security Framework + + @return The kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h new file mode 100644 index 00000000..bad1414d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Social Constants + +/// Dynamically loaded constant for SLServiceTypeFacebook +FOUNDATION_EXPORT NSString *fbsdkdfl_SLServiceTypeFacebook(void); + +#pragma mark - Social Classes + +FOUNDATION_EXPORT Class fbsdkdfl_SLComposeViewControllerClass(void); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h new file mode 100644 index 00000000..85c9e191 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorCreating) +@protocol FBSDKErrorCreating + +// MARK: - General Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithCode:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(domain:code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Invalid Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(domain:name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Required Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithName:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(requiredArgumentError(name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError + NS_SWIFT_NAME(requiredArgumentError(domain:name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Unknown Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)unknownErrorWithMessage:(nullable NSString *)message + userInfo:(nullable NSDictionary *)userInfo +NS_SWIFT_NAME(unknownError(message:userInfo:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h new file mode 100644 index 00000000..217c00be --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorFactory) +@interface FBSDKErrorFactory : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h new file mode 100644 index 00000000..b005f8eb --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A formal protocol very similar to the informal protocol NSErrorRecoveryAttempting + Internal use only + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ErrorRecoveryAttempting) +@protocol FBSDKErrorRecoveryAttempting + +/** + Attempt the recovery + @param error the error + @param completionHandler the handler called upon completion of error recovery + + Attempt recovery from the error, and call the completion handler. The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. + */ +- (void)attemptRecoveryFromError:(NSError *)error + completionHandler:(void (^)(BOOL didRecover))completionHandler; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeature.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeature.h new file mode 100644 index 00000000..1ddf4d2f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeature.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + FBSDKFeature enum + Defines features in SDK + + Sample: + FBSDKFeatureAppEvents = 0x00010000, + ^ ^ ^ ^ + | | | | + kit | | | + feature | | + sub-feature | + sub-sub-feature + 1st byte: kit + 2nd byte: feature + 3rd byte: sub-feature + 4th byte: sub-sub-feature + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKFeature) { + FBSDKFeatureNone = 0x00000000, + // Features in CoreKit + /// Essential of CoreKit + FBSDKFeatureCore = 0x01000000, + /// App Events + FBSDKFeatureAppEvents = 0x01010000, + FBSDKFeatureCodelessEvents = 0x01010100, + FBSDKFeatureRestrictiveDataFiltering = 0x01010200, + FBSDKFeatureAAM = 0x01010300, + FBSDKFeaturePrivacyProtection = 0x01010400, + FBSDKFeatureSuggestedEvents = 0x01010401, + FBSDKFeatureIntelligentIntegrity = 0x01010402, + FBSDKFeatureModelRequest = 0x01010403, + FBSDKFeatureEventDeactivation = 0x01010500, + FBSDKFeatureSKAdNetwork = 0x01010600, + FBSDKFeatureSKAdNetworkConversionValue = 0x01010601, + FBSDKFeatureATELogging = 0x01010700, + FBSDKFeatureAEM = 0x01010800, + FBSDKFeatureAEMConversionFiltering = 0x01010801, + FBSDKFeatureAEMCatalogMatching = 0x01010802, + /// Instrument + FBSDKFeatureInstrument = 0x01020000, + FBSDKFeatureCrashReport = 0x01020100, + FBSDKFeatureCrashShield = 0x01020101, + FBSDKFeatureErrorReport = 0x01020200, + + // Features in LoginKit + /// Essential of LoginKit + FBSDKFeatureLogin = 0x02000000, + + // Features in ShareKit + /// Essential of ShareKit + FBSDKFeatureShare = 0x03000000, + + // Features in GamingServicesKit + /// Essential of GamingServicesKit + FBSDKFeatureGamingServices = 0x04000000, +} NS_SWIFT_NAME(SDKFeature); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKFeatureManagerBlock)(BOOL enabled); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h new file mode 100644 index 00000000..bdb5d532 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FeatureChecking) +@protocol FBSDKFeatureChecking + +- (BOOL)isEnabled:(FBSDKFeature)feature; + +- (void)checkFeature:(FBSDKFeature)feature + completionBlock:(FBSDKFeatureManagerBlock)completionBlock; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h similarity index 55% rename from ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h index e57c797c..1fee9ddd 100644 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h @@ -1,46 +1,28 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ #if !TARGET_OS_TV #import -#ifdef BUCK #import -#else -#import "FBSDKConstants.h" -#endif NS_ASSUME_NONNULL_BEGIN @class FBSDKGraphErrorRecoveryProcessor; -@class FBSDKGraphRequest; +@protocol FBSDKGraphRequest; -/** - Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`. - */ +/// Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`. NS_SWIFT_NAME(GraphErrorRecoveryProcessorDelegate) -@protocol FBSDKGraphErrorRecoveryProcessorDelegate +@protocol FBSDKGraphErrorRecoveryProcessorDelegate /** - Indicates the error recovery has been attempted. + Indicates the error recovery has been attempted. @param processor the processor instance. @param didRecover YES if the recovery was successful. @param error the error that that was attempted to be recovered from. @@ -51,7 +33,7 @@ NS_SWIFT_NAME(GraphErrorRecoveryProcessorDelegate) @optional /** - Indicates the processor is about to process the error. + Indicates the processor is about to process the error. @param processor the processor instance. @param error the error is about to be processed. @@ -69,7 +51,7 @@ NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_BEGIN /** - Defines a type that can process Facebook NSErrors with best practices. + Defines a type that can process Facebook NSErrors with best practices. Facebook NSErrors can contain FBSDKErrorRecoveryAttempting instances to recover from errors, or localized messages to present to the user. This class will process the instances as follows: @@ -77,7 +59,7 @@ NS_ASSUME_NONNULL_BEGIN 1. If the error is temporary as indicated by FBSDKGraphRequestErrorKey, assume the recovery succeeded and notify the delegate. 2. If a FBSDKErrorRecoveryAttempting instance is available, display an alert (dispatched to main thread) - with the recovery options and call the instance's [ attemptRecoveryFromError:optionIndex:...]. + with the recovery options and call the instance's attemptRecoveryFromError method. 3. If a FBSDKErrorRecoveryAttempting is not available, check the userInfo for FBSDKLocalizedErrorDescriptionKey and present that in an alert (dispatched to main thread). @@ -92,31 +74,22 @@ NS_ASSUME_NONNULL_BEGIN the `[FBSDKAccessToken currentAccessToken]` might still have been updated. . */ -NS_SWIFT_UNAVAILABLE("") +NS_SWIFT_NAME(GraphErrorRecoveryProcessor) @interface FBSDKGraphErrorRecoveryProcessor : NSObject -/** - Gets the delegate. Note this is a strong reference, and is nil'ed out after recovery is complete. - */ -@property (nonatomic, strong, readonly, nullable) iddelegate; +/// Initializes a GraphErrorRecoveryProcessor with an access token string. +- (instancetype)initWithAccessTokenString:(NSString *)accessTokenString; /** - Attempts to process the error, return YES if the error can be processed. + Attempts to process the error, return YES if the error can be processed. @param error the error to process. @param request the related request that may be reissued. @param delegate the delegate that will be retained until recovery is complete. */ - (BOOL)processError:(NSError *)error - request:(FBSDKGraphRequest *)request + request:(id)request delegate:(nullable id)delegate; -/** - The callback for FBSDKErrorRecoveryAttempting - @param didRecover if the recovery succeeded - @param contextInfo unused - */ -- (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(nullable void *)contextInfo; - @end NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h new file mode 100644 index 00000000..bd149522 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h @@ -0,0 +1,167 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +/** + Represents a request to the Facebook Graph API. + + `FBSDKGraphRequest` encapsulates the components of a request (the + Graph API path, the parameters, error recovery behavior) and should be + used in conjunction with `FBSDKGraphRequestConnection` to issue the request. + + Nearly all Graph APIs require an access token. Unless specified, the + `[FBSDKAccessToken currentAccessToken]` is used. Therefore, most requests + will require login first (see `FBSDKLoginManager` in FBSDKLoginKit.framework). + + A `- start` method is provided for convenience for single requests. + + By default, FBSDKGraphRequest will attempt to recover any errors returned from + Facebook. You can disable this via `disableErrorRecovery:`. + + See FBSDKGraphErrorRecoveryProcessor + */ +NS_SWIFT_NAME(GraphRequest) +@interface FBSDKGraphRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void) configureWithSettings:(id)settings + currentAccessTokenStringProvider:(Class)accessTokenProvider + graphRequestConnectionFactory:(id)_graphRequestConnectionFactory +NS_SWIFT_NAME(configure(settings:currentAccessTokenStringProvider:graphRequestConnectionFactory:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param version the optional Graph API version (e.g., @"v2.0"). nil defaults to `[FBSDKSettings graphAPIVersion]`. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method + NS_DESIGNATED_INITIALIZER; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param requestFlags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)requestFlags; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param HTTPMethod the HTTP method. Empty String defaults to @"GET". + @param flags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable NSString *)HTTPMethod + flags:(FBSDKGraphRequestFlags)flags; + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/** + If set, disables the automatic error recovery mechanism. + @param disable whether to disable the automatic error recovery mechanism + + By default, non-batched FBSDKGraphRequest instances will automatically try to recover + from errors by constructing a `FBSDKGraphErrorRecoveryProcessor` instance that + re-issues the request on successful recoveries. The re-issued request will call the same + handler as the receiver but may occur with a different `FBSDKGraphRequestConnection` instance. + + This will override [FBSDKSettings setGraphErrorRecoveryDisabled:]. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setGraphErrorRecoveryDisabled:(BOOL)disable +NS_SWIFT_NAME(setGraphErrorRecovery(disabled:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h new file mode 100644 index 00000000..a64cb00d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequest; +@protocol FBSDKGraphRequestConnecting; +@protocol FBSDKGraphRequestConnectionDelegate; + +/** + FBSDKGraphRequestCompletion + + A block that is passed to addRequest to register for a callback with the results of that + request once the connection completes. + + Pass a block of this type when calling addRequest. This will be called once + the request completes. The call occurs on the UI thread. + + @param connection The connection that sent the request. + + @param result The result of the request. This is a translation of + JSON data to `NSDictionary` and `NSArray` objects. This + is nil if there was an error. + + @param error The `NSError` representing any error that occurred. + */ +NS_SWIFT_NAME(GraphRequestCompletion) +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe an object that can manage graph requests +NS_SWIFT_NAME(GraphRequestConnecting) +@protocol FBSDKGraphRequestConnecting + +@property (nonatomic, assign) NSTimeInterval timeout; +@property (nullable, nonatomic, weak) id delegate; + +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)handler; + +- (void)start; +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h new file mode 100644 index 00000000..99966bf1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h @@ -0,0 +1,173 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The key in the result dictionary for requests to old versions of the Graph API + whose response is not a JSON object. + + When a request returns a non-JSON response (such as a "true" literal), that response + will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API + prior to v2.1. + */ +FOUNDATION_EXPORT NSString *const FBSDKNonJSONResponseProperty +NS_SWIFT_NAME(NonJSONResponseProperty); + +@protocol FBSDKGraphRequest; + +/** + The `FBSDKGraphRequestConnection` represents a single connection to Facebook to service a request. + + The request settings are encapsulated in a reusable object. The + `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication + e.g. starting a connection, canceling a connection, or batching requests. + */ +NS_SWIFT_NAME(GraphRequestConnection) +@interface FBSDKGraphRequestConnection : NSObject + +/// The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. +@property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; + +/// The delegate object that receives updates. +@property (nullable, nonatomic, weak) id delegate; + +/// Gets or sets the timeout interval to wait for a response before giving up. +@property (nonatomic, assign) NSTimeInterval timeout; + +/** + The raw response that was returned from the server. (readonly) + + This property can be used to inspect HTTP headers that were returned from + the server. + + The property is nil until the request completes. If there was a response + then this property will be non-nil during the FBSDKGraphRequestBlock callback. + */ +@property (nullable, nonatomic, readonly, retain) NSHTTPURLResponse *urlResponse; + +/** + Determines the operation queue that is used to call methods on the connection's delegate. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + You cannot reschedule a connection after it has started. + */ +@property (nullable, nonatomic) NSOperationQueue *delegateQueue; + +/// @methodgroup Class methods + +/// @methodgroup Adding requests + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + @param completion A handler to call back when the round-trip completes or times out. + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. + */ +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + The handler will be invoked on the main thread. + + @param name A name for this request. This can be used to feed + the results of one request to the input of another in the same + `FBSDKGraphRequestConnection` as described in + [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + name:(NSString *)name + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + + @param parameters The dictionary of parameters to include for this request + as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + Examples include "depends_on", "name", or "omit_response_on_success". + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + parameters:(nullable NSDictionary *)parameters + completion:(FBSDKGraphRequestCompletion)completion; + +/// @methodgroup Instance methods + +/** + @method + + Signals that a connection should be logically terminated as the + application is no longer interested in a response. + + Synchronously calls any handlers indicating the request was cancelled. Cancel + does not guarantee that the request-related processing will cease. It + does promise that all handlers will complete before the cancel returns. A call to + cancel prior to a start implies a cancellation of all requests associated + with the connection. + */ +- (void)cancel; + +/** + @method + + This method starts a connection with the server and is capable of handling all of the + requests that were added to the connection. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + See `setDelegateQueue:` for other options. + + This method cannot be called twice for an `FBSDKGraphRequestConnection` instance. + */ +- (void)start; + +/** + @method + + Overrides the default version for a batch request + + The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning + for applications. If you want to override the version part while using batch requests on the connection, call + this method to set the version for the batch request. + + @param version This is a string in the form @"v2.0" which will be used for the version part of an API path + */ +- (void)overrideGraphAPIVersion:(NSString *)version; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h new file mode 100644 index 00000000..738ad47d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h @@ -0,0 +1,93 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKGraphRequestConnectionDelegate` protocol defines the methods used to receive network + activity progress information from a . + */ +NS_SWIFT_NAME(GraphRequestConnectionDelegate) +@protocol FBSDKGraphRequestConnectionDelegate + +@optional + +/** + @method + + Tells the delegate the request connection will begin loading + + If the is created using one of the convenience factory methods prefixed with + start, the object returned from the convenience method has already begun loading and this method + will not be called when the delegate is set. + + @param connection The request connection that is starting a network request + */ +- (void)requestConnectionWillBeginLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection finished loading + + If the request connection completes without a network error occurring then this method is called. + Invocation of this method does not indicate success of every made, only that the + request connection has no further activity. Use the error argument passed to the FBSDKGraphRequestBlock + block to determine success or failure of each . + + This method is invoked after the completion handler for each . + + @param connection The request connection that successfully completed a network request + */ +- (void)requestConnectionDidFinishLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection failed with an error + + If the request connection fails with a network error then this method is called. The `error` + argument specifies why the network connection failed. The `NSError` object passed to the + FBSDKGraphRequestBlock block may contain additional information. + + @param connection The request connection that successfully completed a network request + @param error The `NSError` representing the network error that occurred, if any. May be nil + in some circumstances. Consult the `NSError` for the for reliable + failure information. + */ +- (void)requestConnection:(id)connection + didFailWithError:(NSError *)error; + +/** + @method + + Tells the delegate how much data has been sent and is planned to send to the remote host + + The byte count arguments refer to the aggregated objects, not a particular . + + Like `NSURLSession`, the values may change in unexpected ways if data needs to be resent. + + @param connection The request connection transmitting data to a remote host + @param bytesWritten The number of bytes sent in the last transmission + @param totalBytesWritten The total number of bytes sent to the remote host + @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host + */ +- (void) requestConnection:(id)connection + didSendBodyData:(NSInteger)bytesWritten + totalBytesWritten:(NSInteger)totalBytesWritten + totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h new file mode 100644 index 00000000..19e62d20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequestConnecting`. + */ +NS_SWIFT_NAME(GraphRequestConnectionFactory) +@interface FBSDKGraphRequestConnectionFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h new file mode 100644 index 00000000..96b43dfa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestConnecting; + +/// Describes anything that can provide instances of `FBSDKGraphRequestConnecting` +NS_SWIFT_NAME(GraphRequestConnectionFactoryProtocol) +@protocol FBSDKGraphRequestConnectionFactory + +- (id)createGraphRequestConnection; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h new file mode 100644 index 00000000..3775cb4f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A container class for data attachments so that additional metadata can be provided about the attachment. +NS_SWIFT_NAME(GraphRequestDataAttachment) +@interface FBSDKGraphRequestDataAttachment : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes the receiver with the attachment data and metadata. + @param data The attachment data (retained, not copied) + @param filename The filename for the attachment + @param contentType The content type for the attachment + */ +- (instancetype)initWithData:(NSData *)data + filename:(NSString *)filename + contentType:(NSString *)contentType + NS_DESIGNATED_INITIALIZER; + +/// The content type for the attachment. +@property (nonatomic, readonly, copy) NSString *contentType; + +/// The attachment data. +@property (nonatomic, readonly, strong) NSData *data; + +/// The filename for the attachment. +@property (nonatomic, readonly, copy) NSString *filename; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h new file mode 100644 index 00000000..6661ac1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestFactory; + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequest` + */ +NS_SWIFT_NAME(GraphRequestFactory) +@interface FBSDKGraphRequestFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h new file mode 100644 index 00000000..eb85a3ba --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +@protocol FBSDKGraphRequest; + +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + +Describes anything that can provide instances of `GraphRequestProtocol` + */ +NS_SWIFT_NAME(GraphRequestFactoryProtocol) +@protocol FBSDKGraphRequestFactory + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable FBSDKHTTPMethod)method + flags:(FBSDKGraphRequestFlags)flags; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)flags; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h new file mode 100644 index 00000000..68e7c8da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags that indicate how a graph request should be treated in various scenarios +typedef NS_OPTIONS(NSUInteger, FBSDKGraphRequestFlags) { + FBSDKGraphRequestFlagNone = 0, + /// indicates this request should not use a client token as its token parameter + FBSDKGraphRequestFlagSkipClientToken = 1 << 1, + /// indicates this request should not close the session if its response is an oauth error + FBSDKGraphRequestFlagDoNotInvalidateTokenOnError = 1 << 2, + /// indicates this request should not perform error recovery + FBSDKGraphRequestFlagDisableErrorRecovery = 1 << 3, +} NS_SWIFT_NAME(GraphRequestFlags); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h new file mode 100644 index 00000000..e79728d9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// typedef for FBSDKHTTPMethod +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +/// GET Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodGET NS_SWIFT_NAME(get); + +/// POST Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodPOST NS_SWIFT_NAME(post); + +/// DELETE Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodDELETE NS_SWIFT_NAME(delete); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h new file mode 100644 index 00000000..6cc4da38 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphRequestConnection; +@protocol FBSDKGraphRequestConnecting; + +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +typedef void (^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection *_Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe anything that represents a graph request +NS_SWIFT_NAME(GraphRequestProtocol) +@protocol FBSDKGraphRequest + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/// The graph request flags to use +@property (nonatomic, readonly, assign) FBSDKGraphRequestFlags flags; + +/// Convenience property to determine if graph error recover is disabled +@property (nonatomic, getter = isGraphErrorRecoveryDisabled) BOOL graphErrorRecoveryDisabled; + +/// Convenience property to determine if the request has attachments +@property (nonatomic, readonly) BOOL hasAttachments; + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +/// A formatted description of the graph request +- (NSString *)formattedDescription; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKIcon.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKIcon.h new file mode 100644 index 00000000..0404e39a --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKIcon.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Icon) +@interface FBSDKIcon : NSObject + +- (nullable CGPathRef)pathWithSize:(CGSize)size; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h new file mode 100644 index 00000000..4202de70 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ImpressionLoggingButton) +@interface FBSDKImpressionLoggingButton : UIButton +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h new file mode 100644 index 00000000..93829d56 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import +#import +#import +#import + +#if !TARGET_OS_TV + #import +#endif + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(InternalUtility) +@interface FBSDKInternalUtility : NSObject +#if !TARGET_OS_TV + +#else + +#endif + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +@property (class, nonnull, readonly) FBSDKInternalUtility *sharedUtility; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +/** + Tests whether the supplied URL is a valid URL for opening in the browser. + @param URL The URL to test. + @return YES if the URL refers to an http or https resource, otherwise NO. + */ +- (BOOL)isBrowserURL:(NSURL *)URL; + +/** + Checks equality between 2 objects. + + Checks for pointer equality, nils, isEqual:. + @param object The first object to compare. + @param other The second object to compare. + @return YES if the objects are equal, otherwise NO. + */ +- (BOOL)object:(id)object isEqualToObject:(id)other; + +/// Attempts to find the first UIViewController in the view's responder chain. Returns nil if not found. +- (nullable UIViewController *)viewControllerForView:(UIView *)view; + +/// returns true if the url scheme is registered in the CFBundleURLTypes +- (BOOL)isRegisteredURLScheme:(NSString *)urlScheme; + +/// returns currently displayed top view controller. +- (nullable UIViewController *)topMostViewController; + +/// returns the current key window +- (nullable UIWindow *)findWindow; + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; + +- (BOOL)isRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h new file mode 100644 index 00000000..10846828 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h @@ -0,0 +1,135 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(InternalUtilityProtocol) +@protocol FBSDKInternalUtility + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly) BOOL isFacebookAppInstalled; + +/* + Checks if the app is Unity. + */ +@property (nonatomic, readonly) BOOL isUnity; + +/** + Constructs an NSURL. + @param scheme The scheme for the URL. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The URL. + */ +- (nullable NSURL *)URLWithScheme:(NSString *)scheme + host:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs an URL for the current app. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The app URL. + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs a Facebook URL. + @param hostPrefix The prefix for the host, such as 'm', 'graph', etc. + @param path The path for the URL. This may or may not include a version. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The Facebook URL. + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Registers a transient object so that it will not be deallocated until unregistered + @param object The transient object + */ +- (void)registerTransientObject:(id)object; + +/** + Unregisters a transient object that was previously registered with registerTransientObject: + @param object The transient object + */ +- (void)unregisterTransientObject:(__weak id)object; + +- (void)checkRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +/// Validates that the right URL schemes are registered, throws an NSException if not. +- (void)validateURLSchemes; + +/// add data processing options to the dictionary. +- (void)extendDictionaryWithDataProcessingOptions:(NSMutableDictionary *)parameters; + +/// Converts NSData to a hexadecimal UTF8 String. +- (nullable NSString *)hexadecimalStringFromData:(NSData *)data; + +/// validates that the app ID is non-nil, throws an NSException if nil. +- (void)validateAppID; + +/** + Validates that the client access token is non-nil, otherwise - throws an NSException otherwise. + Returns the composed client access token. + */ +- (NSString *)validateRequiredClientAccessToken; + +/** + Extracts permissions from a response fetched from me/permissions + @param responseObject the response + @param grantedPermissions the set to add granted permissions to + @param declinedPermissions the set to add declined permissions to. + */ +- (void)extractPermissionsFromResponse:(NSDictionary *)responseObject + grantedPermissions:(NSMutableSet *)grantedPermissions + declinedPermissions:(NSMutableSet *)declinedPermissions + expiredPermissions:(NSMutableSet *)expiredPermissions; + +/// validates that Facebook reserved URL schemes are not registered, throws an NSException if they are. +- (void)validateFacebookReservedURLSchemes; + +/** + Parses an FB url's query params (and potentially fragment) into a dictionary. + @param url The FB url. + @return A dictionary with the key/value pairs. + */ +- (NSDictionary *)parametersFromFBURL:(NSURL *)url; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h new file mode 100644 index 00000000..a4292d54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStore) +@interface FBSDKKeychainStore : NSObject + +@property (nonatomic, readonly, copy) NSString *service; +@property (nullable, nonatomic, readonly, copy) NSString *accessGroup; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithService:(NSString *)service accessGroup:(nullable NSString *)accessGroup NS_DESIGNATED_INITIALIZER; + +- (BOOL)setData:(nullable NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (nullable NSData *)dataForKey:(NSString *)key; + +// hook for subclasses to override keychain query construction. +- (NSMutableDictionary *)queryForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h new file mode 100644 index 00000000..149c59d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `KeychainStore` + */ +NS_SWIFT_NAME(KeychainStoreFactory) +@interface FBSDKKeychainStoreFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h new file mode 100644 index 00000000..4f8636a8 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProtocol) +@protocol FBSDKKeychainStore + +- (nullable NSString *)stringForKey:(NSString *)key; +- (nullable NSDictionary *)dictionaryForKey:(NSString *)key; + +- (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; +- (BOOL)setDictionary:(nullable NSDictionary *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h new file mode 100644 index 00000000..af0263ca --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProviding) +@protocol FBSDKKeychainStoreProviding + +- (nonnull id)createKeychainStoreWithService:(NSString *)service + accessGroup:(nullable NSString *)accessGroup; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLocation.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLocation.h new file mode 100644 index 00000000..e9fd1304 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLocation.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Location) +@interface FBSDKLocation : NSObject + +/// Location id +@property (nonatomic, readonly, strong) NSString *id; +/// Location name +@property (nonatomic, readonly, strong) NSString *name; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a Location object from a dinctionary containing valid location information. + @param dictionary The dictionary containing raw location + + Valid location will consist of "id" and "name" strings. + */ ++ (nullable instancetype)locationFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogger.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogger.h new file mode 100644 index 00000000..d6a31005 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogger.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Simple logging utility for conditionally logging strings and then emitting them + via NSLog(). + + @unsorted + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Logger) +@interface FBSDKLogger : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogging.h new file mode 100644 index 00000000..dbef5411 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogging.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Logging) +@protocol FBSDKLogging + +@property (nonatomic, readonly, copy) NSString *contents; +@property (nonatomic, readonly, copy) FBSDKLoggingBehavior loggingBehavior; + +- (instancetype)initWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +- (void)logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h new file mode 100644 index 00000000..900542d2 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. + */ + +typedef NSString *FBSDKLoggingBehavior NS_TYPED_ENUM NS_SWIFT_NAME(LoggingBehavior); + +/// Include access token in logging. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens; + +/// Log performance characteristics +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics; + +/// Log FBSDKAppEvents interactions +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents; + +/// Log Informational occurrences +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational; + +/// Log cache errors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors; + +/// Log errors from SDK UI controls +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors; + +/// Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning; + +/** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. + Info is the lowest level of severity, using it will result in logging all previously mentioned levels. + */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo; + +/// Log errors from SDK network requests +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests; + +/// Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h new file mode 100644 index 00000000..a6637497 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +@interface FBSDKLoginTooltip : NSObject +@property (nonatomic, readonly, getter = isEnabled, assign) BOOL enabled; +@property (nonatomic, readonly, copy) NSString *text; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithText:(NSString *)text + enabled:(BOOL)enabled + NS_DESIGNATED_INITIALIZER; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h new file mode 100644 index 00000000..3403551b --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(MeasurementEvent) +@interface FBSDKMeasurementEvent : NSObject + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h new file mode 100644 index 00000000..219d3fef --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Extension protocol for NSMutableCopying that adds the mutableCopy method, which is implemented on NSObject. + + NSObject implicitly conforms to this protocol. + */ +NS_SWIFT_NAME(MutableCopying) +@protocol FBSDKMutableCopying + +/** + Implemented by NSObject as a convenience to mutableCopyWithZone:. + @return A mutable copy of the receiver. + */ +- (id)mutableCopy; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h new file mode 100644 index 00000000..5b157c20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Concrete type providing functionality that checks whether an error represents a + network error. + */ +NS_SWIFT_NAME(NetworkErrorChecker) +@interface FBSDKNetworkErrorChecker : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h new file mode 100644 index 00000000..2868737f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_SWIFT_NAME(NetworkErrorChecking) +@protocol FBSDKNetworkErrorChecking + +/** + Checks whether an error is a network error. + + @param error An error that may or may not represent a network error. + + @return `YES` if the error represents a network error, otherwise `NO`. + */ +- (BOOL)isNetworkError:(NSError *)error; + +@end diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h new file mode 100644 index 00000000..fa8f4cde --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductAvailability) + Specifies product availability for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductAvailability) { + /// Item ships immediately + FBSDKProductAvailabilityInStock = 0, + /// No plan to restock + FBSDKProductAvailabilityOutOfStock, + /// Available in future + FBSDKProductAvailabilityPreOrder, + /// Ships in 1-2 weeks + FBSDKProductAvailabilityAvailableForOrder, + /// Discontinued + FBSDKProductAvailabilityDiscontinued, +} NS_SWIFT_NAME(AppEvents.ProductAvailability); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h new file mode 100644 index 00000000..41e23b1e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductCondition) + Specifies product condition for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductCondition) { + FBSDKProductConditionNew = 0, + FBSDKProductConditionRefurbished, + FBSDKProductConditionUsed, +} NS_SWIFT_NAME(AppEvents.ProductCondition); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfile.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfile.h new file mode 100644 index 00000000..a38aa453 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfile.h @@ -0,0 +1,289 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@class FBSDKLocation; +@class FBSDKProfile; +@class FBSDKUserAgeRange; + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentProfile` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKProfileChangeOldKey` and + `FBSDKProfileChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKProfileDidChangeNotification +NS_SWIFT_NAME(ProfileDidChange); + +/* key in notification's userInfo object for getting the old profile. + + If there was no old profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeOldKey +NS_SWIFT_NAME(ProfileChangeOldKey); + +/* key in notification's userInfo object for getting the new profile. + + If there is no new profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeNewKey +NS_SWIFT_NAME(ProfileChangeNewKey); + +/** + Describes the callback for loadCurrentProfileWithCompletion. + @param profile the FBSDKProfile + @param error the error during the request, if any + */ +typedef void (^ FBSDKProfileBlock)(FBSDKProfile *_Nullable profile, NSError *_Nullable error) +NS_SWIFT_NAME(ProfileBlock); + +/// Represents the unique identifier for an end user +typedef NSString FBSDKUserIdentifier + NS_SWIFT_NAME(UserIdentifier); + +/** + Represents an immutable Facebook profile + + This class provides a global "currentProfile" instance to more easily + add social context to your application. When the profile changes, a notification is + posted so that you can update relevant parts of your UI and is persisted to NSUserDefaults. + + Typically, you will want to call `enableUpdatesOnAccessTokenChange:YES` so that + it automatically observes changes to the `[FBSDKAccessToken currentAccessToken]`. + + You can use this class to build your own `FBSDKProfilePictureView` or in place of typical requests to "/me". + */ +NS_SWIFT_NAME(Profile) +@interface FBSDKProfile : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + initializes a new instance. + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate; + +/** + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + @param imageURL an optional URL to use for fetching a user's profile image + @param email the user's email + @param friendIDs a list of identifiers for the user's friends + @param birthday the user's birthday + @param ageRange the user's age range + @param hometown the user's hometown + @param location the user's location + @param gender the user's gender + @param isLimited indicates if the information provided is incomplete in some way. + When true, `loadCurrentProfileWithCompletion:` will assume the profile is + incomplete and disregard any cached profile. Defaults to false. + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate + imageURL:(nullable NSURL *)imageURL + email:(nullable NSString *)email + friendIDs:(nullable NSArray *)friendIDs + birthday:(nullable NSDate *)birthday + ageRange:(nullable FBSDKUserAgeRange *)ageRange + hometown:(nullable FBSDKLocation *)hometown + location:(nullable FBSDKLocation *)location + gender:(nullable NSString *)gender + isLimited:(BOOL)isLimited; + +/** + initializes a new instance. + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + @param imageURL an optional URL to use for fetching a user's profile image + @param email the user's email + @param friendIDs a list of identifiers for the user's friends + @param birthday the user's birthday + @param ageRange the user's age range + @param hometown the user's hometown + @param location the user's location + @param gender the user's gender + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate + imageURL:(nullable NSURL *)imageURL + email:(nullable NSString *)email + friendIDs:(nullable NSArray *)friendIDs + birthday:(nullable NSDate *)birthday + ageRange:(nullable FBSDKUserAgeRange *)ageRange + hometown:(nullable FBSDKLocation *)hometown + location:(nullable FBSDKLocation *)location + gender:(nullable NSString *)gender + NS_DESIGNATED_INITIALIZER; + +/** + The current profile instance and posts the appropriate notification + if the profile parameter is different than the receiver. + + This persists the profile to NSUserDefaults. + */ + +/// The current profile +@property (class, nullable, nonatomic, strong) FBSDKProfile *currentProfile +NS_SWIFT_NAME(current); + +/// The user id +@property (nonatomic, readonly, copy) FBSDKUserIdentifier *userID; +/// The user's first name +@property (nullable, nonatomic, readonly, copy) NSString *firstName; +/// The user's middle name +@property (nullable, nonatomic, readonly, copy) NSString *middleName; +/// The user's last name +@property (nullable, nonatomic, readonly, copy) NSString *lastName; +/// The user's complete name +@property (nullable, nonatomic, readonly, copy) NSString *name; +/** + A URL to the user's profile. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_link' permission + + Consider using `FBSDKAppLinkResolver` to resolve this + to an app link to link directly to the user's profile in the Facebook app. + */ +@property (nullable, nonatomic, readonly) NSURL *linkURL; + +/// The last time the profile data was fetched. +@property (nonatomic, readonly) NSDate *refreshDate; +/// A URL to use for fetching a user's profile image. +@property (nullable, nonatomic, readonly) NSURL *imageURL; +/** + The user's email. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSString *email; +/** + A list of identifiers of the user's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSArray *friendIDs; + +/** + The user's birthday. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_birthday' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSDate *birthday; + +/** + The user's age range + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_age_range' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKUserAgeRange *ageRange; + +/** + The user's hometown + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_hometown' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKLocation *hometown; + +/** + The user's location + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_location' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKLocation *location; + +/** + The user's gender + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_gender' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSString *gender; + +/** + Indicates if `currentProfile` will automatically observe `FBSDKAccessTokenDidChangeNotification` notifications + @param enable YES is observing + + If observing, this class will issue a graph request for public profile data when the current token's userID + differs from the current profile. You can observe `FBSDKProfileDidChangeNotification` for when the profile is updated. + + Note that if `[FBSDKAccessToken currentAccessToken]` is unset, the `currentProfile` instance remains. It's also possible + for `currentProfile` to return nil until the data is fetched. + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void)enableUpdatesOnAccessTokenChange:(BOOL)enable +NS_SWIFT_NAME(enableUpdatesOnAccessTokenChange(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Loads the current profile and passes it to the completion block. + @param completion The block to be executed once the profile is loaded + + If the profile is already loaded, this method will call the completion block synchronously, otherwise it + will begin a graph request to update `currentProfile` and then call the completion block when finished. + */ ++ (void)loadCurrentProfileWithCompletion:(nullable FBSDKProfileBlock)completion; + +/** + A convenience method for returning a complete `NSURL` for retrieving the user's profile image. + @param mode The picture mode + @param size The height and width. This will be rounded to integer precision. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable NSURL *)imageURLForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size +NS_SWIFT_NAME(imageURL(forMode:size:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Returns YES if the profile is equivalent to the receiver. + @param profile the profile to compare to. + */ +- (BOOL)isEqualToProfile:(FBSDKProfile *)profile; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h new file mode 100644 index 00000000..36bf8c54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@class FBSDKProfile; + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKProfilePictureMode enum + Defines the aspect ratio mode for the source image of the profile picture. + */ +typedef NS_ENUM(NSUInteger, FBSDKProfilePictureMode) { + /// A square cropped version of the image will be included in the view. + FBSDKProfilePictureModeSquare, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeNormal, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeAlbum, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeSmall, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeLarge, +} NS_SWIFT_NAME(Profile.PictureMode); + +/// A view to display a profile picture. +NS_SWIFT_NAME(FBProfilePictureView) +@interface FBSDKProfilePictureView : UIView + +/** + Create a new instance of `FBSDKProfilePictureView`. + + - Parameter frame: Frame rectangle for the view. + - Parameter profile: Optional profile to display a picture for. + */ +- (instancetype)initWithFrame:(CGRect)frame + profile:(FBSDKProfile *_Nullable)profile; + +/** + Create a new instance of `FBSDKProfilePictureView`. + + - Parameter profile: Optional profile to display a picture for. + */ +- (instancetype)initWithProfile:(FBSDKProfile *_Nullable)profile; + +/// The mode for the receiver to determine the aspect ratio of the source image. +@property (nonatomic, assign) FBSDKProfilePictureMode pictureMode; + +/// The profile ID to show the picture for. +@property (nonatomic, copy) NSString *profileID; + +/** + Explicitly marks the receiver as needing to update the image. + + This method is called whenever any properties that affect the source image are modified, but this can also + be used to trigger a manual update of the image if it needs to be re-downloaded. + */ +- (void)setNeedsImageUpdate; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h new file mode 100644 index 00000000..ac05481f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKProfile; + +NS_SWIFT_NAME(ProfileProviding) +@protocol FBSDKProfileProviding + +@property (class, nullable, nonatomic, strong) FBSDKProfile *currentProfile +NS_SWIFT_NAME(current); + ++ (nullable FBSDKProfile *)fetchCachedProfile; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKRandom.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKRandom.h new file mode 100644 index 00000000..653a0389 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKRandom.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + Provides a random string + @param numberOfBytes the number of bytes to use + */ +extern NSString *fb_randomString(NSUInteger numberOfBytes); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h new file mode 100644 index 00000000..884b84ac --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal block type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoginTooltipBlock) +typedef void (^FBSDKLoginTooltipBlock)(FBSDKLoginTooltip *_Nullable loginTooltip, NSError *_Nullable error); + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ServerConfigurationProvider) +@interface FBSDKServerConfigurationProvider : NSObject + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly) NSString *loggingToken; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (NSUInteger)cachedSmartLoginOptions; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (BOOL)useSafariViewControllerForDialogName:(NSString *)dialogName; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)loadServerConfigurationWithCompletionBlock:(nullable FBSDKLoginTooltipBlock)completionBlock; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettings.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettings.h new file mode 100644 index 00000000..6b3a2897 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettings.h @@ -0,0 +1,197 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Settings) +@interface FBSDKSettings : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +/// The shared settings instance. Prefer this and the exposed instance methods over the class variants. +@property (class, nonatomic, readonly) FBSDKSettings *sharedSettings; + +/// Retrieve the current iOS SDK version. +@property (nonatomic, readonly, copy) NSString *sdkVersion; + +/// Retrieve the current default Graph API version. +@property (nonatomic, readonly, copy) NSString *defaultGraphAPIVersion; + +/** + The quality of JPEG images sent to Facebook from the SDK, + expressed as a value from 0.0 to 1.0. + + If not explicitly set, the default is 0.9. +*/ +@property (nonatomic) CGFloat JPEGCompressionQuality +NS_SWIFT_NAME(jpegCompressionQuality); + +/** + Controls the auto logging of basic app events, such as activateApp and deactivateApp. + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAutoLogAppEventsEnabled) BOOL autoLogAppEventsEnabled; + +/** + Controls the fb_codeless_debug logging event + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; + +/** + Controls the access to IDFA + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; + +/** + Controls the SKAdNetwork report + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isSKAdNetworkReportEnabled) BOOL skAdNetworkReportEnabled; + +/** + Whether data such as that generated through FBSDKAppEvents and sent to Facebook + should be restricted from being used for other than analytics and conversions. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL isEventDataUsageLimited; + +/** + Whether in memory cached values should be used for expensive metadata fields, such as + carrier and advertiser ID, that are fetched on many applicationDidBecomeActive notifications. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; + +/// A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; + +/** + The Facebook App ID used by the SDK. + + If not explicitly set, the default will be read from the application's plist (FacebookAppID). + */ +@property (nullable, nonatomic, copy) NSString *appID; + +/** + The default url scheme suffix used for sessions. + + If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). + */ +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; + +/** + The Client Token that has been set via [[FBSDKSettings sharedSettings] setClientToken]. + This is needed for certain API calls when made anonymously, without a user-based access token. + + The Facebook App's "client token", which, for a given appid can be found in the Security + section of the Advanced tab of the Facebook App settings found at + + If not explicitly set, the default will be read from the application's plist (FacebookClientToken). + */ +@property (nullable, nonatomic, copy) NSString *clientToken; + +/** + The Facebook Display Name used by the SDK. + + This should match the Display Name that has been set for the app with the corresponding Facebook App ID, + in the Facebook App Dashboard. + + If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). + */ +@property (nullable, nonatomic, copy) NSString *displayName; + +/** + The Facebook domain part. This can be used to change the Facebook domain + (e.g. @"beta") so that requests will be sent to `graph.beta.facebook.com` + + If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). + */ +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; + +/** + The current Facebook SDK logging behavior. This should consist of strings + defined as constants with FBSDKLoggingBehavior*. + + This should consist a set of strings indicating what information should be logged + defined as constants with FBSDKLoggingBehavior*. Set to an empty set in order to disable all logging. + + You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLoggingBehavior: + + The default is a set consisting of FBSDKLoggingBehaviorDeveloperErrors + */ +@property (nonatomic, copy) NSSet *loggingBehaviors; + +/** + Overrides the default Graph API version to use with `FBSDKGraphRequests`. + + The string should be of the form `@"v2.7"`. + + Defaults to `defaultGraphAPIVersion`. + */ +@property (nonatomic, copy) NSString *graphAPIVersion; + +/** + Internal property exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; + +/** + The value of the flag advertiser_tracking_enabled that controls the advertiser tracking status of the data sent to Facebook + If not explicitly set in iOS14 or above, the default is false in iOS14 or above. + */ +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; + +/** +Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** +Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +/** + Enable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +/** + Disable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h new file mode 100644 index 00000000..1e21fe02 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsLogging) +@protocol FBSDKSettingsLogging + +- (void)logWarnings; +- (void)logIfSDKSettingsChanged; +- (void)recordInstall; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h new file mode 100644 index 00000000..d0eeb7ab --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsProtocol) +@protocol FBSDKSettings + +@property (nullable, nonatomic, copy) NSString *appID; +@property (nullable, nonatomic, copy) NSString *clientToken; +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; +@property (nonatomic, readonly, copy) NSString *sdkVersion; +@property (nullable, nonatomic, copy) NSString *displayName; +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; +@property (nonnull, nonatomic, copy) NSSet *loggingBehaviors; +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; +@property (nonatomic, readonly) BOOL isDataProcessingRestricted; +@property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled; +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; +@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime; +@property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled; +@property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; +@property (nullable, nonatomic, readonly) NSDate *installTimestamp; +@property (nullable, nonatomic, readonly) NSDate *advertiserTrackingEnabledTimestamp; +@property (nonatomic) BOOL isEventDataUsageLimited; +@property (nonatomic) BOOL shouldUseTokenOptimizations; +@property (nonatomic, copy) NSString *graphAPIVersion; +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; +@property (nullable, nonatomic, readonly, copy) NSString *graphAPIDebugParamValue; +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; +@property (nullable, nonatomic, readonly) NSDictionary *persistableDataProcessingOptions; + +/** + Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** + Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h new file mode 100644 index 00000000..4d30ced6 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Constant used to describe the 'Message' dialog +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameMessage; +/// Constant used to describe the 'Share' dialog +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameShare; + +/** + A lightweight interface to expose aspects of FBSDKServerConfiguration that are used by dialogs in ShareKit. + + Internal Use Only + */ +NS_SWIFT_NAME(ShareDialogConfiguration) +@interface FBSDKShareDialogConfiguration : NSObject + +@property (nonatomic, readonly, copy) NSString *defaultShareMode; + +- (BOOL)shouldUseNativeDialogForDialogName:(NSString *)dialogName; +- (BOOL)shouldUseSafariViewControllerForDialogName:(NSString *)dialogName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h new file mode 100644 index 00000000..6b07cb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(TokenCaching) +@protocol FBSDKTokenCaching + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAccessToken *accessToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h new file mode 100644 index 00000000..87f227de --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(TokenStringProviding) +@protocol FBSDKTokenStringProviding + +/** + Return the token string of the current access token. + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +@property (class, nullable, nonatomic, readonly, copy) NSString *tokenString; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h new file mode 100644 index 00000000..ea415c83 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +extern CATransform3D const FBSDKCATransform3DIdentity; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@interface FBSDKTransformer : NSObject +- (CATransform3D)CATransform3DMakeScale:(CGFloat)sx sy:(CGFloat)sy sz:(CGFloat)sz; +- (CATransform3D)CATransform3DMakeTranslation:(CGFloat)tx ty:(CGFloat)ty tz:(CGFloat)tz; +- (CATransform3D)CATransform3DConcat:(CATransform3D)a b:(CATransform3D)b; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURL.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURL.h new file mode 100644 index 00000000..292430f5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURL.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKAppLink; + +/** + Provides a set of utilities for working with NSURLs, such as parsing of query parameters + and handling for App Link requests. + */ +NS_SWIFT_NAME(AppLinkURL) +@interface FBSDKURL : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a link target from a raw URL. + On success, this posts the FBSDKAppLinkParseEventName measurement event. If you are constructing the FBSDKURL within your application delegate's + application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication: + to support better FBSDKMeasurementEvent notifications + @param url The instance of `NSURL` to create FBSDKURL from. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)URLWithURL:(NSURL *)url +NS_SWIFT_NAME(init(url:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's + application:openURL:sourceApplication:annotation: and will post the FBSDKAppLinkNavigateInEventName measurement event. + @param url The instance of `NSURL` to create FBSDKURL from. + @param sourceApplication the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation: + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication +NS_SWIFT_NAME(init(inboundURL:sourceApplication:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Gets the target URL. If the link is an App Link, this is the target of the App Link. + Otherwise, it is the url that created the target. + */ +@property (nonatomic, readonly, strong) NSURL *targetURL; + +/// Gets the query parameters for the target, parsed into an NSDictionary. +@property (nonatomic, readonly, strong) NSDictionary *targetQueryParameters; + +/** + If this link target is an App Link, this is the data found in al_applink_data. + Otherwise, it is nil. + */ +@property (nullable, nonatomic, readonly, strong) NSDictionary *appLinkData; + +/// If this link target is an App Link, this is the data found in extras. +@property (nullable, nonatomic, readonly, strong) NSDictionary *appLinkExtras; + +/// The App Link indicating how to navigate back to the referer app, if any. +@property (nullable, nonatomic, readonly, strong) id appLinkReferer; + +/// The URL that was used to create this FBSDKURL. +@property (nonatomic, readonly, strong) NSURL *inputURL; + +/// The query parameters of the inputURL, parsed into an NSDictionary. +@property (nonatomic, readonly, strong) NSDictionary *inputQueryParameters; + +/// The flag indicating whether the URL comes from auto app link +@property (nonatomic, readonly, getter = isAutoAppLink) BOOL isAutoAppLink; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h new file mode 100644 index 00000000..31741f40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(URLHosting) +@protocol FBSDKURLHosting + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h new file mode 100644 index 00000000..ff91da7d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKURLOpening; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(URLOpener) +@protocol FBSDKURLOpener + +- (void)openURL:(NSURL *)url + sender:(nullable id)sender + handler:(FBSDKSuccessBlock)handler; + +// UNCRUSTIFY_FORMAT_OFF +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(id)sender + fromViewController:(UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler +NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h new file mode 100644 index 00000000..65772a5c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(URLOpening) +@protocol FBSDKURLOpening + +// Implementations should make sure they can handle nil parameters +// which is possible in SafariViewController. +// see canOpenURL below. +- (BOOL)application:(nullable UIApplication *)application + openURL:(nullable NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +// create a different handler to return YES/NO if the receiver can process the above openURL:. +// This is separated so that we can process the openURL: in callbacks, while still returning +// the result of canOpenURL synchronously in FBSDKApplicationDelegate +- (BOOL) canOpenURL:(NSURL *)url + forApplication:(nullable UIApplication *)application + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +- (void)applicationDidBecomeActive:(UIApplication *)application; + +- (BOOL)isAuthenticationURL:(NSURL *)url; + +@optional +- (BOOL)shouldStopPropagationOfURL:(NSURL *)url; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h new file mode 100644 index 00000000..f7283921 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *FBSDKURLScheme NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(URLScheme); + +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeFacebookAPI; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeMessengerApp; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTPS NS_SWIFT_NAME(https); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTP NS_SWIFT_NAME(http); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeWeb; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h new file mode 100644 index 00000000..7d719165 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(UserAgeRange) +@interface FBSDKUserAgeRange : NSObject + +/// The user's minimun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *min; +/// The user's maximun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *max; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a UserAgeRange object from a dinctionary containing valid user age range. + @param dictionary The dictionary containing raw user age range + + Valid user age range will consist of "min" and/or "max" values that are + positive integers, where "min" is smaller than or equal to "max". + */ ++ (nullable instancetype)ageRangeFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKUtility.h similarity index 56% rename from ios/platform/FBSDKCoreKit.framework/Headers/FBSDKUtility.h rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKUtility.h index 13c4a5dd..eb5ca0a4 100644 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKUtility.h +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKUtility.h @@ -1,28 +1,16 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ #import NS_ASSUME_NONNULL_BEGIN -/** - Class to contain common utility methods. - */ +/// Class to contain common utility methods. NS_SWIFT_NAME(Utility) @interface FBSDKUtility : NSObject @@ -30,42 +18,54 @@ NS_SWIFT_NAME(Utility) + (instancetype)new NS_UNAVAILABLE; /** - Parses a query string into a dictionary. + Parses a query string into a dictionary. @param queryString The query string value. @return A dictionary with the key/value pairs. */ + +// UNCRUSTIFY_FORMAT_OFF + (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString NS_SWIFT_NAME(dictionary(withQuery:)); +// UNCRUSTIFY_FORMAT_ON /** - Constructs a query string from a dictionary. + Constructs a query string from a dictionary. @param dictionary The dictionary with key/value pairs for the query string. @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. @return Query string representation of the parameters. */ + +// UNCRUSTIFY_FORMAT_OFF + (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary error:(NSError **)errorRef NS_SWIFT_NAME(query(from:)) __attribute__((swift_error(nonnull_error))); +// UNCRUSTIFY_FORMAT_ON /** - Decodes a value from an URL. + Decodes a value from an URL. @param value The value to decode. @return The decoded value. */ + +// UNCRUSTIFY_FORMAT_OFF + (NSString *)URLDecode:(NSString *)value NS_SWIFT_NAME(decode(urlString:)); +// UNCRUSTIFY_FORMAT_ON /** - Encodes a value for an URL. + Encodes a value for an URL. @param value The value to encode. @return The encoded value. */ + +// UNCRUSTIFY_FORMAT_OFF + (NSString *)URLEncode:(NSString *)value NS_SWIFT_NAME(encode(urlString:)); +// UNCRUSTIFY_FORMAT_ON /** - Creates a timer using Grand Central Dispatch. + Creates a timer using Grand Central Dispatch. @param interval The interval to fire the timer, in seconds. @param block The code block to execute when timer is fired. @return The dispatch handle. @@ -83,8 +83,25 @@ NS_SWIFT_NAME(encode(urlString:)); @param input The data that needs to be hashed, it could be NSString or NSData. */ -+ (nullable NSString *)SHA256Hash:(nullable NSObject *)input + +// UNCRUSTIFY_FORMAT_OFF ++ (nullable NSString *)SHA256Hash:(NSObject *)input NS_SWIFT_NAME(sha256Hash(_:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the graphdomain stored in FBSDKAuthenticationToken ++ (nullable NSString *)getGraphDomainFromToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (NSURL *)unversionedFacebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; @end diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h new file mode 100644 index 00000000..136683d1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import +#import +#import + +#import + +@protocol _FBSDKWindowFinding; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(WebDialog) +@interface FBSDKWebDialog : NSObject + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic) BOOL shouldDeferVisibility; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, strong) id<_FBSDKWindowFinding> windowFinder; + ++ (instancetype)new NS_UNAVAILABLE; +- (instancetype)init NS_UNAVAILABLE; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (instancetype)dialogWithName:(NSString *)name + delegate:(id)delegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)createAndShowWithName:(NSString *)name + parameters:(nullable NSDictionary *)parameters + frame:(CGRect)frame + delegate:(id)delegate + windowFinder:(nullable id<_FBSDKWindowFinding>)windowFinder +NS_SWIFT_NAME(createAndShow(name:parameters:frame:delegate:windowFinder:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h new file mode 100644 index 00000000..6dd4b926 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h @@ -0,0 +1,56 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@class FBSDKWebDialog; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(WebDialogDelegate) +@protocol FBSDKWebDialogDelegate + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialog:(FBSDKWebDialog *)webDialog didCompleteWithResults:(NSDictionary *)results; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialog:(FBSDKWebDialog *)webDialog didFailWithError:(NSError *)error; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialogDidCancel:(FBSDKWebDialog *)webDialog; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h new file mode 100644 index 00000000..b0861b81 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@protocol FBSDKWebDialogViewDelegate; + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(FBWebDialogView) +@interface FBSDKWebDialogView : UIView + +@property (nonatomic, weak) id delegate; + +- (void)loadURL:(NSURL *)URL; +- (void)stopLoading; + +@end + +NS_SWIFT_NAME(WebDialogViewDelegate) +@protocol FBSDKWebDialogViewDelegate + +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary *)results; +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error; +- (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView; +- (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h new file mode 100644 index 00000000..f1d7dbed --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A reference implementation for an App Link resolver that uses a hidden WKWebView + to parse the HTML containing App Link metadata. + */ +NS_SWIFT_NAME(WebViewAppLinkResolver) +@interface FBSDKWebViewAppLinkResolver : NSObject + +/// Gets the instance of a FBSDKWebViewAppLinkResolver. +@property (class, nonatomic, readonly, strong) FBSDKWebViewAppLinkResolver *sharedInstance +NS_SWIFT_NAME(shared); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h new file mode 100644 index 00000000..a9d946f3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(_WindowFinding) +@protocol _FBSDKWindowFinding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable UIWindow *)findWindow; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h new file mode 100644 index 00000000..a8114b1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoggerCreating) +@protocol __FBSDKLoggerCreating + +- (id)createLoggerWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Info.plist b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Info.plist new file mode 100644 index 00000000..0544977a Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftdoc similarity index 76% rename from ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftdoc rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftdoc index 06be399e..172cc17b 100644 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftdoc and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 00000000..cae0bbfc --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/module.modulemap b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/module.modulemap similarity index 100% rename from ios/platform/FBSDKCoreKit.framework/Modules/module.modulemap rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64/FBSDKCoreKit.framework/Modules/module.modulemap diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/FBSDKCoreKit b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/FBSDKCoreKit new file mode 100644 index 00000000..c38e4dbc Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/FBSDKCoreKit differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h new file mode 100644 index 00000000..87494ec0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h @@ -0,0 +1,188 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentAccessToken` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKAccessTokenChangeOldKey` and + `FBSDKAccessTokenChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification +NS_SWIFT_NAME(AccessTokenDidChange); + +/** + A key in the notification's userInfo that will be set + if and only if the user ID changed between the old and new tokens. + + Token refreshes can occur automatically with the SDK + which do not change the user. If you're only interested in user + changes (such as logging out), you should check for the existence + of this key. The value is a NSNumber with a boolValue. + + On a fresh start of the app where the SDK reads in the cached value + of an access token, this key will also exist since the access token + is moving from a null state (no user) to a non-null state (user). + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserIDKey +NS_SWIFT_NAME(AccessTokenDidChangeUserIDKey); + +/* + key in notification's userInfo object for getting the old token. + + If there was no old token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey +NS_SWIFT_NAME(AccessTokenChangeOldKey); + +/* + key in notification's userInfo object for getting the new token. + + If there is no new token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey +NS_SWIFT_NAME(AccessTokenChangeNewKey); + +/* + A key in the notification's userInfo that will be set + if and only if the token has expired. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpireKey +NS_SWIFT_NAME(AccessTokenDidExpireKey); + +/// Represents an immutable access token for using Facebook services. +NS_SWIFT_NAME(AccessToken) +@interface FBSDKAccessToken : NSObject + +/** + The "global" access token that represents the currently logged in user. + + The `currentAccessToken` is a convenient representation of the token of the + current user and is used by other SDK components (like `FBSDKLoginManager`). + */ +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +/// Returns YES if currentAccessToken is not nil AND currentAccessToken is not expired +@property (class, nonatomic, readonly, getter = isCurrentAccessTokenActive, assign) BOOL currentAccessTokenIsActive; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +/// Returns the app ID. +@property (nonatomic, readonly, copy) NSString *appID; + +/// Returns the expiration date for data access +@property (nonatomic, readonly, copy) NSDate *dataAccessExpirationDate; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *declinedPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *expiredPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// Returns the known granted permissions. +@property (nonatomic, readonly, copy) NSSet *permissions + NS_REFINED_FOR_SWIFT; + +/// Returns the date the token was last refreshed. +@property (nonatomic, readonly, copy) NSDate *refreshDate; + +/// Returns the opaque token string. +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// Returns the user ID. +@property (nonatomic, readonly, copy) NSString *userID; + +/// Returns whether the access token is expired by checking its expirationDate property +@property (nonatomic, readonly, getter = isExpired, assign) BOOL expired; + +/// Returns whether user data access is still active for the given access token +@property (nonatomic, readonly, getter = isDataAccessExpired, assign) BOOL dataAccessExpired; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes a new instance. + @param tokenString the opaque token string. + @param permissions the granted permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param appID the app ID. + @param userID the user ID. + @param expirationDate the optional expiration date (defaults to distantFuture). + @param refreshDate the optional date the token was last refreshed (defaults to today). + @param dataAccessExpirationDate the date which data access will expire for the given user + (defaults to distantFuture). + + This initializer should only be used for advanced apps that + manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` + along with `+currentAccessToken`. + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray *)permissions + declinedPermissions:(NSArray *)declinedPermissions + expiredPermissions:(NSArray *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(nullable NSDate *)expirationDate + refreshDate:(nullable NSDate *)refreshDate + dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate + NS_DESIGNATED_INITIALIZER; + +/** + Convenience getter to determine if a permission has been granted + @param permission The permission to check. + */ +// UNCRUSTIFY_FORMAT_OFF +- (BOOL)hasGranted:(NSString *)permission +NS_SWIFT_NAME(hasGranted(permission:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Compares the receiver to another FBSDKAccessToken + @param token The other token + @return YES if the receiver's values are equal to the other token's values; otherwise NO + */ +- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token; + +/** + Refresh the current access token's permission state and extend the token's expiration date, + if possible. + @param completion an optional callback handler that can surface any errors related to permission refreshing. + + On a successful refresh, the currentAccessToken will be updated so you typically only need to + observe the `FBSDKAccessTokenDidChangeNotification` notification. + + If a token is already expired, it cannot be refreshed. + */ ++ (void)refreshCurrentAccessTokenWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h new file mode 100644 index 00000000..5c033caa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@protocol FBSDKTokenCaching; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenProviding) +@protocol FBSDKAccessTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAccessToken *currentAccessToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenSetting) +@protocol FBSDKAccessTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h new file mode 100644 index 00000000..730b90da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKAdvertisingTrackingStatus) { + FBSDKAdvertisingTrackingAllowed, + FBSDKAdvertisingTrackingDisallowed, + FBSDKAdvertisingTrackingUnspecified, +} NS_SWIFT_NAME(AdvertisingTrackingStatus); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h new file mode 100644 index 00000000..21a1f444 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppAvailabilityChecker) +@protocol FBSDKAppAvailabilityChecker + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isFacebookAppInstalled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h new file mode 100644 index 00000000..b55589b9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBSDKAppEvents`. + Common event parameters are provided in the `FBSDKAppEventParameterName` constants. + */ + +/// typedef for FBSDKAppEventName +typedef NSString *FBSDKAppEventName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.Name); + +// MARK: - General Purpose + +/// Log this event when the user clicks an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdClick; + +/// Log this event when the user views an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdImpression; + +/// Log this event when a user has completed registration with the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedRegistration; + +/// Log this event when the user has completed a tutorial in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedTutorial; + +/// A telephone/SMS, email, chat or other type of contact between a customer and your business. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameContact; + +/// The customization of products through a configuration tool or other application your business owns. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCustomizeProduct; + +/// The donation of funds to your organization or cause. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameDonate; + +/// When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameFindLocation; + +/// Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameRated; + +/// The booking of an appointment to visit one of your locations. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSchedule; + +/// Log this event when a user has performed a search within the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSearched; + +/// The start of a free trial of a product or service you offer (example: trial subscription). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameStartTrial; + +/// The submission of an application for a product, service or program you offer (example: credit card, educational program or job). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubmitApplication; + +/// The start of a paid subscription for a product or service you offer. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubscribe; + +/// Log this event when a user has viewed a form of content in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameViewedContent; + +// MARK: - E-Commerce + +/// Log this event when the user has entered their payment info. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedPaymentInfo; + +/// Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToCart; + +/// Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToWishlist; + +/// Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameInitiatedCheckout; + +/// Log this event when the user has completed a transaction. The valueToSum passed to logEvent should be the total price of the transaction. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNamePurchased; + +// MARK: - Gaming + +/// Log this event when the user has achieved a level in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAchievedLevel; + +/// Log this event when the user has unlocked an achievement in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameUnlockedAchievement; + +/// Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSpentCredits; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h new file mode 100644 index 00000000..ceb5e2d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h @@ -0,0 +1,73 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. + */ + +/// typedef for FBSDKAppEventParameterName +typedef NSString *FBSDKAppEventParameterName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterName); + +/** + * Parameter key used to specify data for the one or more pieces of content being logged about. + * Data should be a JSON encoded string. + * Example: + * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" + */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContent; + +/// Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentID; + +/// Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentType; + +/// Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameCurrency; + +/// Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameDescription; + +/// Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLevel; + +/// Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameMaxRatingValue; + +/// Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameNumItems; + +/// Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNamePaymentInfoAvailable; + +/// Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameRegistrationMethod; + +/// Parameter key used to specify the string provided by the user for a search operation. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSearchString; + +/// Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSuccess; + +/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression + * or FBSDKAppEventNameAdClick event. + * E.g. "banner", "interstitial", "rewarded_video", "native" */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameAdType; + +/** Parameter key used to specify the unique ID for all events within a subscription + * in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameOrderID; + +/// Parameter key used to specify event name. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameEventName; + +/// Parameter key used to specify event log time. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLogTime; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h new file mode 100644 index 00000000..ff0b036c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logProductItem` method on `FBSDKAppEvents`. + +/// typedef for FBSDKAppEventParameterProduct +typedef NSString *const FBSDKAppEventParameterProduct NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterProduct); + +/// Parameter key used to specify the product item's category. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory; + +/// Parameter key used to specify the product item's custom label 0. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0; + +/// Parameter key used to specify the product item's custom label 1. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1; + +/// Parameter key used to specify the product item's custom label 2. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2; + +/// Parameter key used to specify the product item's custom label 3. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3; + +/// Parameter key used to specify the product item's custom label 4. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4; + +/// Parameter key used to specify the product item's AppLink app URL for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iOS App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPhone App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPad App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl; + +/// Parameter key used to specify the product item's AppLink fully-qualified package name for intent generation. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage; + +/// Parameter key used to specify the product item's AppLink app name for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID, as a GUID, for App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID; + +/// Parameter key used to specify the product item's AppLink app name for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h new file mode 100644 index 00000000..796e2e10 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/* + @methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants. + */ + +/// typedef for FBSDKAppEventParameterValue +typedef NSString *const FBSDKAppEventParameterValue NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterValue); + +/// Yes-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes; + +/// No-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h new file mode 100644 index 00000000..194443d5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *const FBSDKAppEventUserDataType NS_TYPED_EXTENSIBLE_ENUM; + +/// Parameter key used to specify user's email. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventEmail; + +/// Parameter key used to specify user's first name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventFirstName; + +/// Parameter key used to specify user's last name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventLastName; + +/// Parameter key used to specify user's phone. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventPhone; + +/// Parameter key used to specify user's date of birth. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth; + +/// Parameter key used to specify user's gender. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventGender; + +/// Parameter key used to specify user's city. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCity; + +/// Parameter key used to specify user's state. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventState; + +/// Parameter key used to specify user's zip. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventZip; + +/// Parameter key used to specify user's country. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCountry; + +/// Parameter key used to specify user's external id. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventExternalId; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h new file mode 100644 index 00000000..1504e744 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h @@ -0,0 +1,521 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + #import +#endif + +#import +#import +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/// Optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` +FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey +NS_SWIFT_NAME(AppEventsOverrideAppIDBundleKey); + +/** + Client-side event logging for specialized application analytics available through Facebook App Insights + and for use with Facebook Ads conversion tracking and optimization. + + The `FBSDKAppEvents` static class has a few related roles: + + + Logging predefined and application-defined events to Facebook App Insights with a + numeric value to sum across a large number of events, and an optional set of key/value + parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or + 'gamerLevel' : 'intermediate') + + + Logging events to later be used for ads optimization around lifetime value. + + + Methods that control the way in which events are flushed out to the Facebook servers. + + Here are some important characteristics of the logging mechanism provided by `FBSDKAppEvents`: + + + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers + in a number of situations: + - when an event count threshold is passed (currently 100 logged events). + - when a time threshold is passed (currently 15 seconds). + - when an app has gone to background and is then brought back to the foreground. + + + Events will be accumulated when the app is in a disconnected state, and sent when the connection is + restored and one of the above 'flush' conditions are met. + + + The `FBSDKAppEvents` class is thread-safe in that events may be logged from any of the app's threads. + + + The developer can set the `flushBehavior` on `FBSDKAppEvents` to force the flushing of events to only + occur on an explicit call to the `flush` method. + + + The developer can turn on console debug output for event logging and flushing to the server by using + the `FBSDKLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. + + Some things to note when logging events: + + + There is a limit on the number of unique event names an app can use, on the order of 1000. + + There is a limit to the number of unique parameter names in the provided parameters that can + be used per event, on the order of 25. This is not just for an individual call, but for all + invocations for that eventName. + + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and + must consist of alphanumeric characters, _, -, or spaces. + + The length of each parameter value can be no more than on the order of 100 characters. + */ +NS_SWIFT_NAME(AppEvents) +@interface FBSDKAppEvents : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The shared instance of AppEvents. +@property (class, nonatomic, readonly, strong) FBSDKAppEvents *shared; + +/// Control over event batching/flushing + +/// The current event flushing behavior specifying when events are sent back to Facebook servers. +@property (nonatomic) FBSDKAppEventsFlushBehavior flushBehavior; + +/** + Set the 'override' App ID for App Event logging. + + In some cases, apps want to use one Facebook App ID for login and social presence and another + for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but + want distinct logging.) By default, this value is `nil`, and defers to the `FBSDKAppEventsOverrideAppIDBundleKey` + plist value. If that's not set, it defaults to `Settings.shared.appID`. + + This should be set before any other calls are made to `AppEvents`. Thus, you should set it in your application + delegate's `application(_:didFinishLaunchingWithOptions:)` method. + */ +@property (nullable, nonatomic, copy) NSString *loggingOverrideAppID; + +/** + The custom user ID to associate with all app events. + + The userID is persisted until it is cleared by passing `nil`. + */ +@property (nullable, nonatomic, copy) NSString *userID; + +/// Returns generated anonymous id that persisted with current install of the app +@property (nonatomic, readonly) NSString *anonymousID; + +/* + * Basic event logging + */ + +/** + Log an event with just an event name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. + */ +- (void)logEvent:(FBSDKAppEventName)eventName; + +/** + Log an event with an event name and a numeric value to be aggregated with other events of this name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum; + +/** + Log an event with an event name and a set of key/value pairs in the parameters dictionary. + Parameter limitations are described above. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. Note that this is an `NSNumber`, and a value of `nil` denotes + that this event doesn't have a value associated with it for summation. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(nullable NSNumber *)valueToSum + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken; + +/* + * Purchase logging + */ + +/** + Log a purchase of the specified amount, in the specified currency. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency + NS_SWIFT_NAME(logPurchase(amount:currency:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/* + * Push Notifications Logging + */ + +/** + Log an app event that tracks that the application was open via Push Notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload + NS_SWIFT_NAME(logPushNotificationOpen(payload:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log an app event that tracks that a custom action was taken from a push notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + @param action Name of the action that was taken. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action + NS_SWIFT_NAME(logPushNotificationOpen(payload:action:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Uploads product catalog product item as an app event + + @param itemID Unique ID for the item. Can be a variant for a product. + Max size is 100. + @param availability If item is in stock. Accepted values are: + in stock - Item ships immediately + out of stock - No plan to restock + preorder - Available in future + available for order - Ships in 1-2 weeks + discontinued - Discontinued + @param condition Product condition: new, refurbished or used. + @param description Short text describing product. Max size is 5000. + @param imageLink Link to item image used in ad. + @param link Link to merchant's site where someone can buy the item. + @param title Title of item. + @param priceAmount Amount of purchase, in the currency specified by the 'currency' + parameter. This value will be rounded to the thousandths place + (e.g., 12.34567 becomes 12.346). + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + @param gtin Global Trade Item Number including UPC, EAN, JAN and ISBN + @param mpn Unique manufacture ID for product + @param brand Name of the brand + Note: Either gtin, mpn or brand is required. + @param parameters Optional fields for deep link specification. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logProductItem:(NSString *)itemID + availability:(FBSDKProductAvailability)availability + condition:(FBSDKProductCondition)condition + description:(NSString *)description + imageLink:(NSString *)imageLink + link:(NSString *)link + title:(NSString *)title + priceAmount:(double)priceAmount + currency:(NSString *)currency + gtin:(nullable NSString *)gtin + mpn:(nullable NSString *)mpn + brand:(nullable NSString *)brand + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logProductItem(id:availability:condition:description:imageLink:link:title:priceAmount:currency:gtin:mpn:brand:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. + This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless + one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. + In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the + app delegates' `applicationDidBecomeActive:` method. + + This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to + track user acquisition and app install ads conversions. + + `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. + "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" + event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much + time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data + is all visible in your app's App Events Insights. + */ +- (void)activateApp; + +/* + * Push Notifications Registration and Uninstall Tracking + */ + +/** + Sets and sends device token to register the current application for push notifications. + + Sets and sends a device token from the `Data` representation that you get from + `UIApplicationDelegate.application(_:didRegisterForRemoteNotificationsWithDeviceToken:)`. + + @param deviceToken Device token data. + */ +- (void)setPushNotificationsDeviceToken:(nullable NSData *)deviceToken; + +/** + Sets and sends device token string to register the current application for push notifications. + + Sets and sends a device token string + + @param deviceTokenString Device token string. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)setPushNotificationsDeviceTokenString:(nullable NSString *)deviceTokenString +NS_SWIFT_NAME(setPushNotificationsDeviceToken(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate + kick off. Server failures will be reported through the NotificationCenter with notification ID `FBSDKAppEventsLoggingResultNotification`. + */ +- (void)flush; + +/** + Creates a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. + Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, + and then use the resultant Custom Audience to target ads. + + The JSON in the request's response will include a "custom_audience_third_party_id" key/value pair with the value being the ID retrieved. + This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. + Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior + across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. + + The ID retrieved represents the Facebook user identified in the following way: if the specified access token is valid, + the ID will represent the user associated with that token; otherwise the ID will represent the user logged into the + native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out + at the iOS level from ad tracking, then a `nil` ID will be returned. + + This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage + via the `Settings.shared.isEventDataUsageLimited` flag, or a specific Facebook user cannot be identified. + + @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. + If `nil`, then `AccessToken.current` is used. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(nullable FBSDKAccessToken *)accessToken +NS_SWIFT_NAME(requestForCustomAudienceThirdPartyID(accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param email user's email + @param firstName user's first name + @param lastName user's last name + @param phone user's phone + @param dateOfBirth user's date of birth + @param gender user's gender + @param city user's city + @param state user's state + @param zip user's zip + @param country user's country + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the set user data else nil +- (nullable NSString *)getUserData; + +/// Clears the current user data +- (void)clearUserData; + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param data data + @param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone + */ +- (void)setUserData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type; + +/// Clears the current user data of certain type +- (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; + +#if !TARGET_OS_TV +/** + Intended to be used as part of a hybrid webapp. + If you call this method, the FB SDK will inject a new JavaScript object into your webview. + If the FB Pixel is used within the webview, and references the app ID of this app, + then it will detect the presence of this injected JavaScript object + and pass Pixel events back to the FB SDK for logging using the AppEvents framework. + + @param webView The webview to augment with the additional JavaScript behavior + */ +- (void)augmentHybridWebView:(WKWebView *)webView; +#endif + +/* + * Unity helper functions + */ + +/** + Set whether Unity is already initialized. + + @param isUnityInitialized Whether Unity is initialized. + */ +- (void)setIsUnityInitialized:(BOOL)isUnityInitialized; + +/// Send event bindings to Unity +- (void)sendEventBindingsToUnity; + +/* + * SDK Specific Event Logging + * Do not call directly outside of the SDK itself. + */ + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(nullable FBSDKAccessToken *)accessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h new file mode 100644 index 00000000..872ef491 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior) + + Specifies when `FBSDKAppEvents` sends log events to the server. + */ +typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushBehavior) { + /// Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. + FBSDKAppEventsFlushBehaviorAuto = 0, + + /** Only flush when the `flush` method is called. When an app is moved to background/terminated, the + events are persisted and re-established at activation, but they will only be written with an + explicit call to `flush`. */ + FBSDKAppEventsFlushBehaviorExplicitOnly, +} NS_SWIFT_NAME(AppEvents.FlushBehavior); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h new file mode 100644 index 00000000..159e27d7 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. +FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification +NS_SWIFT_NAME(AppEventsLoggingResult); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h new file mode 100644 index 00000000..a995c02e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// The version of the App Link protocol that this library supports +FOUNDATION_EXPORT NSString *const FBSDKAppLinkVersion +NS_SWIFT_NAME(AppLinkVersion); + +/** + Contains App Link metadata relevant for navigation on this device + derived from the HTML at a given URL. + */ +NS_SWIFT_NAME(AppLink) +@interface FBSDKAppLink : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a FBSDKAppLink with the given list of FBSDKAppLinkTargets and target URL. + + Generally, this will only be used by implementers of the FBSDKAppLinkResolving protocol, + as these implementers will produce App Link metadata for a given URL. + + @param sourceURL the URL from which this App Link is derived + @param targets an ordered list of FBSDKAppLinkTargets for this platform derived + from App Link metadata. + @param webURL the fallback web URL, if any, for the app link. + */ +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkWithSourceURL:(nullable NSURL *)sourceURL + targets:(NSArray *)targets + webURL:(nullable NSURL *)webURL +NS_SWIFT_NAME(init(sourceURL:targets:webURL:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL from which this FBSDKAppLink was derived +@property (nullable, nonatomic, readonly, strong) NSURL *sourceURL; + +/** + The ordered list of targets applicable to this platform that will be used + for navigation. + */ +@property (nonatomic, readonly, copy) NSArray> *targets; + +/// The fallback web URL to use if no targets are installed on this device. +@property (nullable, nonatomic, readonly, strong) NSURL *webURL; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h new file mode 100644 index 00000000..bfc1bbfc --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h @@ -0,0 +1,137 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import +#import + +@protocol FBSDKSettings; + +NS_ASSUME_NONNULL_BEGIN + +/// The result of calling navigate on a FBSDKAppLinkNavigation +typedef NS_ENUM(NSInteger, FBSDKAppLinkNavigationType) { + /// Indicates that the navigation failed and no app was opened + FBSDKAppLinkNavigationTypeFailure, + /// Indicates that the navigation succeeded by opening the URL in the browser + FBSDKAppLinkNavigationTypeBrowser, + /// Indicates that the navigation succeeded by opening the URL in an app on the device + FBSDKAppLinkNavigationTypeApp, +} NS_SWIFT_NAME(AppLinkNavigation.Type); + +/** + Describes the callback for appLinkFromURLInBackground. + @param navType the FBSDKAppLink representing the deferred App Link + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType navType, NSError *_Nullable error) +NS_SWIFT_NAME(AppLinkNavigationBlock); + +/** + Represents a pending request to navigate to an App Link. Most developers will + simply use navigateToURLInBackground: to open a URL, but developers can build + custom requests with additional navigation and app data attached to them by + creating FBSDKAppLinkNavigations themselves. + */ +NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension") +NS_SWIFT_NAME(AppLinkNavigation) +@interface FBSDKAppLinkNavigation : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The default resolver to be used for App Link resolution. If the developer has not set one explicitly, + a basic, built-in FBSDKWebViewAppLinkResolver will be used. + */ +@property (class, nonatomic, strong) id defaultResolver +NS_SWIFT_NAME(default); + +/** + The extras for the AppLinkNavigation. This will generally contain application-specific + data that should be passed along with the request, such as advertiser or affiliate IDs or + other such metadata relevant on this device. + */ +@property (nonatomic, readonly, copy) NSDictionary *extras; + +/** + The al_applink_data for the AppLinkNavigation. This will generally contain data common to + navigation attempts such as back-links, user agents, and other information that may be used + in routing and handling an App Link request. + */ +@property (nonatomic, readonly, copy) NSDictionary *appLinkData; + +/// The AppLink to navigate to +@property (nonatomic, readonly, strong) FBSDKAppLink *appLink; + +/** + Return navigation type for current instance. + No-side-effect version of navigate: + */ +@property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; + +// UNCRUSTIFY_FORMAT_OFF +/// Creates an AppLinkNavigation with the given link, extras, and App Link data ++ (instancetype)navigationWithAppLink:(FBSDKAppLink *)appLink + extras:(NSDictionary *)extras + appLinkData:(NSDictionary *)appLinkData + settings:(id)settings +NS_SWIFT_NAME(init(appLink:extras:appLinkData:settings:)); + +/** + Creates an NSDictionary with the correct format for iOS callback URLs, + to be used as 'appLinkData' argument in the call to navigationWithAppLink:extras:appLinkData: + */ ++ (NSDictionary *> *)callbackAppLinkDataForAppWithName:(NSString *)appName + url:(NSString *)url +NS_SWIFT_NAME(callbackAppLinkData(forApp:url:)); +// UNCRUSTIFY_FORMAT_ON + +/// Performs the navigation +- (FBSDKAppLinkNavigationType)navigate:(NSError **)error + __attribute__((swift_error(nonnull_error))); + +/// Returns a FBSDKAppLink for the given URL ++ (void)resolveAppLink:(NSURL *)destination handler:(FBSDKAppLinkBlock)handler; + +/// Returns a FBSDKAppLink for the given URL using the given App Link resolution strategy ++ (void)resolveAppLink:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkBlock)handler; + +/// Navigates to a FBSDKAppLink and returns whether it opened in-app or in-browser ++ (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink *)link error:(NSError **)error + __attribute__((swift_error(nonnull_error))); + +/** + Returns a FBSDKAppLinkNavigationType based on a FBSDKAppLink. + It's essentially a no-side-effect version of navigateToAppLink:error:, + allowing apps to determine flow based on the link type (e.g. open an + internal web view instead of going straight to the browser for regular links.) + */ ++ (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink *)link; + +/// Navigates to a URL (an asynchronous action) and returns a FBSDKNavigationType ++ (void)navigateToURL:(NSURL *)destination handler:(FBSDKAppLinkNavigationBlock)handler; + +/** + Navigates to a URL (an asynchronous action) using the given App Link resolution + strategy and returns a FBSDKNavigationType + */ ++ (void)navigateToURL:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkNavigationBlock)handler; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h new file mode 100644 index 00000000..23056a35 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLinks the FBSDKAppLinks representing the deferred App Links + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinksBlock)(NSDictionary *appLinks, + NSError *_Nullable error) +NS_SWIFT_NAME(AppLinksBlock); + +/** + Provides an implementation of the FBSDKAppLinkResolving protocol that uses the Facebook App Link + Index API to resolve App Links given a URL. It also provides an additional helper method that can resolve + multiple App Links in a single call. + + Usage of this type requires a client token. See `[FBSDKSettings setClientToken:]` + */ + +NS_SWIFT_NAME(AppLinkResolver) +@interface FBSDKAppLinkResolver : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + 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 *)urls handler:(FBSDKAppLinksBlock)handler + NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +/// Allocates and initializes a new instance of FBSDKAppLinkResolver. ++ (instancetype)resolver + NS_SWIFT_NAME(init()); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h new file mode 100644 index 00000000..41a9276d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h @@ -0,0 +1,46 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAppLink; + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLink the FBSDKAppLink representing the deferred App Link + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinkBlock)(FBSDKAppLink *_Nullable appLink, NSError *_Nullable error) +NS_SWIFT_NAME(AppLinkBlock); + +/** + Implement this protocol to provide an alternate strategy for resolving + App Links that may include pre-fetching, caching, or querying for App Link + data from an index provided by a service provider. + */ +NS_SWIFT_NAME(AppLinkResolving) +@protocol FBSDKAppLinkResolving + +/** + Asynchronously resolves App Link data for a given URL. + + @param url The URL to resolve into an App Link. + @param handler The completion block that will return an App Link for the given URL. + */ +- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler + NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h new file mode 100644 index 00000000..75ecb373 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h @@ -0,0 +1,48 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a target defined in App Link metadata, consisting of at least + a URL, and optionally an App Store ID and name. + */ +NS_SWIFT_NAME(AppLinkTarget) +@interface FBSDKAppLinkTarget : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// Creates a FBSDKAppLinkTarget with the given app site and target URL. +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url + appStoreId:(nullable NSString *)appStoreId + appName:(NSString *)appName +NS_SWIFT_NAME(init(url:appStoreId:appName:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL prefix for this app link target +@property (nullable, nonatomic, readonly, strong) NSURL *URL; + +/// The app ID for the app store +@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; + +/// The name of the app +@property (nonatomic, readonly, copy) NSString *appName; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h new file mode 100644 index 00000000..2bd5cd39 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A protocol to describe an AppLinkTarget +NS_SWIFT_NAME(AppLinkTargetProtocol) +@protocol FBSDKAppLinkTarget + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url + appStoreId:(nullable NSString *)appStoreId + appName:(NSString *)appName +NS_SWIFT_NAME(init(url:appStoreId:appName:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL prefix for this app link target +@property (nullable, nonatomic, readonly) NSURL *URL; + +/// The app ID for the app store +@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; + +/// The name of the app +@property (nonatomic, readonly, copy) NSString *appName; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h new file mode 100644 index 00000000..cc886b5e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h @@ -0,0 +1,75 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for fetchDeferredAppLink. + @param url the url representing the deferred App Link + @param error the error during the request, if any + + The url may also have a fb_click_time_utc query parameter that + represents when the click occurred that caused the deferred App Link to be created. + */ +typedef void (^ FBSDKURLBlock)(NSURL *_Nullable url, NSError *_Nullable error) +NS_SWIFT_NAME(URLBlock); + +/// Class containing App Links related utility methods. +NS_SWIFT_NAME(AppLinkUtility) +@interface FBSDKAppLinkUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Call this method from the main thread to fetch deferred applink data if you use Mobile App + Engagement Ads (https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads-engagement). + This may require a network round trip. If successful, the handler is invoked with the link + data (this will only return a valid URL once, and future calls will result in a nil URL + value in the callback). + + @param handler the handler to be invoked if there is deferred App Link data + + The handler may contain an NSError instance to capture any errors. In the + common case where there simply was no app link data, the NSError instance will be nil. + + This method should only be called from a location that occurs after any launching URL has + been processed (e.g., you should call this method from your application delegate's + applicationDidBecomeActive:). + */ ++ (void)fetchDeferredAppLink:(nullable FBSDKURLBlock)handler; + +/** + Call this method to fetch promotion code from the url, if it's present. + + @param url App Link url that was passed to the app. + + @return Promotion code string. + + Call this method to fetch App Invite Promotion Code from applink if present. + This can be used to fetch the promotion code that was associated with the invite when it + was created. This method should be called with the url from the openURL method. + */ ++ (nullable NSString *)appInvitePromotionCodeFromURL:(NSURL *)url; + +/** + Check whether the scheme is defined in the app's URL schemes. + @param scheme the scheme of App Link URL + @return YES if the scheme is defined, otherwise NO. + */ ++ (BOOL)isMatchURLScheme:(NSString *)scheme; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h new file mode 100644 index 00000000..c8b39faa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppURLSchemeProviding) +@protocol FBSDKAppURLSchemeProviding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, copy) NSString *appURLScheme; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)validateURLSchemes; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h new file mode 100644 index 00000000..ad1b6c78 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h @@ -0,0 +1,131 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The FBSDKApplicationDelegate is designed to post process the results from Facebook Login + or Facebook Dialogs (or any action that requires switching over to the native Facebook + app or Safari). + + The methods in this class are designed to mirror those in UIApplicationDelegate, and you + should call them in the respective methods in your AppDelegate implementation. + */ +NS_SWIFT_NAME(ApplicationDelegate) +@interface FBSDKApplicationDelegate : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +#if DEBUG && FBTEST +@property (nonnull, nonatomic, readonly) NSHashTable> *applicationObservers; +#endif + +/// Gets the singleton instance. +@property (class, nonatomic, readonly, strong) FBSDKApplicationDelegate *sharedInstance +NS_SWIFT_NAME(shared); + +/** + Call this method from the [UIApplicationDelegate application:continue:restorationHandler:] method + of the AppDelegate for your app. It should be invoked in order to properly process the web URL (universal link) + once the end user is redirected to your app. + + @param application The application as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + @param userActivity The user activity as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. +*/ +- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity; + +/** + Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +/** + Call this method from the [UIApplicationDelegate application:openURL:options:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:options:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:options:]. + + @param options The options dictionary as passed to [UIApplicationDelegate application:openURL:options:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options; + +/** + Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method + of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + + @param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @return True if there are any added application observers that themselves return true from calling `application:didFinishLaunchingWithOptions:`. + Otherwise will return false. Note: If this method is called after calling `initializeSDK` then the return type will always be false. + */ +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +/** + Initializes the SDK. + + If you are using the SDK within the context of the UIApplication lifecycle, do not use this method. + Instead use `application: didFinishLaunchingWithOptions:`. + + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + */ +- (void)initializeSDK; + +/** + Adds an observer that will be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)addObserver:(id)observer; + +/** + Removes an observer so that it will no longer be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)removeObserver:(id)observer; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h new file mode 100644 index 00000000..14de8940 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + Describes any types that optionally responds to various lifecycle events + received by the system and propagated by `ApplicationDelegate`. + */ +@protocol FBSDKApplicationObserving + +@optional +- (void)applicationDidBecomeActive:(nullable UIApplication *)application; +- (void)applicationWillResignActive:(nullable UIApplication *)application; +- (void)applicationDidEnterBackground:(nullable UIApplication *)application; +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h new file mode 100644 index 00000000..90648c92 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAuthenticationTokenClaims; +@protocol FBSDKTokenCaching; + +NS_ASSUME_NONNULL_BEGIN + +/// Represent an AuthenticationToken used for a login attempt +NS_SWIFT_NAME(AuthenticationToken) +@interface FBSDKAuthenticationToken : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The "global" authentication token that represents the currently logged in user. + + The `currentAuthenticationToken` represents the authentication token of the + current user and can be used by a client to verify an authentication attempt. + */ +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +/// The raw token string from the authentication response +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// The nonce from the decoded authentication response +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The graph domain where the user is authenticated. +@property (nonatomic, readonly, copy) NSString *graphDomain; + +/// Returns the claims encoded in the AuthenticationToken +- (nullable FBSDKAuthenticationTokenClaims *)claims; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h new file mode 100644 index 00000000..874fe073 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h @@ -0,0 +1,89 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenClaims) +@interface FBSDKAuthenticationTokenClaims : NSObject + +/// A unique identifier for the token. +@property (nonatomic, readonly, strong) NSString *jti; + +/// Issuer Identifier for the Issuer of the response. +@property (nonatomic, readonly, strong) NSString *iss; + +/// Audience(s) that this ID Token is intended for. +@property (nonatomic, readonly, strong) NSString *aud; + +/// String value used to associate a Client session with an ID Token, and to mitigate replay attacks. +@property (nonatomic, readonly, strong) NSString *nonce; + +/// Expiration time on or after which the ID Token MUST NOT be accepted for processing. +@property (nonatomic, readonly, assign) NSTimeInterval exp; + +/// Time at which the JWT was issued. +@property (nonatomic, readonly, assign) NSTimeInterval iat; + +/// Subject - Identifier for the End-User at the Issuer. +@property (nonatomic, readonly, strong) NSString *sub; + +/// End-User's full name in displayable form including all name parts. +@property (nullable, nonatomic, readonly, strong) NSString *name; + +/// End-User's given name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *givenName; + +/// End-User's middle name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *middleName; + +/// End-User's family name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *familyName; + +/** + End-User's preferred e-mail address. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSString *email; + +/// URL of the End-User's profile picture. +@property (nullable, nonatomic, readonly, strong) NSString *picture; + +/** + End-User's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSArray *userFriends; + +/// End-User's birthday +@property (nullable, nonatomic, readonly, strong) NSString *userBirthday; + +/// End-User's age range +@property (nullable, nonatomic, readonly, strong) NSDictionary *userAgeRange; + +/// End-User's hometown +@property (nullable, nonatomic, readonly, strong) NSDictionary *userHometown; + +/// End-User's location +@property (nullable, nonatomic, readonly, strong) NSDictionary *userLocation; + +/// End-User's gender +@property (nullable, nonatomic, readonly, strong) NSString *userGender; + +/// End-User's link +@property (nullable, nonatomic, readonly, strong) NSString *userLink; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h new file mode 100644 index 00000000..4f642307 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenProviding) +@protocol FBSDKAuthenticationTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAuthenticationToken *currentAuthenticationToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_SWIFT_NAME(AuthenticationTokenSetting) +@protocol FBSDKAuthenticationTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h new file mode 100644 index 00000000..75036b66 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + #import + #import + #import + #import + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPI) +@interface FBSDKBridgeAPI : NSObject + +@property (class, nonatomic, readonly, strong) FBSDKBridgeAPI *sharedInstance +NS_SWIFT_NAME(shared); +@property (nonatomic, readonly, getter = isActive) BOOL active; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h new file mode 100644 index 00000000..d394ff30 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIAppIDKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPISchemeSuffixKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIVersionKey; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIProtocol) +@protocol FBSDKBridgeAPIProtocol + +- (nullable NSURL *)requestURLWithActionID:(NSString *)actionID + scheme:(NSString *)scheme + methodName:(NSString *)methodName + parameters:(NSDictionary *)parameters + error:(NSError *_Nullable *)errorRef; +- (nullable NSDictionary *)responseParametersForActionID:(NSString *)actionID + queryParameters:(NSDictionary *)queryParameters + cancelled:(nullable BOOL *)cancelledRef + error:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h new file mode 100644 index 00000000..7f866232 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKBridgeAPIProtocolType) { + FBSDKBridgeAPIProtocolTypeNative, + FBSDKBridgeAPIProtocolTypeWeb, +}; + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h new file mode 100644 index 00000000..b55f8704 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h @@ -0,0 +1,50 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequest) +@interface FBSDKBridgeAPIRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; ++ (nullable instancetype)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(FBSDKURLScheme)scheme + methodName:(nullable NSString *)methodName + parameters:(nullable NSDictionary *)parameters + userInfo:(nullable NSDictionary *)userInfo; + +@property (nonatomic, readonly, copy) NSString *actionID; +@property (nullable, nonatomic, readonly, copy) NSString *methodName; +@property (nullable, nonatomic, readonly, copy) NSDictionary *parameters; +@property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType; +@property (nonatomic, readonly, copy) FBSDKURLScheme scheme; +@property (nullable, nonatomic, readonly, copy) NSDictionary *userInfo; + +- (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h new file mode 100644 index 00000000..5c76020d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@protocol FBSDKBridgeAPIRequest; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestCreating) +@protocol FBSDKBridgeAPIRequestCreating + +- (nullable id)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(NSString *)scheme + methodName:(nullable NSString *)methodName + parameters:(nullable NSDictionary *)parameters + userInfo:(nullable NSDictionary *)userInfo; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h new file mode 100644 index 00000000..11039fb5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import +#import + +#import +#import + +@protocol FBSDKBridgeAPIRequest; +@protocol FBSDKURLOpening; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestOpening) +@protocol FBSDKBridgeAPIRequestOpening + +- (void)openBridgeAPIRequest:(NSObject *)request + useSafariViewController:(BOOL)useSafariViewController + fromViewController:(nullable UIViewController *)fromViewController + completionBlock:(FBSDKBridgeAPIResponseBlock)completionBlock; + +// UNCRUSTIFY_FORMAT_OFF +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(nullable id)sender + fromViewController:(nullable UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler +NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +- (void)openURL:(NSURL *)url + sender:(nullable id)sender + handler:(FBSDKSuccessBlock)handler; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h new file mode 100644 index 00000000..4cdbd851 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@protocol FBSDKBridgeAPIProtocol; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestProtocol) +@protocol FBSDKBridgeAPIRequest + +@property (nonatomic, readonly, copy) NSString *scheme; +@property (nonatomic, readonly, copy) NSString *actionID; +@property (nullable, nonatomic, readonly, copy) NSString *methodName; +@property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType; +@property (nullable, nonatomic, readonly, strong) id protocol; + +- (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h new file mode 100644 index 00000000..d9c3c3e0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@protocol FBSDKBridgeAPIRequest; +@class FBSDKBridgeAPIResponse; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^ FBSDKBridgeAPIResponseBlock)(FBSDKBridgeAPIResponse *response) +NS_SWIFT_NAME(BridgeAPIResponseBlock); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIResponse) +@interface FBSDKBridgeAPIResponse : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (instancetype)bridgeAPIResponseWithRequest:(NSObject *)request error:(NSError *)error; ++ (nullable instancetype)bridgeAPIResponseWithRequest:(NSObject *)request + responseURL:(NSURL *)responseURL + sourceApplication:(nullable NSString *)sourceApplication + error:(NSError *__autoreleasing *)errorRef; ++ (instancetype)bridgeAPIResponseCancelledWithRequest:(NSObject *)request; + +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; +@property (nullable, nonatomic, readonly, copy) NSError *error; +@property (nonatomic, readonly, copy) NSObject *request; +@property (nullable, nonatomic, readonly, copy) NSDictionary *responseParameters; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKButton.h new file mode 100644 index 00000000..beae11a1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKButton.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +@class FBSDKIcon; + +NS_ASSUME_NONNULL_BEGIN + +/// A base class for common SDK buttons. +NS_SWIFT_NAME(FBButton) +@interface FBSDKButton : FBSDKImpressionLoggingButton + +@property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled; + +- (void)checkImplicitlyDisabled; +- (void)configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void) configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor + selectedTitle:(nullable NSString *)selectedTitle + selectedIcon:(nullable FBSDKIcon *)selectedIcon + selectedColor:(nullable UIColor *)selectedColor + selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (UIColor *)defaultBackgroundColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logTapEventWithEventName:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h new file mode 100644 index 00000000..806edb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FBButtonImpressionLogging) +@protocol FBSDKButtonImpressionLogging + +@property (nullable, nonatomic, readonly, copy) NSDictionary *analyticsParameters; +@property (nonatomic, readonly, copy) FBSDKAppEventName impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString *impressionTrackingIdentifier; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKConstants.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKConstants.h new file mode 100644 index 00000000..d746dca3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKConstants.h @@ -0,0 +1,206 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKCoreKit. + + Error codes from the SDK in the range 0-99 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKErrorDomain +NS_SWIFT_NAME(ErrorDomain); + +/* + @methodgroup error userInfo keys + */ + +/** + The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. + + If the invalid argument is a collection, the collection can be found with this key and the individual + invalid item can be found with FBSDKErrorArgumentValueKey. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey +NS_SWIFT_NAME(ErrorArgumentCollectionKey); + +/// The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey +NS_SWIFT_NAME(ErrorArgumentNameKey); + +/// The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey +NS_SWIFT_NAME(ErrorArgumentValueKey); + +/** + The userInfo key for the message for developers in NSErrors that originate from the SDK. + + The developer message will not be localized and is not intended to be presented within the app. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey +NS_SWIFT_NAME(ErrorDeveloperMessageKey); + +/// The userInfo key describing a localized description that can be presented to the user. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey +NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); + +/// The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey +NS_SWIFT_NAME(ErrorLocalizedTitleKey); + +/* + @methodgroup FBSDKGraphRequest error userInfo keys + */ + +/** + The userInfo key describing the error category, for error recovery purposes. + + See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorKey +NS_SWIFT_NAME(GraphRequestErrorKey); + +/* + The userInfo key for the Graph API error code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); + +/* + The userInfo key for the Graph API error subcode. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); + +/* + The userInfo key for the HTTP status code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey +NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); + +/* + The userInfo key for the raw JSON response. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey +NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); + +/* + @methodgroup Common Code Block typedefs + */ + +/// Success Block +typedef void (^ FBSDKCodeBlock)(void) +NS_SWIFT_NAME(CodeBlock); + +/// Error Block +typedef void (^ FBSDKErrorBlock)(NSError *_Nullable error) +NS_SWIFT_NAME(ErrorBlock); + +/// Success Block +typedef void (^ FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) +NS_SWIFT_NAME(SuccessBlock); + +/* + @methodgroup Enums + */ + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKCoreError + Error codes for FBSDKErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKErrorDomain, FBSDKCoreError) +{ + /// Reserved. + FBSDKErrorReserved = 0, + + /// The error code for errors from invalid encryption on incoming encryption URLs. + FBSDKErrorEncryption, + + /// The error code for errors from invalid arguments to SDK methods. + FBSDKErrorInvalidArgument, + + /// The error code for unknown errors. + FBSDKErrorUnknown, + + /** + A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve + the error object from the NSURLSession for more information. + */ + FBSDKErrorNetwork, + + /// The error code for errors encountered during an App Events flush. + FBSDKErrorAppEventsFlush, + + /** + An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. + + Endpoints that return image/jpg, etc. should be accessed using NSURLRequest + */ + FBSDKErrorGraphRequestNonTextMimeTypeReturned, + + /** + The operation failed because the server returned an unexpected response. + + You can get this error if you are not using the most recent SDK, or you are accessing a version of the + Graph API incompatible with the current SDK. + */ + FBSDKErrorGraphRequestProtocolMismatch, + + /** + The Graph API returned an error. + + See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) + */ + FBSDKErrorGraphRequestGraphAPI, + + /** + The specified dialog configuration is not available. + + This error may signify that the configuration for the dialogs has not yet been downloaded from the server + or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. + */ + FBSDKErrorDialogUnavailable, + + /// Indicates an operation failed because a required access token was not found. + FBSDKErrorAccessTokenRequired, + + /// Indicates an app switch (typically for a dialog) failed because the destination app is out of date. + FBSDKErrorAppVersionUnsupported, + + /// Indicates an app switch to the browser (typically for a dialog) failed. + FBSDKErrorBrowserUnavailable, + + /// Indicates that a bridge api interaction was interrupted. + FBSDKErrorBridgeAPIInterruption, + + /// Indicates that a bridge api response creation failed. + FBSDKErrorBridgeAPIResponse, +} NS_SWIFT_NAME(CoreError); + +/** + FBSDKGraphRequestError + Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. + */ +typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) { + /// The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. + FBSDKGraphRequestErrorOther = 0, + /// Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. + FBSDKGraphRequestErrorTransient = 1, + /// Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. + FBSDKGraphRequestErrorRecoverable = 2, +} NS_SWIFT_NAME(GraphRequestError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h new file mode 100644 index 00000000..6243096e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h @@ -0,0 +1,514 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h new file mode 100644 index 00000000..8a4569c0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h @@ -0,0 +1,112 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import + +#if !TARGET_OS_TV + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h new file mode 100644 index 00000000..e9eb97c5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#define FBSDK_VERSION_STRING @"13.1.0" +#define FBSDK_DEFAULT_GRAPH_API_VERSION @"v13.0" diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h new file mode 100644 index 00000000..73ac8512 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceButton) +@interface FBSDKDeviceButton : FBSDKButton +- (CGSize)sizeThatFits:(CGSize)size attributedTitle:(NSAttributedString *)title; +- (nullable NSAttributedString *)attributedTitleStringFromString:(NSString *)string; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h new file mode 100644 index 00000000..b98e1221 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +NS_SWIFT_NAME(FBDeviceDialogView) +@interface FBSDKDeviceDialogView : UIView + +@property (nonatomic, weak) id delegate; +@property (nonatomic, copy) NSString *confirmationCode; + +// override point for subclasses. +- (void)buildView; + +@end + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate + +- (void)deviceDialogViewDidCancel:(FBSDKDeviceDialogView *)deviceDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h new file mode 100644 index 00000000..b4e309a9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceViewControllerBase) +@interface FBSDKDeviceViewControllerBase : UIViewController +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h new file mode 100644 index 00000000..a46a303e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(DynamicFrameworkLoaderProxy) +@interface FBSDKDynamicFrameworkLoaderProxy : NSObject +/** + Load the kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value from the Security Framework + + @return The kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h new file mode 100644 index 00000000..bad1414d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Social Constants + +/// Dynamically loaded constant for SLServiceTypeFacebook +FOUNDATION_EXPORT NSString *fbsdkdfl_SLServiceTypeFacebook(void); + +#pragma mark - Social Classes + +FOUNDATION_EXPORT Class fbsdkdfl_SLComposeViewControllerClass(void); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h new file mode 100644 index 00000000..85c9e191 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorCreating) +@protocol FBSDKErrorCreating + +// MARK: - General Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithCode:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(domain:code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Invalid Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(domain:name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Required Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithName:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(requiredArgumentError(name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError + NS_SWIFT_NAME(requiredArgumentError(domain:name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Unknown Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)unknownErrorWithMessage:(nullable NSString *)message + userInfo:(nullable NSDictionary *)userInfo +NS_SWIFT_NAME(unknownError(message:userInfo:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h new file mode 100644 index 00000000..217c00be --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorFactory) +@interface FBSDKErrorFactory : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h new file mode 100644 index 00000000..b005f8eb --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A formal protocol very similar to the informal protocol NSErrorRecoveryAttempting + Internal use only + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ErrorRecoveryAttempting) +@protocol FBSDKErrorRecoveryAttempting + +/** + Attempt the recovery + @param error the error + @param completionHandler the handler called upon completion of error recovery + + Attempt recovery from the error, and call the completion handler. The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. + */ +- (void)attemptRecoveryFromError:(NSError *)error + completionHandler:(void (^)(BOOL didRecover))completionHandler; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKFeature.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKFeature.h new file mode 100644 index 00000000..1ddf4d2f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKFeature.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + FBSDKFeature enum + Defines features in SDK + + Sample: + FBSDKFeatureAppEvents = 0x00010000, + ^ ^ ^ ^ + | | | | + kit | | | + feature | | + sub-feature | + sub-sub-feature + 1st byte: kit + 2nd byte: feature + 3rd byte: sub-feature + 4th byte: sub-sub-feature + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKFeature) { + FBSDKFeatureNone = 0x00000000, + // Features in CoreKit + /// Essential of CoreKit + FBSDKFeatureCore = 0x01000000, + /// App Events + FBSDKFeatureAppEvents = 0x01010000, + FBSDKFeatureCodelessEvents = 0x01010100, + FBSDKFeatureRestrictiveDataFiltering = 0x01010200, + FBSDKFeatureAAM = 0x01010300, + FBSDKFeaturePrivacyProtection = 0x01010400, + FBSDKFeatureSuggestedEvents = 0x01010401, + FBSDKFeatureIntelligentIntegrity = 0x01010402, + FBSDKFeatureModelRequest = 0x01010403, + FBSDKFeatureEventDeactivation = 0x01010500, + FBSDKFeatureSKAdNetwork = 0x01010600, + FBSDKFeatureSKAdNetworkConversionValue = 0x01010601, + FBSDKFeatureATELogging = 0x01010700, + FBSDKFeatureAEM = 0x01010800, + FBSDKFeatureAEMConversionFiltering = 0x01010801, + FBSDKFeatureAEMCatalogMatching = 0x01010802, + /// Instrument + FBSDKFeatureInstrument = 0x01020000, + FBSDKFeatureCrashReport = 0x01020100, + FBSDKFeatureCrashShield = 0x01020101, + FBSDKFeatureErrorReport = 0x01020200, + + // Features in LoginKit + /// Essential of LoginKit + FBSDKFeatureLogin = 0x02000000, + + // Features in ShareKit + /// Essential of ShareKit + FBSDKFeatureShare = 0x03000000, + + // Features in GamingServicesKit + /// Essential of GamingServicesKit + FBSDKFeatureGamingServices = 0x04000000, +} NS_SWIFT_NAME(SDKFeature); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKFeatureManagerBlock)(BOOL enabled); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h new file mode 100644 index 00000000..bdb5d532 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FeatureChecking) +@protocol FBSDKFeatureChecking + +- (BOOL)isEnabled:(FBSDKFeature)feature; + +- (void)checkFeature:(FBSDKFeature)feature + completionBlock:(FBSDKFeatureManagerBlock)completionBlock; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h new file mode 100644 index 00000000..1fee9ddd --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h @@ -0,0 +1,97 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphErrorRecoveryProcessor; +@protocol FBSDKGraphRequest; + +/// Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`. +NS_SWIFT_NAME(GraphErrorRecoveryProcessorDelegate) +@protocol FBSDKGraphErrorRecoveryProcessorDelegate + +/** + Indicates the error recovery has been attempted. + @param processor the processor instance. + @param didRecover YES if the recovery was successful. + @param error the error that that was attempted to be recovered from. + */ +- (void)processorDidAttemptRecovery:(FBSDKGraphErrorRecoveryProcessor *)processor + didRecover:(BOOL)didRecover + error:(nullable NSError *)error; + +@optional +/** + Indicates the processor is about to process the error. + @param processor the processor instance. + @param error the error is about to be processed. + + return NO if the processor should not process the error. For example, + if you want to prevent alerts of localized messages but otherwise perform retries and recoveries, + you could return NO for errors where userInfo[FBSDKGraphRequestErrorKey] equal to FBSDKGraphRequestErrorOther + */ +- (BOOL)processorWillProcessError:(FBSDKGraphErrorRecoveryProcessor *)processor + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END + +NS_ASSUME_NONNULL_BEGIN + +/** + Defines a type that can process Facebook NSErrors with best practices. + + Facebook NSErrors can contain FBSDKErrorRecoveryAttempting instances to recover from errors, or + localized messages to present to the user. This class will process the instances as follows: + + 1. If the error is temporary as indicated by FBSDKGraphRequestErrorKey, assume the recovery succeeded and + notify the delegate. + 2. If a FBSDKErrorRecoveryAttempting instance is available, display an alert (dispatched to main thread) + with the recovery options and call the instance's attemptRecoveryFromError method. + 3. If a FBSDKErrorRecoveryAttempting is not available, check the userInfo for FBSDKLocalizedErrorDescriptionKey + and present that in an alert (dispatched to main thread). + + By default, FBSDKGraphRequests use this type to process errors and retry the request upon a successful + recovery. + + Note that Facebook recovery attempters can present UI or even cause app switches (such as to login). Any such + work is dispatched to the main thread (therefore your request handlers may then run on the main thread). + + Login recovery requires FBSDKLoginKit. Login will prompt the user + for all permissions last granted. If any are declined on the new request, the recovery is not successful but + the `[FBSDKAccessToken currentAccessToken]` might still have been updated. + . + */ +NS_SWIFT_NAME(GraphErrorRecoveryProcessor) +@interface FBSDKGraphErrorRecoveryProcessor : NSObject + +/// Initializes a GraphErrorRecoveryProcessor with an access token string. +- (instancetype)initWithAccessTokenString:(NSString *)accessTokenString; + +/** + Attempts to process the error, return YES if the error can be processed. + @param error the error to process. + @param request the related request that may be reissued. + @param delegate the delegate that will be retained until recovery is complete. + */ +- (BOOL)processError:(NSError *)error + request:(id)request + delegate:(nullable id)delegate; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h new file mode 100644 index 00000000..bd149522 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h @@ -0,0 +1,167 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +/** + Represents a request to the Facebook Graph API. + + `FBSDKGraphRequest` encapsulates the components of a request (the + Graph API path, the parameters, error recovery behavior) and should be + used in conjunction with `FBSDKGraphRequestConnection` to issue the request. + + Nearly all Graph APIs require an access token. Unless specified, the + `[FBSDKAccessToken currentAccessToken]` is used. Therefore, most requests + will require login first (see `FBSDKLoginManager` in FBSDKLoginKit.framework). + + A `- start` method is provided for convenience for single requests. + + By default, FBSDKGraphRequest will attempt to recover any errors returned from + Facebook. You can disable this via `disableErrorRecovery:`. + + See FBSDKGraphErrorRecoveryProcessor + */ +NS_SWIFT_NAME(GraphRequest) +@interface FBSDKGraphRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void) configureWithSettings:(id)settings + currentAccessTokenStringProvider:(Class)accessTokenProvider + graphRequestConnectionFactory:(id)_graphRequestConnectionFactory +NS_SWIFT_NAME(configure(settings:currentAccessTokenStringProvider:graphRequestConnectionFactory:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param version the optional Graph API version (e.g., @"v2.0"). nil defaults to `[FBSDKSettings graphAPIVersion]`. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method + NS_DESIGNATED_INITIALIZER; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param requestFlags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)requestFlags; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param HTTPMethod the HTTP method. Empty String defaults to @"GET". + @param flags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable NSString *)HTTPMethod + flags:(FBSDKGraphRequestFlags)flags; + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/** + If set, disables the automatic error recovery mechanism. + @param disable whether to disable the automatic error recovery mechanism + + By default, non-batched FBSDKGraphRequest instances will automatically try to recover + from errors by constructing a `FBSDKGraphErrorRecoveryProcessor` instance that + re-issues the request on successful recoveries. The re-issued request will call the same + handler as the receiver but may occur with a different `FBSDKGraphRequestConnection` instance. + + This will override [FBSDKSettings setGraphErrorRecoveryDisabled:]. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setGraphErrorRecoveryDisabled:(BOOL)disable +NS_SWIFT_NAME(setGraphErrorRecovery(disabled:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h new file mode 100644 index 00000000..a64cb00d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequest; +@protocol FBSDKGraphRequestConnecting; +@protocol FBSDKGraphRequestConnectionDelegate; + +/** + FBSDKGraphRequestCompletion + + A block that is passed to addRequest to register for a callback with the results of that + request once the connection completes. + + Pass a block of this type when calling addRequest. This will be called once + the request completes. The call occurs on the UI thread. + + @param connection The connection that sent the request. + + @param result The result of the request. This is a translation of + JSON data to `NSDictionary` and `NSArray` objects. This + is nil if there was an error. + + @param error The `NSError` representing any error that occurred. + */ +NS_SWIFT_NAME(GraphRequestCompletion) +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe an object that can manage graph requests +NS_SWIFT_NAME(GraphRequestConnecting) +@protocol FBSDKGraphRequestConnecting + +@property (nonatomic, assign) NSTimeInterval timeout; +@property (nullable, nonatomic, weak) id delegate; + +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)handler; + +- (void)start; +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h new file mode 100644 index 00000000..99966bf1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h @@ -0,0 +1,173 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The key in the result dictionary for requests to old versions of the Graph API + whose response is not a JSON object. + + When a request returns a non-JSON response (such as a "true" literal), that response + will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API + prior to v2.1. + */ +FOUNDATION_EXPORT NSString *const FBSDKNonJSONResponseProperty +NS_SWIFT_NAME(NonJSONResponseProperty); + +@protocol FBSDKGraphRequest; + +/** + The `FBSDKGraphRequestConnection` represents a single connection to Facebook to service a request. + + The request settings are encapsulated in a reusable object. The + `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication + e.g. starting a connection, canceling a connection, or batching requests. + */ +NS_SWIFT_NAME(GraphRequestConnection) +@interface FBSDKGraphRequestConnection : NSObject + +/// The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. +@property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; + +/// The delegate object that receives updates. +@property (nullable, nonatomic, weak) id delegate; + +/// Gets or sets the timeout interval to wait for a response before giving up. +@property (nonatomic, assign) NSTimeInterval timeout; + +/** + The raw response that was returned from the server. (readonly) + + This property can be used to inspect HTTP headers that were returned from + the server. + + The property is nil until the request completes. If there was a response + then this property will be non-nil during the FBSDKGraphRequestBlock callback. + */ +@property (nullable, nonatomic, readonly, retain) NSHTTPURLResponse *urlResponse; + +/** + Determines the operation queue that is used to call methods on the connection's delegate. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + You cannot reschedule a connection after it has started. + */ +@property (nullable, nonatomic) NSOperationQueue *delegateQueue; + +/// @methodgroup Class methods + +/// @methodgroup Adding requests + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + @param completion A handler to call back when the round-trip completes or times out. + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. + */ +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + The handler will be invoked on the main thread. + + @param name A name for this request. This can be used to feed + the results of one request to the input of another in the same + `FBSDKGraphRequestConnection` as described in + [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + name:(NSString *)name + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + + @param parameters The dictionary of parameters to include for this request + as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + Examples include "depends_on", "name", or "omit_response_on_success". + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + parameters:(nullable NSDictionary *)parameters + completion:(FBSDKGraphRequestCompletion)completion; + +/// @methodgroup Instance methods + +/** + @method + + Signals that a connection should be logically terminated as the + application is no longer interested in a response. + + Synchronously calls any handlers indicating the request was cancelled. Cancel + does not guarantee that the request-related processing will cease. It + does promise that all handlers will complete before the cancel returns. A call to + cancel prior to a start implies a cancellation of all requests associated + with the connection. + */ +- (void)cancel; + +/** + @method + + This method starts a connection with the server and is capable of handling all of the + requests that were added to the connection. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + See `setDelegateQueue:` for other options. + + This method cannot be called twice for an `FBSDKGraphRequestConnection` instance. + */ +- (void)start; + +/** + @method + + Overrides the default version for a batch request + + The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning + for applications. If you want to override the version part while using batch requests on the connection, call + this method to set the version for the batch request. + + @param version This is a string in the form @"v2.0" which will be used for the version part of an API path + */ +- (void)overrideGraphAPIVersion:(NSString *)version; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h new file mode 100644 index 00000000..738ad47d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h @@ -0,0 +1,93 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKGraphRequestConnectionDelegate` protocol defines the methods used to receive network + activity progress information from a . + */ +NS_SWIFT_NAME(GraphRequestConnectionDelegate) +@protocol FBSDKGraphRequestConnectionDelegate + +@optional + +/** + @method + + Tells the delegate the request connection will begin loading + + If the is created using one of the convenience factory methods prefixed with + start, the object returned from the convenience method has already begun loading and this method + will not be called when the delegate is set. + + @param connection The request connection that is starting a network request + */ +- (void)requestConnectionWillBeginLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection finished loading + + If the request connection completes without a network error occurring then this method is called. + Invocation of this method does not indicate success of every made, only that the + request connection has no further activity. Use the error argument passed to the FBSDKGraphRequestBlock + block to determine success or failure of each . + + This method is invoked after the completion handler for each . + + @param connection The request connection that successfully completed a network request + */ +- (void)requestConnectionDidFinishLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection failed with an error + + If the request connection fails with a network error then this method is called. The `error` + argument specifies why the network connection failed. The `NSError` object passed to the + FBSDKGraphRequestBlock block may contain additional information. + + @param connection The request connection that successfully completed a network request + @param error The `NSError` representing the network error that occurred, if any. May be nil + in some circumstances. Consult the `NSError` for the for reliable + failure information. + */ +- (void)requestConnection:(id)connection + didFailWithError:(NSError *)error; + +/** + @method + + Tells the delegate how much data has been sent and is planned to send to the remote host + + The byte count arguments refer to the aggregated objects, not a particular . + + Like `NSURLSession`, the values may change in unexpected ways if data needs to be resent. + + @param connection The request connection transmitting data to a remote host + @param bytesWritten The number of bytes sent in the last transmission + @param totalBytesWritten The total number of bytes sent to the remote host + @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host + */ +- (void) requestConnection:(id)connection + didSendBodyData:(NSInteger)bytesWritten + totalBytesWritten:(NSInteger)totalBytesWritten + totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h new file mode 100644 index 00000000..19e62d20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequestConnecting`. + */ +NS_SWIFT_NAME(GraphRequestConnectionFactory) +@interface FBSDKGraphRequestConnectionFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h new file mode 100644 index 00000000..96b43dfa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestConnecting; + +/// Describes anything that can provide instances of `FBSDKGraphRequestConnecting` +NS_SWIFT_NAME(GraphRequestConnectionFactoryProtocol) +@protocol FBSDKGraphRequestConnectionFactory + +- (id)createGraphRequestConnection; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h new file mode 100644 index 00000000..3775cb4f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A container class for data attachments so that additional metadata can be provided about the attachment. +NS_SWIFT_NAME(GraphRequestDataAttachment) +@interface FBSDKGraphRequestDataAttachment : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes the receiver with the attachment data and metadata. + @param data The attachment data (retained, not copied) + @param filename The filename for the attachment + @param contentType The content type for the attachment + */ +- (instancetype)initWithData:(NSData *)data + filename:(NSString *)filename + contentType:(NSString *)contentType + NS_DESIGNATED_INITIALIZER; + +/// The content type for the attachment. +@property (nonatomic, readonly, copy) NSString *contentType; + +/// The attachment data. +@property (nonatomic, readonly, strong) NSData *data; + +/// The filename for the attachment. +@property (nonatomic, readonly, copy) NSString *filename; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h new file mode 100644 index 00000000..6661ac1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestFactory; + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequest` + */ +NS_SWIFT_NAME(GraphRequestFactory) +@interface FBSDKGraphRequestFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h new file mode 100644 index 00000000..eb85a3ba --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +@protocol FBSDKGraphRequest; + +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + +Describes anything that can provide instances of `GraphRequestProtocol` + */ +NS_SWIFT_NAME(GraphRequestFactoryProtocol) +@protocol FBSDKGraphRequestFactory + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable FBSDKHTTPMethod)method + flags:(FBSDKGraphRequestFlags)flags; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)flags; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h new file mode 100644 index 00000000..68e7c8da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags that indicate how a graph request should be treated in various scenarios +typedef NS_OPTIONS(NSUInteger, FBSDKGraphRequestFlags) { + FBSDKGraphRequestFlagNone = 0, + /// indicates this request should not use a client token as its token parameter + FBSDKGraphRequestFlagSkipClientToken = 1 << 1, + /// indicates this request should not close the session if its response is an oauth error + FBSDKGraphRequestFlagDoNotInvalidateTokenOnError = 1 << 2, + /// indicates this request should not perform error recovery + FBSDKGraphRequestFlagDisableErrorRecovery = 1 << 3, +} NS_SWIFT_NAME(GraphRequestFlags); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h new file mode 100644 index 00000000..e79728d9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// typedef for FBSDKHTTPMethod +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +/// GET Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodGET NS_SWIFT_NAME(get); + +/// POST Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodPOST NS_SWIFT_NAME(post); + +/// DELETE Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodDELETE NS_SWIFT_NAME(delete); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h new file mode 100644 index 00000000..6cc4da38 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphRequestConnection; +@protocol FBSDKGraphRequestConnecting; + +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +typedef void (^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection *_Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe anything that represents a graph request +NS_SWIFT_NAME(GraphRequestProtocol) +@protocol FBSDKGraphRequest + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/// The graph request flags to use +@property (nonatomic, readonly, assign) FBSDKGraphRequestFlags flags; + +/// Convenience property to determine if graph error recover is disabled +@property (nonatomic, getter = isGraphErrorRecoveryDisabled) BOOL graphErrorRecoveryDisabled; + +/// Convenience property to determine if the request has attachments +@property (nonatomic, readonly) BOOL hasAttachments; + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +/// A formatted description of the graph request +- (NSString *)formattedDescription; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKIcon.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKIcon.h new file mode 100644 index 00000000..0404e39a --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKIcon.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Icon) +@interface FBSDKIcon : NSObject + +- (nullable CGPathRef)pathWithSize:(CGSize)size; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h new file mode 100644 index 00000000..4202de70 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ImpressionLoggingButton) +@interface FBSDKImpressionLoggingButton : UIButton +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h new file mode 100644 index 00000000..93829d56 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import +#import +#import +#import + +#if !TARGET_OS_TV + #import +#endif + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(InternalUtility) +@interface FBSDKInternalUtility : NSObject +#if !TARGET_OS_TV + +#else + +#endif + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +@property (class, nonnull, readonly) FBSDKInternalUtility *sharedUtility; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +/** + Tests whether the supplied URL is a valid URL for opening in the browser. + @param URL The URL to test. + @return YES if the URL refers to an http or https resource, otherwise NO. + */ +- (BOOL)isBrowserURL:(NSURL *)URL; + +/** + Checks equality between 2 objects. + + Checks for pointer equality, nils, isEqual:. + @param object The first object to compare. + @param other The second object to compare. + @return YES if the objects are equal, otherwise NO. + */ +- (BOOL)object:(id)object isEqualToObject:(id)other; + +/// Attempts to find the first UIViewController in the view's responder chain. Returns nil if not found. +- (nullable UIViewController *)viewControllerForView:(UIView *)view; + +/// returns true if the url scheme is registered in the CFBundleURLTypes +- (BOOL)isRegisteredURLScheme:(NSString *)urlScheme; + +/// returns currently displayed top view controller. +- (nullable UIViewController *)topMostViewController; + +/// returns the current key window +- (nullable UIWindow *)findWindow; + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; + +- (BOOL)isRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h new file mode 100644 index 00000000..10846828 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h @@ -0,0 +1,135 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(InternalUtilityProtocol) +@protocol FBSDKInternalUtility + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly) BOOL isFacebookAppInstalled; + +/* + Checks if the app is Unity. + */ +@property (nonatomic, readonly) BOOL isUnity; + +/** + Constructs an NSURL. + @param scheme The scheme for the URL. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The URL. + */ +- (nullable NSURL *)URLWithScheme:(NSString *)scheme + host:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs an URL for the current app. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The app URL. + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs a Facebook URL. + @param hostPrefix The prefix for the host, such as 'm', 'graph', etc. + @param path The path for the URL. This may or may not include a version. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The Facebook URL. + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Registers a transient object so that it will not be deallocated until unregistered + @param object The transient object + */ +- (void)registerTransientObject:(id)object; + +/** + Unregisters a transient object that was previously registered with registerTransientObject: + @param object The transient object + */ +- (void)unregisterTransientObject:(__weak id)object; + +- (void)checkRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +/// Validates that the right URL schemes are registered, throws an NSException if not. +- (void)validateURLSchemes; + +/// add data processing options to the dictionary. +- (void)extendDictionaryWithDataProcessingOptions:(NSMutableDictionary *)parameters; + +/// Converts NSData to a hexadecimal UTF8 String. +- (nullable NSString *)hexadecimalStringFromData:(NSData *)data; + +/// validates that the app ID is non-nil, throws an NSException if nil. +- (void)validateAppID; + +/** + Validates that the client access token is non-nil, otherwise - throws an NSException otherwise. + Returns the composed client access token. + */ +- (NSString *)validateRequiredClientAccessToken; + +/** + Extracts permissions from a response fetched from me/permissions + @param responseObject the response + @param grantedPermissions the set to add granted permissions to + @param declinedPermissions the set to add declined permissions to. + */ +- (void)extractPermissionsFromResponse:(NSDictionary *)responseObject + grantedPermissions:(NSMutableSet *)grantedPermissions + declinedPermissions:(NSMutableSet *)declinedPermissions + expiredPermissions:(NSMutableSet *)expiredPermissions; + +/// validates that Facebook reserved URL schemes are not registered, throws an NSException if they are. +- (void)validateFacebookReservedURLSchemes; + +/** + Parses an FB url's query params (and potentially fragment) into a dictionary. + @param url The FB url. + @return A dictionary with the key/value pairs. + */ +- (NSDictionary *)parametersFromFBURL:(NSURL *)url; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h new file mode 100644 index 00000000..a4292d54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStore) +@interface FBSDKKeychainStore : NSObject + +@property (nonatomic, readonly, copy) NSString *service; +@property (nullable, nonatomic, readonly, copy) NSString *accessGroup; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithService:(NSString *)service accessGroup:(nullable NSString *)accessGroup NS_DESIGNATED_INITIALIZER; + +- (BOOL)setData:(nullable NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (nullable NSData *)dataForKey:(NSString *)key; + +// hook for subclasses to override keychain query construction. +- (NSMutableDictionary *)queryForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h new file mode 100644 index 00000000..149c59d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `KeychainStore` + */ +NS_SWIFT_NAME(KeychainStoreFactory) +@interface FBSDKKeychainStoreFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h new file mode 100644 index 00000000..4f8636a8 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProtocol) +@protocol FBSDKKeychainStore + +- (nullable NSString *)stringForKey:(NSString *)key; +- (nullable NSDictionary *)dictionaryForKey:(NSString *)key; + +- (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; +- (BOOL)setDictionary:(nullable NSDictionary *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h new file mode 100644 index 00000000..af0263ca --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProviding) +@protocol FBSDKKeychainStoreProviding + +- (nonnull id)createKeychainStoreWithService:(NSString *)service + accessGroup:(nullable NSString *)accessGroup; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLocation.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLocation.h new file mode 100644 index 00000000..e9fd1304 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLocation.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Location) +@interface FBSDKLocation : NSObject + +/// Location id +@property (nonatomic, readonly, strong) NSString *id; +/// Location name +@property (nonatomic, readonly, strong) NSString *name; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a Location object from a dinctionary containing valid location information. + @param dictionary The dictionary containing raw location + + Valid location will consist of "id" and "name" strings. + */ ++ (nullable instancetype)locationFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLogger.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLogger.h new file mode 100644 index 00000000..d6a31005 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLogger.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Simple logging utility for conditionally logging strings and then emitting them + via NSLog(). + + @unsorted + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Logger) +@interface FBSDKLogger : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLogging.h new file mode 100644 index 00000000..dbef5411 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLogging.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Logging) +@protocol FBSDKLogging + +@property (nonatomic, readonly, copy) NSString *contents; +@property (nonatomic, readonly, copy) FBSDKLoggingBehavior loggingBehavior; + +- (instancetype)initWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +- (void)logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h new file mode 100644 index 00000000..900542d2 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. + */ + +typedef NSString *FBSDKLoggingBehavior NS_TYPED_ENUM NS_SWIFT_NAME(LoggingBehavior); + +/// Include access token in logging. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens; + +/// Log performance characteristics +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics; + +/// Log FBSDKAppEvents interactions +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents; + +/// Log Informational occurrences +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational; + +/// Log cache errors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors; + +/// Log errors from SDK UI controls +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors; + +/// Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning; + +/** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. + Info is the lowest level of severity, using it will result in logging all previously mentioned levels. + */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo; + +/// Log errors from SDK network requests +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests; + +/// Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h new file mode 100644 index 00000000..a6637497 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +@interface FBSDKLoginTooltip : NSObject +@property (nonatomic, readonly, getter = isEnabled, assign) BOOL enabled; +@property (nonatomic, readonly, copy) NSString *text; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithText:(NSString *)text + enabled:(BOOL)enabled + NS_DESIGNATED_INITIALIZER; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h new file mode 100644 index 00000000..3403551b --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(MeasurementEvent) +@interface FBSDKMeasurementEvent : NSObject + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h new file mode 100644 index 00000000..219d3fef --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Extension protocol for NSMutableCopying that adds the mutableCopy method, which is implemented on NSObject. + + NSObject implicitly conforms to this protocol. + */ +NS_SWIFT_NAME(MutableCopying) +@protocol FBSDKMutableCopying + +/** + Implemented by NSObject as a convenience to mutableCopyWithZone:. + @return A mutable copy of the receiver. + */ +- (id)mutableCopy; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h new file mode 100644 index 00000000..5b157c20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Concrete type providing functionality that checks whether an error represents a + network error. + */ +NS_SWIFT_NAME(NetworkErrorChecker) +@interface FBSDKNetworkErrorChecker : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h new file mode 100644 index 00000000..2868737f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_SWIFT_NAME(NetworkErrorChecking) +@protocol FBSDKNetworkErrorChecking + +/** + Checks whether an error is a network error. + + @param error An error that may or may not represent a network error. + + @return `YES` if the error represents a network error, otherwise `NO`. + */ +- (BOOL)isNetworkError:(NSError *)error; + +@end diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h new file mode 100644 index 00000000..fa8f4cde --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductAvailability) + Specifies product availability for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductAvailability) { + /// Item ships immediately + FBSDKProductAvailabilityInStock = 0, + /// No plan to restock + FBSDKProductAvailabilityOutOfStock, + /// Available in future + FBSDKProductAvailabilityPreOrder, + /// Ships in 1-2 weeks + FBSDKProductAvailabilityAvailableForOrder, + /// Discontinued + FBSDKProductAvailabilityDiscontinued, +} NS_SWIFT_NAME(AppEvents.ProductAvailability); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h new file mode 100644 index 00000000..41e23b1e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductCondition) + Specifies product condition for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductCondition) { + FBSDKProductConditionNew = 0, + FBSDKProductConditionRefurbished, + FBSDKProductConditionUsed, +} NS_SWIFT_NAME(AppEvents.ProductCondition); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfile.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfile.h new file mode 100644 index 00000000..a38aa453 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfile.h @@ -0,0 +1,289 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@class FBSDKLocation; +@class FBSDKProfile; +@class FBSDKUserAgeRange; + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentProfile` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKProfileChangeOldKey` and + `FBSDKProfileChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKProfileDidChangeNotification +NS_SWIFT_NAME(ProfileDidChange); + +/* key in notification's userInfo object for getting the old profile. + + If there was no old profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeOldKey +NS_SWIFT_NAME(ProfileChangeOldKey); + +/* key in notification's userInfo object for getting the new profile. + + If there is no new profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeNewKey +NS_SWIFT_NAME(ProfileChangeNewKey); + +/** + Describes the callback for loadCurrentProfileWithCompletion. + @param profile the FBSDKProfile + @param error the error during the request, if any + */ +typedef void (^ FBSDKProfileBlock)(FBSDKProfile *_Nullable profile, NSError *_Nullable error) +NS_SWIFT_NAME(ProfileBlock); + +/// Represents the unique identifier for an end user +typedef NSString FBSDKUserIdentifier + NS_SWIFT_NAME(UserIdentifier); + +/** + Represents an immutable Facebook profile + + This class provides a global "currentProfile" instance to more easily + add social context to your application. When the profile changes, a notification is + posted so that you can update relevant parts of your UI and is persisted to NSUserDefaults. + + Typically, you will want to call `enableUpdatesOnAccessTokenChange:YES` so that + it automatically observes changes to the `[FBSDKAccessToken currentAccessToken]`. + + You can use this class to build your own `FBSDKProfilePictureView` or in place of typical requests to "/me". + */ +NS_SWIFT_NAME(Profile) +@interface FBSDKProfile : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + initializes a new instance. + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate; + +/** + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + @param imageURL an optional URL to use for fetching a user's profile image + @param email the user's email + @param friendIDs a list of identifiers for the user's friends + @param birthday the user's birthday + @param ageRange the user's age range + @param hometown the user's hometown + @param location the user's location + @param gender the user's gender + @param isLimited indicates if the information provided is incomplete in some way. + When true, `loadCurrentProfileWithCompletion:` will assume the profile is + incomplete and disregard any cached profile. Defaults to false. + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate + imageURL:(nullable NSURL *)imageURL + email:(nullable NSString *)email + friendIDs:(nullable NSArray *)friendIDs + birthday:(nullable NSDate *)birthday + ageRange:(nullable FBSDKUserAgeRange *)ageRange + hometown:(nullable FBSDKLocation *)hometown + location:(nullable FBSDKLocation *)location + gender:(nullable NSString *)gender + isLimited:(BOOL)isLimited; + +/** + initializes a new instance. + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + @param imageURL an optional URL to use for fetching a user's profile image + @param email the user's email + @param friendIDs a list of identifiers for the user's friends + @param birthday the user's birthday + @param ageRange the user's age range + @param hometown the user's hometown + @param location the user's location + @param gender the user's gender + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate + imageURL:(nullable NSURL *)imageURL + email:(nullable NSString *)email + friendIDs:(nullable NSArray *)friendIDs + birthday:(nullable NSDate *)birthday + ageRange:(nullable FBSDKUserAgeRange *)ageRange + hometown:(nullable FBSDKLocation *)hometown + location:(nullable FBSDKLocation *)location + gender:(nullable NSString *)gender + NS_DESIGNATED_INITIALIZER; + +/** + The current profile instance and posts the appropriate notification + if the profile parameter is different than the receiver. + + This persists the profile to NSUserDefaults. + */ + +/// The current profile +@property (class, nullable, nonatomic, strong) FBSDKProfile *currentProfile +NS_SWIFT_NAME(current); + +/// The user id +@property (nonatomic, readonly, copy) FBSDKUserIdentifier *userID; +/// The user's first name +@property (nullable, nonatomic, readonly, copy) NSString *firstName; +/// The user's middle name +@property (nullable, nonatomic, readonly, copy) NSString *middleName; +/// The user's last name +@property (nullable, nonatomic, readonly, copy) NSString *lastName; +/// The user's complete name +@property (nullable, nonatomic, readonly, copy) NSString *name; +/** + A URL to the user's profile. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_link' permission + + Consider using `FBSDKAppLinkResolver` to resolve this + to an app link to link directly to the user's profile in the Facebook app. + */ +@property (nullable, nonatomic, readonly) NSURL *linkURL; + +/// The last time the profile data was fetched. +@property (nonatomic, readonly) NSDate *refreshDate; +/// A URL to use for fetching a user's profile image. +@property (nullable, nonatomic, readonly) NSURL *imageURL; +/** + The user's email. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSString *email; +/** + A list of identifiers of the user's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSArray *friendIDs; + +/** + The user's birthday. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_birthday' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSDate *birthday; + +/** + The user's age range + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_age_range' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKUserAgeRange *ageRange; + +/** + The user's hometown + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_hometown' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKLocation *hometown; + +/** + The user's location + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_location' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKLocation *location; + +/** + The user's gender + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_gender' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSString *gender; + +/** + Indicates if `currentProfile` will automatically observe `FBSDKAccessTokenDidChangeNotification` notifications + @param enable YES is observing + + If observing, this class will issue a graph request for public profile data when the current token's userID + differs from the current profile. You can observe `FBSDKProfileDidChangeNotification` for when the profile is updated. + + Note that if `[FBSDKAccessToken currentAccessToken]` is unset, the `currentProfile` instance remains. It's also possible + for `currentProfile` to return nil until the data is fetched. + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void)enableUpdatesOnAccessTokenChange:(BOOL)enable +NS_SWIFT_NAME(enableUpdatesOnAccessTokenChange(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Loads the current profile and passes it to the completion block. + @param completion The block to be executed once the profile is loaded + + If the profile is already loaded, this method will call the completion block synchronously, otherwise it + will begin a graph request to update `currentProfile` and then call the completion block when finished. + */ ++ (void)loadCurrentProfileWithCompletion:(nullable FBSDKProfileBlock)completion; + +/** + A convenience method for returning a complete `NSURL` for retrieving the user's profile image. + @param mode The picture mode + @param size The height and width. This will be rounded to integer precision. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable NSURL *)imageURLForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size +NS_SWIFT_NAME(imageURL(forMode:size:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Returns YES if the profile is equivalent to the receiver. + @param profile the profile to compare to. + */ +- (BOOL)isEqualToProfile:(FBSDKProfile *)profile; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h new file mode 100644 index 00000000..36bf8c54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@class FBSDKProfile; + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKProfilePictureMode enum + Defines the aspect ratio mode for the source image of the profile picture. + */ +typedef NS_ENUM(NSUInteger, FBSDKProfilePictureMode) { + /// A square cropped version of the image will be included in the view. + FBSDKProfilePictureModeSquare, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeNormal, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeAlbum, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeSmall, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeLarge, +} NS_SWIFT_NAME(Profile.PictureMode); + +/// A view to display a profile picture. +NS_SWIFT_NAME(FBProfilePictureView) +@interface FBSDKProfilePictureView : UIView + +/** + Create a new instance of `FBSDKProfilePictureView`. + + - Parameter frame: Frame rectangle for the view. + - Parameter profile: Optional profile to display a picture for. + */ +- (instancetype)initWithFrame:(CGRect)frame + profile:(FBSDKProfile *_Nullable)profile; + +/** + Create a new instance of `FBSDKProfilePictureView`. + + - Parameter profile: Optional profile to display a picture for. + */ +- (instancetype)initWithProfile:(FBSDKProfile *_Nullable)profile; + +/// The mode for the receiver to determine the aspect ratio of the source image. +@property (nonatomic, assign) FBSDKProfilePictureMode pictureMode; + +/// The profile ID to show the picture for. +@property (nonatomic, copy) NSString *profileID; + +/** + Explicitly marks the receiver as needing to update the image. + + This method is called whenever any properties that affect the source image are modified, but this can also + be used to trigger a manual update of the image if it needs to be re-downloaded. + */ +- (void)setNeedsImageUpdate; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h new file mode 100644 index 00000000..ac05481f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKProfile; + +NS_SWIFT_NAME(ProfileProviding) +@protocol FBSDKProfileProviding + +@property (class, nullable, nonatomic, strong) FBSDKProfile *currentProfile +NS_SWIFT_NAME(current); + ++ (nullable FBSDKProfile *)fetchCachedProfile; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKRandom.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKRandom.h new file mode 100644 index 00000000..653a0389 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKRandom.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + Provides a random string + @param numberOfBytes the number of bytes to use + */ +extern NSString *fb_randomString(NSUInteger numberOfBytes); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h new file mode 100644 index 00000000..884b84ac --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal block type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoginTooltipBlock) +typedef void (^FBSDKLoginTooltipBlock)(FBSDKLoginTooltip *_Nullable loginTooltip, NSError *_Nullable error); + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ServerConfigurationProvider) +@interface FBSDKServerConfigurationProvider : NSObject + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly) NSString *loggingToken; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (NSUInteger)cachedSmartLoginOptions; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (BOOL)useSafariViewControllerForDialogName:(NSString *)dialogName; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)loadServerConfigurationWithCompletionBlock:(nullable FBSDKLoginTooltipBlock)completionBlock; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettings.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettings.h new file mode 100644 index 00000000..6b3a2897 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettings.h @@ -0,0 +1,197 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Settings) +@interface FBSDKSettings : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +/// The shared settings instance. Prefer this and the exposed instance methods over the class variants. +@property (class, nonatomic, readonly) FBSDKSettings *sharedSettings; + +/// Retrieve the current iOS SDK version. +@property (nonatomic, readonly, copy) NSString *sdkVersion; + +/// Retrieve the current default Graph API version. +@property (nonatomic, readonly, copy) NSString *defaultGraphAPIVersion; + +/** + The quality of JPEG images sent to Facebook from the SDK, + expressed as a value from 0.0 to 1.0. + + If not explicitly set, the default is 0.9. +*/ +@property (nonatomic) CGFloat JPEGCompressionQuality +NS_SWIFT_NAME(jpegCompressionQuality); + +/** + Controls the auto logging of basic app events, such as activateApp and deactivateApp. + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAutoLogAppEventsEnabled) BOOL autoLogAppEventsEnabled; + +/** + Controls the fb_codeless_debug logging event + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; + +/** + Controls the access to IDFA + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; + +/** + Controls the SKAdNetwork report + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isSKAdNetworkReportEnabled) BOOL skAdNetworkReportEnabled; + +/** + Whether data such as that generated through FBSDKAppEvents and sent to Facebook + should be restricted from being used for other than analytics and conversions. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL isEventDataUsageLimited; + +/** + Whether in memory cached values should be used for expensive metadata fields, such as + carrier and advertiser ID, that are fetched on many applicationDidBecomeActive notifications. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; + +/// A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; + +/** + The Facebook App ID used by the SDK. + + If not explicitly set, the default will be read from the application's plist (FacebookAppID). + */ +@property (nullable, nonatomic, copy) NSString *appID; + +/** + The default url scheme suffix used for sessions. + + If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). + */ +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; + +/** + The Client Token that has been set via [[FBSDKSettings sharedSettings] setClientToken]. + This is needed for certain API calls when made anonymously, without a user-based access token. + + The Facebook App's "client token", which, for a given appid can be found in the Security + section of the Advanced tab of the Facebook App settings found at + + If not explicitly set, the default will be read from the application's plist (FacebookClientToken). + */ +@property (nullable, nonatomic, copy) NSString *clientToken; + +/** + The Facebook Display Name used by the SDK. + + This should match the Display Name that has been set for the app with the corresponding Facebook App ID, + in the Facebook App Dashboard. + + If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). + */ +@property (nullable, nonatomic, copy) NSString *displayName; + +/** + The Facebook domain part. This can be used to change the Facebook domain + (e.g. @"beta") so that requests will be sent to `graph.beta.facebook.com` + + If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). + */ +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; + +/** + The current Facebook SDK logging behavior. This should consist of strings + defined as constants with FBSDKLoggingBehavior*. + + This should consist a set of strings indicating what information should be logged + defined as constants with FBSDKLoggingBehavior*. Set to an empty set in order to disable all logging. + + You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLoggingBehavior: + + The default is a set consisting of FBSDKLoggingBehaviorDeveloperErrors + */ +@property (nonatomic, copy) NSSet *loggingBehaviors; + +/** + Overrides the default Graph API version to use with `FBSDKGraphRequests`. + + The string should be of the form `@"v2.7"`. + + Defaults to `defaultGraphAPIVersion`. + */ +@property (nonatomic, copy) NSString *graphAPIVersion; + +/** + Internal property exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; + +/** + The value of the flag advertiser_tracking_enabled that controls the advertiser tracking status of the data sent to Facebook + If not explicitly set in iOS14 or above, the default is false in iOS14 or above. + */ +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; + +/** +Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** +Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +/** + Enable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +/** + Disable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h new file mode 100644 index 00000000..1e21fe02 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsLogging) +@protocol FBSDKSettingsLogging + +- (void)logWarnings; +- (void)logIfSDKSettingsChanged; +- (void)recordInstall; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h new file mode 100644 index 00000000..d0eeb7ab --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsProtocol) +@protocol FBSDKSettings + +@property (nullable, nonatomic, copy) NSString *appID; +@property (nullable, nonatomic, copy) NSString *clientToken; +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; +@property (nonatomic, readonly, copy) NSString *sdkVersion; +@property (nullable, nonatomic, copy) NSString *displayName; +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; +@property (nonnull, nonatomic, copy) NSSet *loggingBehaviors; +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; +@property (nonatomic, readonly) BOOL isDataProcessingRestricted; +@property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled; +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; +@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime; +@property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled; +@property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; +@property (nullable, nonatomic, readonly) NSDate *installTimestamp; +@property (nullable, nonatomic, readonly) NSDate *advertiserTrackingEnabledTimestamp; +@property (nonatomic) BOOL isEventDataUsageLimited; +@property (nonatomic) BOOL shouldUseTokenOptimizations; +@property (nonatomic, copy) NSString *graphAPIVersion; +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; +@property (nullable, nonatomic, readonly, copy) NSString *graphAPIDebugParamValue; +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; +@property (nullable, nonatomic, readonly) NSDictionary *persistableDataProcessingOptions; + +/** + Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** + Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h new file mode 100644 index 00000000..4d30ced6 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Constant used to describe the 'Message' dialog +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameMessage; +/// Constant used to describe the 'Share' dialog +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameShare; + +/** + A lightweight interface to expose aspects of FBSDKServerConfiguration that are used by dialogs in ShareKit. + + Internal Use Only + */ +NS_SWIFT_NAME(ShareDialogConfiguration) +@interface FBSDKShareDialogConfiguration : NSObject + +@property (nonatomic, readonly, copy) NSString *defaultShareMode; + +- (BOOL)shouldUseNativeDialogForDialogName:(NSString *)dialogName; +- (BOOL)shouldUseSafariViewControllerForDialogName:(NSString *)dialogName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h new file mode 100644 index 00000000..6b07cb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(TokenCaching) +@protocol FBSDKTokenCaching + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAccessToken *accessToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h new file mode 100644 index 00000000..87f227de --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(TokenStringProviding) +@protocol FBSDKTokenStringProviding + +/** + Return the token string of the current access token. + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +@property (class, nullable, nonatomic, readonly, copy) NSString *tokenString; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h new file mode 100644 index 00000000..ea415c83 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +extern CATransform3D const FBSDKCATransform3DIdentity; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@interface FBSDKTransformer : NSObject +- (CATransform3D)CATransform3DMakeScale:(CGFloat)sx sy:(CGFloat)sy sz:(CGFloat)sz; +- (CATransform3D)CATransform3DMakeTranslation:(CGFloat)tx ty:(CGFloat)ty tz:(CGFloat)tz; +- (CATransform3D)CATransform3DConcat:(CATransform3D)a b:(CATransform3D)b; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURL.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURL.h new file mode 100644 index 00000000..292430f5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURL.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKAppLink; + +/** + Provides a set of utilities for working with NSURLs, such as parsing of query parameters + and handling for App Link requests. + */ +NS_SWIFT_NAME(AppLinkURL) +@interface FBSDKURL : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a link target from a raw URL. + On success, this posts the FBSDKAppLinkParseEventName measurement event. If you are constructing the FBSDKURL within your application delegate's + application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication: + to support better FBSDKMeasurementEvent notifications + @param url The instance of `NSURL` to create FBSDKURL from. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)URLWithURL:(NSURL *)url +NS_SWIFT_NAME(init(url:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's + application:openURL:sourceApplication:annotation: and will post the FBSDKAppLinkNavigateInEventName measurement event. + @param url The instance of `NSURL` to create FBSDKURL from. + @param sourceApplication the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation: + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication +NS_SWIFT_NAME(init(inboundURL:sourceApplication:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Gets the target URL. If the link is an App Link, this is the target of the App Link. + Otherwise, it is the url that created the target. + */ +@property (nonatomic, readonly, strong) NSURL *targetURL; + +/// Gets the query parameters for the target, parsed into an NSDictionary. +@property (nonatomic, readonly, strong) NSDictionary *targetQueryParameters; + +/** + If this link target is an App Link, this is the data found in al_applink_data. + Otherwise, it is nil. + */ +@property (nullable, nonatomic, readonly, strong) NSDictionary *appLinkData; + +/// If this link target is an App Link, this is the data found in extras. +@property (nullable, nonatomic, readonly, strong) NSDictionary *appLinkExtras; + +/// The App Link indicating how to navigate back to the referer app, if any. +@property (nullable, nonatomic, readonly, strong) id appLinkReferer; + +/// The URL that was used to create this FBSDKURL. +@property (nonatomic, readonly, strong) NSURL *inputURL; + +/// The query parameters of the inputURL, parsed into an NSDictionary. +@property (nonatomic, readonly, strong) NSDictionary *inputQueryParameters; + +/// The flag indicating whether the URL comes from auto app link +@property (nonatomic, readonly, getter = isAutoAppLink) BOOL isAutoAppLink; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h new file mode 100644 index 00000000..31741f40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(URLHosting) +@protocol FBSDKURLHosting + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h new file mode 100644 index 00000000..ff91da7d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKURLOpening; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(URLOpener) +@protocol FBSDKURLOpener + +- (void)openURL:(NSURL *)url + sender:(nullable id)sender + handler:(FBSDKSuccessBlock)handler; + +// UNCRUSTIFY_FORMAT_OFF +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(id)sender + fromViewController:(UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler +NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h new file mode 100644 index 00000000..65772a5c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(URLOpening) +@protocol FBSDKURLOpening + +// Implementations should make sure they can handle nil parameters +// which is possible in SafariViewController. +// see canOpenURL below. +- (BOOL)application:(nullable UIApplication *)application + openURL:(nullable NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +// create a different handler to return YES/NO if the receiver can process the above openURL:. +// This is separated so that we can process the openURL: in callbacks, while still returning +// the result of canOpenURL synchronously in FBSDKApplicationDelegate +- (BOOL) canOpenURL:(NSURL *)url + forApplication:(nullable UIApplication *)application + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +- (void)applicationDidBecomeActive:(UIApplication *)application; + +- (BOOL)isAuthenticationURL:(NSURL *)url; + +@optional +- (BOOL)shouldStopPropagationOfURL:(NSURL *)url; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h new file mode 100644 index 00000000..f7283921 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *FBSDKURLScheme NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(URLScheme); + +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeFacebookAPI; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeMessengerApp; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTPS NS_SWIFT_NAME(https); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTP NS_SWIFT_NAME(http); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeWeb; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h new file mode 100644 index 00000000..7d719165 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(UserAgeRange) +@interface FBSDKUserAgeRange : NSObject + +/// The user's minimun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *min; +/// The user's maximun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *max; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a UserAgeRange object from a dinctionary containing valid user age range. + @param dictionary The dictionary containing raw user age range + + Valid user age range will consist of "min" and/or "max" values that are + positive integers, where "min" is smaller than or equal to "max". + */ ++ (nullable instancetype)ageRangeFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKUtility.h new file mode 100644 index 00000000..eb5ca0a4 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKUtility.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Class to contain common utility methods. +NS_SWIFT_NAME(Utility) +@interface FBSDKUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Parses a query string into a dictionary. + @param queryString The query string value. + @return A dictionary with the key/value pairs. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString +NS_SWIFT_NAME(dictionary(withQuery:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Constructs a query string from a dictionary. + @param dictionary The dictionary with key/value pairs for the query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return Query string representation of the parameters. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary + error:(NSError **)errorRef +NS_SWIFT_NAME(query(from:)) +__attribute__((swift_error(nonnull_error))); +// UNCRUSTIFY_FORMAT_ON + +/** + Decodes a value from an URL. + @param value The value to decode. + @return The decoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLDecode:(NSString *)value +NS_SWIFT_NAME(decode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Encodes a value for an URL. + @param value The value to encode. + @return The encoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLEncode:(NSString *)value +NS_SWIFT_NAME(encode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Creates a timer using Grand Central Dispatch. + @param interval The interval to fire the timer, in seconds. + @param block The code block to execute when timer is fired. + @return The dispatch handle. + */ ++ (dispatch_source_t)startGCDTimerWithInterval:(double)interval block:(dispatch_block_t)block; + +/** + Stop a timer that was started by startGCDTimerWithInterval. + @param timer The dispatch handle received from startGCDTimerWithInterval. + */ ++ (void)stopGCDTimer:(dispatch_source_t)timer; + +/** + Get SHA256 hased string of NSString/NSData + + @param input The data that needs to be hashed, it could be NSString or NSData. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (nullable NSString *)SHA256Hash:(NSObject *)input +NS_SWIFT_NAME(sha256Hash(_:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the graphdomain stored in FBSDKAuthenticationToken ++ (nullable NSString *)getGraphDomainFromToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (NSURL *)unversionedFacebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h new file mode 100644 index 00000000..136683d1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import +#import +#import + +#import + +@protocol _FBSDKWindowFinding; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(WebDialog) +@interface FBSDKWebDialog : NSObject + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic) BOOL shouldDeferVisibility; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, strong) id<_FBSDKWindowFinding> windowFinder; + ++ (instancetype)new NS_UNAVAILABLE; +- (instancetype)init NS_UNAVAILABLE; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (instancetype)dialogWithName:(NSString *)name + delegate:(id)delegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)createAndShowWithName:(NSString *)name + parameters:(nullable NSDictionary *)parameters + frame:(CGRect)frame + delegate:(id)delegate + windowFinder:(nullable id<_FBSDKWindowFinding>)windowFinder +NS_SWIFT_NAME(createAndShow(name:parameters:frame:delegate:windowFinder:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h new file mode 100644 index 00000000..6dd4b926 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h @@ -0,0 +1,56 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@class FBSDKWebDialog; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(WebDialogDelegate) +@protocol FBSDKWebDialogDelegate + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialog:(FBSDKWebDialog *)webDialog didCompleteWithResults:(NSDictionary *)results; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialog:(FBSDKWebDialog *)webDialog didFailWithError:(NSError *)error; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialogDidCancel:(FBSDKWebDialog *)webDialog; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h new file mode 100644 index 00000000..b0861b81 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@protocol FBSDKWebDialogViewDelegate; + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(FBWebDialogView) +@interface FBSDKWebDialogView : UIView + +@property (nonatomic, weak) id delegate; + +- (void)loadURL:(NSURL *)URL; +- (void)stopLoading; + +@end + +NS_SWIFT_NAME(WebDialogViewDelegate) +@protocol FBSDKWebDialogViewDelegate + +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary *)results; +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error; +- (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView; +- (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h new file mode 100644 index 00000000..f1d7dbed --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A reference implementation for an App Link resolver that uses a hidden WKWebView + to parse the HTML containing App Link metadata. + */ +NS_SWIFT_NAME(WebViewAppLinkResolver) +@interface FBSDKWebViewAppLinkResolver : NSObject + +/// Gets the instance of a FBSDKWebViewAppLinkResolver. +@property (class, nonatomic, readonly, strong) FBSDKWebViewAppLinkResolver *sharedInstance +NS_SWIFT_NAME(shared); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h new file mode 100644 index 00000000..a9d946f3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(_WindowFinding) +@protocol _FBSDKWindowFinding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable UIWindow *)findWindow; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h new file mode 100644 index 00000000..a8114b1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoggerCreating) +@protocol __FBSDKLoggerCreating + +- (id)createLoggerWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc similarity index 76% rename from ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftdoc rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc index 06be399e..5f8b1484 100644 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64.swiftdoc and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..9e4db6e3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc similarity index 76% rename from ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftdoc rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc index 19b7e10f..0e0f6c04 100644 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm.swiftdoc and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..9714ca26 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/module.modulemap b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..f951cee0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKCoreKit { + umbrella header "FBSDKCoreKit.h" + + export * + module * { export * } +} + +module FBSDKCoreKit.Swift { + header "FBSDKCoreKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Resources/Info.plist b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Resources/Info.plist new file mode 100644 index 00000000..76d66895 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKCoreKit.framework/Resources/Info.plist @@ -0,0 +1,52 @@ + + + + + BuildMachineOSBuild + 21D62 + CFBundleDevelopmentRegion + en + CFBundleExecutable + FBSDKCoreKit + CFBundleIdentifier + com.facebook.sdk.FBSDKCoreKit + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FBSDKCoreKit + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 13.1.0 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 13E113 + DTPlatformName + macosx + DTPlatformVersion + 12.3 + DTSDKBuild + 21E226 + DTSDKName + macosx12.3 + DTXcode + 1330 + DTXcodeBuild + 13E113 + LSMinimumSystemVersion + 10.15 + UIDeviceFamily + + 2 + + + diff --git a/ios/platform/FBSDKCoreKit.framework/FBSDKCoreKit b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/FBSDKCoreKit similarity index 54% rename from ios/platform/FBSDKCoreKit.framework/FBSDKCoreKit rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/FBSDKCoreKit index f5bc65d5..90bb2a85 100644 Binary files a/ios/platform/FBSDKCoreKit.framework/FBSDKCoreKit and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/FBSDKCoreKit differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h new file mode 100644 index 00000000..87494ec0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h @@ -0,0 +1,188 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentAccessToken` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKAccessTokenChangeOldKey` and + `FBSDKAccessTokenChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification +NS_SWIFT_NAME(AccessTokenDidChange); + +/** + A key in the notification's userInfo that will be set + if and only if the user ID changed between the old and new tokens. + + Token refreshes can occur automatically with the SDK + which do not change the user. If you're only interested in user + changes (such as logging out), you should check for the existence + of this key. The value is a NSNumber with a boolValue. + + On a fresh start of the app where the SDK reads in the cached value + of an access token, this key will also exist since the access token + is moving from a null state (no user) to a non-null state (user). + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserIDKey +NS_SWIFT_NAME(AccessTokenDidChangeUserIDKey); + +/* + key in notification's userInfo object for getting the old token. + + If there was no old token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey +NS_SWIFT_NAME(AccessTokenChangeOldKey); + +/* + key in notification's userInfo object for getting the new token. + + If there is no new token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey +NS_SWIFT_NAME(AccessTokenChangeNewKey); + +/* + A key in the notification's userInfo that will be set + if and only if the token has expired. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpireKey +NS_SWIFT_NAME(AccessTokenDidExpireKey); + +/// Represents an immutable access token for using Facebook services. +NS_SWIFT_NAME(AccessToken) +@interface FBSDKAccessToken : NSObject + +/** + The "global" access token that represents the currently logged in user. + + The `currentAccessToken` is a convenient representation of the token of the + current user and is used by other SDK components (like `FBSDKLoginManager`). + */ +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +/// Returns YES if currentAccessToken is not nil AND currentAccessToken is not expired +@property (class, nonatomic, readonly, getter = isCurrentAccessTokenActive, assign) BOOL currentAccessTokenIsActive; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +/// Returns the app ID. +@property (nonatomic, readonly, copy) NSString *appID; + +/// Returns the expiration date for data access +@property (nonatomic, readonly, copy) NSDate *dataAccessExpirationDate; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *declinedPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *expiredPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// Returns the known granted permissions. +@property (nonatomic, readonly, copy) NSSet *permissions + NS_REFINED_FOR_SWIFT; + +/// Returns the date the token was last refreshed. +@property (nonatomic, readonly, copy) NSDate *refreshDate; + +/// Returns the opaque token string. +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// Returns the user ID. +@property (nonatomic, readonly, copy) NSString *userID; + +/// Returns whether the access token is expired by checking its expirationDate property +@property (nonatomic, readonly, getter = isExpired, assign) BOOL expired; + +/// Returns whether user data access is still active for the given access token +@property (nonatomic, readonly, getter = isDataAccessExpired, assign) BOOL dataAccessExpired; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes a new instance. + @param tokenString the opaque token string. + @param permissions the granted permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param appID the app ID. + @param userID the user ID. + @param expirationDate the optional expiration date (defaults to distantFuture). + @param refreshDate the optional date the token was last refreshed (defaults to today). + @param dataAccessExpirationDate the date which data access will expire for the given user + (defaults to distantFuture). + + This initializer should only be used for advanced apps that + manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` + along with `+currentAccessToken`. + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray *)permissions + declinedPermissions:(NSArray *)declinedPermissions + expiredPermissions:(NSArray *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(nullable NSDate *)expirationDate + refreshDate:(nullable NSDate *)refreshDate + dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate + NS_DESIGNATED_INITIALIZER; + +/** + Convenience getter to determine if a permission has been granted + @param permission The permission to check. + */ +// UNCRUSTIFY_FORMAT_OFF +- (BOOL)hasGranted:(NSString *)permission +NS_SWIFT_NAME(hasGranted(permission:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Compares the receiver to another FBSDKAccessToken + @param token The other token + @return YES if the receiver's values are equal to the other token's values; otherwise NO + */ +- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token; + +/** + Refresh the current access token's permission state and extend the token's expiration date, + if possible. + @param completion an optional callback handler that can surface any errors related to permission refreshing. + + On a successful refresh, the currentAccessToken will be updated so you typically only need to + observe the `FBSDKAccessTokenDidChangeNotification` notification. + + If a token is already expired, it cannot be refreshed. + */ ++ (void)refreshCurrentAccessTokenWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h new file mode 100644 index 00000000..5c033caa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@protocol FBSDKTokenCaching; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenProviding) +@protocol FBSDKAccessTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAccessToken *currentAccessToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenSetting) +@protocol FBSDKAccessTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h new file mode 100644 index 00000000..730b90da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKAdvertisingTrackingStatus) { + FBSDKAdvertisingTrackingAllowed, + FBSDKAdvertisingTrackingDisallowed, + FBSDKAdvertisingTrackingUnspecified, +} NS_SWIFT_NAME(AdvertisingTrackingStatus); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h new file mode 100644 index 00000000..21a1f444 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppAvailabilityChecker) +@protocol FBSDKAppAvailabilityChecker + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isFacebookAppInstalled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h new file mode 100644 index 00000000..b55589b9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBSDKAppEvents`. + Common event parameters are provided in the `FBSDKAppEventParameterName` constants. + */ + +/// typedef for FBSDKAppEventName +typedef NSString *FBSDKAppEventName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.Name); + +// MARK: - General Purpose + +/// Log this event when the user clicks an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdClick; + +/// Log this event when the user views an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdImpression; + +/// Log this event when a user has completed registration with the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedRegistration; + +/// Log this event when the user has completed a tutorial in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedTutorial; + +/// A telephone/SMS, email, chat or other type of contact between a customer and your business. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameContact; + +/// The customization of products through a configuration tool or other application your business owns. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCustomizeProduct; + +/// The donation of funds to your organization or cause. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameDonate; + +/// When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameFindLocation; + +/// Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameRated; + +/// The booking of an appointment to visit one of your locations. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSchedule; + +/// Log this event when a user has performed a search within the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSearched; + +/// The start of a free trial of a product or service you offer (example: trial subscription). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameStartTrial; + +/// The submission of an application for a product, service or program you offer (example: credit card, educational program or job). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubmitApplication; + +/// The start of a paid subscription for a product or service you offer. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubscribe; + +/// Log this event when a user has viewed a form of content in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameViewedContent; + +// MARK: - E-Commerce + +/// Log this event when the user has entered their payment info. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedPaymentInfo; + +/// Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToCart; + +/// Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToWishlist; + +/// Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameInitiatedCheckout; + +/// Log this event when the user has completed a transaction. The valueToSum passed to logEvent should be the total price of the transaction. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNamePurchased; + +// MARK: - Gaming + +/// Log this event when the user has achieved a level in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAchievedLevel; + +/// Log this event when the user has unlocked an achievement in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameUnlockedAchievement; + +/// Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSpentCredits; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h new file mode 100644 index 00000000..ceb5e2d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h @@ -0,0 +1,73 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. + */ + +/// typedef for FBSDKAppEventParameterName +typedef NSString *FBSDKAppEventParameterName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterName); + +/** + * Parameter key used to specify data for the one or more pieces of content being logged about. + * Data should be a JSON encoded string. + * Example: + * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" + */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContent; + +/// Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentID; + +/// Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentType; + +/// Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameCurrency; + +/// Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameDescription; + +/// Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLevel; + +/// Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameMaxRatingValue; + +/// Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameNumItems; + +/// Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNamePaymentInfoAvailable; + +/// Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameRegistrationMethod; + +/// Parameter key used to specify the string provided by the user for a search operation. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSearchString; + +/// Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSuccess; + +/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression + * or FBSDKAppEventNameAdClick event. + * E.g. "banner", "interstitial", "rewarded_video", "native" */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameAdType; + +/** Parameter key used to specify the unique ID for all events within a subscription + * in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameOrderID; + +/// Parameter key used to specify event name. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameEventName; + +/// Parameter key used to specify event log time. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLogTime; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h new file mode 100644 index 00000000..ff0b036c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logProductItem` method on `FBSDKAppEvents`. + +/// typedef for FBSDKAppEventParameterProduct +typedef NSString *const FBSDKAppEventParameterProduct NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterProduct); + +/// Parameter key used to specify the product item's category. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory; + +/// Parameter key used to specify the product item's custom label 0. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0; + +/// Parameter key used to specify the product item's custom label 1. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1; + +/// Parameter key used to specify the product item's custom label 2. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2; + +/// Parameter key used to specify the product item's custom label 3. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3; + +/// Parameter key used to specify the product item's custom label 4. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4; + +/// Parameter key used to specify the product item's AppLink app URL for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iOS App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPhone App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPad App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl; + +/// Parameter key used to specify the product item's AppLink fully-qualified package name for intent generation. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage; + +/// Parameter key used to specify the product item's AppLink app name for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID, as a GUID, for App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID; + +/// Parameter key used to specify the product item's AppLink app name for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h new file mode 100644 index 00000000..796e2e10 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/* + @methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants. + */ + +/// typedef for FBSDKAppEventParameterValue +typedef NSString *const FBSDKAppEventParameterValue NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterValue); + +/// Yes-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes; + +/// No-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h new file mode 100644 index 00000000..194443d5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *const FBSDKAppEventUserDataType NS_TYPED_EXTENSIBLE_ENUM; + +/// Parameter key used to specify user's email. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventEmail; + +/// Parameter key used to specify user's first name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventFirstName; + +/// Parameter key used to specify user's last name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventLastName; + +/// Parameter key used to specify user's phone. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventPhone; + +/// Parameter key used to specify user's date of birth. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth; + +/// Parameter key used to specify user's gender. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventGender; + +/// Parameter key used to specify user's city. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCity; + +/// Parameter key used to specify user's state. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventState; + +/// Parameter key used to specify user's zip. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventZip; + +/// Parameter key used to specify user's country. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCountry; + +/// Parameter key used to specify user's external id. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventExternalId; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h new file mode 100644 index 00000000..1504e744 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h @@ -0,0 +1,521 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + #import +#endif + +#import +#import +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/// Optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` +FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey +NS_SWIFT_NAME(AppEventsOverrideAppIDBundleKey); + +/** + Client-side event logging for specialized application analytics available through Facebook App Insights + and for use with Facebook Ads conversion tracking and optimization. + + The `FBSDKAppEvents` static class has a few related roles: + + + Logging predefined and application-defined events to Facebook App Insights with a + numeric value to sum across a large number of events, and an optional set of key/value + parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or + 'gamerLevel' : 'intermediate') + + + Logging events to later be used for ads optimization around lifetime value. + + + Methods that control the way in which events are flushed out to the Facebook servers. + + Here are some important characteristics of the logging mechanism provided by `FBSDKAppEvents`: + + + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers + in a number of situations: + - when an event count threshold is passed (currently 100 logged events). + - when a time threshold is passed (currently 15 seconds). + - when an app has gone to background and is then brought back to the foreground. + + + Events will be accumulated when the app is in a disconnected state, and sent when the connection is + restored and one of the above 'flush' conditions are met. + + + The `FBSDKAppEvents` class is thread-safe in that events may be logged from any of the app's threads. + + + The developer can set the `flushBehavior` on `FBSDKAppEvents` to force the flushing of events to only + occur on an explicit call to the `flush` method. + + + The developer can turn on console debug output for event logging and flushing to the server by using + the `FBSDKLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. + + Some things to note when logging events: + + + There is a limit on the number of unique event names an app can use, on the order of 1000. + + There is a limit to the number of unique parameter names in the provided parameters that can + be used per event, on the order of 25. This is not just for an individual call, but for all + invocations for that eventName. + + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and + must consist of alphanumeric characters, _, -, or spaces. + + The length of each parameter value can be no more than on the order of 100 characters. + */ +NS_SWIFT_NAME(AppEvents) +@interface FBSDKAppEvents : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The shared instance of AppEvents. +@property (class, nonatomic, readonly, strong) FBSDKAppEvents *shared; + +/// Control over event batching/flushing + +/// The current event flushing behavior specifying when events are sent back to Facebook servers. +@property (nonatomic) FBSDKAppEventsFlushBehavior flushBehavior; + +/** + Set the 'override' App ID for App Event logging. + + In some cases, apps want to use one Facebook App ID for login and social presence and another + for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but + want distinct logging.) By default, this value is `nil`, and defers to the `FBSDKAppEventsOverrideAppIDBundleKey` + plist value. If that's not set, it defaults to `Settings.shared.appID`. + + This should be set before any other calls are made to `AppEvents`. Thus, you should set it in your application + delegate's `application(_:didFinishLaunchingWithOptions:)` method. + */ +@property (nullable, nonatomic, copy) NSString *loggingOverrideAppID; + +/** + The custom user ID to associate with all app events. + + The userID is persisted until it is cleared by passing `nil`. + */ +@property (nullable, nonatomic, copy) NSString *userID; + +/// Returns generated anonymous id that persisted with current install of the app +@property (nonatomic, readonly) NSString *anonymousID; + +/* + * Basic event logging + */ + +/** + Log an event with just an event name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. + */ +- (void)logEvent:(FBSDKAppEventName)eventName; + +/** + Log an event with an event name and a numeric value to be aggregated with other events of this name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum; + +/** + Log an event with an event name and a set of key/value pairs in the parameters dictionary. + Parameter limitations are described above. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. Note that this is an `NSNumber`, and a value of `nil` denotes + that this event doesn't have a value associated with it for summation. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(nullable NSNumber *)valueToSum + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken; + +/* + * Purchase logging + */ + +/** + Log a purchase of the specified amount, in the specified currency. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency + NS_SWIFT_NAME(logPurchase(amount:currency:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/* + * Push Notifications Logging + */ + +/** + Log an app event that tracks that the application was open via Push Notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload + NS_SWIFT_NAME(logPushNotificationOpen(payload:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log an app event that tracks that a custom action was taken from a push notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + @param action Name of the action that was taken. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action + NS_SWIFT_NAME(logPushNotificationOpen(payload:action:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Uploads product catalog product item as an app event + + @param itemID Unique ID for the item. Can be a variant for a product. + Max size is 100. + @param availability If item is in stock. Accepted values are: + in stock - Item ships immediately + out of stock - No plan to restock + preorder - Available in future + available for order - Ships in 1-2 weeks + discontinued - Discontinued + @param condition Product condition: new, refurbished or used. + @param description Short text describing product. Max size is 5000. + @param imageLink Link to item image used in ad. + @param link Link to merchant's site where someone can buy the item. + @param title Title of item. + @param priceAmount Amount of purchase, in the currency specified by the 'currency' + parameter. This value will be rounded to the thousandths place + (e.g., 12.34567 becomes 12.346). + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + @param gtin Global Trade Item Number including UPC, EAN, JAN and ISBN + @param mpn Unique manufacture ID for product + @param brand Name of the brand + Note: Either gtin, mpn or brand is required. + @param parameters Optional fields for deep link specification. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logProductItem:(NSString *)itemID + availability:(FBSDKProductAvailability)availability + condition:(FBSDKProductCondition)condition + description:(NSString *)description + imageLink:(NSString *)imageLink + link:(NSString *)link + title:(NSString *)title + priceAmount:(double)priceAmount + currency:(NSString *)currency + gtin:(nullable NSString *)gtin + mpn:(nullable NSString *)mpn + brand:(nullable NSString *)brand + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logProductItem(id:availability:condition:description:imageLink:link:title:priceAmount:currency:gtin:mpn:brand:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. + This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless + one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. + In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the + app delegates' `applicationDidBecomeActive:` method. + + This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to + track user acquisition and app install ads conversions. + + `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. + "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" + event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much + time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data + is all visible in your app's App Events Insights. + */ +- (void)activateApp; + +/* + * Push Notifications Registration and Uninstall Tracking + */ + +/** + Sets and sends device token to register the current application for push notifications. + + Sets and sends a device token from the `Data` representation that you get from + `UIApplicationDelegate.application(_:didRegisterForRemoteNotificationsWithDeviceToken:)`. + + @param deviceToken Device token data. + */ +- (void)setPushNotificationsDeviceToken:(nullable NSData *)deviceToken; + +/** + Sets and sends device token string to register the current application for push notifications. + + Sets and sends a device token string + + @param deviceTokenString Device token string. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)setPushNotificationsDeviceTokenString:(nullable NSString *)deviceTokenString +NS_SWIFT_NAME(setPushNotificationsDeviceToken(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate + kick off. Server failures will be reported through the NotificationCenter with notification ID `FBSDKAppEventsLoggingResultNotification`. + */ +- (void)flush; + +/** + Creates a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. + Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, + and then use the resultant Custom Audience to target ads. + + The JSON in the request's response will include a "custom_audience_third_party_id" key/value pair with the value being the ID retrieved. + This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. + Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior + across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. + + The ID retrieved represents the Facebook user identified in the following way: if the specified access token is valid, + the ID will represent the user associated with that token; otherwise the ID will represent the user logged into the + native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out + at the iOS level from ad tracking, then a `nil` ID will be returned. + + This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage + via the `Settings.shared.isEventDataUsageLimited` flag, or a specific Facebook user cannot be identified. + + @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. + If `nil`, then `AccessToken.current` is used. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(nullable FBSDKAccessToken *)accessToken +NS_SWIFT_NAME(requestForCustomAudienceThirdPartyID(accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param email user's email + @param firstName user's first name + @param lastName user's last name + @param phone user's phone + @param dateOfBirth user's date of birth + @param gender user's gender + @param city user's city + @param state user's state + @param zip user's zip + @param country user's country + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the set user data else nil +- (nullable NSString *)getUserData; + +/// Clears the current user data +- (void)clearUserData; + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param data data + @param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone + */ +- (void)setUserData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type; + +/// Clears the current user data of certain type +- (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; + +#if !TARGET_OS_TV +/** + Intended to be used as part of a hybrid webapp. + If you call this method, the FB SDK will inject a new JavaScript object into your webview. + If the FB Pixel is used within the webview, and references the app ID of this app, + then it will detect the presence of this injected JavaScript object + and pass Pixel events back to the FB SDK for logging using the AppEvents framework. + + @param webView The webview to augment with the additional JavaScript behavior + */ +- (void)augmentHybridWebView:(WKWebView *)webView; +#endif + +/* + * Unity helper functions + */ + +/** + Set whether Unity is already initialized. + + @param isUnityInitialized Whether Unity is initialized. + */ +- (void)setIsUnityInitialized:(BOOL)isUnityInitialized; + +/// Send event bindings to Unity +- (void)sendEventBindingsToUnity; + +/* + * SDK Specific Event Logging + * Do not call directly outside of the SDK itself. + */ + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(nullable FBSDKAccessToken *)accessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h new file mode 100644 index 00000000..872ef491 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior) + + Specifies when `FBSDKAppEvents` sends log events to the server. + */ +typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushBehavior) { + /// Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. + FBSDKAppEventsFlushBehaviorAuto = 0, + + /** Only flush when the `flush` method is called. When an app is moved to background/terminated, the + events are persisted and re-established at activation, but they will only be written with an + explicit call to `flush`. */ + FBSDKAppEventsFlushBehaviorExplicitOnly, +} NS_SWIFT_NAME(AppEvents.FlushBehavior); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h new file mode 100644 index 00000000..159e27d7 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. +FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification +NS_SWIFT_NAME(AppEventsLoggingResult); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h new file mode 100644 index 00000000..a995c02e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// The version of the App Link protocol that this library supports +FOUNDATION_EXPORT NSString *const FBSDKAppLinkVersion +NS_SWIFT_NAME(AppLinkVersion); + +/** + Contains App Link metadata relevant for navigation on this device + derived from the HTML at a given URL. + */ +NS_SWIFT_NAME(AppLink) +@interface FBSDKAppLink : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a FBSDKAppLink with the given list of FBSDKAppLinkTargets and target URL. + + Generally, this will only be used by implementers of the FBSDKAppLinkResolving protocol, + as these implementers will produce App Link metadata for a given URL. + + @param sourceURL the URL from which this App Link is derived + @param targets an ordered list of FBSDKAppLinkTargets for this platform derived + from App Link metadata. + @param webURL the fallback web URL, if any, for the app link. + */ +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkWithSourceURL:(nullable NSURL *)sourceURL + targets:(NSArray *)targets + webURL:(nullable NSURL *)webURL +NS_SWIFT_NAME(init(sourceURL:targets:webURL:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL from which this FBSDKAppLink was derived +@property (nullable, nonatomic, readonly, strong) NSURL *sourceURL; + +/** + The ordered list of targets applicable to this platform that will be used + for navigation. + */ +@property (nonatomic, readonly, copy) NSArray> *targets; + +/// The fallback web URL to use if no targets are installed on this device. +@property (nullable, nonatomic, readonly, strong) NSURL *webURL; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h new file mode 100644 index 00000000..bfc1bbfc --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h @@ -0,0 +1,137 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import +#import + +@protocol FBSDKSettings; + +NS_ASSUME_NONNULL_BEGIN + +/// The result of calling navigate on a FBSDKAppLinkNavigation +typedef NS_ENUM(NSInteger, FBSDKAppLinkNavigationType) { + /// Indicates that the navigation failed and no app was opened + FBSDKAppLinkNavigationTypeFailure, + /// Indicates that the navigation succeeded by opening the URL in the browser + FBSDKAppLinkNavigationTypeBrowser, + /// Indicates that the navigation succeeded by opening the URL in an app on the device + FBSDKAppLinkNavigationTypeApp, +} NS_SWIFT_NAME(AppLinkNavigation.Type); + +/** + Describes the callback for appLinkFromURLInBackground. + @param navType the FBSDKAppLink representing the deferred App Link + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType navType, NSError *_Nullable error) +NS_SWIFT_NAME(AppLinkNavigationBlock); + +/** + Represents a pending request to navigate to an App Link. Most developers will + simply use navigateToURLInBackground: to open a URL, but developers can build + custom requests with additional navigation and app data attached to them by + creating FBSDKAppLinkNavigations themselves. + */ +NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension") +NS_SWIFT_NAME(AppLinkNavigation) +@interface FBSDKAppLinkNavigation : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The default resolver to be used for App Link resolution. If the developer has not set one explicitly, + a basic, built-in FBSDKWebViewAppLinkResolver will be used. + */ +@property (class, nonatomic, strong) id defaultResolver +NS_SWIFT_NAME(default); + +/** + The extras for the AppLinkNavigation. This will generally contain application-specific + data that should be passed along with the request, such as advertiser or affiliate IDs or + other such metadata relevant on this device. + */ +@property (nonatomic, readonly, copy) NSDictionary *extras; + +/** + The al_applink_data for the AppLinkNavigation. This will generally contain data common to + navigation attempts such as back-links, user agents, and other information that may be used + in routing and handling an App Link request. + */ +@property (nonatomic, readonly, copy) NSDictionary *appLinkData; + +/// The AppLink to navigate to +@property (nonatomic, readonly, strong) FBSDKAppLink *appLink; + +/** + Return navigation type for current instance. + No-side-effect version of navigate: + */ +@property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; + +// UNCRUSTIFY_FORMAT_OFF +/// Creates an AppLinkNavigation with the given link, extras, and App Link data ++ (instancetype)navigationWithAppLink:(FBSDKAppLink *)appLink + extras:(NSDictionary *)extras + appLinkData:(NSDictionary *)appLinkData + settings:(id)settings +NS_SWIFT_NAME(init(appLink:extras:appLinkData:settings:)); + +/** + Creates an NSDictionary with the correct format for iOS callback URLs, + to be used as 'appLinkData' argument in the call to navigationWithAppLink:extras:appLinkData: + */ ++ (NSDictionary *> *)callbackAppLinkDataForAppWithName:(NSString *)appName + url:(NSString *)url +NS_SWIFT_NAME(callbackAppLinkData(forApp:url:)); +// UNCRUSTIFY_FORMAT_ON + +/// Performs the navigation +- (FBSDKAppLinkNavigationType)navigate:(NSError **)error + __attribute__((swift_error(nonnull_error))); + +/// Returns a FBSDKAppLink for the given URL ++ (void)resolveAppLink:(NSURL *)destination handler:(FBSDKAppLinkBlock)handler; + +/// Returns a FBSDKAppLink for the given URL using the given App Link resolution strategy ++ (void)resolveAppLink:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkBlock)handler; + +/// Navigates to a FBSDKAppLink and returns whether it opened in-app or in-browser ++ (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink *)link error:(NSError **)error + __attribute__((swift_error(nonnull_error))); + +/** + Returns a FBSDKAppLinkNavigationType based on a FBSDKAppLink. + It's essentially a no-side-effect version of navigateToAppLink:error:, + allowing apps to determine flow based on the link type (e.g. open an + internal web view instead of going straight to the browser for regular links.) + */ ++ (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink *)link; + +/// Navigates to a URL (an asynchronous action) and returns a FBSDKNavigationType ++ (void)navigateToURL:(NSURL *)destination handler:(FBSDKAppLinkNavigationBlock)handler; + +/** + Navigates to a URL (an asynchronous action) using the given App Link resolution + strategy and returns a FBSDKNavigationType + */ ++ (void)navigateToURL:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkNavigationBlock)handler; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h new file mode 100644 index 00000000..23056a35 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLinks the FBSDKAppLinks representing the deferred App Links + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinksBlock)(NSDictionary *appLinks, + NSError *_Nullable error) +NS_SWIFT_NAME(AppLinksBlock); + +/** + Provides an implementation of the FBSDKAppLinkResolving protocol that uses the Facebook App Link + Index API to resolve App Links given a URL. It also provides an additional helper method that can resolve + multiple App Links in a single call. + + Usage of this type requires a client token. See `[FBSDKSettings setClientToken:]` + */ + +NS_SWIFT_NAME(AppLinkResolver) +@interface FBSDKAppLinkResolver : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + 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 *)urls handler:(FBSDKAppLinksBlock)handler + NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +/// Allocates and initializes a new instance of FBSDKAppLinkResolver. ++ (instancetype)resolver + NS_SWIFT_NAME(init()); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h new file mode 100644 index 00000000..41a9276d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h @@ -0,0 +1,46 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAppLink; + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLink the FBSDKAppLink representing the deferred App Link + @param error the error during the request, if any + */ +typedef void (^ FBSDKAppLinkBlock)(FBSDKAppLink *_Nullable appLink, NSError *_Nullable error) +NS_SWIFT_NAME(AppLinkBlock); + +/** + Implement this protocol to provide an alternate strategy for resolving + App Links that may include pre-fetching, caching, or querying for App Link + data from an index provided by a service provider. + */ +NS_SWIFT_NAME(AppLinkResolving) +@protocol FBSDKAppLinkResolving + +/** + Asynchronously resolves App Link data for a given URL. + + @param url The URL to resolve into an App Link. + @param handler The completion block that will return an App Link for the given URL. + */ +- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler + NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h new file mode 100644 index 00000000..75ecb373 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h @@ -0,0 +1,48 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a target defined in App Link metadata, consisting of at least + a URL, and optionally an App Store ID and name. + */ +NS_SWIFT_NAME(AppLinkTarget) +@interface FBSDKAppLinkTarget : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// Creates a FBSDKAppLinkTarget with the given app site and target URL. +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url + appStoreId:(nullable NSString *)appStoreId + appName:(NSString *)appName +NS_SWIFT_NAME(init(url:appStoreId:appName:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL prefix for this app link target +@property (nullable, nonatomic, readonly, strong) NSURL *URL; + +/// The app ID for the app store +@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; + +/// The name of the app +@property (nonatomic, readonly, copy) NSString *appName; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h new file mode 100644 index 00000000..2bd5cd39 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTargetProtocol.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A protocol to describe an AppLinkTarget +NS_SWIFT_NAME(AppLinkTargetProtocol) +@protocol FBSDKAppLinkTarget + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url + appStoreId:(nullable NSString *)appStoreId + appName:(NSString *)appName +NS_SWIFT_NAME(init(url:appStoreId:appName:)); +// UNCRUSTIFY_FORMAT_ON + +/// The URL prefix for this app link target +@property (nullable, nonatomic, readonly) NSURL *URL; + +/// The app ID for the app store +@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; + +/// The name of the app +@property (nonatomic, readonly, copy) NSString *appName; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h new file mode 100644 index 00000000..cc886b5e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h @@ -0,0 +1,75 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for fetchDeferredAppLink. + @param url the url representing the deferred App Link + @param error the error during the request, if any + + The url may also have a fb_click_time_utc query parameter that + represents when the click occurred that caused the deferred App Link to be created. + */ +typedef void (^ FBSDKURLBlock)(NSURL *_Nullable url, NSError *_Nullable error) +NS_SWIFT_NAME(URLBlock); + +/// Class containing App Links related utility methods. +NS_SWIFT_NAME(AppLinkUtility) +@interface FBSDKAppLinkUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Call this method from the main thread to fetch deferred applink data if you use Mobile App + Engagement Ads (https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads-engagement). + This may require a network round trip. If successful, the handler is invoked with the link + data (this will only return a valid URL once, and future calls will result in a nil URL + value in the callback). + + @param handler the handler to be invoked if there is deferred App Link data + + The handler may contain an NSError instance to capture any errors. In the + common case where there simply was no app link data, the NSError instance will be nil. + + This method should only be called from a location that occurs after any launching URL has + been processed (e.g., you should call this method from your application delegate's + applicationDidBecomeActive:). + */ ++ (void)fetchDeferredAppLink:(nullable FBSDKURLBlock)handler; + +/** + Call this method to fetch promotion code from the url, if it's present. + + @param url App Link url that was passed to the app. + + @return Promotion code string. + + Call this method to fetch App Invite Promotion Code from applink if present. + This can be used to fetch the promotion code that was associated with the invite when it + was created. This method should be called with the url from the openURL method. + */ ++ (nullable NSString *)appInvitePromotionCodeFromURL:(NSURL *)url; + +/** + Check whether the scheme is defined in the app's URL schemes. + @param scheme the scheme of App Link URL + @return YES if the scheme is defined, otherwise NO. + */ ++ (BOOL)isMatchURLScheme:(NSString *)scheme; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h new file mode 100644 index 00000000..c8b39faa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppURLSchemeProviding) +@protocol FBSDKAppURLSchemeProviding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, copy) NSString *appURLScheme; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)validateURLSchemes; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h new file mode 100644 index 00000000..ad1b6c78 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h @@ -0,0 +1,131 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The FBSDKApplicationDelegate is designed to post process the results from Facebook Login + or Facebook Dialogs (or any action that requires switching over to the native Facebook + app or Safari). + + The methods in this class are designed to mirror those in UIApplicationDelegate, and you + should call them in the respective methods in your AppDelegate implementation. + */ +NS_SWIFT_NAME(ApplicationDelegate) +@interface FBSDKApplicationDelegate : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +#if DEBUG && FBTEST +@property (nonnull, nonatomic, readonly) NSHashTable> *applicationObservers; +#endif + +/// Gets the singleton instance. +@property (class, nonatomic, readonly, strong) FBSDKApplicationDelegate *sharedInstance +NS_SWIFT_NAME(shared); + +/** + Call this method from the [UIApplicationDelegate application:continue:restorationHandler:] method + of the AppDelegate for your app. It should be invoked in order to properly process the web URL (universal link) + once the end user is redirected to your app. + + @param application The application as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + @param userActivity The user activity as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. +*/ +- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity; + +/** + Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +/** + Call this method from the [UIApplicationDelegate application:openURL:options:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:options:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:options:]. + + @param options The options dictionary as passed to [UIApplicationDelegate application:openURL:options:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options; + +/** + Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method + of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + + @param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @return True if there are any added application observers that themselves return true from calling `application:didFinishLaunchingWithOptions:`. + Otherwise will return false. Note: If this method is called after calling `initializeSDK` then the return type will always be false. + */ +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +/** + Initializes the SDK. + + If you are using the SDK within the context of the UIApplication lifecycle, do not use this method. + Instead use `application: didFinishLaunchingWithOptions:`. + + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + */ +- (void)initializeSDK; + +/** + Adds an observer that will be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)addObserver:(id)observer; + +/** + Removes an observer so that it will no longer be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)removeObserver:(id)observer; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h new file mode 100644 index 00000000..14de8940 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + Describes any types that optionally responds to various lifecycle events + received by the system and propagated by `ApplicationDelegate`. + */ +@protocol FBSDKApplicationObserving + +@optional +- (void)applicationDidBecomeActive:(nullable UIApplication *)application; +- (void)applicationWillResignActive:(nullable UIApplication *)application; +- (void)applicationDidEnterBackground:(nullable UIApplication *)application; +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h new file mode 100644 index 00000000..90648c92 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAuthenticationTokenClaims; +@protocol FBSDKTokenCaching; + +NS_ASSUME_NONNULL_BEGIN + +/// Represent an AuthenticationToken used for a login attempt +NS_SWIFT_NAME(AuthenticationToken) +@interface FBSDKAuthenticationToken : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The "global" authentication token that represents the currently logged in user. + + The `currentAuthenticationToken` represents the authentication token of the + current user and can be used by a client to verify an authentication attempt. + */ +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +/// The raw token string from the authentication response +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// The nonce from the decoded authentication response +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The graph domain where the user is authenticated. +@property (nonatomic, readonly, copy) NSString *graphDomain; + +/// Returns the claims encoded in the AuthenticationToken +- (nullable FBSDKAuthenticationTokenClaims *)claims; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h new file mode 100644 index 00000000..874fe073 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h @@ -0,0 +1,89 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenClaims) +@interface FBSDKAuthenticationTokenClaims : NSObject + +/// A unique identifier for the token. +@property (nonatomic, readonly, strong) NSString *jti; + +/// Issuer Identifier for the Issuer of the response. +@property (nonatomic, readonly, strong) NSString *iss; + +/// Audience(s) that this ID Token is intended for. +@property (nonatomic, readonly, strong) NSString *aud; + +/// String value used to associate a Client session with an ID Token, and to mitigate replay attacks. +@property (nonatomic, readonly, strong) NSString *nonce; + +/// Expiration time on or after which the ID Token MUST NOT be accepted for processing. +@property (nonatomic, readonly, assign) NSTimeInterval exp; + +/// Time at which the JWT was issued. +@property (nonatomic, readonly, assign) NSTimeInterval iat; + +/// Subject - Identifier for the End-User at the Issuer. +@property (nonatomic, readonly, strong) NSString *sub; + +/// End-User's full name in displayable form including all name parts. +@property (nullable, nonatomic, readonly, strong) NSString *name; + +/// End-User's given name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *givenName; + +/// End-User's middle name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *middleName; + +/// End-User's family name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *familyName; + +/** + End-User's preferred e-mail address. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSString *email; + +/// URL of the End-User's profile picture. +@property (nullable, nonatomic, readonly, strong) NSString *picture; + +/** + End-User's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSArray *userFriends; + +/// End-User's birthday +@property (nullable, nonatomic, readonly, strong) NSString *userBirthday; + +/// End-User's age range +@property (nullable, nonatomic, readonly, strong) NSDictionary *userAgeRange; + +/// End-User's hometown +@property (nullable, nonatomic, readonly, strong) NSDictionary *userHometown; + +/// End-User's location +@property (nullable, nonatomic, readonly, strong) NSDictionary *userLocation; + +/// End-User's gender +@property (nullable, nonatomic, readonly, strong) NSString *userGender; + +/// End-User's link +@property (nullable, nonatomic, readonly, strong) NSString *userLink; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h new file mode 100644 index 00000000..4f642307 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenProviding) +@protocol FBSDKAuthenticationTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAuthenticationToken *currentAuthenticationToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_SWIFT_NAME(AuthenticationTokenSetting) +@protocol FBSDKAuthenticationTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h new file mode 100644 index 00000000..75036b66 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPI.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + #import + #import + #import + #import + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPI) +@interface FBSDKBridgeAPI : NSObject + +@property (class, nonatomic, readonly, strong) FBSDKBridgeAPI *sharedInstance +NS_SWIFT_NAME(shared); +@property (nonatomic, readonly, getter = isActive) BOOL active; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h new file mode 100644 index 00000000..d394ff30 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocol.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIAppIDKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPISchemeSuffixKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIVersionKey; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIProtocol) +@protocol FBSDKBridgeAPIProtocol + +- (nullable NSURL *)requestURLWithActionID:(NSString *)actionID + scheme:(NSString *)scheme + methodName:(NSString *)methodName + parameters:(NSDictionary *)parameters + error:(NSError *_Nullable *)errorRef; +- (nullable NSDictionary *)responseParametersForActionID:(NSString *)actionID + queryParameters:(NSDictionary *)queryParameters + cancelled:(nullable BOOL *)cancelledRef + error:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h new file mode 100644 index 00000000..7f866232 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIProtocolType.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKBridgeAPIProtocolType) { + FBSDKBridgeAPIProtocolTypeNative, + FBSDKBridgeAPIProtocolTypeWeb, +}; + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h new file mode 100644 index 00000000..b55f8704 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequest.h @@ -0,0 +1,50 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequest) +@interface FBSDKBridgeAPIRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; ++ (nullable instancetype)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(FBSDKURLScheme)scheme + methodName:(nullable NSString *)methodName + parameters:(nullable NSDictionary *)parameters + userInfo:(nullable NSDictionary *)userInfo; + +@property (nonatomic, readonly, copy) NSString *actionID; +@property (nullable, nonatomic, readonly, copy) NSString *methodName; +@property (nullable, nonatomic, readonly, copy) NSDictionary *parameters; +@property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType; +@property (nonatomic, readonly, copy) FBSDKURLScheme scheme; +@property (nullable, nonatomic, readonly, copy) NSDictionary *userInfo; + +- (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h new file mode 100644 index 00000000..5c76020d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestCreating.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@protocol FBSDKBridgeAPIRequest; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestCreating) +@protocol FBSDKBridgeAPIRequestCreating + +- (nullable id)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(NSString *)scheme + methodName:(nullable NSString *)methodName + parameters:(nullable NSDictionary *)parameters + userInfo:(nullable NSDictionary *)userInfo; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h new file mode 100644 index 00000000..11039fb5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestOpening.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import +#import + +#import +#import + +@protocol FBSDKBridgeAPIRequest; +@protocol FBSDKURLOpening; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestOpening) +@protocol FBSDKBridgeAPIRequestOpening + +- (void)openBridgeAPIRequest:(NSObject *)request + useSafariViewController:(BOOL)useSafariViewController + fromViewController:(nullable UIViewController *)fromViewController + completionBlock:(FBSDKBridgeAPIResponseBlock)completionBlock; + +// UNCRUSTIFY_FORMAT_OFF +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(nullable id)sender + fromViewController:(nullable UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler +NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +- (void)openURL:(NSURL *)url + sender:(nullable id)sender + handler:(FBSDKSuccessBlock)handler; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h new file mode 100644 index 00000000..4cdbd851 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIRequestProtocol.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@protocol FBSDKBridgeAPIProtocol; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIRequestProtocol) +@protocol FBSDKBridgeAPIRequest + +@property (nonatomic, readonly, copy) NSString *scheme; +@property (nonatomic, readonly, copy) NSString *actionID; +@property (nullable, nonatomic, readonly, copy) NSString *methodName; +@property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType; +@property (nullable, nonatomic, readonly, strong) id protocol; + +- (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h new file mode 100644 index 00000000..d9c3c3e0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKBridgeAPIResponse.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@protocol FBSDKBridgeAPIRequest; +@class FBSDKBridgeAPIResponse; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^ FBSDKBridgeAPIResponseBlock)(FBSDKBridgeAPIResponse *response) +NS_SWIFT_NAME(BridgeAPIResponseBlock); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(BridgeAPIResponse) +@interface FBSDKBridgeAPIResponse : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (instancetype)bridgeAPIResponseWithRequest:(NSObject *)request error:(NSError *)error; ++ (nullable instancetype)bridgeAPIResponseWithRequest:(NSObject *)request + responseURL:(NSURL *)responseURL + sourceApplication:(nullable NSString *)sourceApplication + error:(NSError *__autoreleasing *)errorRef; ++ (instancetype)bridgeAPIResponseCancelledWithRequest:(NSObject *)request; + +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; +@property (nullable, nonatomic, readonly, copy) NSError *error; +@property (nonatomic, readonly, copy) NSObject *request; +@property (nullable, nonatomic, readonly, copy) NSDictionary *responseParameters; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButton.h new file mode 100644 index 00000000..beae11a1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButton.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +@class FBSDKIcon; + +NS_ASSUME_NONNULL_BEGIN + +/// A base class for common SDK buttons. +NS_SWIFT_NAME(FBButton) +@interface FBSDKButton : FBSDKImpressionLoggingButton + +@property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled; + +- (void)checkImplicitlyDisabled; +- (void)configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void) configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor + selectedTitle:(nullable NSString *)selectedTitle + selectedIcon:(nullable FBSDKIcon *)selectedIcon + selectedColor:(nullable UIColor *)selectedColor + selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (UIColor *)defaultBackgroundColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logTapEventWithEventName:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h new file mode 100644 index 00000000..806edb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FBButtonImpressionLogging) +@protocol FBSDKButtonImpressionLogging + +@property (nullable, nonatomic, readonly, copy) NSDictionary *analyticsParameters; +@property (nonatomic, readonly, copy) FBSDKAppEventName impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString *impressionTrackingIdentifier; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKConstants.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKConstants.h new file mode 100644 index 00000000..d746dca3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKConstants.h @@ -0,0 +1,206 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKCoreKit. + + Error codes from the SDK in the range 0-99 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKErrorDomain +NS_SWIFT_NAME(ErrorDomain); + +/* + @methodgroup error userInfo keys + */ + +/** + The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. + + If the invalid argument is a collection, the collection can be found with this key and the individual + invalid item can be found with FBSDKErrorArgumentValueKey. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey +NS_SWIFT_NAME(ErrorArgumentCollectionKey); + +/// The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey +NS_SWIFT_NAME(ErrorArgumentNameKey); + +/// The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey +NS_SWIFT_NAME(ErrorArgumentValueKey); + +/** + The userInfo key for the message for developers in NSErrors that originate from the SDK. + + The developer message will not be localized and is not intended to be presented within the app. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey +NS_SWIFT_NAME(ErrorDeveloperMessageKey); + +/// The userInfo key describing a localized description that can be presented to the user. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey +NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); + +/// The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey +NS_SWIFT_NAME(ErrorLocalizedTitleKey); + +/* + @methodgroup FBSDKGraphRequest error userInfo keys + */ + +/** + The userInfo key describing the error category, for error recovery purposes. + + See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorKey +NS_SWIFT_NAME(GraphRequestErrorKey); + +/* + The userInfo key for the Graph API error code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); + +/* + The userInfo key for the Graph API error subcode. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); + +/* + The userInfo key for the HTTP status code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey +NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); + +/* + The userInfo key for the raw JSON response. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey +NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); + +/* + @methodgroup Common Code Block typedefs + */ + +/// Success Block +typedef void (^ FBSDKCodeBlock)(void) +NS_SWIFT_NAME(CodeBlock); + +/// Error Block +typedef void (^ FBSDKErrorBlock)(NSError *_Nullable error) +NS_SWIFT_NAME(ErrorBlock); + +/// Success Block +typedef void (^ FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) +NS_SWIFT_NAME(SuccessBlock); + +/* + @methodgroup Enums + */ + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKCoreError + Error codes for FBSDKErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKErrorDomain, FBSDKCoreError) +{ + /// Reserved. + FBSDKErrorReserved = 0, + + /// The error code for errors from invalid encryption on incoming encryption URLs. + FBSDKErrorEncryption, + + /// The error code for errors from invalid arguments to SDK methods. + FBSDKErrorInvalidArgument, + + /// The error code for unknown errors. + FBSDKErrorUnknown, + + /** + A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve + the error object from the NSURLSession for more information. + */ + FBSDKErrorNetwork, + + /// The error code for errors encountered during an App Events flush. + FBSDKErrorAppEventsFlush, + + /** + An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. + + Endpoints that return image/jpg, etc. should be accessed using NSURLRequest + */ + FBSDKErrorGraphRequestNonTextMimeTypeReturned, + + /** + The operation failed because the server returned an unexpected response. + + You can get this error if you are not using the most recent SDK, or you are accessing a version of the + Graph API incompatible with the current SDK. + */ + FBSDKErrorGraphRequestProtocolMismatch, + + /** + The Graph API returned an error. + + See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) + */ + FBSDKErrorGraphRequestGraphAPI, + + /** + The specified dialog configuration is not available. + + This error may signify that the configuration for the dialogs has not yet been downloaded from the server + or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. + */ + FBSDKErrorDialogUnavailable, + + /// Indicates an operation failed because a required access token was not found. + FBSDKErrorAccessTokenRequired, + + /// Indicates an app switch (typically for a dialog) failed because the destination app is out of date. + FBSDKErrorAppVersionUnsupported, + + /// Indicates an app switch to the browser (typically for a dialog) failed. + FBSDKErrorBrowserUnavailable, + + /// Indicates that a bridge api interaction was interrupted. + FBSDKErrorBridgeAPIInterruption, + + /// Indicates that a bridge api response creation failed. + FBSDKErrorBridgeAPIResponse, +} NS_SWIFT_NAME(CoreError); + +/** + FBSDKGraphRequestError + Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. + */ +typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) { + /// The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. + FBSDKGraphRequestErrorOther = 0, + /// Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. + FBSDKGraphRequestErrorTransient = 1, + /// Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. + FBSDKGraphRequestErrorRecoverable = 2, +} NS_SWIFT_NAME(GraphRequestError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h new file mode 100644 index 00000000..6243096e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h @@ -0,0 +1,514 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h new file mode 100644 index 00000000..8a4569c0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h @@ -0,0 +1,112 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import + +#if !TARGET_OS_TV + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h new file mode 100644 index 00000000..e9eb97c5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#define FBSDK_VERSION_STRING @"13.1.0" +#define FBSDK_DEFAULT_GRAPH_API_VERSION @"v13.0" diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h new file mode 100644 index 00000000..73ac8512 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceButton) +@interface FBSDKDeviceButton : FBSDKButton +- (CGSize)sizeThatFits:(CGSize)size attributedTitle:(NSAttributedString *)title; +- (nullable NSAttributedString *)attributedTitleStringFromString:(NSString *)string; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h new file mode 100644 index 00000000..b98e1221 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +NS_SWIFT_NAME(FBDeviceDialogView) +@interface FBSDKDeviceDialogView : UIView + +@property (nonatomic, weak) id delegate; +@property (nonatomic, copy) NSString *confirmationCode; + +// override point for subclasses. +- (void)buildView; + +@end + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate + +- (void)deviceDialogViewDidCancel:(FBSDKDeviceDialogView *)deviceDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h new file mode 100644 index 00000000..b4e309a9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceViewControllerBase) +@interface FBSDKDeviceViewControllerBase : UIViewController +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h new file mode 100644 index 00000000..a46a303e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(DynamicFrameworkLoaderProxy) +@interface FBSDKDynamicFrameworkLoaderProxy : NSObject +/** + Load the kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value from the Security Framework + + @return The kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h new file mode 100644 index 00000000..bad1414d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Social Constants + +/// Dynamically loaded constant for SLServiceTypeFacebook +FOUNDATION_EXPORT NSString *fbsdkdfl_SLServiceTypeFacebook(void); + +#pragma mark - Social Classes + +FOUNDATION_EXPORT Class fbsdkdfl_SLComposeViewControllerClass(void); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h new file mode 100644 index 00000000..85c9e191 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorCreating) +@protocol FBSDKErrorCreating + +// MARK: - General Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithCode:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(domain:code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Invalid Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(domain:name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Required Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithName:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(requiredArgumentError(name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError + NS_SWIFT_NAME(requiredArgumentError(domain:name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Unknown Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)unknownErrorWithMessage:(nullable NSString *)message + userInfo:(nullable NSDictionary *)userInfo +NS_SWIFT_NAME(unknownError(message:userInfo:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h new file mode 100644 index 00000000..217c00be --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorFactory) +@interface FBSDKErrorFactory : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h new file mode 100644 index 00000000..b005f8eb --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A formal protocol very similar to the informal protocol NSErrorRecoveryAttempting + Internal use only + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ErrorRecoveryAttempting) +@protocol FBSDKErrorRecoveryAttempting + +/** + Attempt the recovery + @param error the error + @param completionHandler the handler called upon completion of error recovery + + Attempt recovery from the error, and call the completion handler. The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. + */ +- (void)attemptRecoveryFromError:(NSError *)error + completionHandler:(void (^)(BOOL didRecover))completionHandler; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeature.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeature.h new file mode 100644 index 00000000..1ddf4d2f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeature.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + FBSDKFeature enum + Defines features in SDK + + Sample: + FBSDKFeatureAppEvents = 0x00010000, + ^ ^ ^ ^ + | | | | + kit | | | + feature | | + sub-feature | + sub-sub-feature + 1st byte: kit + 2nd byte: feature + 3rd byte: sub-feature + 4th byte: sub-sub-feature + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKFeature) { + FBSDKFeatureNone = 0x00000000, + // Features in CoreKit + /// Essential of CoreKit + FBSDKFeatureCore = 0x01000000, + /// App Events + FBSDKFeatureAppEvents = 0x01010000, + FBSDKFeatureCodelessEvents = 0x01010100, + FBSDKFeatureRestrictiveDataFiltering = 0x01010200, + FBSDKFeatureAAM = 0x01010300, + FBSDKFeaturePrivacyProtection = 0x01010400, + FBSDKFeatureSuggestedEvents = 0x01010401, + FBSDKFeatureIntelligentIntegrity = 0x01010402, + FBSDKFeatureModelRequest = 0x01010403, + FBSDKFeatureEventDeactivation = 0x01010500, + FBSDKFeatureSKAdNetwork = 0x01010600, + FBSDKFeatureSKAdNetworkConversionValue = 0x01010601, + FBSDKFeatureATELogging = 0x01010700, + FBSDKFeatureAEM = 0x01010800, + FBSDKFeatureAEMConversionFiltering = 0x01010801, + FBSDKFeatureAEMCatalogMatching = 0x01010802, + /// Instrument + FBSDKFeatureInstrument = 0x01020000, + FBSDKFeatureCrashReport = 0x01020100, + FBSDKFeatureCrashShield = 0x01020101, + FBSDKFeatureErrorReport = 0x01020200, + + // Features in LoginKit + /// Essential of LoginKit + FBSDKFeatureLogin = 0x02000000, + + // Features in ShareKit + /// Essential of ShareKit + FBSDKFeatureShare = 0x03000000, + + // Features in GamingServicesKit + /// Essential of GamingServicesKit + FBSDKFeatureGamingServices = 0x04000000, +} NS_SWIFT_NAME(SDKFeature); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKFeatureManagerBlock)(BOOL enabled); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h new file mode 100644 index 00000000..bdb5d532 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FeatureChecking) +@protocol FBSDKFeatureChecking + +- (BOOL)isEnabled:(FBSDKFeature)feature; + +- (void)checkFeature:(FBSDKFeature)feature + completionBlock:(FBSDKFeatureManagerBlock)completionBlock; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h new file mode 100644 index 00000000..1fee9ddd --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h @@ -0,0 +1,97 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphErrorRecoveryProcessor; +@protocol FBSDKGraphRequest; + +/// Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`. +NS_SWIFT_NAME(GraphErrorRecoveryProcessorDelegate) +@protocol FBSDKGraphErrorRecoveryProcessorDelegate + +/** + Indicates the error recovery has been attempted. + @param processor the processor instance. + @param didRecover YES if the recovery was successful. + @param error the error that that was attempted to be recovered from. + */ +- (void)processorDidAttemptRecovery:(FBSDKGraphErrorRecoveryProcessor *)processor + didRecover:(BOOL)didRecover + error:(nullable NSError *)error; + +@optional +/** + Indicates the processor is about to process the error. + @param processor the processor instance. + @param error the error is about to be processed. + + return NO if the processor should not process the error. For example, + if you want to prevent alerts of localized messages but otherwise perform retries and recoveries, + you could return NO for errors where userInfo[FBSDKGraphRequestErrorKey] equal to FBSDKGraphRequestErrorOther + */ +- (BOOL)processorWillProcessError:(FBSDKGraphErrorRecoveryProcessor *)processor + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END + +NS_ASSUME_NONNULL_BEGIN + +/** + Defines a type that can process Facebook NSErrors with best practices. + + Facebook NSErrors can contain FBSDKErrorRecoveryAttempting instances to recover from errors, or + localized messages to present to the user. This class will process the instances as follows: + + 1. If the error is temporary as indicated by FBSDKGraphRequestErrorKey, assume the recovery succeeded and + notify the delegate. + 2. If a FBSDKErrorRecoveryAttempting instance is available, display an alert (dispatched to main thread) + with the recovery options and call the instance's attemptRecoveryFromError method. + 3. If a FBSDKErrorRecoveryAttempting is not available, check the userInfo for FBSDKLocalizedErrorDescriptionKey + and present that in an alert (dispatched to main thread). + + By default, FBSDKGraphRequests use this type to process errors and retry the request upon a successful + recovery. + + Note that Facebook recovery attempters can present UI or even cause app switches (such as to login). Any such + work is dispatched to the main thread (therefore your request handlers may then run on the main thread). + + Login recovery requires FBSDKLoginKit. Login will prompt the user + for all permissions last granted. If any are declined on the new request, the recovery is not successful but + the `[FBSDKAccessToken currentAccessToken]` might still have been updated. + . + */ +NS_SWIFT_NAME(GraphErrorRecoveryProcessor) +@interface FBSDKGraphErrorRecoveryProcessor : NSObject + +/// Initializes a GraphErrorRecoveryProcessor with an access token string. +- (instancetype)initWithAccessTokenString:(NSString *)accessTokenString; + +/** + Attempts to process the error, return YES if the error can be processed. + @param error the error to process. + @param request the related request that may be reissued. + @param delegate the delegate that will be retained until recovery is complete. + */ +- (BOOL)processError:(NSError *)error + request:(id)request + delegate:(nullable id)delegate; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h new file mode 100644 index 00000000..bd149522 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h @@ -0,0 +1,167 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +/** + Represents a request to the Facebook Graph API. + + `FBSDKGraphRequest` encapsulates the components of a request (the + Graph API path, the parameters, error recovery behavior) and should be + used in conjunction with `FBSDKGraphRequestConnection` to issue the request. + + Nearly all Graph APIs require an access token. Unless specified, the + `[FBSDKAccessToken currentAccessToken]` is used. Therefore, most requests + will require login first (see `FBSDKLoginManager` in FBSDKLoginKit.framework). + + A `- start` method is provided for convenience for single requests. + + By default, FBSDKGraphRequest will attempt to recover any errors returned from + Facebook. You can disable this via `disableErrorRecovery:`. + + See FBSDKGraphErrorRecoveryProcessor + */ +NS_SWIFT_NAME(GraphRequest) +@interface FBSDKGraphRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void) configureWithSettings:(id)settings + currentAccessTokenStringProvider:(Class)accessTokenProvider + graphRequestConnectionFactory:(id)_graphRequestConnectionFactory +NS_SWIFT_NAME(configure(settings:currentAccessTokenStringProvider:graphRequestConnectionFactory:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param version the optional Graph API version (e.g., @"v2.0"). nil defaults to `[FBSDKSettings graphAPIVersion]`. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method + NS_DESIGNATED_INITIALIZER; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param requestFlags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)requestFlags; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param HTTPMethod the HTTP method. Empty String defaults to @"GET". + @param flags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable NSString *)HTTPMethod + flags:(FBSDKGraphRequestFlags)flags; + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/** + If set, disables the automatic error recovery mechanism. + @param disable whether to disable the automatic error recovery mechanism + + By default, non-batched FBSDKGraphRequest instances will automatically try to recover + from errors by constructing a `FBSDKGraphErrorRecoveryProcessor` instance that + re-issues the request on successful recoveries. The re-issued request will call the same + handler as the receiver but may occur with a different `FBSDKGraphRequestConnection` instance. + + This will override [FBSDKSettings setGraphErrorRecoveryDisabled:]. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setGraphErrorRecoveryDisabled:(BOOL)disable +NS_SWIFT_NAME(setGraphErrorRecovery(disabled:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h new file mode 100644 index 00000000..a64cb00d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequest; +@protocol FBSDKGraphRequestConnecting; +@protocol FBSDKGraphRequestConnectionDelegate; + +/** + FBSDKGraphRequestCompletion + + A block that is passed to addRequest to register for a callback with the results of that + request once the connection completes. + + Pass a block of this type when calling addRequest. This will be called once + the request completes. The call occurs on the UI thread. + + @param connection The connection that sent the request. + + @param result The result of the request. This is a translation of + JSON data to `NSDictionary` and `NSArray` objects. This + is nil if there was an error. + + @param error The `NSError` representing any error that occurred. + */ +NS_SWIFT_NAME(GraphRequestCompletion) +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe an object that can manage graph requests +NS_SWIFT_NAME(GraphRequestConnecting) +@protocol FBSDKGraphRequestConnecting + +@property (nonatomic, assign) NSTimeInterval timeout; +@property (nullable, nonatomic, weak) id delegate; + +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)handler; + +- (void)start; +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h new file mode 100644 index 00000000..99966bf1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h @@ -0,0 +1,173 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The key in the result dictionary for requests to old versions of the Graph API + whose response is not a JSON object. + + When a request returns a non-JSON response (such as a "true" literal), that response + will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API + prior to v2.1. + */ +FOUNDATION_EXPORT NSString *const FBSDKNonJSONResponseProperty +NS_SWIFT_NAME(NonJSONResponseProperty); + +@protocol FBSDKGraphRequest; + +/** + The `FBSDKGraphRequestConnection` represents a single connection to Facebook to service a request. + + The request settings are encapsulated in a reusable object. The + `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication + e.g. starting a connection, canceling a connection, or batching requests. + */ +NS_SWIFT_NAME(GraphRequestConnection) +@interface FBSDKGraphRequestConnection : NSObject + +/// The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. +@property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; + +/// The delegate object that receives updates. +@property (nullable, nonatomic, weak) id delegate; + +/// Gets or sets the timeout interval to wait for a response before giving up. +@property (nonatomic, assign) NSTimeInterval timeout; + +/** + The raw response that was returned from the server. (readonly) + + This property can be used to inspect HTTP headers that were returned from + the server. + + The property is nil until the request completes. If there was a response + then this property will be non-nil during the FBSDKGraphRequestBlock callback. + */ +@property (nullable, nonatomic, readonly, retain) NSHTTPURLResponse *urlResponse; + +/** + Determines the operation queue that is used to call methods on the connection's delegate. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + You cannot reschedule a connection after it has started. + */ +@property (nullable, nonatomic) NSOperationQueue *delegateQueue; + +/// @methodgroup Class methods + +/// @methodgroup Adding requests + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + @param completion A handler to call back when the round-trip completes or times out. + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. + */ +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + The handler will be invoked on the main thread. + + @param name A name for this request. This can be used to feed + the results of one request to the input of another in the same + `FBSDKGraphRequestConnection` as described in + [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + name:(NSString *)name + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + + @param parameters The dictionary of parameters to include for this request + as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + Examples include "depends_on", "name", or "omit_response_on_success". + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + parameters:(nullable NSDictionary *)parameters + completion:(FBSDKGraphRequestCompletion)completion; + +/// @methodgroup Instance methods + +/** + @method + + Signals that a connection should be logically terminated as the + application is no longer interested in a response. + + Synchronously calls any handlers indicating the request was cancelled. Cancel + does not guarantee that the request-related processing will cease. It + does promise that all handlers will complete before the cancel returns. A call to + cancel prior to a start implies a cancellation of all requests associated + with the connection. + */ +- (void)cancel; + +/** + @method + + This method starts a connection with the server and is capable of handling all of the + requests that were added to the connection. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + See `setDelegateQueue:` for other options. + + This method cannot be called twice for an `FBSDKGraphRequestConnection` instance. + */ +- (void)start; + +/** + @method + + Overrides the default version for a batch request + + The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning + for applications. If you want to override the version part while using batch requests on the connection, call + this method to set the version for the batch request. + + @param version This is a string in the form @"v2.0" which will be used for the version part of an API path + */ +- (void)overrideGraphAPIVersion:(NSString *)version; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h new file mode 100644 index 00000000..738ad47d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h @@ -0,0 +1,93 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKGraphRequestConnectionDelegate` protocol defines the methods used to receive network + activity progress information from a . + */ +NS_SWIFT_NAME(GraphRequestConnectionDelegate) +@protocol FBSDKGraphRequestConnectionDelegate + +@optional + +/** + @method + + Tells the delegate the request connection will begin loading + + If the is created using one of the convenience factory methods prefixed with + start, the object returned from the convenience method has already begun loading and this method + will not be called when the delegate is set. + + @param connection The request connection that is starting a network request + */ +- (void)requestConnectionWillBeginLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection finished loading + + If the request connection completes without a network error occurring then this method is called. + Invocation of this method does not indicate success of every made, only that the + request connection has no further activity. Use the error argument passed to the FBSDKGraphRequestBlock + block to determine success or failure of each . + + This method is invoked after the completion handler for each . + + @param connection The request connection that successfully completed a network request + */ +- (void)requestConnectionDidFinishLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection failed with an error + + If the request connection fails with a network error then this method is called. The `error` + argument specifies why the network connection failed. The `NSError` object passed to the + FBSDKGraphRequestBlock block may contain additional information. + + @param connection The request connection that successfully completed a network request + @param error The `NSError` representing the network error that occurred, if any. May be nil + in some circumstances. Consult the `NSError` for the for reliable + failure information. + */ +- (void)requestConnection:(id)connection + didFailWithError:(NSError *)error; + +/** + @method + + Tells the delegate how much data has been sent and is planned to send to the remote host + + The byte count arguments refer to the aggregated objects, not a particular . + + Like `NSURLSession`, the values may change in unexpected ways if data needs to be resent. + + @param connection The request connection transmitting data to a remote host + @param bytesWritten The number of bytes sent in the last transmission + @param totalBytesWritten The total number of bytes sent to the remote host + @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host + */ +- (void) requestConnection:(id)connection + didSendBodyData:(NSInteger)bytesWritten + totalBytesWritten:(NSInteger)totalBytesWritten + totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h new file mode 100644 index 00000000..19e62d20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequestConnecting`. + */ +NS_SWIFT_NAME(GraphRequestConnectionFactory) +@interface FBSDKGraphRequestConnectionFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h new file mode 100644 index 00000000..96b43dfa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestConnecting; + +/// Describes anything that can provide instances of `FBSDKGraphRequestConnecting` +NS_SWIFT_NAME(GraphRequestConnectionFactoryProtocol) +@protocol FBSDKGraphRequestConnectionFactory + +- (id)createGraphRequestConnection; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h new file mode 100644 index 00000000..3775cb4f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A container class for data attachments so that additional metadata can be provided about the attachment. +NS_SWIFT_NAME(GraphRequestDataAttachment) +@interface FBSDKGraphRequestDataAttachment : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes the receiver with the attachment data and metadata. + @param data The attachment data (retained, not copied) + @param filename The filename for the attachment + @param contentType The content type for the attachment + */ +- (instancetype)initWithData:(NSData *)data + filename:(NSString *)filename + contentType:(NSString *)contentType + NS_DESIGNATED_INITIALIZER; + +/// The content type for the attachment. +@property (nonatomic, readonly, copy) NSString *contentType; + +/// The attachment data. +@property (nonatomic, readonly, strong) NSData *data; + +/// The filename for the attachment. +@property (nonatomic, readonly, copy) NSString *filename; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h new file mode 100644 index 00000000..6661ac1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestFactory; + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequest` + */ +NS_SWIFT_NAME(GraphRequestFactory) +@interface FBSDKGraphRequestFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h new file mode 100644 index 00000000..eb85a3ba --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +@protocol FBSDKGraphRequest; + +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + +Describes anything that can provide instances of `GraphRequestProtocol` + */ +NS_SWIFT_NAME(GraphRequestFactoryProtocol) +@protocol FBSDKGraphRequestFactory + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable FBSDKHTTPMethod)method + flags:(FBSDKGraphRequestFlags)flags; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)flags; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h new file mode 100644 index 00000000..68e7c8da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags that indicate how a graph request should be treated in various scenarios +typedef NS_OPTIONS(NSUInteger, FBSDKGraphRequestFlags) { + FBSDKGraphRequestFlagNone = 0, + /// indicates this request should not use a client token as its token parameter + FBSDKGraphRequestFlagSkipClientToken = 1 << 1, + /// indicates this request should not close the session if its response is an oauth error + FBSDKGraphRequestFlagDoNotInvalidateTokenOnError = 1 << 2, + /// indicates this request should not perform error recovery + FBSDKGraphRequestFlagDisableErrorRecovery = 1 << 3, +} NS_SWIFT_NAME(GraphRequestFlags); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h new file mode 100644 index 00000000..e79728d9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// typedef for FBSDKHTTPMethod +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +/// GET Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodGET NS_SWIFT_NAME(get); + +/// POST Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodPOST NS_SWIFT_NAME(post); + +/// DELETE Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodDELETE NS_SWIFT_NAME(delete); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h new file mode 100644 index 00000000..6cc4da38 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphRequestConnection; +@protocol FBSDKGraphRequestConnecting; + +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +typedef void (^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection *_Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe anything that represents a graph request +NS_SWIFT_NAME(GraphRequestProtocol) +@protocol FBSDKGraphRequest + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/// The graph request flags to use +@property (nonatomic, readonly, assign) FBSDKGraphRequestFlags flags; + +/// Convenience property to determine if graph error recover is disabled +@property (nonatomic, getter = isGraphErrorRecoveryDisabled) BOOL graphErrorRecoveryDisabled; + +/// Convenience property to determine if the request has attachments +@property (nonatomic, readonly) BOOL hasAttachments; + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +/// A formatted description of the graph request +- (NSString *)formattedDescription; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKIcon.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKIcon.h new file mode 100644 index 00000000..0404e39a --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKIcon.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Icon) +@interface FBSDKIcon : NSObject + +- (nullable CGPathRef)pathWithSize:(CGSize)size; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h new file mode 100644 index 00000000..4202de70 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ImpressionLoggingButton) +@interface FBSDKImpressionLoggingButton : UIButton +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h new file mode 100644 index 00000000..93829d56 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import +#import +#import +#import + +#if !TARGET_OS_TV + #import +#endif + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(InternalUtility) +@interface FBSDKInternalUtility : NSObject +#if !TARGET_OS_TV + +#else + +#endif + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +@property (class, nonnull, readonly) FBSDKInternalUtility *sharedUtility; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +/** + Tests whether the supplied URL is a valid URL for opening in the browser. + @param URL The URL to test. + @return YES if the URL refers to an http or https resource, otherwise NO. + */ +- (BOOL)isBrowserURL:(NSURL *)URL; + +/** + Checks equality between 2 objects. + + Checks for pointer equality, nils, isEqual:. + @param object The first object to compare. + @param other The second object to compare. + @return YES if the objects are equal, otherwise NO. + */ +- (BOOL)object:(id)object isEqualToObject:(id)other; + +/// Attempts to find the first UIViewController in the view's responder chain. Returns nil if not found. +- (nullable UIViewController *)viewControllerForView:(UIView *)view; + +/// returns true if the url scheme is registered in the CFBundleURLTypes +- (BOOL)isRegisteredURLScheme:(NSString *)urlScheme; + +/// returns currently displayed top view controller. +- (nullable UIViewController *)topMostViewController; + +/// returns the current key window +- (nullable UIWindow *)findWindow; + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; + +- (BOOL)isRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h new file mode 100644 index 00000000..10846828 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h @@ -0,0 +1,135 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(InternalUtilityProtocol) +@protocol FBSDKInternalUtility + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly) BOOL isFacebookAppInstalled; + +/* + Checks if the app is Unity. + */ +@property (nonatomic, readonly) BOOL isUnity; + +/** + Constructs an NSURL. + @param scheme The scheme for the URL. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The URL. + */ +- (nullable NSURL *)URLWithScheme:(NSString *)scheme + host:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs an URL for the current app. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The app URL. + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs a Facebook URL. + @param hostPrefix The prefix for the host, such as 'm', 'graph', etc. + @param path The path for the URL. This may or may not include a version. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The Facebook URL. + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Registers a transient object so that it will not be deallocated until unregistered + @param object The transient object + */ +- (void)registerTransientObject:(id)object; + +/** + Unregisters a transient object that was previously registered with registerTransientObject: + @param object The transient object + */ +- (void)unregisterTransientObject:(__weak id)object; + +- (void)checkRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +/// Validates that the right URL schemes are registered, throws an NSException if not. +- (void)validateURLSchemes; + +/// add data processing options to the dictionary. +- (void)extendDictionaryWithDataProcessingOptions:(NSMutableDictionary *)parameters; + +/// Converts NSData to a hexadecimal UTF8 String. +- (nullable NSString *)hexadecimalStringFromData:(NSData *)data; + +/// validates that the app ID is non-nil, throws an NSException if nil. +- (void)validateAppID; + +/** + Validates that the client access token is non-nil, otherwise - throws an NSException otherwise. + Returns the composed client access token. + */ +- (NSString *)validateRequiredClientAccessToken; + +/** + Extracts permissions from a response fetched from me/permissions + @param responseObject the response + @param grantedPermissions the set to add granted permissions to + @param declinedPermissions the set to add declined permissions to. + */ +- (void)extractPermissionsFromResponse:(NSDictionary *)responseObject + grantedPermissions:(NSMutableSet *)grantedPermissions + declinedPermissions:(NSMutableSet *)declinedPermissions + expiredPermissions:(NSMutableSet *)expiredPermissions; + +/// validates that Facebook reserved URL schemes are not registered, throws an NSException if they are. +- (void)validateFacebookReservedURLSchemes; + +/** + Parses an FB url's query params (and potentially fragment) into a dictionary. + @param url The FB url. + @return A dictionary with the key/value pairs. + */ +- (NSDictionary *)parametersFromFBURL:(NSURL *)url; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h new file mode 100644 index 00000000..a4292d54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStore) +@interface FBSDKKeychainStore : NSObject + +@property (nonatomic, readonly, copy) NSString *service; +@property (nullable, nonatomic, readonly, copy) NSString *accessGroup; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithService:(NSString *)service accessGroup:(nullable NSString *)accessGroup NS_DESIGNATED_INITIALIZER; + +- (BOOL)setData:(nullable NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (nullable NSData *)dataForKey:(NSString *)key; + +// hook for subclasses to override keychain query construction. +- (NSMutableDictionary *)queryForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h new file mode 100644 index 00000000..149c59d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `KeychainStore` + */ +NS_SWIFT_NAME(KeychainStoreFactory) +@interface FBSDKKeychainStoreFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h new file mode 100644 index 00000000..4f8636a8 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProtocol) +@protocol FBSDKKeychainStore + +- (nullable NSString *)stringForKey:(NSString *)key; +- (nullable NSDictionary *)dictionaryForKey:(NSString *)key; + +- (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; +- (BOOL)setDictionary:(nullable NSDictionary *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h new file mode 100644 index 00000000..af0263ca --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProviding) +@protocol FBSDKKeychainStoreProviding + +- (nonnull id)createKeychainStoreWithService:(NSString *)service + accessGroup:(nullable NSString *)accessGroup; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLocation.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLocation.h new file mode 100644 index 00000000..e9fd1304 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLocation.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Location) +@interface FBSDKLocation : NSObject + +/// Location id +@property (nonatomic, readonly, strong) NSString *id; +/// Location name +@property (nonatomic, readonly, strong) NSString *name; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a Location object from a dinctionary containing valid location information. + @param dictionary The dictionary containing raw location + + Valid location will consist of "id" and "name" strings. + */ ++ (nullable instancetype)locationFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogger.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogger.h new file mode 100644 index 00000000..d6a31005 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogger.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Simple logging utility for conditionally logging strings and then emitting them + via NSLog(). + + @unsorted + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Logger) +@interface FBSDKLogger : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogging.h new file mode 100644 index 00000000..dbef5411 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogging.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Logging) +@protocol FBSDKLogging + +@property (nonatomic, readonly, copy) NSString *contents; +@property (nonatomic, readonly, copy) FBSDKLoggingBehavior loggingBehavior; + +- (instancetype)initWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +- (void)logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h new file mode 100644 index 00000000..900542d2 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. + */ + +typedef NSString *FBSDKLoggingBehavior NS_TYPED_ENUM NS_SWIFT_NAME(LoggingBehavior); + +/// Include access token in logging. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens; + +/// Log performance characteristics +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics; + +/// Log FBSDKAppEvents interactions +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents; + +/// Log Informational occurrences +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational; + +/// Log cache errors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors; + +/// Log errors from SDK UI controls +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors; + +/// Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning; + +/** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. + Info is the lowest level of severity, using it will result in logging all previously mentioned levels. + */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo; + +/// Log errors from SDK network requests +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests; + +/// Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h new file mode 100644 index 00000000..a6637497 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +@interface FBSDKLoginTooltip : NSObject +@property (nonatomic, readonly, getter = isEnabled, assign) BOOL enabled; +@property (nonatomic, readonly, copy) NSString *text; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithText:(NSString *)text + enabled:(BOOL)enabled + NS_DESIGNATED_INITIALIZER; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h new file mode 100644 index 00000000..3403551b --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(MeasurementEvent) +@interface FBSDKMeasurementEvent : NSObject + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h new file mode 100644 index 00000000..219d3fef --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Extension protocol for NSMutableCopying that adds the mutableCopy method, which is implemented on NSObject. + + NSObject implicitly conforms to this protocol. + */ +NS_SWIFT_NAME(MutableCopying) +@protocol FBSDKMutableCopying + +/** + Implemented by NSObject as a convenience to mutableCopyWithZone:. + @return A mutable copy of the receiver. + */ +- (id)mutableCopy; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h new file mode 100644 index 00000000..5b157c20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Concrete type providing functionality that checks whether an error represents a + network error. + */ +NS_SWIFT_NAME(NetworkErrorChecker) +@interface FBSDKNetworkErrorChecker : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h new file mode 100644 index 00000000..2868737f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_SWIFT_NAME(NetworkErrorChecking) +@protocol FBSDKNetworkErrorChecking + +/** + Checks whether an error is a network error. + + @param error An error that may or may not represent a network error. + + @return `YES` if the error represents a network error, otherwise `NO`. + */ +- (BOOL)isNetworkError:(NSError *)error; + +@end diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h new file mode 100644 index 00000000..fa8f4cde --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductAvailability) + Specifies product availability for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductAvailability) { + /// Item ships immediately + FBSDKProductAvailabilityInStock = 0, + /// No plan to restock + FBSDKProductAvailabilityOutOfStock, + /// Available in future + FBSDKProductAvailabilityPreOrder, + /// Ships in 1-2 weeks + FBSDKProductAvailabilityAvailableForOrder, + /// Discontinued + FBSDKProductAvailabilityDiscontinued, +} NS_SWIFT_NAME(AppEvents.ProductAvailability); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h new file mode 100644 index 00000000..41e23b1e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductCondition) + Specifies product condition for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductCondition) { + FBSDKProductConditionNew = 0, + FBSDKProductConditionRefurbished, + FBSDKProductConditionUsed, +} NS_SWIFT_NAME(AppEvents.ProductCondition); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfile.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfile.h new file mode 100644 index 00000000..a38aa453 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfile.h @@ -0,0 +1,289 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@class FBSDKLocation; +@class FBSDKProfile; +@class FBSDKUserAgeRange; + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentProfile` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKProfileChangeOldKey` and + `FBSDKProfileChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKProfileDidChangeNotification +NS_SWIFT_NAME(ProfileDidChange); + +/* key in notification's userInfo object for getting the old profile. + + If there was no old profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeOldKey +NS_SWIFT_NAME(ProfileChangeOldKey); + +/* key in notification's userInfo object for getting the new profile. + + If there is no new profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeNewKey +NS_SWIFT_NAME(ProfileChangeNewKey); + +/** + Describes the callback for loadCurrentProfileWithCompletion. + @param profile the FBSDKProfile + @param error the error during the request, if any + */ +typedef void (^ FBSDKProfileBlock)(FBSDKProfile *_Nullable profile, NSError *_Nullable error) +NS_SWIFT_NAME(ProfileBlock); + +/// Represents the unique identifier for an end user +typedef NSString FBSDKUserIdentifier + NS_SWIFT_NAME(UserIdentifier); + +/** + Represents an immutable Facebook profile + + This class provides a global "currentProfile" instance to more easily + add social context to your application. When the profile changes, a notification is + posted so that you can update relevant parts of your UI and is persisted to NSUserDefaults. + + Typically, you will want to call `enableUpdatesOnAccessTokenChange:YES` so that + it automatically observes changes to the `[FBSDKAccessToken currentAccessToken]`. + + You can use this class to build your own `FBSDKProfilePictureView` or in place of typical requests to "/me". + */ +NS_SWIFT_NAME(Profile) +@interface FBSDKProfile : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + initializes a new instance. + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate; + +/** + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + @param imageURL an optional URL to use for fetching a user's profile image + @param email the user's email + @param friendIDs a list of identifiers for the user's friends + @param birthday the user's birthday + @param ageRange the user's age range + @param hometown the user's hometown + @param location the user's location + @param gender the user's gender + @param isLimited indicates if the information provided is incomplete in some way. + When true, `loadCurrentProfileWithCompletion:` will assume the profile is + incomplete and disregard any cached profile. Defaults to false. + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate + imageURL:(nullable NSURL *)imageURL + email:(nullable NSString *)email + friendIDs:(nullable NSArray *)friendIDs + birthday:(nullable NSDate *)birthday + ageRange:(nullable FBSDKUserAgeRange *)ageRange + hometown:(nullable FBSDKLocation *)hometown + location:(nullable FBSDKLocation *)location + gender:(nullable NSString *)gender + isLimited:(BOOL)isLimited; + +/** + initializes a new instance. + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + @param imageURL an optional URL to use for fetching a user's profile image + @param email the user's email + @param friendIDs a list of identifiers for the user's friends + @param birthday the user's birthday + @param ageRange the user's age range + @param hometown the user's hometown + @param location the user's location + @param gender the user's gender + */ +- (instancetype)initWithUserID:(FBSDKUserIdentifier *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate + imageURL:(nullable NSURL *)imageURL + email:(nullable NSString *)email + friendIDs:(nullable NSArray *)friendIDs + birthday:(nullable NSDate *)birthday + ageRange:(nullable FBSDKUserAgeRange *)ageRange + hometown:(nullable FBSDKLocation *)hometown + location:(nullable FBSDKLocation *)location + gender:(nullable NSString *)gender + NS_DESIGNATED_INITIALIZER; + +/** + The current profile instance and posts the appropriate notification + if the profile parameter is different than the receiver. + + This persists the profile to NSUserDefaults. + */ + +/// The current profile +@property (class, nullable, nonatomic, strong) FBSDKProfile *currentProfile +NS_SWIFT_NAME(current); + +/// The user id +@property (nonatomic, readonly, copy) FBSDKUserIdentifier *userID; +/// The user's first name +@property (nullable, nonatomic, readonly, copy) NSString *firstName; +/// The user's middle name +@property (nullable, nonatomic, readonly, copy) NSString *middleName; +/// The user's last name +@property (nullable, nonatomic, readonly, copy) NSString *lastName; +/// The user's complete name +@property (nullable, nonatomic, readonly, copy) NSString *name; +/** + A URL to the user's profile. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_link' permission + + Consider using `FBSDKAppLinkResolver` to resolve this + to an app link to link directly to the user's profile in the Facebook app. + */ +@property (nullable, nonatomic, readonly) NSURL *linkURL; + +/// The last time the profile data was fetched. +@property (nonatomic, readonly) NSDate *refreshDate; +/// A URL to use for fetching a user's profile image. +@property (nullable, nonatomic, readonly) NSURL *imageURL; +/** + The user's email. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSString *email; +/** + A list of identifiers of the user's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSArray *friendIDs; + +/** + The user's birthday. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_birthday' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSDate *birthday; + +/** + The user's age range + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_age_range' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKUserAgeRange *ageRange; + +/** + The user's hometown + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_hometown' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKLocation *hometown; + +/** + The user's location + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_location' permission. + */ +@property (nullable, nonatomic, readonly, copy) FBSDKLocation *location; + +/** + The user's gender + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_gender' permission. + */ +@property (nullable, nonatomic, readonly, copy) NSString *gender; + +/** + Indicates if `currentProfile` will automatically observe `FBSDKAccessTokenDidChangeNotification` notifications + @param enable YES is observing + + If observing, this class will issue a graph request for public profile data when the current token's userID + differs from the current profile. You can observe `FBSDKProfileDidChangeNotification` for when the profile is updated. + + Note that if `[FBSDKAccessToken currentAccessToken]` is unset, the `currentProfile` instance remains. It's also possible + for `currentProfile` to return nil until the data is fetched. + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void)enableUpdatesOnAccessTokenChange:(BOOL)enable +NS_SWIFT_NAME(enableUpdatesOnAccessTokenChange(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Loads the current profile and passes it to the completion block. + @param completion The block to be executed once the profile is loaded + + If the profile is already loaded, this method will call the completion block synchronously, otherwise it + will begin a graph request to update `currentProfile` and then call the completion block when finished. + */ ++ (void)loadCurrentProfileWithCompletion:(nullable FBSDKProfileBlock)completion; + +/** + A convenience method for returning a complete `NSURL` for retrieving the user's profile image. + @param mode The picture mode + @param size The height and width. This will be rounded to integer precision. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable NSURL *)imageURLForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size +NS_SWIFT_NAME(imageURL(forMode:size:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Returns YES if the profile is equivalent to the receiver. + @param profile the profile to compare to. + */ +- (BOOL)isEqualToProfile:(FBSDKProfile *)profile; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h new file mode 100644 index 00000000..36bf8c54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@class FBSDKProfile; + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKProfilePictureMode enum + Defines the aspect ratio mode for the source image of the profile picture. + */ +typedef NS_ENUM(NSUInteger, FBSDKProfilePictureMode) { + /// A square cropped version of the image will be included in the view. + FBSDKProfilePictureModeSquare, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeNormal, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeAlbum, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeSmall, + /// The original picture's aspect ratio will be used for the source image in the view. + FBSDKProfilePictureModeLarge, +} NS_SWIFT_NAME(Profile.PictureMode); + +/// A view to display a profile picture. +NS_SWIFT_NAME(FBProfilePictureView) +@interface FBSDKProfilePictureView : UIView + +/** + Create a new instance of `FBSDKProfilePictureView`. + + - Parameter frame: Frame rectangle for the view. + - Parameter profile: Optional profile to display a picture for. + */ +- (instancetype)initWithFrame:(CGRect)frame + profile:(FBSDKProfile *_Nullable)profile; + +/** + Create a new instance of `FBSDKProfilePictureView`. + + - Parameter profile: Optional profile to display a picture for. + */ +- (instancetype)initWithProfile:(FBSDKProfile *_Nullable)profile; + +/// The mode for the receiver to determine the aspect ratio of the source image. +@property (nonatomic, assign) FBSDKProfilePictureMode pictureMode; + +/// The profile ID to show the picture for. +@property (nonatomic, copy) NSString *profileID; + +/** + Explicitly marks the receiver as needing to update the image. + + This method is called whenever any properties that affect the source image are modified, but this can also + be used to trigger a manual update of the image if it needs to be re-downloaded. + */ +- (void)setNeedsImageUpdate; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h new file mode 100644 index 00000000..ac05481f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProfileProtocols.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKProfile; + +NS_SWIFT_NAME(ProfileProviding) +@protocol FBSDKProfileProviding + +@property (class, nullable, nonatomic, strong) FBSDKProfile *currentProfile +NS_SWIFT_NAME(current); + ++ (nullable FBSDKProfile *)fetchCachedProfile; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKRandom.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKRandom.h new file mode 100644 index 00000000..653a0389 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKRandom.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + Provides a random string + @param numberOfBytes the number of bytes to use + */ +extern NSString *fb_randomString(NSUInteger numberOfBytes); diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h new file mode 100644 index 00000000..884b84ac --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal block type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoginTooltipBlock) +typedef void (^FBSDKLoginTooltipBlock)(FBSDKLoginTooltip *_Nullable loginTooltip, NSError *_Nullable error); + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ServerConfigurationProvider) +@interface FBSDKServerConfigurationProvider : NSObject + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly) NSString *loggingToken; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (NSUInteger)cachedSmartLoginOptions; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (BOOL)useSafariViewControllerForDialogName:(NSString *)dialogName; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)loadServerConfigurationWithCompletionBlock:(nullable FBSDKLoginTooltipBlock)completionBlock; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettings.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettings.h new file mode 100644 index 00000000..6b3a2897 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettings.h @@ -0,0 +1,197 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Settings) +@interface FBSDKSettings : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +/// The shared settings instance. Prefer this and the exposed instance methods over the class variants. +@property (class, nonatomic, readonly) FBSDKSettings *sharedSettings; + +/// Retrieve the current iOS SDK version. +@property (nonatomic, readonly, copy) NSString *sdkVersion; + +/// Retrieve the current default Graph API version. +@property (nonatomic, readonly, copy) NSString *defaultGraphAPIVersion; + +/** + The quality of JPEG images sent to Facebook from the SDK, + expressed as a value from 0.0 to 1.0. + + If not explicitly set, the default is 0.9. +*/ +@property (nonatomic) CGFloat JPEGCompressionQuality +NS_SWIFT_NAME(jpegCompressionQuality); + +/** + Controls the auto logging of basic app events, such as activateApp and deactivateApp. + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAutoLogAppEventsEnabled) BOOL autoLogAppEventsEnabled; + +/** + Controls the fb_codeless_debug logging event + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; + +/** + Controls the access to IDFA + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; + +/** + Controls the SKAdNetwork report + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isSKAdNetworkReportEnabled) BOOL skAdNetworkReportEnabled; + +/** + Whether data such as that generated through FBSDKAppEvents and sent to Facebook + should be restricted from being used for other than analytics and conversions. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL isEventDataUsageLimited; + +/** + Whether in memory cached values should be used for expensive metadata fields, such as + carrier and advertiser ID, that are fetched on many applicationDidBecomeActive notifications. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; + +/// A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; + +/** + The Facebook App ID used by the SDK. + + If not explicitly set, the default will be read from the application's plist (FacebookAppID). + */ +@property (nullable, nonatomic, copy) NSString *appID; + +/** + The default url scheme suffix used for sessions. + + If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). + */ +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; + +/** + The Client Token that has been set via [[FBSDKSettings sharedSettings] setClientToken]. + This is needed for certain API calls when made anonymously, without a user-based access token. + + The Facebook App's "client token", which, for a given appid can be found in the Security + section of the Advanced tab of the Facebook App settings found at + + If not explicitly set, the default will be read from the application's plist (FacebookClientToken). + */ +@property (nullable, nonatomic, copy) NSString *clientToken; + +/** + The Facebook Display Name used by the SDK. + + This should match the Display Name that has been set for the app with the corresponding Facebook App ID, + in the Facebook App Dashboard. + + If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). + */ +@property (nullable, nonatomic, copy) NSString *displayName; + +/** + The Facebook domain part. This can be used to change the Facebook domain + (e.g. @"beta") so that requests will be sent to `graph.beta.facebook.com` + + If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). + */ +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; + +/** + The current Facebook SDK logging behavior. This should consist of strings + defined as constants with FBSDKLoggingBehavior*. + + This should consist a set of strings indicating what information should be logged + defined as constants with FBSDKLoggingBehavior*. Set to an empty set in order to disable all logging. + + You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLoggingBehavior: + + The default is a set consisting of FBSDKLoggingBehaviorDeveloperErrors + */ +@property (nonatomic, copy) NSSet *loggingBehaviors; + +/** + Overrides the default Graph API version to use with `FBSDKGraphRequests`. + + The string should be of the form `@"v2.7"`. + + Defaults to `defaultGraphAPIVersion`. + */ +@property (nonatomic, copy) NSString *graphAPIVersion; + +/** + Internal property exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; + +/** + The value of the flag advertiser_tracking_enabled that controls the advertiser tracking status of the data sent to Facebook + If not explicitly set in iOS14 or above, the default is false in iOS14 or above. + */ +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; + +/** +Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** +Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +/** + Enable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +/** + Disable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h new file mode 100644 index 00000000..1e21fe02 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsLogging) +@protocol FBSDKSettingsLogging + +- (void)logWarnings; +- (void)logIfSDKSettingsChanged; +- (void)recordInstall; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h new file mode 100644 index 00000000..d0eeb7ab --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsProtocol) +@protocol FBSDKSettings + +@property (nullable, nonatomic, copy) NSString *appID; +@property (nullable, nonatomic, copy) NSString *clientToken; +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; +@property (nonatomic, readonly, copy) NSString *sdkVersion; +@property (nullable, nonatomic, copy) NSString *displayName; +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; +@property (nonnull, nonatomic, copy) NSSet *loggingBehaviors; +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; +@property (nonatomic, readonly) BOOL isDataProcessingRestricted; +@property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled; +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; +@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime; +@property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled; +@property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; +@property (nullable, nonatomic, readonly) NSDate *installTimestamp; +@property (nullable, nonatomic, readonly) NSDate *advertiserTrackingEnabledTimestamp; +@property (nonatomic) BOOL isEventDataUsageLimited; +@property (nonatomic) BOOL shouldUseTokenOptimizations; +@property (nonatomic, copy) NSString *graphAPIVersion; +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; +@property (nullable, nonatomic, readonly, copy) NSString *graphAPIDebugParamValue; +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; +@property (nullable, nonatomic, readonly) NSDictionary *persistableDataProcessingOptions; + +/** + Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** + Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h new file mode 100644 index 00000000..4d30ced6 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKShareDialogConfiguration.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Constant used to describe the 'Message' dialog +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameMessage; +/// Constant used to describe the 'Share' dialog +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameShare; + +/** + A lightweight interface to expose aspects of FBSDKServerConfiguration that are used by dialogs in ShareKit. + + Internal Use Only + */ +NS_SWIFT_NAME(ShareDialogConfiguration) +@interface FBSDKShareDialogConfiguration : NSObject + +@property (nonatomic, readonly, copy) NSString *defaultShareMode; + +- (BOOL)shouldUseNativeDialogForDialogName:(NSString *)dialogName; +- (BOOL)shouldUseSafariViewControllerForDialogName:(NSString *)dialogName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h new file mode 100644 index 00000000..6b07cb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(TokenCaching) +@protocol FBSDKTokenCaching + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAccessToken *accessToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h new file mode 100644 index 00000000..87f227de --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(TokenStringProviding) +@protocol FBSDKTokenStringProviding + +/** + Return the token string of the current access token. + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +@property (class, nullable, nonatomic, readonly, copy) NSString *tokenString; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h new file mode 100644 index 00000000..ea415c83 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +extern CATransform3D const FBSDKCATransform3DIdentity; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@interface FBSDKTransformer : NSObject +- (CATransform3D)CATransform3DMakeScale:(CGFloat)sx sy:(CGFloat)sy sz:(CGFloat)sz; +- (CATransform3D)CATransform3DMakeTranslation:(CGFloat)tx ty:(CGFloat)ty tz:(CGFloat)tz; +- (CATransform3D)CATransform3DConcat:(CATransform3D)a b:(CATransform3D)b; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURL.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURL.h new file mode 100644 index 00000000..292430f5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURL.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKAppLink; + +/** + Provides a set of utilities for working with NSURLs, such as parsing of query parameters + and handling for App Link requests. + */ +NS_SWIFT_NAME(AppLinkURL) +@interface FBSDKURL : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a link target from a raw URL. + On success, this posts the FBSDKAppLinkParseEventName measurement event. If you are constructing the FBSDKURL within your application delegate's + application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication: + to support better FBSDKMeasurementEvent notifications + @param url The instance of `NSURL` to create FBSDKURL from. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)URLWithURL:(NSURL *)url +NS_SWIFT_NAME(init(url:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's + application:openURL:sourceApplication:annotation: and will post the FBSDKAppLinkNavigateInEventName measurement event. + @param url The instance of `NSURL` to create FBSDKURL from. + @param sourceApplication the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation: + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication +NS_SWIFT_NAME(init(inboundURL:sourceApplication:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Gets the target URL. If the link is an App Link, this is the target of the App Link. + Otherwise, it is the url that created the target. + */ +@property (nonatomic, readonly, strong) NSURL *targetURL; + +/// Gets the query parameters for the target, parsed into an NSDictionary. +@property (nonatomic, readonly, strong) NSDictionary *targetQueryParameters; + +/** + If this link target is an App Link, this is the data found in al_applink_data. + Otherwise, it is nil. + */ +@property (nullable, nonatomic, readonly, strong) NSDictionary *appLinkData; + +/// If this link target is an App Link, this is the data found in extras. +@property (nullable, nonatomic, readonly, strong) NSDictionary *appLinkExtras; + +/// The App Link indicating how to navigate back to the referer app, if any. +@property (nullable, nonatomic, readonly, strong) id appLinkReferer; + +/// The URL that was used to create this FBSDKURL. +@property (nonatomic, readonly, strong) NSURL *inputURL; + +/// The query parameters of the inputURL, parsed into an NSDictionary. +@property (nonatomic, readonly, strong) NSDictionary *inputQueryParameters; + +/// The flag indicating whether the URL comes from auto app link +@property (nonatomic, readonly, getter = isAutoAppLink) BOOL isAutoAppLink; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h new file mode 100644 index 00000000..31741f40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLHosting.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(URLHosting) +@protocol FBSDKURLHosting + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h new file mode 100644 index 00000000..ff91da7d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLOpener.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKURLOpening; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(URLOpener) +@protocol FBSDKURLOpener + +- (void)openURL:(NSURL *)url + sender:(nullable id)sender + handler:(FBSDKSuccessBlock)handler; + +// UNCRUSTIFY_FORMAT_OFF +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(id)sender + fromViewController:(UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler +NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h new file mode 100644 index 00000000..65772a5c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLOpening.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(URLOpening) +@protocol FBSDKURLOpening + +// Implementations should make sure they can handle nil parameters +// which is possible in SafariViewController. +// see canOpenURL below. +- (BOOL)application:(nullable UIApplication *)application + openURL:(nullable NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +// create a different handler to return YES/NO if the receiver can process the above openURL:. +// This is separated so that we can process the openURL: in callbacks, while still returning +// the result of canOpenURL synchronously in FBSDKApplicationDelegate +- (BOOL) canOpenURL:(NSURL *)url + forApplication:(nullable UIApplication *)application + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +- (void)applicationDidBecomeActive:(UIApplication *)application; + +- (BOOL)isAuthenticationURL:(NSURL *)url; + +@optional +- (BOOL)shouldStopPropagationOfURL:(NSURL *)url; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h new file mode 100644 index 00000000..f7283921 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *FBSDKURLScheme NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(URLScheme); + +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeFacebookAPI; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeMessengerApp; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTPS NS_SWIFT_NAME(https); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTP NS_SWIFT_NAME(http); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeWeb; diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h new file mode 100644 index 00000000..7d719165 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(UserAgeRange) +@interface FBSDKUserAgeRange : NSObject + +/// The user's minimun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *min; +/// The user's maximun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *max; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a UserAgeRange object from a dinctionary containing valid user age range. + @param dictionary The dictionary containing raw user age range + + Valid user age range will consist of "min" and/or "max" values that are + positive integers, where "min" is smaller than or equal to "max". + */ ++ (nullable instancetype)ageRangeFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUtility.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUtility.h new file mode 100644 index 00000000..eb5ca0a4 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUtility.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Class to contain common utility methods. +NS_SWIFT_NAME(Utility) +@interface FBSDKUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Parses a query string into a dictionary. + @param queryString The query string value. + @return A dictionary with the key/value pairs. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString +NS_SWIFT_NAME(dictionary(withQuery:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Constructs a query string from a dictionary. + @param dictionary The dictionary with key/value pairs for the query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return Query string representation of the parameters. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary + error:(NSError **)errorRef +NS_SWIFT_NAME(query(from:)) +__attribute__((swift_error(nonnull_error))); +// UNCRUSTIFY_FORMAT_ON + +/** + Decodes a value from an URL. + @param value The value to decode. + @return The decoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLDecode:(NSString *)value +NS_SWIFT_NAME(decode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Encodes a value for an URL. + @param value The value to encode. + @return The encoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLEncode:(NSString *)value +NS_SWIFT_NAME(encode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Creates a timer using Grand Central Dispatch. + @param interval The interval to fire the timer, in seconds. + @param block The code block to execute when timer is fired. + @return The dispatch handle. + */ ++ (dispatch_source_t)startGCDTimerWithInterval:(double)interval block:(dispatch_block_t)block; + +/** + Stop a timer that was started by startGCDTimerWithInterval. + @param timer The dispatch handle received from startGCDTimerWithInterval. + */ ++ (void)stopGCDTimer:(dispatch_source_t)timer; + +/** + Get SHA256 hased string of NSString/NSData + + @param input The data that needs to be hashed, it could be NSString or NSData. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (nullable NSString *)SHA256Hash:(NSObject *)input +NS_SWIFT_NAME(sha256Hash(_:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the graphdomain stored in FBSDKAuthenticationToken ++ (nullable NSString *)getGraphDomainFromToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (NSURL *)unversionedFacebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h new file mode 100644 index 00000000..136683d1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialog.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import +#import +#import + +#import + +@protocol _FBSDKWindowFinding; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(WebDialog) +@interface FBSDKWebDialog : NSObject + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic) BOOL shouldDeferVisibility; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, strong) id<_FBSDKWindowFinding> windowFinder; + ++ (instancetype)new NS_UNAVAILABLE; +- (instancetype)init NS_UNAVAILABLE; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (instancetype)dialogWithName:(NSString *)name + delegate:(id)delegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (instancetype)createAndShowWithName:(NSString *)name + parameters:(nullable NSDictionary *)parameters + frame:(CGRect)frame + delegate:(id)delegate + windowFinder:(nullable id<_FBSDKWindowFinding>)windowFinder +NS_SWIFT_NAME(createAndShow(name:parameters:frame:delegate:windowFinder:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h new file mode 100644 index 00000000..6dd4b926 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialogDelegate.h @@ -0,0 +1,56 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +@class FBSDKWebDialog; + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(WebDialogDelegate) +@protocol FBSDKWebDialogDelegate + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialog:(FBSDKWebDialog *)webDialog didCompleteWithResults:(NSDictionary *)results; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialog:(FBSDKWebDialog *)webDialog didFailWithError:(NSError *)error; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)webDialogDidCancel:(FBSDKWebDialog *)webDialog; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h new file mode 100644 index 00000000..b0861b81 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebDialogView.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +@protocol FBSDKWebDialogViewDelegate; + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(FBWebDialogView) +@interface FBSDKWebDialogView : UIView + +@property (nonatomic, weak) id delegate; + +- (void)loadURL:(NSURL *)URL; +- (void)stopLoading; + +@end + +NS_SWIFT_NAME(WebDialogViewDelegate) +@protocol FBSDKWebDialogViewDelegate + +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary *)results; +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error; +- (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView; +- (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h new file mode 100644 index 00000000..f1d7dbed --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A reference implementation for an App Link resolver that uses a hidden WKWebView + to parse the HTML containing App Link metadata. + */ +NS_SWIFT_NAME(WebViewAppLinkResolver) +@interface FBSDKWebViewAppLinkResolver : NSObject + +/// Gets the instance of a FBSDKWebViewAppLinkResolver. +@property (class, nonatomic, readonly, strong) FBSDKWebViewAppLinkResolver *sharedInstance +NS_SWIFT_NAME(shared); + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h new file mode 100644 index 00000000..a9d946f3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(_WindowFinding) +@protocol _FBSDKWindowFinding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable UIWindow *)findWindow; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h new file mode 100644 index 00000000..a8114b1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoggerCreating) +@protocol __FBSDKLoggerCreating + +- (id)createLoggerWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Info.plist b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Info.plist new file mode 100644 index 00000000..f83a4967 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc similarity index 76% rename from ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftdoc rename to ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc index 19b7e10f..12abea86 100644 Binary files a/ios/platform/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/armv7-apple-ios.swiftdoc and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..52b442b0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc new file mode 100644 index 00000000..a480081b Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..12a5822f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/module.modulemap b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..f951cee0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKCoreKit { + umbrella header "FBSDKCoreKit.h" + + export * + module * { export * } +} + +module FBSDKCoreKit.Swift { + header "FBSDKCoreKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeDirectory b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeDirectory new file mode 100644 index 00000000..250ab02a Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeDirectory differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements new file mode 100644 index 00000000..dbf9d614 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements-1 b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 00000000..b0a3dfd0 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeResources b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..54477620 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeResources @@ -0,0 +1,1797 @@ + + + + + files + + Headers/FBSDKAccessToken.h + + Zwalh7WGm73EGYq6r0hOtY6TVyM= + + Headers/FBSDKAccessTokenProtocols.h + + QpJzB6oI1x1D3M0cC8Yw7FSuwKg= + + Headers/FBSDKAdvertisingTrackingStatus.h + + s2/tT+xSXPH4xXaQ+yW41JtgT58= + + Headers/FBSDKAppAvailabilityChecker.h + + Wyf9l4OPVlNw4rmgihSwsLLXekY= + + Headers/FBSDKAppEventName.h + + EU49DFEvgz3pfVKd2Gh6GcVz19w= + + Headers/FBSDKAppEventParameterName.h + + jMPwz6fdms/XUiUDkGZXO8LsEPs= + + Headers/FBSDKAppEventParameterProduct.h + + r+KeRcYNIPkXBrMbyUHT2wI7s9Y= + + Headers/FBSDKAppEventParameterValue.h + + 040yhBlHKamIDlwNu0ImpgLTCqc= + + Headers/FBSDKAppEventUserDataType.h + + A3lEI7gxtNx4AHoXWeE0s7u1zK8= + + Headers/FBSDKAppEvents.h + + ZabZwehtvq6nno9KnlPUHOfoXSA= + + Headers/FBSDKAppEventsFlushBehavior.h + + tGoQfvz6uAy5DjnhPnzX/Ai2vl4= + + Headers/FBSDKAppEventsNotificationName.h + + y7c3PKWx/w77oSbeugClHIvTMS8= + + Headers/FBSDKAppLink.h + + 5EIxpe89PDf7uNARo4Jy4QH+Qo4= + + Headers/FBSDKAppLinkNavigation.h + + RY5XtfOnoyCwcpgHKJiSeuMPBIA= + + Headers/FBSDKAppLinkResolver.h + + 7sO6Yn5KZcxXlo5Y+w+lhkolKk8= + + Headers/FBSDKAppLinkResolving.h + + vW0iP2TWioh9F2xVFhjb96AWH/M= + + Headers/FBSDKAppLinkTarget.h + + Jv4V7jimmNWdukOakiI+cOXPRTU= + + Headers/FBSDKAppLinkTargetProtocol.h + + KjpJOKaE7Hu4fZ/kcuexDfd7h/E= + + Headers/FBSDKAppLinkUtility.h + + eg8m/+VYcUPPXnNT1s5tbmf4z60= + + Headers/FBSDKAppURLSchemeProviding.h + + G7H5ArEaw56tAdukKkeFnHJW3yM= + + Headers/FBSDKApplicationDelegate.h + + gySEL45XjsZYoHif6xbW5+3LZNQ= + + Headers/FBSDKApplicationObserving.h + + E5Ew6Wmyl//0dt7F2wSyYMbL8Uc= + + Headers/FBSDKAuthenticationToken.h + + 8MSOJbkw+GYK17UVaHITUogBFow= + + Headers/FBSDKAuthenticationTokenClaims.h + + xojLcwuGpunIQjN3S1ntX2IxWxk= + + Headers/FBSDKAuthenticationTokenProtocols.h + + ll9VzBIGgFDag+gJiL8CfwN8Vmc= + + Headers/FBSDKBridgeAPI.h + + I5hqZr4+zcVZsAmHsy4JSL1Fgt8= + + Headers/FBSDKBridgeAPIProtocol.h + + MsZsfhF27cV7UwnA9wtLWKut7x8= + + Headers/FBSDKBridgeAPIProtocolType.h + + DblZg5KWlfoY7uhozPWbR8A+C+Q= + + Headers/FBSDKBridgeAPIRequest.h + + /49KetCwFynSQPcoa2fwqdM6WCU= + + Headers/FBSDKBridgeAPIRequestCreating.h + + fSrgRjXiEf48iO5SW4tUzCK4Dfw= + + Headers/FBSDKBridgeAPIRequestOpening.h + + +Du1Slb3MvBO9hnallcqMyu0oAw= + + Headers/FBSDKBridgeAPIRequestProtocol.h + + QvIJ69YhObUzXyvQTDogepJbLIY= + + Headers/FBSDKBridgeAPIResponse.h + + vy3kN0D9t6fqcYW4uwO5oHLybmw= + + Headers/FBSDKButton.h + + Q5s1g6x77uecqksyNP9YvwAxGKo= + + Headers/FBSDKButtonImpressionLogging.h + + LsVpQhR6smaHCPnF/ITEWiKGkKA= + + Headers/FBSDKConstants.h + + 8uLZKrsuXsxVHJGVSrF1lCoNawo= + + Headers/FBSDKCoreKit-Swift.h + + 9+bMBCD9BxRjD3PQ3rB3NOMTVqk= + + Headers/FBSDKCoreKit.h + + rSB/5qnmwQ/YfcHSajkFConHwuI= + + Headers/FBSDKCoreKitVersions.h + + rKH5hq1ilwGLoekVN/Gg8mdUg9g= + + Headers/FBSDKDeviceButton.h + + 4LIheHz+TKvNTDHMFLx9U5N9muI= + + Headers/FBSDKDeviceDialogView.h + + 0aubj8CDlLTz/o8MfbxQrck/VQs= + + Headers/FBSDKDeviceViewControllerBase.h + + 9d5jpsDwPq4ZpbCHYzNDectdVyE= + + Headers/FBSDKDynamicFrameworkLoaderProxy.h + + gQze+1wXFmg8HHDE0Ba4/AdlSbk= + + Headers/FBSDKDynamicSocialFrameworkLoader.h + + VkK7+4REIGtAPH/eFKxy/bj9hQ0= + + Headers/FBSDKErrorCreating.h + + hSTHauBFdEYzYLgpazD8Nu2mbvA= + + Headers/FBSDKErrorFactory.h + + BbwtPEHEtIq6FGLxlzJ+93hv4XU= + + Headers/FBSDKErrorRecoveryAttempting.h + + r3mkBDHcKe63UzmZCJLFEisXL3I= + + Headers/FBSDKFeature.h + + FyLPjFGney8xxCzilFkUSbm265Y= + + Headers/FBSDKFeatureChecking.h + + rYTkx84W03mL0rrno4sthw6poiM= + + Headers/FBSDKGraphErrorRecoveryProcessor.h + + /3AE6n6eta/pkvOIaQ5ZDZrxIwc= + + Headers/FBSDKGraphRequest.h + + mDiia1xQGNDzGWkoO2IrQrHcVCo= + + Headers/FBSDKGraphRequestConnecting.h + + paaU79+o3FwlCqzfosIGlXZTwL4= + + Headers/FBSDKGraphRequestConnection.h + + ZCtXBvpuATZKAZvJLOo9h5KrckA= + + Headers/FBSDKGraphRequestConnectionDelegate.h + + FSHiVcHDpJTlfdfBczQNHtjDJ8s= + + Headers/FBSDKGraphRequestConnectionFactory.h + + gAfT3DO/vuTTlEaJPEP8hL5P3Eo= + + Headers/FBSDKGraphRequestConnectionFactoryProtocol.h + + A26a5H79Zb1dRO6YHMFB4DbS+D8= + + Headers/FBSDKGraphRequestDataAttachment.h + + 7vvCqPiZp4o6JKVaJJ4FP9XkXKE= + + Headers/FBSDKGraphRequestFactory.h + + lAwX1CKv5VHiJ07/xZZylICOdg4= + + Headers/FBSDKGraphRequestFactoryProtocol.h + + Nz3K53RPMCO3ckDCvhJoBJ9TIKI= + + Headers/FBSDKGraphRequestFlags.h + + Zas2ccUoNaCrjUffAdLC6TmKLWs= + + Headers/FBSDKGraphRequestHTTPMethod.h + + sF4WT7ko2ZXuQ91thBewwSb29Cc= + + Headers/FBSDKGraphRequestProtocol.h + + E72bbJ8BaX/EV/so4aPEeaLRTkY= + + Headers/FBSDKIcon.h + + nSUcEGcswYAb2H/1Kk1Ibii38sQ= + + Headers/FBSDKImpressionLoggingButton.h + + aaainoJHYRbRmab8MpwHmrU4hVo= + + Headers/FBSDKInternalUtility.h + + upq6sOVxvYgmqem02YoK1SQZ4fI= + + Headers/FBSDKInternalUtilityProtocol.h + + Fv2HZA8YkLc1F/996f+/OhkAzZM= + + Headers/FBSDKKeychainStore.h + + VSfBFlzguwgAJhVey77PM3TiKzI= + + Headers/FBSDKKeychainStoreFactory.h + + EokxqDkQxYQBz5YnFwcqJvVKd8I= + + Headers/FBSDKKeychainStoreProtocol.h + + Vl4nIrUwT7cqcjwlXymbPkKUVDo= + + Headers/FBSDKKeychainStoreProviding.h + + mIeRZ1Khyvf/6V2HXI3+7c15XfU= + + Headers/FBSDKLocation.h + + lVldFN//gmPckkWOntm6/lMe0QE= + + Headers/FBSDKLogger.h + + rtRqjTXsaZXv5x8H14rMIs3g7Gk= + + Headers/FBSDKLogging.h + + /DbryGZcqEQACAktvCjPjV6SDG4= + + Headers/FBSDKLoggingBehavior.h + + 2RipnoPNHjzmVyzHpZjxsO+csE0= + + Headers/FBSDKLoginTooltip.h + + t9qlwGoUeyWhxDfXE8Ky6RnF/gg= + + Headers/FBSDKMeasurementEvent.h + + iDxUikYGmDa2FVGCbslgxrjwXLA= + + Headers/FBSDKMutableCopying.h + + CdAKmAi79FHfugMUCBcou38XjyY= + + Headers/FBSDKNetworkErrorChecker.h + + lc4ltIsnGN0wefVKZeW3BTQqt8o= + + Headers/FBSDKNetworkErrorChecking.h + + DQOOpk+tae6sTARv6zgYkUNQv+4= + + Headers/FBSDKProductAvailability.h + + 4z6lAOLiyG+H6sMmuDzBXlrBO4Q= + + Headers/FBSDKProductCondition.h + + p2M86R+0XjuIIHBALGh4qHhF0sg= + + Headers/FBSDKProfile.h + + a1wf8Hf9JZZ6hWCfCShWPzBo7hk= + + Headers/FBSDKProfilePictureView.h + + Ha1FZWHpTkpVErTLPsBp8dmIzFY= + + Headers/FBSDKProfileProtocols.h + + osJIfxC8jjnWg+nZiIydGspDpKo= + + Headers/FBSDKRandom.h + + R8FED9YvoEocX/AhmRTKcVPRw2o= + + Headers/FBSDKServerConfigurationProvider.h + + pQXes4mDHFLyo95AmuqC6AXyKDI= + + Headers/FBSDKSettings.h + + FIxUl9WHubBQ4Rmv8W7iNVRzrq4= + + Headers/FBSDKSettingsLogging.h + + j4NKiO1um7BzI27sPShA+WNNV6E= + + Headers/FBSDKSettingsProtocol.h + + QogmjQBweHFkUWSIRYsBQvR4gHE= + + Headers/FBSDKShareDialogConfiguration.h + + WPPtv+9HV+w3NbzlQBfQDXQ6qlQ= + + Headers/FBSDKTokenCaching.h + + Y9D8zDMXaiaJEPNG6yqmuv8sdxU= + + Headers/FBSDKTokenStringProviding.h + + 1ULLCT9qWhm7HkrSyND4RJwRF6Y= + + Headers/FBSDKTransformer.h + + Ui2GFPACS7T6kK9LcCLcdJyCYyo= + + Headers/FBSDKURL.h + + d5KoDUOKDIKe8CdBCFa5iFYqMyQ= + + Headers/FBSDKURLHosting.h + + t5Vuvclz3txsOHO/DxRweisyVC8= + + Headers/FBSDKURLOpener.h + + A0FSD5yqJH1esXZTdJ5le57N30Q= + + Headers/FBSDKURLOpening.h + + ExR8Hwm+b4hQrM+eFZoUR3yLS1U= + + Headers/FBSDKURLScheme.h + + 36HfFNYLwWfRajDYFDJeNZe/evc= + + Headers/FBSDKUserAgeRange.h + + eRyqSxEieMcqdjv0yKXNIDnmRIg= + + Headers/FBSDKUtility.h + + ACK+e48w6WLwZDhZT9VIaXDWTlk= + + Headers/FBSDKWebDialog.h + + s8cqZqq/NcQyFzujtEc+0qtxxx0= + + Headers/FBSDKWebDialogDelegate.h + + Chc8NMEwHSvrQkghQPV6O7rBAW8= + + Headers/FBSDKWebDialogView.h + + hui2sUnpJKWcSpt107HTbPs4cps= + + Headers/FBSDKWebViewAppLinkResolver.h + + jEC9UH9Inm7DYqoFZv2qaN3Pe14= + + Headers/_FBSDKWindowFinding.h + + Gac9mAAYHny41SRhpW53CbfSo2s= + + Headers/__FBSDKLoggerCreating.h + + y1VVRA/XNhhKMaoTUc/66smvRqI= + + Info.plist + + 7cBZ8wjK7iI22cGLNsWRbhHHe5M= + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + SOeTyGMlV0Pce/AIRVDilpx8AuQ= + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + dgS0T4uzMbrFwTTwTODMov6u3jA= + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + +D/u7OW7z/SJ5G7nvs6wPA1K6+E= + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + Qhrzxqllh0TRwSkirS/PXEboCs0= + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + 4fnn3HFuUqt2vVNYeVU/5JLoOIY= + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + Bhl9OitWiY6WVryneeKy+85g2XA= + + Modules/module.modulemap + + dqxVNYXT9nBvFc3sI+M8nUrDXuA= + + + files2 + + Headers/FBSDKAccessToken.h + + hash + + Zwalh7WGm73EGYq6r0hOtY6TVyM= + + hash2 + + 1HuXQBYX9e+yfKLIyhwED67a3VCkpra3DxlLwws0NvA= + + + Headers/FBSDKAccessTokenProtocols.h + + hash + + QpJzB6oI1x1D3M0cC8Yw7FSuwKg= + + hash2 + + VuMGgje9C8CglYD1qDMt29vcNIUBUZlTAdNo+qvSeXM= + + + Headers/FBSDKAdvertisingTrackingStatus.h + + hash + + s2/tT+xSXPH4xXaQ+yW41JtgT58= + + hash2 + + pj5HBFKU2AJRVkryxLDxsNyV+Hq0vhsL7ESLeXA7gco= + + + Headers/FBSDKAppAvailabilityChecker.h + + hash + + Wyf9l4OPVlNw4rmgihSwsLLXekY= + + hash2 + + WCKAfRQSLZ76amGNcy7D85Zr0FqbK3yqgD2x9Q2KMVc= + + + Headers/FBSDKAppEventName.h + + hash + + EU49DFEvgz3pfVKd2Gh6GcVz19w= + + hash2 + + qlGcgxs7AVCOJpK7+czagW3XaPQIdPFE23qdql2xK3s= + + + Headers/FBSDKAppEventParameterName.h + + hash + + jMPwz6fdms/XUiUDkGZXO8LsEPs= + + hash2 + + P5BcIc7FNHua2MKnE3mmflQlvvdqk25zXugjGZGRhJk= + + + Headers/FBSDKAppEventParameterProduct.h + + hash + + r+KeRcYNIPkXBrMbyUHT2wI7s9Y= + + hash2 + + FIPXmw+JMv7bBSbF0zhfVC2Ib03Sx9JYrwjlNp1XInI= + + + Headers/FBSDKAppEventParameterValue.h + + hash + + 040yhBlHKamIDlwNu0ImpgLTCqc= + + hash2 + + Q2olYJJI/DN976h566Nwy3D+obhtAQAKHOJ5lKeTfm8= + + + Headers/FBSDKAppEventUserDataType.h + + hash + + A3lEI7gxtNx4AHoXWeE0s7u1zK8= + + hash2 + + 7pjsRgcXBeV8tJeLjrQvQ/3ZBmzY9k086Z46TsArMag= + + + Headers/FBSDKAppEvents.h + + hash + + ZabZwehtvq6nno9KnlPUHOfoXSA= + + hash2 + + /dqfqBWS1XAnIVpkJtTdrw+vGtx3hEWCNfcr96cZ7rU= + + + Headers/FBSDKAppEventsFlushBehavior.h + + hash + + tGoQfvz6uAy5DjnhPnzX/Ai2vl4= + + hash2 + + iUxqEKL4pmF7f47Qul2Oe8QI0MjDPnOn3VhWjVQWe90= + + + Headers/FBSDKAppEventsNotificationName.h + + hash + + y7c3PKWx/w77oSbeugClHIvTMS8= + + hash2 + + 7JmzpHhHPCXS4WcGYrhN2g1u5YXUgR/ltWdRyfv8l0I= + + + Headers/FBSDKAppLink.h + + hash + + 5EIxpe89PDf7uNARo4Jy4QH+Qo4= + + hash2 + + g/IxfDNhT5FlzCFaIqj87XZGnrfTh/0pcEjCqf8dc+Y= + + + Headers/FBSDKAppLinkNavigation.h + + hash + + RY5XtfOnoyCwcpgHKJiSeuMPBIA= + + hash2 + + 2CTZLIVldVIEEyp7qR0dEELZmUYjxrNoSe2J/m1affQ= + + + Headers/FBSDKAppLinkResolver.h + + hash + + 7sO6Yn5KZcxXlo5Y+w+lhkolKk8= + + hash2 + + 8aNQx4mlqNBxl/I9nP8S50yHG6KvLKKNYr2AOITTlko= + + + Headers/FBSDKAppLinkResolving.h + + hash + + vW0iP2TWioh9F2xVFhjb96AWH/M= + + hash2 + + qb3BIqDSak/QEJVHaa0UyJE2SIhRWJTvILOUETHKNbU= + + + Headers/FBSDKAppLinkTarget.h + + hash + + Jv4V7jimmNWdukOakiI+cOXPRTU= + + hash2 + + irWS1LgTXSXbrL6LszL/lt6uruZKKTG4ZIR+JPSYy5s= + + + Headers/FBSDKAppLinkTargetProtocol.h + + hash + + KjpJOKaE7Hu4fZ/kcuexDfd7h/E= + + hash2 + + xRIohRLTU/DyWAlvJeGXzuTsyj3d0Pb9Erqu0nLl2Qo= + + + Headers/FBSDKAppLinkUtility.h + + hash + + eg8m/+VYcUPPXnNT1s5tbmf4z60= + + hash2 + + TbJ3O5YJdrGHT7yvN5AV2LwUY7TCwYXzOU8UkYqesEU= + + + Headers/FBSDKAppURLSchemeProviding.h + + hash + + G7H5ArEaw56tAdukKkeFnHJW3yM= + + hash2 + + o9vW113QSBrXeTu8w1RgrMfMpi3Li+ZHpavPt/xYGa4= + + + Headers/FBSDKApplicationDelegate.h + + hash + + gySEL45XjsZYoHif6xbW5+3LZNQ= + + hash2 + + 9pKDm3WpHxIUpfhHV2ax+r5Ruz52fIsSa/tSfHfH8TY= + + + Headers/FBSDKApplicationObserving.h + + hash + + E5Ew6Wmyl//0dt7F2wSyYMbL8Uc= + + hash2 + + I09jTNQCgePthHc0fW/okp1bhMUx7+PPWoHkC8vl+Ls= + + + Headers/FBSDKAuthenticationToken.h + + hash + + 8MSOJbkw+GYK17UVaHITUogBFow= + + hash2 + + vMJ3N8rqdWY+q5wZWX5vjz3+YpiIueuJEVZ63TxUS6s= + + + Headers/FBSDKAuthenticationTokenClaims.h + + hash + + xojLcwuGpunIQjN3S1ntX2IxWxk= + + hash2 + + aBU/e5udieGDwDgz+qcP4zTL0e86m4akTzjoHIZViY4= + + + Headers/FBSDKAuthenticationTokenProtocols.h + + hash + + ll9VzBIGgFDag+gJiL8CfwN8Vmc= + + hash2 + + 9hunZocu2ArA/iddd/8a9xWZwt0gHDZPA7mNEhsFEgQ= + + + Headers/FBSDKBridgeAPI.h + + hash + + I5hqZr4+zcVZsAmHsy4JSL1Fgt8= + + hash2 + + /VHa8dL7WXWTHDTBxYJJ/126TykZLdGDcG5xOUHAbIg= + + + Headers/FBSDKBridgeAPIProtocol.h + + hash + + MsZsfhF27cV7UwnA9wtLWKut7x8= + + hash2 + + X+z7XuqGNwH+3YPu+QB5WCsbNcdIaK5qh1sdLvUKelY= + + + Headers/FBSDKBridgeAPIProtocolType.h + + hash + + DblZg5KWlfoY7uhozPWbR8A+C+Q= + + hash2 + + A5XYnc2oBVddlLz3wGiibtMvO6i/A+82gXL5XY+AsgA= + + + Headers/FBSDKBridgeAPIRequest.h + + hash + + /49KetCwFynSQPcoa2fwqdM6WCU= + + hash2 + + skJUk4euPJRaKtWFNSusDh5VCs+v8OI5CRiaykPJyNw= + + + Headers/FBSDKBridgeAPIRequestCreating.h + + hash + + fSrgRjXiEf48iO5SW4tUzCK4Dfw= + + hash2 + + NX+gToQ0lPJ7TSH2qMy4mIDEYMYzkZhwyZbP0XvC1iI= + + + Headers/FBSDKBridgeAPIRequestOpening.h + + hash + + +Du1Slb3MvBO9hnallcqMyu0oAw= + + hash2 + + s2lyojY76IEBtZow3eRPQRAb8vLKp8C63M/45OEbA1I= + + + Headers/FBSDKBridgeAPIRequestProtocol.h + + hash + + QvIJ69YhObUzXyvQTDogepJbLIY= + + hash2 + + zXyn4IrEQSs/K0vIuWaHZHWeYSHJfjrS2xjq3hrHThs= + + + Headers/FBSDKBridgeAPIResponse.h + + hash + + vy3kN0D9t6fqcYW4uwO5oHLybmw= + + hash2 + + ILxKEtXitTQmlNge486f2BNIV5KF7sl8I7WOgk43fCU= + + + Headers/FBSDKButton.h + + hash + + Q5s1g6x77uecqksyNP9YvwAxGKo= + + hash2 + + VGY0AU3C6L7ZwTarF+0BOGRkeoqOQcLDpxQJ6sRMJXY= + + + Headers/FBSDKButtonImpressionLogging.h + + hash + + LsVpQhR6smaHCPnF/ITEWiKGkKA= + + hash2 + + pShKA3myYUve8S5W/TI08BTWmhPh0RgoZQ6lY9c5S9g= + + + Headers/FBSDKConstants.h + + hash + + 8uLZKrsuXsxVHJGVSrF1lCoNawo= + + hash2 + + LxzBWAAzRjmjvoPtHtvZHe66BnfzV1RlnGfB8ljOYVA= + + + Headers/FBSDKCoreKit-Swift.h + + hash + + 9+bMBCD9BxRjD3PQ3rB3NOMTVqk= + + hash2 + + Jl9dwDlBiVxHiW68OI5OC2RYXiGeUhSeLro9/4KPfJU= + + + Headers/FBSDKCoreKit.h + + hash + + rSB/5qnmwQ/YfcHSajkFConHwuI= + + hash2 + + wiDLJIdGwhq62RT8NUGC9H3Ji6WVgPCTE3q7FTMneJw= + + + Headers/FBSDKCoreKitVersions.h + + hash + + rKH5hq1ilwGLoekVN/Gg8mdUg9g= + + hash2 + + l7IPGNpfCqVF+sjcP5uMsu37gMB3fm66FZWFuDUwc3E= + + + Headers/FBSDKDeviceButton.h + + hash + + 4LIheHz+TKvNTDHMFLx9U5N9muI= + + hash2 + + jraVs1muJpXk8r7ljiHH2+6sCGrZ0j+17u95Jn5xgKM= + + + Headers/FBSDKDeviceDialogView.h + + hash + + 0aubj8CDlLTz/o8MfbxQrck/VQs= + + hash2 + + 5SsLAz81rfMji3a9qaEVQ9gWESKGuH6ziUaSTA4K+k4= + + + Headers/FBSDKDeviceViewControllerBase.h + + hash + + 9d5jpsDwPq4ZpbCHYzNDectdVyE= + + hash2 + + 996f3WvoxwknKnreRc5JpTLQcUB27LR5tq5tV3qRHe0= + + + Headers/FBSDKDynamicFrameworkLoaderProxy.h + + hash + + gQze+1wXFmg8HHDE0Ba4/AdlSbk= + + hash2 + + DKzc5A2VHGjb5zjiW11FfYE+be1Je5rxetWvpGpLWP8= + + + Headers/FBSDKDynamicSocialFrameworkLoader.h + + hash + + VkK7+4REIGtAPH/eFKxy/bj9hQ0= + + hash2 + + I6uYOLsEUDxk7HKK39oiWyshO9sP8I6Ul2aPS4AGbaM= + + + Headers/FBSDKErrorCreating.h + + hash + + hSTHauBFdEYzYLgpazD8Nu2mbvA= + + hash2 + + J1rXYSPoy877pIwlZKDP6n/b3DufexQeIl0pOymmYVY= + + + Headers/FBSDKErrorFactory.h + + hash + + BbwtPEHEtIq6FGLxlzJ+93hv4XU= + + hash2 + + PwxuvjiaBR9QpRJl5SjDI8lRM5aDTxvbBAloH4txjBs= + + + Headers/FBSDKErrorRecoveryAttempting.h + + hash + + r3mkBDHcKe63UzmZCJLFEisXL3I= + + hash2 + + bbQLx2KLum7BokOQzq6eMFMcPRKyQgeSJyYi567SqfQ= + + + Headers/FBSDKFeature.h + + hash + + FyLPjFGney8xxCzilFkUSbm265Y= + + hash2 + + y4M4PFCnnEh5bBoswQADFakDdQJKWmhSzNYwEjdspE0= + + + Headers/FBSDKFeatureChecking.h + + hash + + rYTkx84W03mL0rrno4sthw6poiM= + + hash2 + + QtYErERzFYGRmUpt4HXd8p062xQtrNl5l+J2nUhhc1k= + + + Headers/FBSDKGraphErrorRecoveryProcessor.h + + hash + + /3AE6n6eta/pkvOIaQ5ZDZrxIwc= + + hash2 + + boW9M+T41fcjt/4pL+1wAI0jjDX2bGoZKHNSOiS3GCA= + + + Headers/FBSDKGraphRequest.h + + hash + + mDiia1xQGNDzGWkoO2IrQrHcVCo= + + hash2 + + cObAdeSuYo3AG0Il/A6PknPlmQQkmsy8p6wzTTeJnFc= + + + Headers/FBSDKGraphRequestConnecting.h + + hash + + paaU79+o3FwlCqzfosIGlXZTwL4= + + hash2 + + ly7JyuRHRTif+4dhHHyNJrgci4jYJ1SPobEAWFdeBG8= + + + Headers/FBSDKGraphRequestConnection.h + + hash + + ZCtXBvpuATZKAZvJLOo9h5KrckA= + + hash2 + + ZbfPRx7gmcdeVKVyDE+cliM8ehWUJBPao1Kbkzn0Xv8= + + + Headers/FBSDKGraphRequestConnectionDelegate.h + + hash + + FSHiVcHDpJTlfdfBczQNHtjDJ8s= + + hash2 + + pbeIgtjILQ+9lWJviGFFqpO8IqXWnVf2DQ094YKDKMY= + + + Headers/FBSDKGraphRequestConnectionFactory.h + + hash + + gAfT3DO/vuTTlEaJPEP8hL5P3Eo= + + hash2 + + xgTvIuiH3O0GP4dAfx+lVweVvj/3VUFzk/ZwDkEd6UM= + + + Headers/FBSDKGraphRequestConnectionFactoryProtocol.h + + hash + + A26a5H79Zb1dRO6YHMFB4DbS+D8= + + hash2 + + ZSBkNkUs6k4hh3lOO6aa5+j5kuh9vwSm6BTbH++KEH4= + + + Headers/FBSDKGraphRequestDataAttachment.h + + hash + + 7vvCqPiZp4o6JKVaJJ4FP9XkXKE= + + hash2 + + rrQm0dv7u0VNuBOOr4bOsLq22U2VRKN5+/8z8dvg8ac= + + + Headers/FBSDKGraphRequestFactory.h + + hash + + lAwX1CKv5VHiJ07/xZZylICOdg4= + + hash2 + + VHji6+eQJ/noGhXoav1+rDhYGkeNSPac5f3JMIMO4OQ= + + + Headers/FBSDKGraphRequestFactoryProtocol.h + + hash + + Nz3K53RPMCO3ckDCvhJoBJ9TIKI= + + hash2 + + 4EdOx1EfPwkCg86SDjtSacKJozvb0RRnJZ19a7qirAA= + + + Headers/FBSDKGraphRequestFlags.h + + hash + + Zas2ccUoNaCrjUffAdLC6TmKLWs= + + hash2 + + QaBxTTw493IFQLv0fwkhBkWu57wAPkAZ/fexBSmcWuA= + + + Headers/FBSDKGraphRequestHTTPMethod.h + + hash + + sF4WT7ko2ZXuQ91thBewwSb29Cc= + + hash2 + + s/ZdV1PYtfb+e5MToTE5eWQ/g8Ea8Lfbn1y5cPXIois= + + + Headers/FBSDKGraphRequestProtocol.h + + hash + + E72bbJ8BaX/EV/so4aPEeaLRTkY= + + hash2 + + GDWolFR0Dj6corFdcjDQZdk7rfU0AEPiBD4Ij/x0efk= + + + Headers/FBSDKIcon.h + + hash + + nSUcEGcswYAb2H/1Kk1Ibii38sQ= + + hash2 + + +bRm7DWEBj2Qs6f5L8UwS8K4WF3DXn9C+47shPYf33Q= + + + Headers/FBSDKImpressionLoggingButton.h + + hash + + aaainoJHYRbRmab8MpwHmrU4hVo= + + hash2 + + YdoyQtxZm0tnh9jsgEZSnzReYlue+nwzRR4z3AsUkdg= + + + Headers/FBSDKInternalUtility.h + + hash + + upq6sOVxvYgmqem02YoK1SQZ4fI= + + hash2 + + Fe2S171oUUBElc9qkWiXG7eZQtTmmXOQ8JFhXqh9too= + + + Headers/FBSDKInternalUtilityProtocol.h + + hash + + Fv2HZA8YkLc1F/996f+/OhkAzZM= + + hash2 + + mbZQDpstOa8EgXL6i2KXC/6Al3EIoKxJT0wqzk2UNfs= + + + Headers/FBSDKKeychainStore.h + + hash + + VSfBFlzguwgAJhVey77PM3TiKzI= + + hash2 + + sQGCel/07cMPMZI0kl8wscwPV9WL/JIYf1ns0PSf8v0= + + + Headers/FBSDKKeychainStoreFactory.h + + hash + + EokxqDkQxYQBz5YnFwcqJvVKd8I= + + hash2 + + la/OM0KnLr35SmfD02P88Sr62T2F8+uRVF/wDtbdfSw= + + + Headers/FBSDKKeychainStoreProtocol.h + + hash + + Vl4nIrUwT7cqcjwlXymbPkKUVDo= + + hash2 + + XNfcYyJYq69j5eL0ARtTlzkh8SdVCq+G/s9eY4Pd8O8= + + + Headers/FBSDKKeychainStoreProviding.h + + hash + + mIeRZ1Khyvf/6V2HXI3+7c15XfU= + + hash2 + + N5iX620VVuEnU9MNl/truAcPdvE78EoCZ13WK/XGM7w= + + + Headers/FBSDKLocation.h + + hash + + lVldFN//gmPckkWOntm6/lMe0QE= + + hash2 + + 4VM07vWgUKPPsLEMLF29hXYKIHBkc9vETSX506Z++Uw= + + + Headers/FBSDKLogger.h + + hash + + rtRqjTXsaZXv5x8H14rMIs3g7Gk= + + hash2 + + Qfqspxm3/sPBdO0HFJAKtqdycEFIM/L2eebvKieQ5F4= + + + Headers/FBSDKLogging.h + + hash + + /DbryGZcqEQACAktvCjPjV6SDG4= + + hash2 + + IvKTyTv5bHSAJcZqLwaHR/lW5CFnjIggFOzHMRDWMk4= + + + Headers/FBSDKLoggingBehavior.h + + hash + + 2RipnoPNHjzmVyzHpZjxsO+csE0= + + hash2 + + 4aOXHNufAYanMkOEmfMy+Os4pKJrcNj1FhZ5sT1dlwA= + + + Headers/FBSDKLoginTooltip.h + + hash + + t9qlwGoUeyWhxDfXE8Ky6RnF/gg= + + hash2 + + C6wHDAq5ukwucR1FkTnnq3ucsw6y7GR9wDadgB3zHZY= + + + Headers/FBSDKMeasurementEvent.h + + hash + + iDxUikYGmDa2FVGCbslgxrjwXLA= + + hash2 + + pQsOL0XS7oLwroR3nl+OX9iQElmW8sTnvwrqKgbgoas= + + + Headers/FBSDKMutableCopying.h + + hash + + CdAKmAi79FHfugMUCBcou38XjyY= + + hash2 + + 9WETC6Qraw3B3QY90JfYu/elsAnM/L40JTEsRAOO+hQ= + + + Headers/FBSDKNetworkErrorChecker.h + + hash + + lc4ltIsnGN0wefVKZeW3BTQqt8o= + + hash2 + + mQPfqbSnxLTJW64KKhoGcZPQYNTYQABLzG1AZ2hcTSs= + + + Headers/FBSDKNetworkErrorChecking.h + + hash + + DQOOpk+tae6sTARv6zgYkUNQv+4= + + hash2 + + JaxujLpfeoL0uJ15AXk/+TxmnQ+XgmtHYz9sb5k3r1w= + + + Headers/FBSDKProductAvailability.h + + hash + + 4z6lAOLiyG+H6sMmuDzBXlrBO4Q= + + hash2 + + AfSg3sbP+VegxUAApbWi9NSI+/dlu9LbDGiLvCWo3Z0= + + + Headers/FBSDKProductCondition.h + + hash + + p2M86R+0XjuIIHBALGh4qHhF0sg= + + hash2 + + dNGTpMMgyZMruD+nBPSsD0Y3Bc2L8ZoTcsW1f5tdK7Q= + + + Headers/FBSDKProfile.h + + hash + + a1wf8Hf9JZZ6hWCfCShWPzBo7hk= + + hash2 + + iG8YHX07jMMrMI6thsGnT/Xv5wMMTO52dV+w5SBO5fw= + + + Headers/FBSDKProfilePictureView.h + + hash + + Ha1FZWHpTkpVErTLPsBp8dmIzFY= + + hash2 + + +RZ2/BzlpoTMWjbOHFqG6m1hhbE1kZ3UdI7y955aYTE= + + + Headers/FBSDKProfileProtocols.h + + hash + + osJIfxC8jjnWg+nZiIydGspDpKo= + + hash2 + + IEi+jwFakp2U3rTrt+M4o8n/OleKxYtn20oi2/DBfW0= + + + Headers/FBSDKRandom.h + + hash + + R8FED9YvoEocX/AhmRTKcVPRw2o= + + hash2 + + JXR3YBjvsfljeUoFjq/rNAz0+acuqvjZkXBhXXs5bgE= + + + Headers/FBSDKServerConfigurationProvider.h + + hash + + pQXes4mDHFLyo95AmuqC6AXyKDI= + + hash2 + + 01hR69Hyq4I9ftA7aAoMDpz9HPUBUDo234syKknYqek= + + + Headers/FBSDKSettings.h + + hash + + FIxUl9WHubBQ4Rmv8W7iNVRzrq4= + + hash2 + + P3FaEtZ85Yn2izQSfBxU5Z7R0wZX7KuiRjTEsgEoSGU= + + + Headers/FBSDKSettingsLogging.h + + hash + + j4NKiO1um7BzI27sPShA+WNNV6E= + + hash2 + + GgfZ+r7AkNT2pA6iA72tqgExzEgxS0MRiVNUSlpsa48= + + + Headers/FBSDKSettingsProtocol.h + + hash + + QogmjQBweHFkUWSIRYsBQvR4gHE= + + hash2 + + vYviw3P0xVBPMPq5TFbuuFWvwiZH9HkZcHV1gavtPLo= + + + Headers/FBSDKShareDialogConfiguration.h + + hash + + WPPtv+9HV+w3NbzlQBfQDXQ6qlQ= + + hash2 + + K875Kx7WBiydIBg/+0ysq8NjN9EUtXTCYJADXXApiGw= + + + Headers/FBSDKTokenCaching.h + + hash + + Y9D8zDMXaiaJEPNG6yqmuv8sdxU= + + hash2 + + adI/CmzszZ3MQwaZv5E3iCsNy9ipB09TK9oNjPirDD4= + + + Headers/FBSDKTokenStringProviding.h + + hash + + 1ULLCT9qWhm7HkrSyND4RJwRF6Y= + + hash2 + + Cmhyy2RK5YdGkiMeYR7YqggjtKl5xi9gfIWd5Rzyos0= + + + Headers/FBSDKTransformer.h + + hash + + Ui2GFPACS7T6kK9LcCLcdJyCYyo= + + hash2 + + 76ADDGvmmKAAjwJQmqZOKN1QRhrUmGE9qELPwGG2F4k= + + + Headers/FBSDKURL.h + + hash + + d5KoDUOKDIKe8CdBCFa5iFYqMyQ= + + hash2 + + z00FICbn5ff0howaGWioLWtllVLJgjG7rjFDC45tHy0= + + + Headers/FBSDKURLHosting.h + + hash + + t5Vuvclz3txsOHO/DxRweisyVC8= + + hash2 + + JCLr3/884XZGGQb+q4SVXOAqYudnP/xSxJwFQrBu/rM= + + + Headers/FBSDKURLOpener.h + + hash + + A0FSD5yqJH1esXZTdJ5le57N30Q= + + hash2 + + wj7zVEbrD0B1jWpZL7ds2JfPoOHbKyQMRQ9zaz1Tkns= + + + Headers/FBSDKURLOpening.h + + hash + + ExR8Hwm+b4hQrM+eFZoUR3yLS1U= + + hash2 + + Tz1w+caBEpltndmOob6oHx2noM6mODsJ8CyYC4022mM= + + + Headers/FBSDKURLScheme.h + + hash + + 36HfFNYLwWfRajDYFDJeNZe/evc= + + hash2 + + BdpEnJgCwk4m/BX4jdUcFWtch+dOASiPi4b4XuShRow= + + + Headers/FBSDKUserAgeRange.h + + hash + + eRyqSxEieMcqdjv0yKXNIDnmRIg= + + hash2 + + HlG9273bkbhwQ3Z40EFALmtcSl7mgJYAMF+i4LVTQuM= + + + Headers/FBSDKUtility.h + + hash + + ACK+e48w6WLwZDhZT9VIaXDWTlk= + + hash2 + + aDJa31ufENPB6jQuSRYbBb60HcsTocEvvcqZw2iWBN8= + + + Headers/FBSDKWebDialog.h + + hash + + s8cqZqq/NcQyFzujtEc+0qtxxx0= + + hash2 + + ATqlu9KYW/pAwdcdpb4GlQIz1Nk2STbt9iCKNwzSp1A= + + + Headers/FBSDKWebDialogDelegate.h + + hash + + Chc8NMEwHSvrQkghQPV6O7rBAW8= + + hash2 + + fAbiGz2QpyZhBW9PcnYlwGajlmRi8TQdfmFST1Ii2ko= + + + Headers/FBSDKWebDialogView.h + + hash + + hui2sUnpJKWcSpt107HTbPs4cps= + + hash2 + + m2WxAYCfc7WCR5dy6dNBQc1AHggtgjChVTABh5wi5aE= + + + Headers/FBSDKWebViewAppLinkResolver.h + + hash + + jEC9UH9Inm7DYqoFZv2qaN3Pe14= + + hash2 + + +Ac5AbGpEiHL5SuKIFm5ORqswif+O0w+zlIxL1qgUd4= + + + Headers/_FBSDKWindowFinding.h + + hash + + Gac9mAAYHny41SRhpW53CbfSo2s= + + hash2 + + QxPymhBROXgyvxD0bzeN+T5ennsD7zaelwvA1a2l3oE= + + + Headers/__FBSDKLoggerCreating.h + + hash + + y1VVRA/XNhhKMaoTUc/66smvRqI= + + hash2 + + /8e+8f0FIi7sNd85JGNd2gXdF5x4vJgOTUOgWIssxL4= + + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + hash + + SOeTyGMlV0Pce/AIRVDilpx8AuQ= + + hash2 + + OtfSnEsgL4ee0LJwLsbB8yGfFm8k6msQA5WcaSUxnIM= + + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + hash + + dgS0T4uzMbrFwTTwTODMov6u3jA= + + hash2 + + fxK4roXKS1FDV1LoSf6IXJ+P1AQfoyCTMVk6GhuFILY= + + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + hash + + +D/u7OW7z/SJ5G7nvs6wPA1K6+E= + + hash2 + + ZH0oWSTPFlXx2U/VRMsKElJp8JDadBr300wtvnADDZI= + + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + hash + + Qhrzxqllh0TRwSkirS/PXEboCs0= + + hash2 + + O9Ldqo9i1WiDlc8Q+YCdlUOBqSy2dNg/nMrLhCgsHac= + + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + hash + + 4fnn3HFuUqt2vVNYeVU/5JLoOIY= + + hash2 + + A9fHfMxrpR6y5ojjgsdpjt3xBfSRZiEjJjidpADNjRQ= + + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + hash + + Bhl9OitWiY6WVryneeKy+85g2XA= + + hash2 + + i2OSBM/te86KqC3XgzmzF8urN69nqbhBexZd/0ZHTkg= + + + Modules/module.modulemap + + hash + + dqxVNYXT9nBvFc3sI+M8nUrDXuA= + + hash2 + + c2A9sHV9BPDFexemM1nM/fNWiYjoYt4V7Zxb+LDeu2Y= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeSignature b/ios/platform/FBSDKCoreKit.xcframework/ios-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeSignature new file mode 100644 index 00000000..e69de29b diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/FBSDKCoreKit b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/FBSDKCoreKit new file mode 100644 index 00000000..5d6d6810 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/FBSDKCoreKit differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h new file mode 100644 index 00000000..87494ec0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h @@ -0,0 +1,188 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentAccessToken` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKAccessTokenChangeOldKey` and + `FBSDKAccessTokenChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification +NS_SWIFT_NAME(AccessTokenDidChange); + +/** + A key in the notification's userInfo that will be set + if and only if the user ID changed between the old and new tokens. + + Token refreshes can occur automatically with the SDK + which do not change the user. If you're only interested in user + changes (such as logging out), you should check for the existence + of this key. The value is a NSNumber with a boolValue. + + On a fresh start of the app where the SDK reads in the cached value + of an access token, this key will also exist since the access token + is moving from a null state (no user) to a non-null state (user). + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserIDKey +NS_SWIFT_NAME(AccessTokenDidChangeUserIDKey); + +/* + key in notification's userInfo object for getting the old token. + + If there was no old token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey +NS_SWIFT_NAME(AccessTokenChangeOldKey); + +/* + key in notification's userInfo object for getting the new token. + + If there is no new token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey +NS_SWIFT_NAME(AccessTokenChangeNewKey); + +/* + A key in the notification's userInfo that will be set + if and only if the token has expired. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpireKey +NS_SWIFT_NAME(AccessTokenDidExpireKey); + +/// Represents an immutable access token for using Facebook services. +NS_SWIFT_NAME(AccessToken) +@interface FBSDKAccessToken : NSObject + +/** + The "global" access token that represents the currently logged in user. + + The `currentAccessToken` is a convenient representation of the token of the + current user and is used by other SDK components (like `FBSDKLoginManager`). + */ +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +/// Returns YES if currentAccessToken is not nil AND currentAccessToken is not expired +@property (class, nonatomic, readonly, getter = isCurrentAccessTokenActive, assign) BOOL currentAccessTokenIsActive; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +/// Returns the app ID. +@property (nonatomic, readonly, copy) NSString *appID; + +/// Returns the expiration date for data access +@property (nonatomic, readonly, copy) NSDate *dataAccessExpirationDate; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *declinedPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *expiredPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// Returns the known granted permissions. +@property (nonatomic, readonly, copy) NSSet *permissions + NS_REFINED_FOR_SWIFT; + +/// Returns the date the token was last refreshed. +@property (nonatomic, readonly, copy) NSDate *refreshDate; + +/// Returns the opaque token string. +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// Returns the user ID. +@property (nonatomic, readonly, copy) NSString *userID; + +/// Returns whether the access token is expired by checking its expirationDate property +@property (nonatomic, readonly, getter = isExpired, assign) BOOL expired; + +/// Returns whether user data access is still active for the given access token +@property (nonatomic, readonly, getter = isDataAccessExpired, assign) BOOL dataAccessExpired; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes a new instance. + @param tokenString the opaque token string. + @param permissions the granted permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param appID the app ID. + @param userID the user ID. + @param expirationDate the optional expiration date (defaults to distantFuture). + @param refreshDate the optional date the token was last refreshed (defaults to today). + @param dataAccessExpirationDate the date which data access will expire for the given user + (defaults to distantFuture). + + This initializer should only be used for advanced apps that + manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` + along with `+currentAccessToken`. + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray *)permissions + declinedPermissions:(NSArray *)declinedPermissions + expiredPermissions:(NSArray *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(nullable NSDate *)expirationDate + refreshDate:(nullable NSDate *)refreshDate + dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate + NS_DESIGNATED_INITIALIZER; + +/** + Convenience getter to determine if a permission has been granted + @param permission The permission to check. + */ +// UNCRUSTIFY_FORMAT_OFF +- (BOOL)hasGranted:(NSString *)permission +NS_SWIFT_NAME(hasGranted(permission:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Compares the receiver to another FBSDKAccessToken + @param token The other token + @return YES if the receiver's values are equal to the other token's values; otherwise NO + */ +- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token; + +/** + Refresh the current access token's permission state and extend the token's expiration date, + if possible. + @param completion an optional callback handler that can surface any errors related to permission refreshing. + + On a successful refresh, the currentAccessToken will be updated so you typically only need to + observe the `FBSDKAccessTokenDidChangeNotification` notification. + + If a token is already expired, it cannot be refreshed. + */ ++ (void)refreshCurrentAccessTokenWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h new file mode 100644 index 00000000..5c033caa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@protocol FBSDKTokenCaching; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenProviding) +@protocol FBSDKAccessTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAccessToken *currentAccessToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenSetting) +@protocol FBSDKAccessTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h new file mode 100644 index 00000000..730b90da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKAdvertisingTrackingStatus) { + FBSDKAdvertisingTrackingAllowed, + FBSDKAdvertisingTrackingDisallowed, + FBSDKAdvertisingTrackingUnspecified, +} NS_SWIFT_NAME(AdvertisingTrackingStatus); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h new file mode 100644 index 00000000..21a1f444 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppAvailabilityChecker) +@protocol FBSDKAppAvailabilityChecker + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isFacebookAppInstalled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h new file mode 100644 index 00000000..b55589b9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBSDKAppEvents`. + Common event parameters are provided in the `FBSDKAppEventParameterName` constants. + */ + +/// typedef for FBSDKAppEventName +typedef NSString *FBSDKAppEventName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.Name); + +// MARK: - General Purpose + +/// Log this event when the user clicks an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdClick; + +/// Log this event when the user views an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdImpression; + +/// Log this event when a user has completed registration with the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedRegistration; + +/// Log this event when the user has completed a tutorial in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedTutorial; + +/// A telephone/SMS, email, chat or other type of contact between a customer and your business. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameContact; + +/// The customization of products through a configuration tool or other application your business owns. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCustomizeProduct; + +/// The donation of funds to your organization or cause. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameDonate; + +/// When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameFindLocation; + +/// Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameRated; + +/// The booking of an appointment to visit one of your locations. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSchedule; + +/// Log this event when a user has performed a search within the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSearched; + +/// The start of a free trial of a product or service you offer (example: trial subscription). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameStartTrial; + +/// The submission of an application for a product, service or program you offer (example: credit card, educational program or job). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubmitApplication; + +/// The start of a paid subscription for a product or service you offer. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubscribe; + +/// Log this event when a user has viewed a form of content in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameViewedContent; + +// MARK: - E-Commerce + +/// Log this event when the user has entered their payment info. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedPaymentInfo; + +/// Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToCart; + +/// Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToWishlist; + +/// Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameInitiatedCheckout; + +/// Log this event when the user has completed a transaction. The valueToSum passed to logEvent should be the total price of the transaction. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNamePurchased; + +// MARK: - Gaming + +/// Log this event when the user has achieved a level in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAchievedLevel; + +/// Log this event when the user has unlocked an achievement in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameUnlockedAchievement; + +/// Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSpentCredits; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h new file mode 100644 index 00000000..ceb5e2d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h @@ -0,0 +1,73 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. + */ + +/// typedef for FBSDKAppEventParameterName +typedef NSString *FBSDKAppEventParameterName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterName); + +/** + * Parameter key used to specify data for the one or more pieces of content being logged about. + * Data should be a JSON encoded string. + * Example: + * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" + */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContent; + +/// Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentID; + +/// Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentType; + +/// Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameCurrency; + +/// Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameDescription; + +/// Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLevel; + +/// Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameMaxRatingValue; + +/// Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameNumItems; + +/// Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNamePaymentInfoAvailable; + +/// Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameRegistrationMethod; + +/// Parameter key used to specify the string provided by the user for a search operation. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSearchString; + +/// Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSuccess; + +/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression + * or FBSDKAppEventNameAdClick event. + * E.g. "banner", "interstitial", "rewarded_video", "native" */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameAdType; + +/** Parameter key used to specify the unique ID for all events within a subscription + * in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameOrderID; + +/// Parameter key used to specify event name. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameEventName; + +/// Parameter key used to specify event log time. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLogTime; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h new file mode 100644 index 00000000..ff0b036c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logProductItem` method on `FBSDKAppEvents`. + +/// typedef for FBSDKAppEventParameterProduct +typedef NSString *const FBSDKAppEventParameterProduct NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterProduct); + +/// Parameter key used to specify the product item's category. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory; + +/// Parameter key used to specify the product item's custom label 0. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0; + +/// Parameter key used to specify the product item's custom label 1. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1; + +/// Parameter key used to specify the product item's custom label 2. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2; + +/// Parameter key used to specify the product item's custom label 3. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3; + +/// Parameter key used to specify the product item's custom label 4. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4; + +/// Parameter key used to specify the product item's AppLink app URL for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iOS App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPhone App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPad App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl; + +/// Parameter key used to specify the product item's AppLink fully-qualified package name for intent generation. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage; + +/// Parameter key used to specify the product item's AppLink app name for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID, as a GUID, for App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID; + +/// Parameter key used to specify the product item's AppLink app name for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h new file mode 100644 index 00000000..796e2e10 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/* + @methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants. + */ + +/// typedef for FBSDKAppEventParameterValue +typedef NSString *const FBSDKAppEventParameterValue NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterValue); + +/// Yes-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes; + +/// No-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h new file mode 100644 index 00000000..194443d5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *const FBSDKAppEventUserDataType NS_TYPED_EXTENSIBLE_ENUM; + +/// Parameter key used to specify user's email. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventEmail; + +/// Parameter key used to specify user's first name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventFirstName; + +/// Parameter key used to specify user's last name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventLastName; + +/// Parameter key used to specify user's phone. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventPhone; + +/// Parameter key used to specify user's date of birth. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth; + +/// Parameter key used to specify user's gender. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventGender; + +/// Parameter key used to specify user's city. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCity; + +/// Parameter key used to specify user's state. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventState; + +/// Parameter key used to specify user's zip. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventZip; + +/// Parameter key used to specify user's country. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCountry; + +/// Parameter key used to specify user's external id. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventExternalId; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h new file mode 100644 index 00000000..1504e744 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h @@ -0,0 +1,521 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + #import +#endif + +#import +#import +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/// Optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` +FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey +NS_SWIFT_NAME(AppEventsOverrideAppIDBundleKey); + +/** + Client-side event logging for specialized application analytics available through Facebook App Insights + and for use with Facebook Ads conversion tracking and optimization. + + The `FBSDKAppEvents` static class has a few related roles: + + + Logging predefined and application-defined events to Facebook App Insights with a + numeric value to sum across a large number of events, and an optional set of key/value + parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or + 'gamerLevel' : 'intermediate') + + + Logging events to later be used for ads optimization around lifetime value. + + + Methods that control the way in which events are flushed out to the Facebook servers. + + Here are some important characteristics of the logging mechanism provided by `FBSDKAppEvents`: + + + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers + in a number of situations: + - when an event count threshold is passed (currently 100 logged events). + - when a time threshold is passed (currently 15 seconds). + - when an app has gone to background and is then brought back to the foreground. + + + Events will be accumulated when the app is in a disconnected state, and sent when the connection is + restored and one of the above 'flush' conditions are met. + + + The `FBSDKAppEvents` class is thread-safe in that events may be logged from any of the app's threads. + + + The developer can set the `flushBehavior` on `FBSDKAppEvents` to force the flushing of events to only + occur on an explicit call to the `flush` method. + + + The developer can turn on console debug output for event logging and flushing to the server by using + the `FBSDKLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. + + Some things to note when logging events: + + + There is a limit on the number of unique event names an app can use, on the order of 1000. + + There is a limit to the number of unique parameter names in the provided parameters that can + be used per event, on the order of 25. This is not just for an individual call, but for all + invocations for that eventName. + + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and + must consist of alphanumeric characters, _, -, or spaces. + + The length of each parameter value can be no more than on the order of 100 characters. + */ +NS_SWIFT_NAME(AppEvents) +@interface FBSDKAppEvents : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The shared instance of AppEvents. +@property (class, nonatomic, readonly, strong) FBSDKAppEvents *shared; + +/// Control over event batching/flushing + +/// The current event flushing behavior specifying when events are sent back to Facebook servers. +@property (nonatomic) FBSDKAppEventsFlushBehavior flushBehavior; + +/** + Set the 'override' App ID for App Event logging. + + In some cases, apps want to use one Facebook App ID for login and social presence and another + for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but + want distinct logging.) By default, this value is `nil`, and defers to the `FBSDKAppEventsOverrideAppIDBundleKey` + plist value. If that's not set, it defaults to `Settings.shared.appID`. + + This should be set before any other calls are made to `AppEvents`. Thus, you should set it in your application + delegate's `application(_:didFinishLaunchingWithOptions:)` method. + */ +@property (nullable, nonatomic, copy) NSString *loggingOverrideAppID; + +/** + The custom user ID to associate with all app events. + + The userID is persisted until it is cleared by passing `nil`. + */ +@property (nullable, nonatomic, copy) NSString *userID; + +/// Returns generated anonymous id that persisted with current install of the app +@property (nonatomic, readonly) NSString *anonymousID; + +/* + * Basic event logging + */ + +/** + Log an event with just an event name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. + */ +- (void)logEvent:(FBSDKAppEventName)eventName; + +/** + Log an event with an event name and a numeric value to be aggregated with other events of this name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum; + +/** + Log an event with an event name and a set of key/value pairs in the parameters dictionary. + Parameter limitations are described above. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. Note that this is an `NSNumber`, and a value of `nil` denotes + that this event doesn't have a value associated with it for summation. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(nullable NSNumber *)valueToSum + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken; + +/* + * Purchase logging + */ + +/** + Log a purchase of the specified amount, in the specified currency. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency + NS_SWIFT_NAME(logPurchase(amount:currency:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/* + * Push Notifications Logging + */ + +/** + Log an app event that tracks that the application was open via Push Notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload + NS_SWIFT_NAME(logPushNotificationOpen(payload:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log an app event that tracks that a custom action was taken from a push notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + @param action Name of the action that was taken. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action + NS_SWIFT_NAME(logPushNotificationOpen(payload:action:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Uploads product catalog product item as an app event + + @param itemID Unique ID for the item. Can be a variant for a product. + Max size is 100. + @param availability If item is in stock. Accepted values are: + in stock - Item ships immediately + out of stock - No plan to restock + preorder - Available in future + available for order - Ships in 1-2 weeks + discontinued - Discontinued + @param condition Product condition: new, refurbished or used. + @param description Short text describing product. Max size is 5000. + @param imageLink Link to item image used in ad. + @param link Link to merchant's site where someone can buy the item. + @param title Title of item. + @param priceAmount Amount of purchase, in the currency specified by the 'currency' + parameter. This value will be rounded to the thousandths place + (e.g., 12.34567 becomes 12.346). + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + @param gtin Global Trade Item Number including UPC, EAN, JAN and ISBN + @param mpn Unique manufacture ID for product + @param brand Name of the brand + Note: Either gtin, mpn or brand is required. + @param parameters Optional fields for deep link specification. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logProductItem:(NSString *)itemID + availability:(FBSDKProductAvailability)availability + condition:(FBSDKProductCondition)condition + description:(NSString *)description + imageLink:(NSString *)imageLink + link:(NSString *)link + title:(NSString *)title + priceAmount:(double)priceAmount + currency:(NSString *)currency + gtin:(nullable NSString *)gtin + mpn:(nullable NSString *)mpn + brand:(nullable NSString *)brand + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logProductItem(id:availability:condition:description:imageLink:link:title:priceAmount:currency:gtin:mpn:brand:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. + This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless + one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. + In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the + app delegates' `applicationDidBecomeActive:` method. + + This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to + track user acquisition and app install ads conversions. + + `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. + "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" + event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much + time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data + is all visible in your app's App Events Insights. + */ +- (void)activateApp; + +/* + * Push Notifications Registration and Uninstall Tracking + */ + +/** + Sets and sends device token to register the current application for push notifications. + + Sets and sends a device token from the `Data` representation that you get from + `UIApplicationDelegate.application(_:didRegisterForRemoteNotificationsWithDeviceToken:)`. + + @param deviceToken Device token data. + */ +- (void)setPushNotificationsDeviceToken:(nullable NSData *)deviceToken; + +/** + Sets and sends device token string to register the current application for push notifications. + + Sets and sends a device token string + + @param deviceTokenString Device token string. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)setPushNotificationsDeviceTokenString:(nullable NSString *)deviceTokenString +NS_SWIFT_NAME(setPushNotificationsDeviceToken(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate + kick off. Server failures will be reported through the NotificationCenter with notification ID `FBSDKAppEventsLoggingResultNotification`. + */ +- (void)flush; + +/** + Creates a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. + Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, + and then use the resultant Custom Audience to target ads. + + The JSON in the request's response will include a "custom_audience_third_party_id" key/value pair with the value being the ID retrieved. + This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. + Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior + across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. + + The ID retrieved represents the Facebook user identified in the following way: if the specified access token is valid, + the ID will represent the user associated with that token; otherwise the ID will represent the user logged into the + native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out + at the iOS level from ad tracking, then a `nil` ID will be returned. + + This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage + via the `Settings.shared.isEventDataUsageLimited` flag, or a specific Facebook user cannot be identified. + + @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. + If `nil`, then `AccessToken.current` is used. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(nullable FBSDKAccessToken *)accessToken +NS_SWIFT_NAME(requestForCustomAudienceThirdPartyID(accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param email user's email + @param firstName user's first name + @param lastName user's last name + @param phone user's phone + @param dateOfBirth user's date of birth + @param gender user's gender + @param city user's city + @param state user's state + @param zip user's zip + @param country user's country + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the set user data else nil +- (nullable NSString *)getUserData; + +/// Clears the current user data +- (void)clearUserData; + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param data data + @param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone + */ +- (void)setUserData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type; + +/// Clears the current user data of certain type +- (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; + +#if !TARGET_OS_TV +/** + Intended to be used as part of a hybrid webapp. + If you call this method, the FB SDK will inject a new JavaScript object into your webview. + If the FB Pixel is used within the webview, and references the app ID of this app, + then it will detect the presence of this injected JavaScript object + and pass Pixel events back to the FB SDK for logging using the AppEvents framework. + + @param webView The webview to augment with the additional JavaScript behavior + */ +- (void)augmentHybridWebView:(WKWebView *)webView; +#endif + +/* + * Unity helper functions + */ + +/** + Set whether Unity is already initialized. + + @param isUnityInitialized Whether Unity is initialized. + */ +- (void)setIsUnityInitialized:(BOOL)isUnityInitialized; + +/// Send event bindings to Unity +- (void)sendEventBindingsToUnity; + +/* + * SDK Specific Event Logging + * Do not call directly outside of the SDK itself. + */ + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(nullable FBSDKAccessToken *)accessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h new file mode 100644 index 00000000..872ef491 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior) + + Specifies when `FBSDKAppEvents` sends log events to the server. + */ +typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushBehavior) { + /// Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. + FBSDKAppEventsFlushBehaviorAuto = 0, + + /** Only flush when the `flush` method is called. When an app is moved to background/terminated, the + events are persisted and re-established at activation, but they will only be written with an + explicit call to `flush`. */ + FBSDKAppEventsFlushBehaviorExplicitOnly, +} NS_SWIFT_NAME(AppEvents.FlushBehavior); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h new file mode 100644 index 00000000..159e27d7 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. +FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification +NS_SWIFT_NAME(AppEventsLoggingResult); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h new file mode 100644 index 00000000..c8b39faa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppURLSchemeProviding) +@protocol FBSDKAppURLSchemeProviding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, copy) NSString *appURLScheme; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)validateURLSchemes; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h new file mode 100644 index 00000000..ad1b6c78 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h @@ -0,0 +1,131 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The FBSDKApplicationDelegate is designed to post process the results from Facebook Login + or Facebook Dialogs (or any action that requires switching over to the native Facebook + app or Safari). + + The methods in this class are designed to mirror those in UIApplicationDelegate, and you + should call them in the respective methods in your AppDelegate implementation. + */ +NS_SWIFT_NAME(ApplicationDelegate) +@interface FBSDKApplicationDelegate : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +#if DEBUG && FBTEST +@property (nonnull, nonatomic, readonly) NSHashTable> *applicationObservers; +#endif + +/// Gets the singleton instance. +@property (class, nonatomic, readonly, strong) FBSDKApplicationDelegate *sharedInstance +NS_SWIFT_NAME(shared); + +/** + Call this method from the [UIApplicationDelegate application:continue:restorationHandler:] method + of the AppDelegate for your app. It should be invoked in order to properly process the web URL (universal link) + once the end user is redirected to your app. + + @param application The application as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + @param userActivity The user activity as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. +*/ +- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity; + +/** + Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +/** + Call this method from the [UIApplicationDelegate application:openURL:options:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:options:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:options:]. + + @param options The options dictionary as passed to [UIApplicationDelegate application:openURL:options:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options; + +/** + Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method + of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + + @param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @return True if there are any added application observers that themselves return true from calling `application:didFinishLaunchingWithOptions:`. + Otherwise will return false. Note: If this method is called after calling `initializeSDK` then the return type will always be false. + */ +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +/** + Initializes the SDK. + + If you are using the SDK within the context of the UIApplication lifecycle, do not use this method. + Instead use `application: didFinishLaunchingWithOptions:`. + + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + */ +- (void)initializeSDK; + +/** + Adds an observer that will be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)addObserver:(id)observer; + +/** + Removes an observer so that it will no longer be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)removeObserver:(id)observer; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h new file mode 100644 index 00000000..14de8940 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + Describes any types that optionally responds to various lifecycle events + received by the system and propagated by `ApplicationDelegate`. + */ +@protocol FBSDKApplicationObserving + +@optional +- (void)applicationDidBecomeActive:(nullable UIApplication *)application; +- (void)applicationWillResignActive:(nullable UIApplication *)application; +- (void)applicationDidEnterBackground:(nullable UIApplication *)application; +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h new file mode 100644 index 00000000..90648c92 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAuthenticationTokenClaims; +@protocol FBSDKTokenCaching; + +NS_ASSUME_NONNULL_BEGIN + +/// Represent an AuthenticationToken used for a login attempt +NS_SWIFT_NAME(AuthenticationToken) +@interface FBSDKAuthenticationToken : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The "global" authentication token that represents the currently logged in user. + + The `currentAuthenticationToken` represents the authentication token of the + current user and can be used by a client to verify an authentication attempt. + */ +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +/// The raw token string from the authentication response +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// The nonce from the decoded authentication response +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The graph domain where the user is authenticated. +@property (nonatomic, readonly, copy) NSString *graphDomain; + +/// Returns the claims encoded in the AuthenticationToken +- (nullable FBSDKAuthenticationTokenClaims *)claims; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h new file mode 100644 index 00000000..874fe073 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h @@ -0,0 +1,89 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenClaims) +@interface FBSDKAuthenticationTokenClaims : NSObject + +/// A unique identifier for the token. +@property (nonatomic, readonly, strong) NSString *jti; + +/// Issuer Identifier for the Issuer of the response. +@property (nonatomic, readonly, strong) NSString *iss; + +/// Audience(s) that this ID Token is intended for. +@property (nonatomic, readonly, strong) NSString *aud; + +/// String value used to associate a Client session with an ID Token, and to mitigate replay attacks. +@property (nonatomic, readonly, strong) NSString *nonce; + +/// Expiration time on or after which the ID Token MUST NOT be accepted for processing. +@property (nonatomic, readonly, assign) NSTimeInterval exp; + +/// Time at which the JWT was issued. +@property (nonatomic, readonly, assign) NSTimeInterval iat; + +/// Subject - Identifier for the End-User at the Issuer. +@property (nonatomic, readonly, strong) NSString *sub; + +/// End-User's full name in displayable form including all name parts. +@property (nullable, nonatomic, readonly, strong) NSString *name; + +/// End-User's given name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *givenName; + +/// End-User's middle name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *middleName; + +/// End-User's family name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *familyName; + +/** + End-User's preferred e-mail address. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSString *email; + +/// URL of the End-User's profile picture. +@property (nullable, nonatomic, readonly, strong) NSString *picture; + +/** + End-User's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSArray *userFriends; + +/// End-User's birthday +@property (nullable, nonatomic, readonly, strong) NSString *userBirthday; + +/// End-User's age range +@property (nullable, nonatomic, readonly, strong) NSDictionary *userAgeRange; + +/// End-User's hometown +@property (nullable, nonatomic, readonly, strong) NSDictionary *userHometown; + +/// End-User's location +@property (nullable, nonatomic, readonly, strong) NSDictionary *userLocation; + +/// End-User's gender +@property (nullable, nonatomic, readonly, strong) NSString *userGender; + +/// End-User's link +@property (nullable, nonatomic, readonly, strong) NSString *userLink; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h new file mode 100644 index 00000000..4f642307 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenProviding) +@protocol FBSDKAuthenticationTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAuthenticationToken *currentAuthenticationToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_SWIFT_NAME(AuthenticationTokenSetting) +@protocol FBSDKAuthenticationTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKButton.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKButton.h new file mode 100644 index 00000000..beae11a1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKButton.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +@class FBSDKIcon; + +NS_ASSUME_NONNULL_BEGIN + +/// A base class for common SDK buttons. +NS_SWIFT_NAME(FBButton) +@interface FBSDKButton : FBSDKImpressionLoggingButton + +@property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled; + +- (void)checkImplicitlyDisabled; +- (void)configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void) configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor + selectedTitle:(nullable NSString *)selectedTitle + selectedIcon:(nullable FBSDKIcon *)selectedIcon + selectedColor:(nullable UIColor *)selectedColor + selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (UIColor *)defaultBackgroundColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logTapEventWithEventName:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h new file mode 100644 index 00000000..806edb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FBButtonImpressionLogging) +@protocol FBSDKButtonImpressionLogging + +@property (nullable, nonatomic, readonly, copy) NSDictionary *analyticsParameters; +@property (nonatomic, readonly, copy) FBSDKAppEventName impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString *impressionTrackingIdentifier; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKConstants.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKConstants.h new file mode 100644 index 00000000..d746dca3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKConstants.h @@ -0,0 +1,206 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKCoreKit. + + Error codes from the SDK in the range 0-99 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKErrorDomain +NS_SWIFT_NAME(ErrorDomain); + +/* + @methodgroup error userInfo keys + */ + +/** + The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. + + If the invalid argument is a collection, the collection can be found with this key and the individual + invalid item can be found with FBSDKErrorArgumentValueKey. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey +NS_SWIFT_NAME(ErrorArgumentCollectionKey); + +/// The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey +NS_SWIFT_NAME(ErrorArgumentNameKey); + +/// The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey +NS_SWIFT_NAME(ErrorArgumentValueKey); + +/** + The userInfo key for the message for developers in NSErrors that originate from the SDK. + + The developer message will not be localized and is not intended to be presented within the app. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey +NS_SWIFT_NAME(ErrorDeveloperMessageKey); + +/// The userInfo key describing a localized description that can be presented to the user. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey +NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); + +/// The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey +NS_SWIFT_NAME(ErrorLocalizedTitleKey); + +/* + @methodgroup FBSDKGraphRequest error userInfo keys + */ + +/** + The userInfo key describing the error category, for error recovery purposes. + + See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorKey +NS_SWIFT_NAME(GraphRequestErrorKey); + +/* + The userInfo key for the Graph API error code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); + +/* + The userInfo key for the Graph API error subcode. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); + +/* + The userInfo key for the HTTP status code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey +NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); + +/* + The userInfo key for the raw JSON response. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey +NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); + +/* + @methodgroup Common Code Block typedefs + */ + +/// Success Block +typedef void (^ FBSDKCodeBlock)(void) +NS_SWIFT_NAME(CodeBlock); + +/// Error Block +typedef void (^ FBSDKErrorBlock)(NSError *_Nullable error) +NS_SWIFT_NAME(ErrorBlock); + +/// Success Block +typedef void (^ FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) +NS_SWIFT_NAME(SuccessBlock); + +/* + @methodgroup Enums + */ + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKCoreError + Error codes for FBSDKErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKErrorDomain, FBSDKCoreError) +{ + /// Reserved. + FBSDKErrorReserved = 0, + + /// The error code for errors from invalid encryption on incoming encryption URLs. + FBSDKErrorEncryption, + + /// The error code for errors from invalid arguments to SDK methods. + FBSDKErrorInvalidArgument, + + /// The error code for unknown errors. + FBSDKErrorUnknown, + + /** + A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve + the error object from the NSURLSession for more information. + */ + FBSDKErrorNetwork, + + /// The error code for errors encountered during an App Events flush. + FBSDKErrorAppEventsFlush, + + /** + An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. + + Endpoints that return image/jpg, etc. should be accessed using NSURLRequest + */ + FBSDKErrorGraphRequestNonTextMimeTypeReturned, + + /** + The operation failed because the server returned an unexpected response. + + You can get this error if you are not using the most recent SDK, or you are accessing a version of the + Graph API incompatible with the current SDK. + */ + FBSDKErrorGraphRequestProtocolMismatch, + + /** + The Graph API returned an error. + + See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) + */ + FBSDKErrorGraphRequestGraphAPI, + + /** + The specified dialog configuration is not available. + + This error may signify that the configuration for the dialogs has not yet been downloaded from the server + or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. + */ + FBSDKErrorDialogUnavailable, + + /// Indicates an operation failed because a required access token was not found. + FBSDKErrorAccessTokenRequired, + + /// Indicates an app switch (typically for a dialog) failed because the destination app is out of date. + FBSDKErrorAppVersionUnsupported, + + /// Indicates an app switch to the browser (typically for a dialog) failed. + FBSDKErrorBrowserUnavailable, + + /// Indicates that a bridge api interaction was interrupted. + FBSDKErrorBridgeAPIInterruption, + + /// Indicates that a bridge api response creation failed. + FBSDKErrorBridgeAPIResponse, +} NS_SWIFT_NAME(CoreError); + +/** + FBSDKGraphRequestError + Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. + */ +typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) { + /// The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. + FBSDKGraphRequestErrorOther = 0, + /// Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. + FBSDKGraphRequestErrorTransient = 1, + /// Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. + FBSDKGraphRequestErrorRecoverable = 2, +} NS_SWIFT_NAME(GraphRequestError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h new file mode 100644 index 00000000..cfadc7f3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h @@ -0,0 +1,254 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h new file mode 100644 index 00000000..8a4569c0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h @@ -0,0 +1,112 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import + +#if !TARGET_OS_TV + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h new file mode 100644 index 00000000..e9eb97c5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#define FBSDK_VERSION_STRING @"13.1.0" +#define FBSDK_DEFAULT_GRAPH_API_VERSION @"v13.0" diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h new file mode 100644 index 00000000..73ac8512 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceButton) +@interface FBSDKDeviceButton : FBSDKButton +- (CGSize)sizeThatFits:(CGSize)size attributedTitle:(NSAttributedString *)title; +- (nullable NSAttributedString *)attributedTitleStringFromString:(NSString *)string; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h new file mode 100644 index 00000000..b98e1221 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +NS_SWIFT_NAME(FBDeviceDialogView) +@interface FBSDKDeviceDialogView : UIView + +@property (nonatomic, weak) id delegate; +@property (nonatomic, copy) NSString *confirmationCode; + +// override point for subclasses. +- (void)buildView; + +@end + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate + +- (void)deviceDialogViewDidCancel:(FBSDKDeviceDialogView *)deviceDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h new file mode 100644 index 00000000..b4e309a9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceViewControllerBase) +@interface FBSDKDeviceViewControllerBase : UIViewController +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h new file mode 100644 index 00000000..a46a303e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(DynamicFrameworkLoaderProxy) +@interface FBSDKDynamicFrameworkLoaderProxy : NSObject +/** + Load the kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value from the Security Framework + + @return The kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h new file mode 100644 index 00000000..bad1414d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Social Constants + +/// Dynamically loaded constant for SLServiceTypeFacebook +FOUNDATION_EXPORT NSString *fbsdkdfl_SLServiceTypeFacebook(void); + +#pragma mark - Social Classes + +FOUNDATION_EXPORT Class fbsdkdfl_SLComposeViewControllerClass(void); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h new file mode 100644 index 00000000..85c9e191 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorCreating) +@protocol FBSDKErrorCreating + +// MARK: - General Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithCode:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(domain:code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Invalid Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(domain:name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Required Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithName:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(requiredArgumentError(name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError + NS_SWIFT_NAME(requiredArgumentError(domain:name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Unknown Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)unknownErrorWithMessage:(nullable NSString *)message + userInfo:(nullable NSDictionary *)userInfo +NS_SWIFT_NAME(unknownError(message:userInfo:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h new file mode 100644 index 00000000..217c00be --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorFactory) +@interface FBSDKErrorFactory : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h new file mode 100644 index 00000000..b005f8eb --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A formal protocol very similar to the informal protocol NSErrorRecoveryAttempting + Internal use only + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ErrorRecoveryAttempting) +@protocol FBSDKErrorRecoveryAttempting + +/** + Attempt the recovery + @param error the error + @param completionHandler the handler called upon completion of error recovery + + Attempt recovery from the error, and call the completion handler. The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. + */ +- (void)attemptRecoveryFromError:(NSError *)error + completionHandler:(void (^)(BOOL didRecover))completionHandler; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeature.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeature.h new file mode 100644 index 00000000..1ddf4d2f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeature.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + FBSDKFeature enum + Defines features in SDK + + Sample: + FBSDKFeatureAppEvents = 0x00010000, + ^ ^ ^ ^ + | | | | + kit | | | + feature | | + sub-feature | + sub-sub-feature + 1st byte: kit + 2nd byte: feature + 3rd byte: sub-feature + 4th byte: sub-sub-feature + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKFeature) { + FBSDKFeatureNone = 0x00000000, + // Features in CoreKit + /// Essential of CoreKit + FBSDKFeatureCore = 0x01000000, + /// App Events + FBSDKFeatureAppEvents = 0x01010000, + FBSDKFeatureCodelessEvents = 0x01010100, + FBSDKFeatureRestrictiveDataFiltering = 0x01010200, + FBSDKFeatureAAM = 0x01010300, + FBSDKFeaturePrivacyProtection = 0x01010400, + FBSDKFeatureSuggestedEvents = 0x01010401, + FBSDKFeatureIntelligentIntegrity = 0x01010402, + FBSDKFeatureModelRequest = 0x01010403, + FBSDKFeatureEventDeactivation = 0x01010500, + FBSDKFeatureSKAdNetwork = 0x01010600, + FBSDKFeatureSKAdNetworkConversionValue = 0x01010601, + FBSDKFeatureATELogging = 0x01010700, + FBSDKFeatureAEM = 0x01010800, + FBSDKFeatureAEMConversionFiltering = 0x01010801, + FBSDKFeatureAEMCatalogMatching = 0x01010802, + /// Instrument + FBSDKFeatureInstrument = 0x01020000, + FBSDKFeatureCrashReport = 0x01020100, + FBSDKFeatureCrashShield = 0x01020101, + FBSDKFeatureErrorReport = 0x01020200, + + // Features in LoginKit + /// Essential of LoginKit + FBSDKFeatureLogin = 0x02000000, + + // Features in ShareKit + /// Essential of ShareKit + FBSDKFeatureShare = 0x03000000, + + // Features in GamingServicesKit + /// Essential of GamingServicesKit + FBSDKFeatureGamingServices = 0x04000000, +} NS_SWIFT_NAME(SDKFeature); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKFeatureManagerBlock)(BOOL enabled); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h new file mode 100644 index 00000000..bdb5d532 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FeatureChecking) +@protocol FBSDKFeatureChecking + +- (BOOL)isEnabled:(FBSDKFeature)feature; + +- (void)checkFeature:(FBSDKFeature)feature + completionBlock:(FBSDKFeatureManagerBlock)completionBlock; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h new file mode 100644 index 00000000..bd149522 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h @@ -0,0 +1,167 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +/** + Represents a request to the Facebook Graph API. + + `FBSDKGraphRequest` encapsulates the components of a request (the + Graph API path, the parameters, error recovery behavior) and should be + used in conjunction with `FBSDKGraphRequestConnection` to issue the request. + + Nearly all Graph APIs require an access token. Unless specified, the + `[FBSDKAccessToken currentAccessToken]` is used. Therefore, most requests + will require login first (see `FBSDKLoginManager` in FBSDKLoginKit.framework). + + A `- start` method is provided for convenience for single requests. + + By default, FBSDKGraphRequest will attempt to recover any errors returned from + Facebook. You can disable this via `disableErrorRecovery:`. + + See FBSDKGraphErrorRecoveryProcessor + */ +NS_SWIFT_NAME(GraphRequest) +@interface FBSDKGraphRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void) configureWithSettings:(id)settings + currentAccessTokenStringProvider:(Class)accessTokenProvider + graphRequestConnectionFactory:(id)_graphRequestConnectionFactory +NS_SWIFT_NAME(configure(settings:currentAccessTokenStringProvider:graphRequestConnectionFactory:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param version the optional Graph API version (e.g., @"v2.0"). nil defaults to `[FBSDKSettings graphAPIVersion]`. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method + NS_DESIGNATED_INITIALIZER; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param requestFlags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)requestFlags; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param HTTPMethod the HTTP method. Empty String defaults to @"GET". + @param flags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable NSString *)HTTPMethod + flags:(FBSDKGraphRequestFlags)flags; + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/** + If set, disables the automatic error recovery mechanism. + @param disable whether to disable the automatic error recovery mechanism + + By default, non-batched FBSDKGraphRequest instances will automatically try to recover + from errors by constructing a `FBSDKGraphErrorRecoveryProcessor` instance that + re-issues the request on successful recoveries. The re-issued request will call the same + handler as the receiver but may occur with a different `FBSDKGraphRequestConnection` instance. + + This will override [FBSDKSettings setGraphErrorRecoveryDisabled:]. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setGraphErrorRecoveryDisabled:(BOOL)disable +NS_SWIFT_NAME(setGraphErrorRecovery(disabled:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h new file mode 100644 index 00000000..a64cb00d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequest; +@protocol FBSDKGraphRequestConnecting; +@protocol FBSDKGraphRequestConnectionDelegate; + +/** + FBSDKGraphRequestCompletion + + A block that is passed to addRequest to register for a callback with the results of that + request once the connection completes. + + Pass a block of this type when calling addRequest. This will be called once + the request completes. The call occurs on the UI thread. + + @param connection The connection that sent the request. + + @param result The result of the request. This is a translation of + JSON data to `NSDictionary` and `NSArray` objects. This + is nil if there was an error. + + @param error The `NSError` representing any error that occurred. + */ +NS_SWIFT_NAME(GraphRequestCompletion) +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe an object that can manage graph requests +NS_SWIFT_NAME(GraphRequestConnecting) +@protocol FBSDKGraphRequestConnecting + +@property (nonatomic, assign) NSTimeInterval timeout; +@property (nullable, nonatomic, weak) id delegate; + +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)handler; + +- (void)start; +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h new file mode 100644 index 00000000..99966bf1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h @@ -0,0 +1,173 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The key in the result dictionary for requests to old versions of the Graph API + whose response is not a JSON object. + + When a request returns a non-JSON response (such as a "true" literal), that response + will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API + prior to v2.1. + */ +FOUNDATION_EXPORT NSString *const FBSDKNonJSONResponseProperty +NS_SWIFT_NAME(NonJSONResponseProperty); + +@protocol FBSDKGraphRequest; + +/** + The `FBSDKGraphRequestConnection` represents a single connection to Facebook to service a request. + + The request settings are encapsulated in a reusable object. The + `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication + e.g. starting a connection, canceling a connection, or batching requests. + */ +NS_SWIFT_NAME(GraphRequestConnection) +@interface FBSDKGraphRequestConnection : NSObject + +/// The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. +@property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; + +/// The delegate object that receives updates. +@property (nullable, nonatomic, weak) id delegate; + +/// Gets or sets the timeout interval to wait for a response before giving up. +@property (nonatomic, assign) NSTimeInterval timeout; + +/** + The raw response that was returned from the server. (readonly) + + This property can be used to inspect HTTP headers that were returned from + the server. + + The property is nil until the request completes. If there was a response + then this property will be non-nil during the FBSDKGraphRequestBlock callback. + */ +@property (nullable, nonatomic, readonly, retain) NSHTTPURLResponse *urlResponse; + +/** + Determines the operation queue that is used to call methods on the connection's delegate. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + You cannot reschedule a connection after it has started. + */ +@property (nullable, nonatomic) NSOperationQueue *delegateQueue; + +/// @methodgroup Class methods + +/// @methodgroup Adding requests + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + @param completion A handler to call back when the round-trip completes or times out. + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. + */ +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + The handler will be invoked on the main thread. + + @param name A name for this request. This can be used to feed + the results of one request to the input of another in the same + `FBSDKGraphRequestConnection` as described in + [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + name:(NSString *)name + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + + @param parameters The dictionary of parameters to include for this request + as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + Examples include "depends_on", "name", or "omit_response_on_success". + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + parameters:(nullable NSDictionary *)parameters + completion:(FBSDKGraphRequestCompletion)completion; + +/// @methodgroup Instance methods + +/** + @method + + Signals that a connection should be logically terminated as the + application is no longer interested in a response. + + Synchronously calls any handlers indicating the request was cancelled. Cancel + does not guarantee that the request-related processing will cease. It + does promise that all handlers will complete before the cancel returns. A call to + cancel prior to a start implies a cancellation of all requests associated + with the connection. + */ +- (void)cancel; + +/** + @method + + This method starts a connection with the server and is capable of handling all of the + requests that were added to the connection. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + See `setDelegateQueue:` for other options. + + This method cannot be called twice for an `FBSDKGraphRequestConnection` instance. + */ +- (void)start; + +/** + @method + + Overrides the default version for a batch request + + The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning + for applications. If you want to override the version part while using batch requests on the connection, call + this method to set the version for the batch request. + + @param version This is a string in the form @"v2.0" which will be used for the version part of an API path + */ +- (void)overrideGraphAPIVersion:(NSString *)version; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h new file mode 100644 index 00000000..738ad47d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h @@ -0,0 +1,93 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKGraphRequestConnectionDelegate` protocol defines the methods used to receive network + activity progress information from a . + */ +NS_SWIFT_NAME(GraphRequestConnectionDelegate) +@protocol FBSDKGraphRequestConnectionDelegate + +@optional + +/** + @method + + Tells the delegate the request connection will begin loading + + If the is created using one of the convenience factory methods prefixed with + start, the object returned from the convenience method has already begun loading and this method + will not be called when the delegate is set. + + @param connection The request connection that is starting a network request + */ +- (void)requestConnectionWillBeginLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection finished loading + + If the request connection completes without a network error occurring then this method is called. + Invocation of this method does not indicate success of every made, only that the + request connection has no further activity. Use the error argument passed to the FBSDKGraphRequestBlock + block to determine success or failure of each . + + This method is invoked after the completion handler for each . + + @param connection The request connection that successfully completed a network request + */ +- (void)requestConnectionDidFinishLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection failed with an error + + If the request connection fails with a network error then this method is called. The `error` + argument specifies why the network connection failed. The `NSError` object passed to the + FBSDKGraphRequestBlock block may contain additional information. + + @param connection The request connection that successfully completed a network request + @param error The `NSError` representing the network error that occurred, if any. May be nil + in some circumstances. Consult the `NSError` for the for reliable + failure information. + */ +- (void)requestConnection:(id)connection + didFailWithError:(NSError *)error; + +/** + @method + + Tells the delegate how much data has been sent and is planned to send to the remote host + + The byte count arguments refer to the aggregated objects, not a particular . + + Like `NSURLSession`, the values may change in unexpected ways if data needs to be resent. + + @param connection The request connection transmitting data to a remote host + @param bytesWritten The number of bytes sent in the last transmission + @param totalBytesWritten The total number of bytes sent to the remote host + @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host + */ +- (void) requestConnection:(id)connection + didSendBodyData:(NSInteger)bytesWritten + totalBytesWritten:(NSInteger)totalBytesWritten + totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h new file mode 100644 index 00000000..19e62d20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequestConnecting`. + */ +NS_SWIFT_NAME(GraphRequestConnectionFactory) +@interface FBSDKGraphRequestConnectionFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h new file mode 100644 index 00000000..96b43dfa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestConnecting; + +/// Describes anything that can provide instances of `FBSDKGraphRequestConnecting` +NS_SWIFT_NAME(GraphRequestConnectionFactoryProtocol) +@protocol FBSDKGraphRequestConnectionFactory + +- (id)createGraphRequestConnection; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h new file mode 100644 index 00000000..3775cb4f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A container class for data attachments so that additional metadata can be provided about the attachment. +NS_SWIFT_NAME(GraphRequestDataAttachment) +@interface FBSDKGraphRequestDataAttachment : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes the receiver with the attachment data and metadata. + @param data The attachment data (retained, not copied) + @param filename The filename for the attachment + @param contentType The content type for the attachment + */ +- (instancetype)initWithData:(NSData *)data + filename:(NSString *)filename + contentType:(NSString *)contentType + NS_DESIGNATED_INITIALIZER; + +/// The content type for the attachment. +@property (nonatomic, readonly, copy) NSString *contentType; + +/// The attachment data. +@property (nonatomic, readonly, strong) NSData *data; + +/// The filename for the attachment. +@property (nonatomic, readonly, copy) NSString *filename; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h new file mode 100644 index 00000000..6661ac1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestFactory; + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequest` + */ +NS_SWIFT_NAME(GraphRequestFactory) +@interface FBSDKGraphRequestFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h new file mode 100644 index 00000000..eb85a3ba --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +@protocol FBSDKGraphRequest; + +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + +Describes anything that can provide instances of `GraphRequestProtocol` + */ +NS_SWIFT_NAME(GraphRequestFactoryProtocol) +@protocol FBSDKGraphRequestFactory + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable FBSDKHTTPMethod)method + flags:(FBSDKGraphRequestFlags)flags; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)flags; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h new file mode 100644 index 00000000..68e7c8da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags that indicate how a graph request should be treated in various scenarios +typedef NS_OPTIONS(NSUInteger, FBSDKGraphRequestFlags) { + FBSDKGraphRequestFlagNone = 0, + /// indicates this request should not use a client token as its token parameter + FBSDKGraphRequestFlagSkipClientToken = 1 << 1, + /// indicates this request should not close the session if its response is an oauth error + FBSDKGraphRequestFlagDoNotInvalidateTokenOnError = 1 << 2, + /// indicates this request should not perform error recovery + FBSDKGraphRequestFlagDisableErrorRecovery = 1 << 3, +} NS_SWIFT_NAME(GraphRequestFlags); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h new file mode 100644 index 00000000..e79728d9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// typedef for FBSDKHTTPMethod +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +/// GET Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodGET NS_SWIFT_NAME(get); + +/// POST Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodPOST NS_SWIFT_NAME(post); + +/// DELETE Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodDELETE NS_SWIFT_NAME(delete); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h new file mode 100644 index 00000000..6cc4da38 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphRequestConnection; +@protocol FBSDKGraphRequestConnecting; + +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +typedef void (^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection *_Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe anything that represents a graph request +NS_SWIFT_NAME(GraphRequestProtocol) +@protocol FBSDKGraphRequest + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/// The graph request flags to use +@property (nonatomic, readonly, assign) FBSDKGraphRequestFlags flags; + +/// Convenience property to determine if graph error recover is disabled +@property (nonatomic, getter = isGraphErrorRecoveryDisabled) BOOL graphErrorRecoveryDisabled; + +/// Convenience property to determine if the request has attachments +@property (nonatomic, readonly) BOOL hasAttachments; + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +/// A formatted description of the graph request +- (NSString *)formattedDescription; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKIcon.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKIcon.h new file mode 100644 index 00000000..0404e39a --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKIcon.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Icon) +@interface FBSDKIcon : NSObject + +- (nullable CGPathRef)pathWithSize:(CGSize)size; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h new file mode 100644 index 00000000..4202de70 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ImpressionLoggingButton) +@interface FBSDKImpressionLoggingButton : UIButton +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h new file mode 100644 index 00000000..93829d56 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import +#import +#import +#import + +#if !TARGET_OS_TV + #import +#endif + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(InternalUtility) +@interface FBSDKInternalUtility : NSObject +#if !TARGET_OS_TV + +#else + +#endif + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +@property (class, nonnull, readonly) FBSDKInternalUtility *sharedUtility; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +/** + Tests whether the supplied URL is a valid URL for opening in the browser. + @param URL The URL to test. + @return YES if the URL refers to an http or https resource, otherwise NO. + */ +- (BOOL)isBrowserURL:(NSURL *)URL; + +/** + Checks equality between 2 objects. + + Checks for pointer equality, nils, isEqual:. + @param object The first object to compare. + @param other The second object to compare. + @return YES if the objects are equal, otherwise NO. + */ +- (BOOL)object:(id)object isEqualToObject:(id)other; + +/// Attempts to find the first UIViewController in the view's responder chain. Returns nil if not found. +- (nullable UIViewController *)viewControllerForView:(UIView *)view; + +/// returns true if the url scheme is registered in the CFBundleURLTypes +- (BOOL)isRegisteredURLScheme:(NSString *)urlScheme; + +/// returns currently displayed top view controller. +- (nullable UIViewController *)topMostViewController; + +/// returns the current key window +- (nullable UIWindow *)findWindow; + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; + +- (BOOL)isRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h new file mode 100644 index 00000000..10846828 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h @@ -0,0 +1,135 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(InternalUtilityProtocol) +@protocol FBSDKInternalUtility + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly) BOOL isFacebookAppInstalled; + +/* + Checks if the app is Unity. + */ +@property (nonatomic, readonly) BOOL isUnity; + +/** + Constructs an NSURL. + @param scheme The scheme for the URL. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The URL. + */ +- (nullable NSURL *)URLWithScheme:(NSString *)scheme + host:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs an URL for the current app. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The app URL. + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs a Facebook URL. + @param hostPrefix The prefix for the host, such as 'm', 'graph', etc. + @param path The path for the URL. This may or may not include a version. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The Facebook URL. + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Registers a transient object so that it will not be deallocated until unregistered + @param object The transient object + */ +- (void)registerTransientObject:(id)object; + +/** + Unregisters a transient object that was previously registered with registerTransientObject: + @param object The transient object + */ +- (void)unregisterTransientObject:(__weak id)object; + +- (void)checkRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +/// Validates that the right URL schemes are registered, throws an NSException if not. +- (void)validateURLSchemes; + +/// add data processing options to the dictionary. +- (void)extendDictionaryWithDataProcessingOptions:(NSMutableDictionary *)parameters; + +/// Converts NSData to a hexadecimal UTF8 String. +- (nullable NSString *)hexadecimalStringFromData:(NSData *)data; + +/// validates that the app ID is non-nil, throws an NSException if nil. +- (void)validateAppID; + +/** + Validates that the client access token is non-nil, otherwise - throws an NSException otherwise. + Returns the composed client access token. + */ +- (NSString *)validateRequiredClientAccessToken; + +/** + Extracts permissions from a response fetched from me/permissions + @param responseObject the response + @param grantedPermissions the set to add granted permissions to + @param declinedPermissions the set to add declined permissions to. + */ +- (void)extractPermissionsFromResponse:(NSDictionary *)responseObject + grantedPermissions:(NSMutableSet *)grantedPermissions + declinedPermissions:(NSMutableSet *)declinedPermissions + expiredPermissions:(NSMutableSet *)expiredPermissions; + +/// validates that Facebook reserved URL schemes are not registered, throws an NSException if they are. +- (void)validateFacebookReservedURLSchemes; + +/** + Parses an FB url's query params (and potentially fragment) into a dictionary. + @param url The FB url. + @return A dictionary with the key/value pairs. + */ +- (NSDictionary *)parametersFromFBURL:(NSURL *)url; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h new file mode 100644 index 00000000..a4292d54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStore) +@interface FBSDKKeychainStore : NSObject + +@property (nonatomic, readonly, copy) NSString *service; +@property (nullable, nonatomic, readonly, copy) NSString *accessGroup; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithService:(NSString *)service accessGroup:(nullable NSString *)accessGroup NS_DESIGNATED_INITIALIZER; + +- (BOOL)setData:(nullable NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (nullable NSData *)dataForKey:(NSString *)key; + +// hook for subclasses to override keychain query construction. +- (NSMutableDictionary *)queryForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h new file mode 100644 index 00000000..149c59d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `KeychainStore` + */ +NS_SWIFT_NAME(KeychainStoreFactory) +@interface FBSDKKeychainStoreFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h new file mode 100644 index 00000000..4f8636a8 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProtocol) +@protocol FBSDKKeychainStore + +- (nullable NSString *)stringForKey:(NSString *)key; +- (nullable NSDictionary *)dictionaryForKey:(NSString *)key; + +- (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; +- (BOOL)setDictionary:(nullable NSDictionary *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h new file mode 100644 index 00000000..af0263ca --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProviding) +@protocol FBSDKKeychainStoreProviding + +- (nonnull id)createKeychainStoreWithService:(NSString *)service + accessGroup:(nullable NSString *)accessGroup; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLocation.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLocation.h new file mode 100644 index 00000000..e9fd1304 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLocation.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Location) +@interface FBSDKLocation : NSObject + +/// Location id +@property (nonatomic, readonly, strong) NSString *id; +/// Location name +@property (nonatomic, readonly, strong) NSString *name; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a Location object from a dinctionary containing valid location information. + @param dictionary The dictionary containing raw location + + Valid location will consist of "id" and "name" strings. + */ ++ (nullable instancetype)locationFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogger.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogger.h new file mode 100644 index 00000000..d6a31005 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogger.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Simple logging utility for conditionally logging strings and then emitting them + via NSLog(). + + @unsorted + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Logger) +@interface FBSDKLogger : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogging.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogging.h new file mode 100644 index 00000000..dbef5411 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLogging.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Logging) +@protocol FBSDKLogging + +@property (nonatomic, readonly, copy) NSString *contents; +@property (nonatomic, readonly, copy) FBSDKLoggingBehavior loggingBehavior; + +- (instancetype)initWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +- (void)logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h new file mode 100644 index 00000000..900542d2 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. + */ + +typedef NSString *FBSDKLoggingBehavior NS_TYPED_ENUM NS_SWIFT_NAME(LoggingBehavior); + +/// Include access token in logging. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens; + +/// Log performance characteristics +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics; + +/// Log FBSDKAppEvents interactions +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents; + +/// Log Informational occurrences +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational; + +/// Log cache errors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors; + +/// Log errors from SDK UI controls +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors; + +/// Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning; + +/** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. + Info is the lowest level of severity, using it will result in logging all previously mentioned levels. + */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo; + +/// Log errors from SDK network requests +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests; + +/// Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h new file mode 100644 index 00000000..a6637497 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +@interface FBSDKLoginTooltip : NSObject +@property (nonatomic, readonly, getter = isEnabled, assign) BOOL enabled; +@property (nonatomic, readonly, copy) NSString *text; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithText:(NSString *)text + enabled:(BOOL)enabled + NS_DESIGNATED_INITIALIZER; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h new file mode 100644 index 00000000..5b157c20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Concrete type providing functionality that checks whether an error represents a + network error. + */ +NS_SWIFT_NAME(NetworkErrorChecker) +@interface FBSDKNetworkErrorChecker : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h new file mode 100644 index 00000000..2868737f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_SWIFT_NAME(NetworkErrorChecking) +@protocol FBSDKNetworkErrorChecking + +/** + Checks whether an error is a network error. + + @param error An error that may or may not represent a network error. + + @return `YES` if the error represents a network error, otherwise `NO`. + */ +- (BOOL)isNetworkError:(NSError *)error; + +@end diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h new file mode 100644 index 00000000..fa8f4cde --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductAvailability) + Specifies product availability for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductAvailability) { + /// Item ships immediately + FBSDKProductAvailabilityInStock = 0, + /// No plan to restock + FBSDKProductAvailabilityOutOfStock, + /// Available in future + FBSDKProductAvailabilityPreOrder, + /// Ships in 1-2 weeks + FBSDKProductAvailabilityAvailableForOrder, + /// Discontinued + FBSDKProductAvailabilityDiscontinued, +} NS_SWIFT_NAME(AppEvents.ProductAvailability); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h new file mode 100644 index 00000000..41e23b1e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductCondition) + Specifies product condition for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductCondition) { + FBSDKProductConditionNew = 0, + FBSDKProductConditionRefurbished, + FBSDKProductConditionUsed, +} NS_SWIFT_NAME(AppEvents.ProductCondition); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKRandom.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKRandom.h new file mode 100644 index 00000000..653a0389 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKRandom.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + Provides a random string + @param numberOfBytes the number of bytes to use + */ +extern NSString *fb_randomString(NSUInteger numberOfBytes); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h new file mode 100644 index 00000000..884b84ac --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal block type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoginTooltipBlock) +typedef void (^FBSDKLoginTooltipBlock)(FBSDKLoginTooltip *_Nullable loginTooltip, NSError *_Nullable error); + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ServerConfigurationProvider) +@interface FBSDKServerConfigurationProvider : NSObject + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly) NSString *loggingToken; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (NSUInteger)cachedSmartLoginOptions; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (BOOL)useSafariViewControllerForDialogName:(NSString *)dialogName; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)loadServerConfigurationWithCompletionBlock:(nullable FBSDKLoginTooltipBlock)completionBlock; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettings.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettings.h new file mode 100644 index 00000000..6b3a2897 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettings.h @@ -0,0 +1,197 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Settings) +@interface FBSDKSettings : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +/// The shared settings instance. Prefer this and the exposed instance methods over the class variants. +@property (class, nonatomic, readonly) FBSDKSettings *sharedSettings; + +/// Retrieve the current iOS SDK version. +@property (nonatomic, readonly, copy) NSString *sdkVersion; + +/// Retrieve the current default Graph API version. +@property (nonatomic, readonly, copy) NSString *defaultGraphAPIVersion; + +/** + The quality of JPEG images sent to Facebook from the SDK, + expressed as a value from 0.0 to 1.0. + + If not explicitly set, the default is 0.9. +*/ +@property (nonatomic) CGFloat JPEGCompressionQuality +NS_SWIFT_NAME(jpegCompressionQuality); + +/** + Controls the auto logging of basic app events, such as activateApp and deactivateApp. + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAutoLogAppEventsEnabled) BOOL autoLogAppEventsEnabled; + +/** + Controls the fb_codeless_debug logging event + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; + +/** + Controls the access to IDFA + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; + +/** + Controls the SKAdNetwork report + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isSKAdNetworkReportEnabled) BOOL skAdNetworkReportEnabled; + +/** + Whether data such as that generated through FBSDKAppEvents and sent to Facebook + should be restricted from being used for other than analytics and conversions. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL isEventDataUsageLimited; + +/** + Whether in memory cached values should be used for expensive metadata fields, such as + carrier and advertiser ID, that are fetched on many applicationDidBecomeActive notifications. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; + +/// A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; + +/** + The Facebook App ID used by the SDK. + + If not explicitly set, the default will be read from the application's plist (FacebookAppID). + */ +@property (nullable, nonatomic, copy) NSString *appID; + +/** + The default url scheme suffix used for sessions. + + If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). + */ +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; + +/** + The Client Token that has been set via [[FBSDKSettings sharedSettings] setClientToken]. + This is needed for certain API calls when made anonymously, without a user-based access token. + + The Facebook App's "client token", which, for a given appid can be found in the Security + section of the Advanced tab of the Facebook App settings found at + + If not explicitly set, the default will be read from the application's plist (FacebookClientToken). + */ +@property (nullable, nonatomic, copy) NSString *clientToken; + +/** + The Facebook Display Name used by the SDK. + + This should match the Display Name that has been set for the app with the corresponding Facebook App ID, + in the Facebook App Dashboard. + + If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). + */ +@property (nullable, nonatomic, copy) NSString *displayName; + +/** + The Facebook domain part. This can be used to change the Facebook domain + (e.g. @"beta") so that requests will be sent to `graph.beta.facebook.com` + + If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). + */ +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; + +/** + The current Facebook SDK logging behavior. This should consist of strings + defined as constants with FBSDKLoggingBehavior*. + + This should consist a set of strings indicating what information should be logged + defined as constants with FBSDKLoggingBehavior*. Set to an empty set in order to disable all logging. + + You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLoggingBehavior: + + The default is a set consisting of FBSDKLoggingBehaviorDeveloperErrors + */ +@property (nonatomic, copy) NSSet *loggingBehaviors; + +/** + Overrides the default Graph API version to use with `FBSDKGraphRequests`. + + The string should be of the form `@"v2.7"`. + + Defaults to `defaultGraphAPIVersion`. + */ +@property (nonatomic, copy) NSString *graphAPIVersion; + +/** + Internal property exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; + +/** + The value of the flag advertiser_tracking_enabled that controls the advertiser tracking status of the data sent to Facebook + If not explicitly set in iOS14 or above, the default is false in iOS14 or above. + */ +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; + +/** +Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** +Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +/** + Enable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +/** + Disable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h new file mode 100644 index 00000000..1e21fe02 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsLogging) +@protocol FBSDKSettingsLogging + +- (void)logWarnings; +- (void)logIfSDKSettingsChanged; +- (void)recordInstall; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h new file mode 100644 index 00000000..d0eeb7ab --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsProtocol) +@protocol FBSDKSettings + +@property (nullable, nonatomic, copy) NSString *appID; +@property (nullable, nonatomic, copy) NSString *clientToken; +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; +@property (nonatomic, readonly, copy) NSString *sdkVersion; +@property (nullable, nonatomic, copy) NSString *displayName; +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; +@property (nonnull, nonatomic, copy) NSSet *loggingBehaviors; +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; +@property (nonatomic, readonly) BOOL isDataProcessingRestricted; +@property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled; +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; +@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime; +@property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled; +@property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; +@property (nullable, nonatomic, readonly) NSDate *installTimestamp; +@property (nullable, nonatomic, readonly) NSDate *advertiserTrackingEnabledTimestamp; +@property (nonatomic) BOOL isEventDataUsageLimited; +@property (nonatomic) BOOL shouldUseTokenOptimizations; +@property (nonatomic, copy) NSString *graphAPIVersion; +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; +@property (nullable, nonatomic, readonly, copy) NSString *graphAPIDebugParamValue; +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; +@property (nullable, nonatomic, readonly) NSDictionary *persistableDataProcessingOptions; + +/** + Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** + Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h new file mode 100644 index 00000000..6b07cb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(TokenCaching) +@protocol FBSDKTokenCaching + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAccessToken *accessToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h new file mode 100644 index 00000000..87f227de --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(TokenStringProviding) +@protocol FBSDKTokenStringProviding + +/** + Return the token string of the current access token. + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +@property (class, nullable, nonatomic, readonly, copy) NSString *tokenString; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h new file mode 100644 index 00000000..ea415c83 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +extern CATransform3D const FBSDKCATransform3DIdentity; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@interface FBSDKTransformer : NSObject +- (CATransform3D)CATransform3DMakeScale:(CGFloat)sx sy:(CGFloat)sy sz:(CGFloat)sz; +- (CATransform3D)CATransform3DMakeTranslation:(CGFloat)tx ty:(CGFloat)ty tz:(CGFloat)tz; +- (CATransform3D)CATransform3DConcat:(CATransform3D)a b:(CATransform3D)b; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h new file mode 100644 index 00000000..f7283921 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *FBSDKURLScheme NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(URLScheme); + +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeFacebookAPI; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeMessengerApp; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTPS NS_SWIFT_NAME(https); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTP NS_SWIFT_NAME(http); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeWeb; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h new file mode 100644 index 00000000..7d719165 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(UserAgeRange) +@interface FBSDKUserAgeRange : NSObject + +/// The user's minimun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *min; +/// The user's maximun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *max; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a UserAgeRange object from a dinctionary containing valid user age range. + @param dictionary The dictionary containing raw user age range + + Valid user age range will consist of "min" and/or "max" values that are + positive integers, where "min" is smaller than or equal to "max". + */ ++ (nullable instancetype)ageRangeFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKUtility.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKUtility.h new file mode 100644 index 00000000..eb5ca0a4 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/FBSDKUtility.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Class to contain common utility methods. +NS_SWIFT_NAME(Utility) +@interface FBSDKUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Parses a query string into a dictionary. + @param queryString The query string value. + @return A dictionary with the key/value pairs. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString +NS_SWIFT_NAME(dictionary(withQuery:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Constructs a query string from a dictionary. + @param dictionary The dictionary with key/value pairs for the query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return Query string representation of the parameters. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary + error:(NSError **)errorRef +NS_SWIFT_NAME(query(from:)) +__attribute__((swift_error(nonnull_error))); +// UNCRUSTIFY_FORMAT_ON + +/** + Decodes a value from an URL. + @param value The value to decode. + @return The decoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLDecode:(NSString *)value +NS_SWIFT_NAME(decode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Encodes a value for an URL. + @param value The value to encode. + @return The encoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLEncode:(NSString *)value +NS_SWIFT_NAME(encode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Creates a timer using Grand Central Dispatch. + @param interval The interval to fire the timer, in seconds. + @param block The code block to execute when timer is fired. + @return The dispatch handle. + */ ++ (dispatch_source_t)startGCDTimerWithInterval:(double)interval block:(dispatch_block_t)block; + +/** + Stop a timer that was started by startGCDTimerWithInterval. + @param timer The dispatch handle received from startGCDTimerWithInterval. + */ ++ (void)stopGCDTimer:(dispatch_source_t)timer; + +/** + Get SHA256 hased string of NSString/NSData + + @param input The data that needs to be hashed, it could be NSString or NSData. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (nullable NSString *)SHA256Hash:(NSObject *)input +NS_SWIFT_NAME(sha256Hash(_:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the graphdomain stored in FBSDKAuthenticationToken ++ (nullable NSString *)getGraphDomainFromToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (NSURL *)unversionedFacebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h new file mode 100644 index 00000000..a9d946f3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(_WindowFinding) +@protocol _FBSDKWindowFinding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable UIWindow *)findWindow; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h new file mode 100644 index 00000000..a8114b1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoggerCreating) +@protocol __FBSDKLoggerCreating + +- (id)createLoggerWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Info.plist b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Info.plist similarity index 53% rename from ios/platform/FBSDKCoreKit.framework/Info.plist rename to ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Info.plist index 5b98e49f..e19471ce 100644 Binary files a/ios/platform/FBSDKCoreKit.framework/Info.plist and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos.swiftdoc new file mode 100644 index 00000000..3c2782ba Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos.swiftinterface new file mode 100644 index 00000000..f8c94481 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/module.modulemap b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..f951cee0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64/FBSDKCoreKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKCoreKit { + umbrella header "FBSDKCoreKit.h" + + export * + module * { export * } +} + +module FBSDKCoreKit.Swift { + header "FBSDKCoreKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/FBSDKCoreKit b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/FBSDKCoreKit new file mode 100644 index 00000000..d8699b3c Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/FBSDKCoreKit differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h new file mode 100644 index 00000000..87494ec0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h @@ -0,0 +1,188 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Notification indicating that the `currentAccessToken` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKAccessTokenChangeOldKey` and + `FBSDKAccessTokenChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification +NS_SWIFT_NAME(AccessTokenDidChange); + +/** + A key in the notification's userInfo that will be set + if and only if the user ID changed between the old and new tokens. + + Token refreshes can occur automatically with the SDK + which do not change the user. If you're only interested in user + changes (such as logging out), you should check for the existence + of this key. The value is a NSNumber with a boolValue. + + On a fresh start of the app where the SDK reads in the cached value + of an access token, this key will also exist since the access token + is moving from a null state (no user) to a non-null state (user). + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserIDKey +NS_SWIFT_NAME(AccessTokenDidChangeUserIDKey); + +/* + key in notification's userInfo object for getting the old token. + + If there was no old token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey +NS_SWIFT_NAME(AccessTokenChangeOldKey); + +/* + key in notification's userInfo object for getting the new token. + + If there is no new token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey +NS_SWIFT_NAME(AccessTokenChangeNewKey); + +/* + A key in the notification's userInfo that will be set + if and only if the token has expired. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpireKey +NS_SWIFT_NAME(AccessTokenDidExpireKey); + +/// Represents an immutable access token for using Facebook services. +NS_SWIFT_NAME(AccessToken) +@interface FBSDKAccessToken : NSObject + +/** + The "global" access token that represents the currently logged in user. + + The `currentAccessToken` is a convenient representation of the token of the + current user and is used by other SDK components (like `FBSDKLoginManager`). + */ +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +/// Returns YES if currentAccessToken is not nil AND currentAccessToken is not expired +@property (class, nonatomic, readonly, getter = isCurrentAccessTokenActive, assign) BOOL currentAccessTokenIsActive; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +/// Returns the app ID. +@property (nonatomic, readonly, copy) NSString *appID; + +/// Returns the expiration date for data access +@property (nonatomic, readonly, copy) NSDate *dataAccessExpirationDate; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *declinedPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the known declined permissions. +@property (nonatomic, readonly, copy) NSSet *expiredPermissions + NS_REFINED_FOR_SWIFT; + +/// Returns the expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// Returns the known granted permissions. +@property (nonatomic, readonly, copy) NSSet *permissions + NS_REFINED_FOR_SWIFT; + +/// Returns the date the token was last refreshed. +@property (nonatomic, readonly, copy) NSDate *refreshDate; + +/// Returns the opaque token string. +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// Returns the user ID. +@property (nonatomic, readonly, copy) NSString *userID; + +/// Returns whether the access token is expired by checking its expirationDate property +@property (nonatomic, readonly, getter = isExpired, assign) BOOL expired; + +/// Returns whether user data access is still active for the given access token +@property (nonatomic, readonly, getter = isDataAccessExpired, assign) BOOL dataAccessExpired; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes a new instance. + @param tokenString the opaque token string. + @param permissions the granted permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param appID the app ID. + @param userID the user ID. + @param expirationDate the optional expiration date (defaults to distantFuture). + @param refreshDate the optional date the token was last refreshed (defaults to today). + @param dataAccessExpirationDate the date which data access will expire for the given user + (defaults to distantFuture). + + This initializer should only be used for advanced apps that + manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` + along with `+currentAccessToken`. + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray *)permissions + declinedPermissions:(NSArray *)declinedPermissions + expiredPermissions:(NSArray *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(nullable NSDate *)expirationDate + refreshDate:(nullable NSDate *)refreshDate + dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate + NS_DESIGNATED_INITIALIZER; + +/** + Convenience getter to determine if a permission has been granted + @param permission The permission to check. + */ +// UNCRUSTIFY_FORMAT_OFF +- (BOOL)hasGranted:(NSString *)permission +NS_SWIFT_NAME(hasGranted(permission:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Compares the receiver to another FBSDKAccessToken + @param token The other token + @return YES if the receiver's values are equal to the other token's values; otherwise NO + */ +- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token; + +/** + Refresh the current access token's permission state and extend the token's expiration date, + if possible. + @param completion an optional callback handler that can surface any errors related to permission refreshing. + + On a successful refresh, the currentAccessToken will be updated so you typically only need to + observe the `FBSDKAccessTokenDidChangeNotification` notification. + + If a token is already expired, it cannot be refreshed. + */ ++ (void)refreshCurrentAccessTokenWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h new file mode 100644 index 00000000..5c033caa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAccessTokenProtocols.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@protocol FBSDKTokenCaching; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenProviding) +@protocol FBSDKAccessTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAccessToken *currentAccessToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(AccessTokenSetting) +@protocol FBSDKAccessTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAccessToken *currentAccessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h new file mode 100644 index 00000000..730b90da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAdvertisingTrackingStatus.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKAdvertisingTrackingStatus) { + FBSDKAdvertisingTrackingAllowed, + FBSDKAdvertisingTrackingDisallowed, + FBSDKAdvertisingTrackingUnspecified, +} NS_SWIFT_NAME(AdvertisingTrackingStatus); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h new file mode 100644 index 00000000..21a1f444 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppAvailabilityChecker.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppAvailabilityChecker) +@protocol FBSDKAppAvailabilityChecker + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, assign) BOOL isFacebookAppInstalled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h new file mode 100644 index 00000000..b55589b9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventName.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBSDKAppEvents`. + Common event parameters are provided in the `FBSDKAppEventParameterName` constants. + */ + +/// typedef for FBSDKAppEventName +typedef NSString *FBSDKAppEventName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.Name); + +// MARK: - General Purpose + +/// Log this event when the user clicks an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdClick; + +/// Log this event when the user views an ad. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAdImpression; + +/// Log this event when a user has completed registration with the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedRegistration; + +/// Log this event when the user has completed a tutorial in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCompletedTutorial; + +/// A telephone/SMS, email, chat or other type of contact between a customer and your business. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameContact; + +/// The customization of products through a configuration tool or other application your business owns. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameCustomizeProduct; + +/// The donation of funds to your organization or cause. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameDonate; + +/// When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameFindLocation; + +/// Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameRated; + +/// The booking of an appointment to visit one of your locations. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSchedule; + +/// Log this event when a user has performed a search within the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSearched; + +/// The start of a free trial of a product or service you offer (example: trial subscription). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameStartTrial; + +/// The submission of an application for a product, service or program you offer (example: credit card, educational program or job). +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubmitApplication; + +/// The start of a paid subscription for a product or service you offer. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSubscribe; + +/// Log this event when a user has viewed a form of content in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameViewedContent; + +// MARK: - E-Commerce + +/// Log this event when the user has entered their payment info. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedPaymentInfo; + +/// Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToCart; + +/// Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAddedToWishlist; + +/// Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameInitiatedCheckout; + +/// Log this event when the user has completed a transaction. The valueToSum passed to logEvent should be the total price of the transaction. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNamePurchased; + +// MARK: - Gaming + +/// Log this event when the user has achieved a level in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameAchievedLevel; + +/// Log this event when the user has unlocked an achievement in the app. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameUnlockedAchievement; + +/// Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. +FOUNDATION_EXPORT FBSDKAppEventName const FBSDKAppEventNameSpentCredits; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h new file mode 100644 index 00000000..ceb5e2d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterName.h @@ -0,0 +1,73 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. + */ + +/// typedef for FBSDKAppEventParameterName +typedef NSString *FBSDKAppEventParameterName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterName); + +/** + * Parameter key used to specify data for the one or more pieces of content being logged about. + * Data should be a JSON encoded string. + * Example: + * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" + */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContent; + +/// Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentID; + +/// Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameContentType; + +/// Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameCurrency; + +/// Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameDescription; + +/// Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLevel; + +/// Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameMaxRatingValue; + +/// Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameNumItems; + +/// Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNamePaymentInfoAvailable; + +/// Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameRegistrationMethod; + +/// Parameter key used to specify the string provided by the user for a search operation. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSearchString; + +/// Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameSuccess; + +/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression + * or FBSDKAppEventNameAdClick event. + * E.g. "banner", "interstitial", "rewarded_video", "native" */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameAdType; + +/** Parameter key used to specify the unique ID for all events within a subscription + * in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameOrderID; + +/// Parameter key used to specify event name. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameEventName; + +/// Parameter key used to specify event log time. +FOUNDATION_EXPORT FBSDKAppEventParameterName const FBSDKAppEventParameterNameLogTime; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h new file mode 100644 index 00000000..ff0b036c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterProduct.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logProductItem` method on `FBSDKAppEvents`. + +/// typedef for FBSDKAppEventParameterProduct +typedef NSString *const FBSDKAppEventParameterProduct NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterProduct); + +/// Parameter key used to specify the product item's category. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory; + +/// Parameter key used to specify the product item's custom label 0. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0; + +/// Parameter key used to specify the product item's custom label 1. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1; + +/// Parameter key used to specify the product item's custom label 2. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2; + +/// Parameter key used to specify the product item's custom label 3. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3; + +/// Parameter key used to specify the product item's custom label 4. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4; + +/// Parameter key used to specify the product item's AppLink app URL for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iOS App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iOS. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPhone App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPhone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName; + +/// Parameter key used to specify the product item's AppLink app URL for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl; + +/// Parameter key used to specify the product item's AppLink app ID for iPad App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID; + +/// Parameter key used to specify the product item's AppLink app name for iPad. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl; + +/// Parameter key used to specify the product item's AppLink fully-qualified package name for intent generation. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage; + +/// Parameter key used to specify the product item's AppLink app name for Android. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName; + +/// Parameter key used to specify the product item's AppLink app URL for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl; + +/// Parameter key used to specify the product item's AppLink app ID, as a GUID, for App Store. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID; + +/// Parameter key used to specify the product item's AppLink app name for Windows Phone. +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h new file mode 100644 index 00000000..796e2e10 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventParameterValue.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/* + @methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants. + */ + +/// typedef for FBSDKAppEventParameterValue +typedef NSString *const FBSDKAppEventParameterValue NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterValue); + +/// Yes-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes; + +/// No-valued parameter value to be used with parameter keys that need a Yes/No value +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h new file mode 100644 index 00000000..194443d5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventUserDataType.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *const FBSDKAppEventUserDataType NS_TYPED_EXTENSIBLE_ENUM; + +/// Parameter key used to specify user's email. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventEmail; + +/// Parameter key used to specify user's first name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventFirstName; + +/// Parameter key used to specify user's last name. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventLastName; + +/// Parameter key used to specify user's phone. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventPhone; + +/// Parameter key used to specify user's date of birth. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth; + +/// Parameter key used to specify user's gender. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventGender; + +/// Parameter key used to specify user's city. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCity; + +/// Parameter key used to specify user's state. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventState; + +/// Parameter key used to specify user's zip. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventZip; + +/// Parameter key used to specify user's country. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCountry; + +/// Parameter key used to specify user's external id. +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventExternalId; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h new file mode 100644 index 00000000..1504e744 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h @@ -0,0 +1,521 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + #import +#endif + +#import +#import +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/// Optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` +FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey +NS_SWIFT_NAME(AppEventsOverrideAppIDBundleKey); + +/** + Client-side event logging for specialized application analytics available through Facebook App Insights + and for use with Facebook Ads conversion tracking and optimization. + + The `FBSDKAppEvents` static class has a few related roles: + + + Logging predefined and application-defined events to Facebook App Insights with a + numeric value to sum across a large number of events, and an optional set of key/value + parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or + 'gamerLevel' : 'intermediate') + + + Logging events to later be used for ads optimization around lifetime value. + + + Methods that control the way in which events are flushed out to the Facebook servers. + + Here are some important characteristics of the logging mechanism provided by `FBSDKAppEvents`: + + + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers + in a number of situations: + - when an event count threshold is passed (currently 100 logged events). + - when a time threshold is passed (currently 15 seconds). + - when an app has gone to background and is then brought back to the foreground. + + + Events will be accumulated when the app is in a disconnected state, and sent when the connection is + restored and one of the above 'flush' conditions are met. + + + The `FBSDKAppEvents` class is thread-safe in that events may be logged from any of the app's threads. + + + The developer can set the `flushBehavior` on `FBSDKAppEvents` to force the flushing of events to only + occur on an explicit call to the `flush` method. + + + The developer can turn on console debug output for event logging and flushing to the server by using + the `FBSDKLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. + + Some things to note when logging events: + + + There is a limit on the number of unique event names an app can use, on the order of 1000. + + There is a limit to the number of unique parameter names in the provided parameters that can + be used per event, on the order of 25. This is not just for an individual call, but for all + invocations for that eventName. + + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and + must consist of alphanumeric characters, _, -, or spaces. + + The length of each parameter value can be no more than on the order of 100 characters. + */ +NS_SWIFT_NAME(AppEvents) +@interface FBSDKAppEvents : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The shared instance of AppEvents. +@property (class, nonatomic, readonly, strong) FBSDKAppEvents *shared; + +/// Control over event batching/flushing + +/// The current event flushing behavior specifying when events are sent back to Facebook servers. +@property (nonatomic) FBSDKAppEventsFlushBehavior flushBehavior; + +/** + Set the 'override' App ID for App Event logging. + + In some cases, apps want to use one Facebook App ID for login and social presence and another + for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but + want distinct logging.) By default, this value is `nil`, and defers to the `FBSDKAppEventsOverrideAppIDBundleKey` + plist value. If that's not set, it defaults to `Settings.shared.appID`. + + This should be set before any other calls are made to `AppEvents`. Thus, you should set it in your application + delegate's `application(_:didFinishLaunchingWithOptions:)` method. + */ +@property (nullable, nonatomic, copy) NSString *loggingOverrideAppID; + +/** + The custom user ID to associate with all app events. + + The userID is persisted until it is cleared by passing `nil`. + */ +@property (nullable, nonatomic, copy) NSString *userID; + +/// Returns generated anonymous id that persisted with current install of the app +@property (nonatomic, readonly) NSString *anonymousID; + +/* + * Basic event logging + */ + +/** + Log an event with just an event name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. + */ +- (void)logEvent:(FBSDKAppEventName)eventName; + +/** + Log an event with an event name and a numeric value to be aggregated with other events of this name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum; + +/** + Log an event with an event name and a set of key/value pairs in the parameters dictionary. + Parameter limitations are described above. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this event name, and App Insights will report + the cumulative and average value of this amount. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(nullable NSDictionary *)parameters; + +/** + Log an event with an event name, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `AppEvents` documentation. Common event names are provided in `AppEvents.Name` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. Note that this is an `NSNumber`, and a value of `nil` denotes + that this event doesn't have a value associated with it for summation. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + */ +- (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(nullable NSNumber *)valueToSum + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken; + +/* + * Purchase logging + */ + +/** + Log a purchase of the specified amount, in the specified currency. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount currency:(NSString *)currency + NS_SWIFT_NAME(logPurchase(amount:currency:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be `NSString`s, and the values are expected to be `NSString` or `NSNumber`. Limitations on the number of + parameters and name construction are given in the `AppEvents` documentation. Commonly used parameter names + are provided in `AppEvents.ParameterName` constants. + + @param accessToken The optional access token to log the event as. + + This event immediately triggers a flush of the `AppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(nullable NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken + NS_SWIFT_NAME(logPurchase(amount:currency:parameters:accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/* + * Push Notifications Logging + */ + +/** + Log an app event that tracks that the application was open via Push Notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload + NS_SWIFT_NAME(logPushNotificationOpen(payload:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Log an app event that tracks that a custom action was taken from a push notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + @param action Name of the action that was taken. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action + NS_SWIFT_NAME(logPushNotificationOpen(payload:action:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Uploads product catalog product item as an app event + + @param itemID Unique ID for the item. Can be a variant for a product. + Max size is 100. + @param availability If item is in stock. Accepted values are: + in stock - Item ships immediately + out of stock - No plan to restock + preorder - Available in future + available for order - Ships in 1-2 weeks + discontinued - Discontinued + @param condition Product condition: new, refurbished or used. + @param description Short text describing product. Max size is 5000. + @param imageLink Link to item image used in ad. + @param link Link to merchant's site where someone can buy the item. + @param title Title of item. + @param priceAmount Amount of purchase, in the currency specified by the 'currency' + parameter. This value will be rounded to the thousandths place + (e.g., 12.34567 becomes 12.346). + @param currency Currency string (e.g., "USD", "EUR", "GBP"); see ISO-4217 for + specific values. One reference for these is . + @param gtin Global Trade Item Number including UPC, EAN, JAN and ISBN + @param mpn Unique manufacture ID for product + @param brand Name of the brand + Note: Either gtin, mpn or brand is required. + @param parameters Optional fields for deep link specification. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)logProductItem:(NSString *)itemID + availability:(FBSDKProductAvailability)availability + condition:(FBSDKProductCondition)condition + description:(NSString *)description + imageLink:(NSString *)imageLink + link:(NSString *)link + title:(NSString *)title + priceAmount:(double)priceAmount + currency:(NSString *)currency + gtin:(nullable NSString *)gtin + mpn:(nullable NSString *)mpn + brand:(nullable NSString *)brand + parameters:(nullable NSDictionary *)parameters + NS_SWIFT_NAME(logProductItem(id:availability:condition:description:imageLink:link:title:priceAmount:currency:gtin:mpn:brand:parameters:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. + This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless + one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. + In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the + app delegates' `applicationDidBecomeActive:` method. + + This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to + track user acquisition and app install ads conversions. + + `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. + "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" + event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much + time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data + is all visible in your app's App Events Insights. + */ +- (void)activateApp; + +/* + * Push Notifications Registration and Uninstall Tracking + */ + +/** + Sets and sends device token to register the current application for push notifications. + + Sets and sends a device token from the `Data` representation that you get from + `UIApplicationDelegate.application(_:didRegisterForRemoteNotificationsWithDeviceToken:)`. + + @param deviceToken Device token data. + */ +- (void)setPushNotificationsDeviceToken:(nullable NSData *)deviceToken; + +/** + Sets and sends device token string to register the current application for push notifications. + + Sets and sends a device token string + + @param deviceTokenString Device token string. + */ +// UNCRUSTIFY_FORMAT_OFF +- (void)setPushNotificationsDeviceTokenString:(nullable NSString *)deviceTokenString +NS_SWIFT_NAME(setPushNotificationsDeviceToken(_:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate + kick off. Server failures will be reported through the NotificationCenter with notification ID `FBSDKAppEventsLoggingResultNotification`. + */ +- (void)flush; + +/** + Creates a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. + Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, + and then use the resultant Custom Audience to target ads. + + The JSON in the request's response will include a "custom_audience_third_party_id" key/value pair with the value being the ID retrieved. + This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. + Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior + across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. + + The ID retrieved represents the Facebook user identified in the following way: if the specified access token is valid, + the ID will represent the user associated with that token; otherwise the ID will represent the user logged into the + native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out + at the iOS level from ad tracking, then a `nil` ID will be returned. + + This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage + via the `Settings.shared.isEventDataUsageLimited` flag, or a specific Facebook user cannot be identified. + + @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. + If `nil`, then `AccessToken.current` is used. + */ +// UNCRUSTIFY_FORMAT_OFF +- (nullable FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(nullable FBSDKAccessToken *)accessToken +NS_SWIFT_NAME(requestForCustomAudienceThirdPartyID(accessToken:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param email user's email + @param firstName user's first name + @param lastName user's last name + @param phone user's phone + @param dateOfBirth user's date of birth + @param gender user's gender + @param city user's city + @param state user's state + @param zip user's zip + @param country user's country + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the set user data else nil +- (nullable NSString *)getUserData; + +/// Clears the current user data +- (void)clearUserData; + +/** + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param data data + @param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone + */ +- (void)setUserData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type; + +/// Clears the current user data of certain type +- (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; + +#if !TARGET_OS_TV +/** + Intended to be used as part of a hybrid webapp. + If you call this method, the FB SDK will inject a new JavaScript object into your webview. + If the FB Pixel is used within the webview, and references the app ID of this app, + then it will detect the presence of this injected JavaScript object + and pass Pixel events back to the FB SDK for logging using the AppEvents framework. + + @param webView The webview to augment with the additional JavaScript behavior + */ +- (void)augmentHybridWebView:(WKWebView *)webView; +#endif + +/* + * Unity helper functions + */ + +/** + Set whether Unity is already initialized. + + @param isUnityInitialized Whether Unity is initialized. + */ +- (void)setIsUnityInitialized:(BOOL)isUnityInitialized; + +/// Send event bindings to Unity +- (void)sendEventBindingsToUnity; + +/* + * SDK Specific Event Logging + * Do not call directly outside of the SDK itself. + */ + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(nullable FBSDKAccessToken *)accessToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h new file mode 100644 index 00000000..872ef491 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsFlushBehavior.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior) + + Specifies when `FBSDKAppEvents` sends log events to the server. + */ +typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushBehavior) { + /// Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. + FBSDKAppEventsFlushBehaviorAuto = 0, + + /** Only flush when the `flush` method is called. When an app is moved to background/terminated, the + events are persisted and re-established at activation, but they will only be written with an + explicit call to `flush`. */ + FBSDKAppEventsFlushBehaviorExplicitOnly, +} NS_SWIFT_NAME(AppEvents.FlushBehavior); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h new file mode 100644 index 00000000..159e27d7 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppEventsNotificationName.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. +FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification +NS_SWIFT_NAME(AppEventsLoggingResult); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h new file mode 100644 index 00000000..c8b39faa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAppURLSchemeProviding.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AppURLSchemeProviding) +@protocol FBSDKAppURLSchemeProviding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly, copy) NSString *appURLScheme; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)validateURLSchemes; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h new file mode 100644 index 00000000..ad1b6c78 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h @@ -0,0 +1,131 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The FBSDKApplicationDelegate is designed to post process the results from Facebook Login + or Facebook Dialogs (or any action that requires switching over to the native Facebook + app or Safari). + + The methods in this class are designed to mirror those in UIApplicationDelegate, and you + should call them in the respective methods in your AppDelegate implementation. + */ +NS_SWIFT_NAME(ApplicationDelegate) +@interface FBSDKApplicationDelegate : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +#if DEBUG && FBTEST +@property (nonnull, nonatomic, readonly) NSHashTable> *applicationObservers; +#endif + +/// Gets the singleton instance. +@property (class, nonatomic, readonly, strong) FBSDKApplicationDelegate *sharedInstance +NS_SWIFT_NAME(shared); + +/** + Call this method from the [UIApplicationDelegate application:continue:restorationHandler:] method + of the AppDelegate for your app. It should be invoked in order to properly process the web URL (universal link) + once the end user is redirected to your app. + + @param application The application as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + @param userActivity The user activity as passed to [UIApplicationDelegate application:continue:restorationHandler:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. +*/ +- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity; + +/** + Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +/** + Call this method from the [UIApplicationDelegate application:openURL:options:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:options:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:options:]. + + @param options The options dictionary as passed to [UIApplicationDelegate application:openURL:options:]. + + @return YES if the URL was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options; + +/** + Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method + of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + + @param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @return True if there are any added application observers that themselves return true from calling `application:didFinishLaunchingWithOptions:`. + Otherwise will return false. Note: If this method is called after calling `initializeSDK` then the return type will always be false. + */ +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +/** + Initializes the SDK. + + If you are using the SDK within the context of the UIApplication lifecycle, do not use this method. + Instead use `application: didFinishLaunchingWithOptions:`. + + As part of SDK initialization basic auto logging of app events will occur, this can be + controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + */ +- (void)initializeSDK; + +/** + Adds an observer that will be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)addObserver:(id)observer; + +/** + Removes an observer so that it will no longer be informed about application lifecycle events. + + @note Observers are weakly held + */ +- (void)removeObserver:(id)observer; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h new file mode 100644 index 00000000..14de8940 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKApplicationObserving.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + Describes any types that optionally responds to various lifecycle events + received by the system and propagated by `ApplicationDelegate`. + */ +@protocol FBSDKApplicationObserving + +@optional +- (void)applicationDidBecomeActive:(nullable UIApplication *)application; +- (void)applicationWillResignActive:(nullable UIApplication *)application; +- (void)applicationDidEnterBackground:(nullable UIApplication *)application; +- (BOOL) application:(UIApplication *)application + didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h new file mode 100644 index 00000000..90648c92 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationToken.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAuthenticationTokenClaims; +@protocol FBSDKTokenCaching; + +NS_ASSUME_NONNULL_BEGIN + +/// Represent an AuthenticationToken used for a login attempt +NS_SWIFT_NAME(AuthenticationToken) +@interface FBSDKAuthenticationToken : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The "global" authentication token that represents the currently logged in user. + + The `currentAuthenticationToken` represents the authentication token of the + current user and can be used by a client to verify an authentication attempt. + */ +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +/// The raw token string from the authentication response +@property (nonatomic, readonly, copy) NSString *tokenString; + +/// The nonce from the decoded authentication response +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The graph domain where the user is authenticated. +@property (nonatomic, readonly, copy) NSString *graphDomain; + +/// Returns the claims encoded in the AuthenticationToken +- (nullable FBSDKAuthenticationTokenClaims *)claims; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h new file mode 100644 index 00000000..874fe073 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenClaims.h @@ -0,0 +1,89 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenClaims) +@interface FBSDKAuthenticationTokenClaims : NSObject + +/// A unique identifier for the token. +@property (nonatomic, readonly, strong) NSString *jti; + +/// Issuer Identifier for the Issuer of the response. +@property (nonatomic, readonly, strong) NSString *iss; + +/// Audience(s) that this ID Token is intended for. +@property (nonatomic, readonly, strong) NSString *aud; + +/// String value used to associate a Client session with an ID Token, and to mitigate replay attacks. +@property (nonatomic, readonly, strong) NSString *nonce; + +/// Expiration time on or after which the ID Token MUST NOT be accepted for processing. +@property (nonatomic, readonly, assign) NSTimeInterval exp; + +/// Time at which the JWT was issued. +@property (nonatomic, readonly, assign) NSTimeInterval iat; + +/// Subject - Identifier for the End-User at the Issuer. +@property (nonatomic, readonly, strong) NSString *sub; + +/// End-User's full name in displayable form including all name parts. +@property (nullable, nonatomic, readonly, strong) NSString *name; + +/// End-User's given name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *givenName; + +/// End-User's middle name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *middleName; + +/// End-User's family name in displayable form +@property (nullable, nonatomic, readonly, strong) NSString *familyName; + +/** + End-User's preferred e-mail address. + + IMPORTANT: This field will only be populated if your user has granted your application the 'email' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSString *email; + +/// URL of the End-User's profile picture. +@property (nullable, nonatomic, readonly, strong) NSString *picture; + +/** + End-User's friends. + + IMPORTANT: This field will only be populated if your user has granted your application the 'user_friends' permission. + */ +@property (nullable, nonatomic, readonly, strong) NSArray *userFriends; + +/// End-User's birthday +@property (nullable, nonatomic, readonly, strong) NSString *userBirthday; + +/// End-User's age range +@property (nullable, nonatomic, readonly, strong) NSDictionary *userAgeRange; + +/// End-User's hometown +@property (nullable, nonatomic, readonly, strong) NSDictionary *userHometown; + +/// End-User's location +@property (nullable, nonatomic, readonly, strong) NSDictionary *userLocation; + +/// End-User's gender +@property (nullable, nonatomic, readonly, strong) NSString *userGender; + +/// End-User's link +@property (nullable, nonatomic, readonly, strong) NSString *userLink; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h new file mode 100644 index 00000000..4f642307 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKAuthenticationTokenProtocols.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(AuthenticationTokenProviding) +@protocol FBSDKAuthenticationTokenProviding + +@property (class, nullable, nonatomic, readonly, copy) FBSDKAuthenticationToken *currentAuthenticationToken; +@property (class, nullable, nonatomic, copy) id tokenCache; + +@end + +NS_SWIFT_NAME(AuthenticationTokenSetting) +@protocol FBSDKAuthenticationTokenSetting + +@property (class, nullable, nonatomic, copy) FBSDKAuthenticationToken *currentAuthenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButton.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButton.h new file mode 100644 index 00000000..beae11a1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButton.h @@ -0,0 +1,80 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +@class FBSDKIcon; + +NS_ASSUME_NONNULL_BEGIN + +/// A base class for common SDK buttons. +NS_SWIFT_NAME(FBButton) +@interface FBSDKButton : FBSDKImpressionLoggingButton + +@property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled; + +- (void)checkImplicitlyDisabled; +- (void)configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void) configureWithIcon:(nullable FBSDKIcon *)icon + title:(nullable NSString *)title + backgroundColor:(nullable UIColor *)backgroundColor + highlightedColor:(nullable UIColor *)highlightedColor + selectedTitle:(nullable NSString *)selectedTitle + selectedIcon:(nullable FBSDKIcon *)selectedIcon + selectedColor:(nullable UIColor *)selectedColor + selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (UIColor *)defaultBackgroundColor; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)logTapEventWithEventName:(FBSDKAppEventName)eventName + parameters:(nullable NSDictionary *)parameters; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h new file mode 100644 index 00000000..806edb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKButtonImpressionLogging.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FBButtonImpressionLogging) +@protocol FBSDKButtonImpressionLogging + +@property (nullable, nonatomic, readonly, copy) NSDictionary *analyticsParameters; +@property (nonatomic, readonly, copy) FBSDKAppEventName impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString *impressionTrackingIdentifier; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKConstants.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKConstants.h new file mode 100644 index 00000000..d746dca3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKConstants.h @@ -0,0 +1,206 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKCoreKit. + + Error codes from the SDK in the range 0-99 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKErrorDomain +NS_SWIFT_NAME(ErrorDomain); + +/* + @methodgroup error userInfo keys + */ + +/** + The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. + + If the invalid argument is a collection, the collection can be found with this key and the individual + invalid item can be found with FBSDKErrorArgumentValueKey. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey +NS_SWIFT_NAME(ErrorArgumentCollectionKey); + +/// The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey +NS_SWIFT_NAME(ErrorArgumentNameKey); + +/// The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey +NS_SWIFT_NAME(ErrorArgumentValueKey); + +/** + The userInfo key for the message for developers in NSErrors that originate from the SDK. + + The developer message will not be localized and is not intended to be presented within the app. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey +NS_SWIFT_NAME(ErrorDeveloperMessageKey); + +/// The userInfo key describing a localized description that can be presented to the user. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey +NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); + +/// The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey +NS_SWIFT_NAME(ErrorLocalizedTitleKey); + +/* + @methodgroup FBSDKGraphRequest error userInfo keys + */ + +/** + The userInfo key describing the error category, for error recovery purposes. + + See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorKey +NS_SWIFT_NAME(GraphRequestErrorKey); + +/* + The userInfo key for the Graph API error code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); + +/* + The userInfo key for the Graph API error subcode. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); + +/* + The userInfo key for the HTTP status code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey +NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); + +/* + The userInfo key for the raw JSON response. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey +NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); + +/* + @methodgroup Common Code Block typedefs + */ + +/// Success Block +typedef void (^ FBSDKCodeBlock)(void) +NS_SWIFT_NAME(CodeBlock); + +/// Error Block +typedef void (^ FBSDKErrorBlock)(NSError *_Nullable error) +NS_SWIFT_NAME(ErrorBlock); + +/// Success Block +typedef void (^ FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) +NS_SWIFT_NAME(SuccessBlock); + +/* + @methodgroup Enums + */ + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKCoreError + Error codes for FBSDKErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKErrorDomain, FBSDKCoreError) +{ + /// Reserved. + FBSDKErrorReserved = 0, + + /// The error code for errors from invalid encryption on incoming encryption URLs. + FBSDKErrorEncryption, + + /// The error code for errors from invalid arguments to SDK methods. + FBSDKErrorInvalidArgument, + + /// The error code for unknown errors. + FBSDKErrorUnknown, + + /** + A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve + the error object from the NSURLSession for more information. + */ + FBSDKErrorNetwork, + + /// The error code for errors encountered during an App Events flush. + FBSDKErrorAppEventsFlush, + + /** + An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. + + Endpoints that return image/jpg, etc. should be accessed using NSURLRequest + */ + FBSDKErrorGraphRequestNonTextMimeTypeReturned, + + /** + The operation failed because the server returned an unexpected response. + + You can get this error if you are not using the most recent SDK, or you are accessing a version of the + Graph API incompatible with the current SDK. + */ + FBSDKErrorGraphRequestProtocolMismatch, + + /** + The Graph API returned an error. + + See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) + */ + FBSDKErrorGraphRequestGraphAPI, + + /** + The specified dialog configuration is not available. + + This error may signify that the configuration for the dialogs has not yet been downloaded from the server + or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. + */ + FBSDKErrorDialogUnavailable, + + /// Indicates an operation failed because a required access token was not found. + FBSDKErrorAccessTokenRequired, + + /// Indicates an app switch (typically for a dialog) failed because the destination app is out of date. + FBSDKErrorAppVersionUnsupported, + + /// Indicates an app switch to the browser (typically for a dialog) failed. + FBSDKErrorBrowserUnavailable, + + /// Indicates that a bridge api interaction was interrupted. + FBSDKErrorBridgeAPIInterruption, + + /// Indicates that a bridge api response creation failed. + FBSDKErrorBridgeAPIResponse, +} NS_SWIFT_NAME(CoreError); + +/** + FBSDKGraphRequestError + Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. + */ +typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) { + /// The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. + FBSDKGraphRequestErrorOther = 0, + /// Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. + FBSDKGraphRequestErrorTransient = 1, + /// Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. + FBSDKGraphRequestErrorRecoverable = 2, +} NS_SWIFT_NAME(GraphRequestError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h new file mode 100644 index 00000000..6243096e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h @@ -0,0 +1,514 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKCOREKIT_SWIFT_H +#define FBSDKCOREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@protocol FBSDKGraphRequestFactory; +@protocol FBSDKSettings; + +SWIFT_CLASS("_TtC12FBSDKCoreKit25FBSDKAppEventsCAPIManager") +@interface FBSDKAppEventsCAPIManager : NSObject +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKAppEventsCAPIManager * _Nonnull shared;) ++ (FBSDKAppEventsCAPIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithFactory:(id _Nonnull)factory settings:(id _Nonnull)settings; +- (void)enable; +@end + +@class NSString; +@protocol FBSDKGraphRequest; + +SWIFT_CLASS("_TtC12FBSDKCoreKit35FBSDKTransformerGraphRequestFactory") +@interface FBSDKTransformerGraphRequestFactory : FBSDKGraphRequestFactory +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FBSDKTransformerGraphRequestFactory * _Nonnull shared;) ++ (FBSDKTransformerGraphRequestFactory * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (void)configureWithDatasetID:(NSString * _Nonnull)datasetID url:(NSString * _Nonnull)url accessKey:(NSString * _Nonnull)accessKey; +- (void)callCapiGatewayAPIWith:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(FBSDKHTTPMethod _Nullable)httpMethod flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString version:(NSString * _Nullable)version HTTPMethod:(FBSDKHTTPMethod _Nonnull)httpMethod SWIFT_WARN_UNUSED_RESULT; +- (id _Nonnull)createGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary * _Nonnull)parameters flags:(FBSDKGraphRequestFlags)flags SWIFT_WARN_UNUSED_RESULT; +@end + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h new file mode 100644 index 00000000..8a4569c0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h @@ -0,0 +1,112 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import + +#if !TARGET_OS_TV + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import + #import +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h new file mode 100644 index 00000000..e9eb97c5 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKCoreKitVersions.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#define FBSDK_VERSION_STRING @"13.1.0" +#define FBSDK_DEFAULT_GRAPH_API_VERSION @"v13.0" diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h new file mode 100644 index 00000000..73ac8512 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceButton) +@interface FBSDKDeviceButton : FBSDKButton +- (CGSize)sizeThatFits:(CGSize)size attributedTitle:(NSAttributedString *)title; +- (nullable NSAttributedString *)attributedTitleStringFromString:(NSString *)string; +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h new file mode 100644 index 00000000..b98e1221 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceDialogView.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +NS_SWIFT_NAME(FBDeviceDialogView) +@interface FBSDKDeviceDialogView : UIView + +@property (nonatomic, weak) id delegate; +@property (nonatomic, copy) NSString *confirmationCode; + +// override point for subclasses. +- (void)buildView; + +@end + +NS_SWIFT_NAME(DeviceDialogViewDelegate) +@protocol FBSDKDeviceDialogViewDelegate + +- (void)deviceDialogViewDidCancel:(FBSDKDeviceDialogView *)deviceDialogView; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h new file mode 100644 index 00000000..b4e309a9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if TARGET_OS_TV + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + An internal base class for device related flows. + + This is an internal API that should not be used directly and is subject to change. + */ +NS_SWIFT_NAME(FBDeviceViewControllerBase) +@interface FBSDKDeviceViewControllerBase : UIViewController +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h new file mode 100644 index 00000000..a46a303e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicFrameworkLoaderProxy.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(DynamicFrameworkLoaderProxy) +@interface FBSDKDynamicFrameworkLoaderProxy : NSObject +/** + Load the kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value from the Security Framework + + @return The kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h new file mode 100644 index 00000000..bad1414d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKDynamicSocialFrameworkLoader.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Social Constants + +/// Dynamically loaded constant for SLServiceTypeFacebook +FOUNDATION_EXPORT NSString *fbsdkdfl_SLServiceTypeFacebook(void); + +#pragma mark - Social Classes + +FOUNDATION_EXPORT Class fbsdkdfl_SLComposeViewControllerClass(void); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h new file mode 100644 index 00000000..85c9e191 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorCreating.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorCreating) +@protocol FBSDKErrorCreating + +// MARK: - General Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithCode:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(error(domain:code:userInfo:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Invalid Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(invalidArgumentError(domain:name:value:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Required Argument Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithName:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError +NS_SWIFT_NAME(requiredArgumentError(name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError + NS_SWIFT_NAME(requiredArgumentError(domain:name:message:underlyingError:)); +// UNCRUSTIFY_FORMAT_ON + +// MARK: - Unknown Errors + +// UNCRUSTIFY_FORMAT_OFF +- (NSError *)unknownErrorWithMessage:(nullable NSString *)message + userInfo:(nullable NSDictionary *)userInfo +NS_SWIFT_NAME(unknownError(message:userInfo:)); +// UNCRUSTIFY_FORMAT_ON + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h new file mode 100644 index 00000000..217c00be --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorFactory.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(ErrorFactory) +@interface FBSDKErrorFactory : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h new file mode 100644 index 00000000..b005f8eb --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKErrorRecoveryAttempting.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A formal protocol very similar to the informal protocol NSErrorRecoveryAttempting + Internal use only + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ErrorRecoveryAttempting) +@protocol FBSDKErrorRecoveryAttempting + +/** + Attempt the recovery + @param error the error + @param completionHandler the handler called upon completion of error recovery + + Attempt recovery from the error, and call the completion handler. The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. + */ +- (void)attemptRecoveryFromError:(NSError *)error + completionHandler:(void (^)(BOOL didRecover))completionHandler; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeature.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeature.h new file mode 100644 index 00000000..1ddf4d2f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeature.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + FBSDKFeature enum + Defines features in SDK + + Sample: + FBSDKFeatureAppEvents = 0x00010000, + ^ ^ ^ ^ + | | | | + kit | | | + feature | | + sub-feature | + sub-sub-feature + 1st byte: kit + 2nd byte: feature + 3rd byte: sub-feature + 4th byte: sub-sub-feature + + @warning INTERNAL - DO NOT USE + */ +typedef NS_ENUM(NSUInteger, FBSDKFeature) { + FBSDKFeatureNone = 0x00000000, + // Features in CoreKit + /// Essential of CoreKit + FBSDKFeatureCore = 0x01000000, + /// App Events + FBSDKFeatureAppEvents = 0x01010000, + FBSDKFeatureCodelessEvents = 0x01010100, + FBSDKFeatureRestrictiveDataFiltering = 0x01010200, + FBSDKFeatureAAM = 0x01010300, + FBSDKFeaturePrivacyProtection = 0x01010400, + FBSDKFeatureSuggestedEvents = 0x01010401, + FBSDKFeatureIntelligentIntegrity = 0x01010402, + FBSDKFeatureModelRequest = 0x01010403, + FBSDKFeatureEventDeactivation = 0x01010500, + FBSDKFeatureSKAdNetwork = 0x01010600, + FBSDKFeatureSKAdNetworkConversionValue = 0x01010601, + FBSDKFeatureATELogging = 0x01010700, + FBSDKFeatureAEM = 0x01010800, + FBSDKFeatureAEMConversionFiltering = 0x01010801, + FBSDKFeatureAEMCatalogMatching = 0x01010802, + /// Instrument + FBSDKFeatureInstrument = 0x01020000, + FBSDKFeatureCrashReport = 0x01020100, + FBSDKFeatureCrashShield = 0x01020101, + FBSDKFeatureErrorReport = 0x01020200, + + // Features in LoginKit + /// Essential of LoginKit + FBSDKFeatureLogin = 0x02000000, + + // Features in ShareKit + /// Essential of ShareKit + FBSDKFeatureShare = 0x03000000, + + // Features in GamingServicesKit + /// Essential of GamingServicesKit + FBSDKFeatureGamingServices = 0x04000000, +} NS_SWIFT_NAME(SDKFeature); + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +typedef void (^FBSDKFeatureManagerBlock)(BOOL enabled); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h new file mode 100644 index 00000000..bdb5d532 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKFeatureChecking.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(FeatureChecking) +@protocol FBSDKFeatureChecking + +- (BOOL)isEnabled:(FBSDKFeature)feature; + +- (void)checkFeature:(FBSDKFeature)feature + completionBlock:(FBSDKFeatureManagerBlock)completionBlock; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h new file mode 100644 index 00000000..bd149522 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h @@ -0,0 +1,167 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +/** + Represents a request to the Facebook Graph API. + + `FBSDKGraphRequest` encapsulates the components of a request (the + Graph API path, the parameters, error recovery behavior) and should be + used in conjunction with `FBSDKGraphRequestConnection` to issue the request. + + Nearly all Graph APIs require an access token. Unless specified, the + `[FBSDKAccessToken currentAccessToken]` is used. Therefore, most requests + will require login first (see `FBSDKLoginManager` in FBSDKLoginKit.framework). + + A `- start` method is provided for convenience for single requests. + + By default, FBSDKGraphRequest will attempt to recover any errors returned from + Facebook. You can disable this via `disableErrorRecovery:`. + + See FBSDKGraphErrorRecoveryProcessor + */ +NS_SWIFT_NAME(GraphRequest) +@interface FBSDKGraphRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +// UNCRUSTIFY_FORMAT_OFF ++ (void) configureWithSettings:(id)settings + currentAccessTokenStringProvider:(Class)accessTokenProvider + graphRequestConnectionFactory:(id)_graphRequestConnectionFactory +NS_SWIFT_NAME(configure(settings:currentAccessTokenStringProvider:graphRequestConnectionFactory:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param version the optional Graph API version (e.g., @"v2.0"). nil defaults to `[FBSDKSettings graphAPIVersion]`. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method + NS_DESIGNATED_INITIALIZER; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param requestFlags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)requestFlags; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param HTTPMethod the HTTP method. Empty String defaults to @"GET". + @param flags flags that indicate how a graph request should be treated in various scenarios + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(nullable NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable NSString *)HTTPMethod + flags:(FBSDKGraphRequestFlags)flags; + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/** + If set, disables the automatic error recovery mechanism. + @param disable whether to disable the automatic error recovery mechanism + + By default, non-batched FBSDKGraphRequest instances will automatically try to recover + from errors by constructing a `FBSDKGraphErrorRecoveryProcessor` instance that + re-issues the request on successful recoveries. The re-issued request will call the same + handler as the receiver but may occur with a different `FBSDKGraphRequestConnection` instance. + + This will override [FBSDKSettings setGraphErrorRecoveryDisabled:]. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)setGraphErrorRecoveryDisabled:(BOOL)disable +NS_SWIFT_NAME(setGraphErrorRecovery(disabled:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h new file mode 100644 index 00000000..a64cb00d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnecting.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequest; +@protocol FBSDKGraphRequestConnecting; +@protocol FBSDKGraphRequestConnectionDelegate; + +/** + FBSDKGraphRequestCompletion + + A block that is passed to addRequest to register for a callback with the results of that + request once the connection completes. + + Pass a block of this type when calling addRequest. This will be called once + the request completes. The call occurs on the UI thread. + + @param connection The connection that sent the request. + + @param result The result of the request. This is a translation of + JSON data to `NSDictionary` and `NSArray` objects. This + is nil if there was an error. + + @param error The `NSError` representing any error that occurred. + */ +NS_SWIFT_NAME(GraphRequestCompletion) +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe an object that can manage graph requests +NS_SWIFT_NAME(GraphRequestConnecting) +@protocol FBSDKGraphRequestConnecting + +@property (nonatomic, assign) NSTimeInterval timeout; +@property (nullable, nonatomic, weak) id delegate; + +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)handler; + +- (void)start; +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h new file mode 100644 index 00000000..99966bf1 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h @@ -0,0 +1,173 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The key in the result dictionary for requests to old versions of the Graph API + whose response is not a JSON object. + + When a request returns a non-JSON response (such as a "true" literal), that response + will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API + prior to v2.1. + */ +FOUNDATION_EXPORT NSString *const FBSDKNonJSONResponseProperty +NS_SWIFT_NAME(NonJSONResponseProperty); + +@protocol FBSDKGraphRequest; + +/** + The `FBSDKGraphRequestConnection` represents a single connection to Facebook to service a request. + + The request settings are encapsulated in a reusable object. The + `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication + e.g. starting a connection, canceling a connection, or batching requests. + */ +NS_SWIFT_NAME(GraphRequestConnection) +@interface FBSDKGraphRequestConnection : NSObject + +/// The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. +@property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; + +/// The delegate object that receives updates. +@property (nullable, nonatomic, weak) id delegate; + +/// Gets or sets the timeout interval to wait for a response before giving up. +@property (nonatomic, assign) NSTimeInterval timeout; + +/** + The raw response that was returned from the server. (readonly) + + This property can be used to inspect HTTP headers that were returned from + the server. + + The property is nil until the request completes. If there was a response + then this property will be non-nil during the FBSDKGraphRequestBlock callback. + */ +@property (nullable, nonatomic, readonly, retain) NSHTTPURLResponse *urlResponse; + +/** + Determines the operation queue that is used to call methods on the connection's delegate. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + You cannot reschedule a connection after it has started. + */ +@property (nullable, nonatomic) NSOperationQueue *delegateQueue; + +/// @methodgroup Class methods + +/// @methodgroup Adding requests + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + @param completion A handler to call back when the round-trip completes or times out. + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. + */ +- (void)addRequest:(id)request + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + The handler will be invoked on the main thread. + + @param name A name for this request. This can be used to feed + the results of one request to the input of another in the same + `FBSDKGraphRequestConnection` as described in + [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + name:(NSString *)name + completion:(FBSDKGraphRequestCompletion)completion; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param completion A handler to call back when the round-trip completes or times out. + + @param parameters The dictionary of parameters to include for this request + as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + Examples include "depends_on", "name", or "omit_response_on_success". + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(id)request + parameters:(nullable NSDictionary *)parameters + completion:(FBSDKGraphRequestCompletion)completion; + +/// @methodgroup Instance methods + +/** + @method + + Signals that a connection should be logically terminated as the + application is no longer interested in a response. + + Synchronously calls any handlers indicating the request was cancelled. Cancel + does not guarantee that the request-related processing will cease. It + does promise that all handlers will complete before the cancel returns. A call to + cancel prior to a start implies a cancellation of all requests associated + with the connection. + */ +- (void)cancel; + +/** + @method + + This method starts a connection with the server and is capable of handling all of the + requests that were added to the connection. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + See `setDelegateQueue:` for other options. + + This method cannot be called twice for an `FBSDKGraphRequestConnection` instance. + */ +- (void)start; + +/** + @method + + Overrides the default version for a batch request + + The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning + for applications. If you want to override the version part while using batch requests on the connection, call + this method to set the version for the batch request. + + @param version This is a string in the form @"v2.0" which will be used for the version part of an API path + */ +- (void)overrideGraphAPIVersion:(NSString *)version; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h new file mode 100644 index 00000000..738ad47d --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionDelegate.h @@ -0,0 +1,93 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKGraphRequestConnectionDelegate` protocol defines the methods used to receive network + activity progress information from a . + */ +NS_SWIFT_NAME(GraphRequestConnectionDelegate) +@protocol FBSDKGraphRequestConnectionDelegate + +@optional + +/** + @method + + Tells the delegate the request connection will begin loading + + If the is created using one of the convenience factory methods prefixed with + start, the object returned from the convenience method has already begun loading and this method + will not be called when the delegate is set. + + @param connection The request connection that is starting a network request + */ +- (void)requestConnectionWillBeginLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection finished loading + + If the request connection completes without a network error occurring then this method is called. + Invocation of this method does not indicate success of every made, only that the + request connection has no further activity. Use the error argument passed to the FBSDKGraphRequestBlock + block to determine success or failure of each . + + This method is invoked after the completion handler for each . + + @param connection The request connection that successfully completed a network request + */ +- (void)requestConnectionDidFinishLoading:(id)connection; + +/** + @method + + Tells the delegate the request connection failed with an error + + If the request connection fails with a network error then this method is called. The `error` + argument specifies why the network connection failed. The `NSError` object passed to the + FBSDKGraphRequestBlock block may contain additional information. + + @param connection The request connection that successfully completed a network request + @param error The `NSError` representing the network error that occurred, if any. May be nil + in some circumstances. Consult the `NSError` for the for reliable + failure information. + */ +- (void)requestConnection:(id)connection + didFailWithError:(NSError *)error; + +/** + @method + + Tells the delegate how much data has been sent and is planned to send to the remote host + + The byte count arguments refer to the aggregated objects, not a particular . + + Like `NSURLSession`, the values may change in unexpected ways if data needs to be resent. + + @param connection The request connection transmitting data to a remote host + @param bytesWritten The number of bytes sent in the last transmission + @param totalBytesWritten The total number of bytes sent to the remote host + @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host + */ +- (void) requestConnection:(id)connection + didSendBodyData:(NSInteger)bytesWritten + totalBytesWritten:(NSInteger)totalBytesWritten + totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h new file mode 100644 index 00000000..19e62d20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequestConnecting`. + */ +NS_SWIFT_NAME(GraphRequestConnectionFactory) +@interface FBSDKGraphRequestConnectionFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h new file mode 100644 index 00000000..96b43dfa --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnectionFactoryProtocol.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestConnecting; + +/// Describes anything that can provide instances of `FBSDKGraphRequestConnecting` +NS_SWIFT_NAME(GraphRequestConnectionFactoryProtocol) +@protocol FBSDKGraphRequestConnectionFactory + +- (id)createGraphRequestConnection; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h new file mode 100644 index 00000000..3775cb4f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// A container class for data attachments so that additional metadata can be provided about the attachment. +NS_SWIFT_NAME(GraphRequestDataAttachment) +@interface FBSDKGraphRequestDataAttachment : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes the receiver with the attachment data and metadata. + @param data The attachment data (retained, not copied) + @param filename The filename for the attachment + @param contentType The content type for the attachment + */ +- (instancetype)initWithData:(NSData *)data + filename:(NSString *)filename + contentType:(NSString *)contentType + NS_DESIGNATED_INITIALIZER; + +/// The content type for the attachment. +@property (nonatomic, readonly, copy) NSString *contentType; + +/// The attachment data. +@property (nonatomic, readonly, strong) NSData *data; + +/// The filename for the attachment. +@property (nonatomic, readonly, copy) NSString *filename; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h new file mode 100644 index 00000000..6661ac1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactory.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKGraphRequestFactory; + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `GraphRequest` + */ +NS_SWIFT_NAME(GraphRequestFactory) +@interface FBSDKGraphRequestFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h new file mode 100644 index 00000000..eb85a3ba --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFactoryProtocol.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +@protocol FBSDKGraphRequest; + +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + +Describes anything that can provide instances of `GraphRequestProtocol` + */ +NS_SWIFT_NAME(GraphRequestFactoryProtocol) +@protocol FBSDKGraphRequestFactory + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + HTTPMethod:(nullable FBSDKHTTPMethod)method + flags:(FBSDKGraphRequestFlags)flags; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method; + +- (id)createGraphRequestWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)flags; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h new file mode 100644 index 00000000..68e7c8da --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestFlags.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags that indicate how a graph request should be treated in various scenarios +typedef NS_OPTIONS(NSUInteger, FBSDKGraphRequestFlags) { + FBSDKGraphRequestFlagNone = 0, + /// indicates this request should not use a client token as its token parameter + FBSDKGraphRequestFlagSkipClientToken = 1 << 1, + /// indicates this request should not close the session if its response is an oauth error + FBSDKGraphRequestFlagDoNotInvalidateTokenOnError = 1 << 2, + /// indicates this request should not perform error recovery + FBSDKGraphRequestFlagDisableErrorRecovery = 1 << 3, +} NS_SWIFT_NAME(GraphRequestFlags); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h new file mode 100644 index 00000000..e79728d9 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestHTTPMethod.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/// typedef for FBSDKHTTPMethod +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +/// GET Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodGET NS_SWIFT_NAME(get); + +/// POST Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodPOST NS_SWIFT_NAME(post); + +/// DELETE Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodDELETE NS_SWIFT_NAME(delete); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h new file mode 100644 index 00000000..6cc4da38 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestProtocol.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphRequestConnection; +@protocol FBSDKGraphRequestConnecting; + +typedef void (^FBSDKGraphRequestCompletion)(id _Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +typedef void (^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection *_Nullable connection, + id _Nullable result, + NSError *_Nullable error); + +/// A protocol to describe anything that represents a graph request +NS_SWIFT_NAME(GraphRequestProtocol) +@protocol FBSDKGraphRequest + +/// The request parameters. +@property (nonatomic, copy) NSDictionary *parameters; + +/// The access token string used by the request. +@property (nullable, nonatomic, readonly, copy) NSString *tokenString; + +/// The Graph API endpoint to use for the request, for example "me". +@property (nonatomic, readonly, copy) NSString *graphPath; + +/// The HTTPMethod to use for the request, for example "GET" or "POST". +@property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; + +/// The Graph API version to use (e.g., "v2.0") +@property (nonatomic, readonly, copy) NSString *version; + +/// The graph request flags to use +@property (nonatomic, readonly, assign) FBSDKGraphRequestFlags flags; + +/// Convenience property to determine if graph error recover is disabled +@property (nonatomic, getter = isGraphErrorRecoveryDisabled) BOOL graphErrorRecoveryDisabled; + +/// Convenience property to determine if the request has attachments +@property (nonatomic, readonly) BOOL hasAttachments; + +/** + Starts a connection to the Graph API. + @param completion The handler block to call when the request completes. + */ +- (id)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; + +/// A formatted description of the graph request +- (NSString *)formattedDescription; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKIcon.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKIcon.h new file mode 100644 index 00000000..0404e39a --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKIcon.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Icon) +@interface FBSDKIcon : NSObject + +- (nullable CGPathRef)pathWithSize:(CGSize)size; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h new file mode 100644 index 00000000..4202de70 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKImpressionLoggingButton.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ImpressionLoggingButton) +@interface FBSDKImpressionLoggingButton : UIButton +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h new file mode 100644 index 00000000..93829d56 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtility.h @@ -0,0 +1,83 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import +#import +#import +#import + +#if !TARGET_OS_TV + #import +#endif + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(InternalUtility) +@interface FBSDKInternalUtility : NSObject +#if !TARGET_OS_TV + +#else + +#endif + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +@property (class, nonnull, readonly) FBSDKInternalUtility *sharedUtility; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +/** + Tests whether the supplied URL is a valid URL for opening in the browser. + @param URL The URL to test. + @return YES if the URL refers to an http or https resource, otherwise NO. + */ +- (BOOL)isBrowserURL:(NSURL *)URL; + +/** + Checks equality between 2 objects. + + Checks for pointer equality, nils, isEqual:. + @param object The first object to compare. + @param other The second object to compare. + @return YES if the objects are equal, otherwise NO. + */ +- (BOOL)object:(id)object isEqualToObject:(id)other; + +/// Attempts to find the first UIViewController in the view's responder chain. Returns nil if not found. +- (nullable UIViewController *)viewControllerForView:(UIView *)view; + +/// returns true if the url scheme is registered in the CFBundleURLTypes +- (BOOL)isRegisteredURLScheme:(NSString *)urlScheme; + +/// returns currently displayed top view controller. +- (nullable UIViewController *)topMostViewController; + +/// returns the current key window +- (nullable UIWindow *)findWindow; + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly, assign) BOOL isMessengerAppInstalled; + +- (BOOL)isRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h new file mode 100644 index 00000000..10846828 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKInternalUtilityProtocol.h @@ -0,0 +1,135 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(InternalUtilityProtocol) +@protocol FBSDKInternalUtility + +#pragma mark - FB Apps Installed + +@property (nonatomic, readonly) BOOL isFacebookAppInstalled; + +/* + Checks if the app is Unity. + */ +@property (nonatomic, readonly) BOOL isUnity; + +/** + Constructs an NSURL. + @param scheme The scheme for the URL. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The URL. + */ +- (nullable NSURL *)URLWithScheme:(NSString *)scheme + host:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs an URL for the current app. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The app URL. + */ +- (nullable NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs a Facebook URL. + @param hostPrefix The prefix for the host, such as 'm', 'graph', etc. + @param path The path for the URL. This may or may not include a version. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The Facebook URL. + */ +- (nullable NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Registers a transient object so that it will not be deallocated until unregistered + @param object The transient object + */ +- (void)registerTransientObject:(id)object; + +/** + Unregisters a transient object that was previously registered with registerTransientObject: + @param object The transient object + */ +- (void)unregisterTransientObject:(__weak id)object; + +- (void)checkRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +/// Validates that the right URL schemes are registered, throws an NSException if not. +- (void)validateURLSchemes; + +/// add data processing options to the dictionary. +- (void)extendDictionaryWithDataProcessingOptions:(NSMutableDictionary *)parameters; + +/// Converts NSData to a hexadecimal UTF8 String. +- (nullable NSString *)hexadecimalStringFromData:(NSData *)data; + +/// validates that the app ID is non-nil, throws an NSException if nil. +- (void)validateAppID; + +/** + Validates that the client access token is non-nil, otherwise - throws an NSException otherwise. + Returns the composed client access token. + */ +- (NSString *)validateRequiredClientAccessToken; + +/** + Extracts permissions from a response fetched from me/permissions + @param responseObject the response + @param grantedPermissions the set to add granted permissions to + @param declinedPermissions the set to add declined permissions to. + */ +- (void)extractPermissionsFromResponse:(NSDictionary *)responseObject + grantedPermissions:(NSMutableSet *)grantedPermissions + declinedPermissions:(NSMutableSet *)declinedPermissions + expiredPermissions:(NSMutableSet *)expiredPermissions; + +/// validates that Facebook reserved URL schemes are not registered, throws an NSException if they are. +- (void)validateFacebookReservedURLSchemes; + +/** + Parses an FB url's query params (and potentially fragment) into a dictionary. + @param url The FB url. + @return A dictionary with the key/value pairs. + */ +- (NSDictionary *)parametersFromFBURL:(NSURL *)url; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (nonatomic, readonly, strong) NSBundle *bundleForStrings; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h new file mode 100644 index 00000000..a4292d54 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStore.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStore) +@interface FBSDKKeychainStore : NSObject + +@property (nonatomic, readonly, copy) NSString *service; +@property (nullable, nonatomic, readonly, copy) NSString *accessGroup; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithService:(NSString *)service accessGroup:(nullable NSString *)accessGroup NS_DESIGNATED_INITIALIZER; + +- (BOOL)setData:(nullable NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (nullable NSData *)dataForKey:(NSString *)key; + +// hook for subclasses to override keychain query construction. +- (NSMutableDictionary *)queryForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h new file mode 100644 index 00000000..149c59d3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal type not intended for use outside of the SDKs. + + A factory for providing objects that conform to `KeychainStore` + */ +NS_SWIFT_NAME(KeychainStoreFactory) +@interface FBSDKKeychainStoreFactory : NSObject +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h new file mode 100644 index 00000000..4f8636a8 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProtocol.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProtocol) +@protocol FBSDKKeychainStore + +- (nullable NSString *)stringForKey:(NSString *)key; +- (nullable NSDictionary *)dictionaryForKey:(NSString *)key; + +- (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; +- (BOOL)setDictionary:(nullable NSDictionary *)value forKey:(NSString *)key accessibility:(nullable CFTypeRef)accessibility; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h new file mode 100644 index 00000000..af0263ca --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKKeychainStoreProviding.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(KeychainStoreProviding) +@protocol FBSDKKeychainStoreProviding + +- (nonnull id)createKeychainStoreWithService:(NSString *)service + accessGroup:(nullable NSString *)accessGroup; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLocation.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLocation.h new file mode 100644 index 00000000..e9fd1304 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLocation.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Location) +@interface FBSDKLocation : NSObject + +/// Location id +@property (nonatomic, readonly, strong) NSString *id; +/// Location name +@property (nonatomic, readonly, strong) NSString *name; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a Location object from a dinctionary containing valid location information. + @param dictionary The dictionary containing raw location + + Valid location will consist of "id" and "name" strings. + */ ++ (nullable instancetype)locationFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogger.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogger.h new file mode 100644 index 00000000..d6a31005 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogger.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Simple logging utility for conditionally logging strings and then emitting them + via NSLog(). + + @unsorted + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(Logger) +@interface FBSDKLogger : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogging.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogging.h new file mode 100644 index 00000000..dbef5411 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLogging.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Logging) +@protocol FBSDKLogging + +@property (nonatomic, readonly, copy) NSString *contents; +@property (nonatomic, readonly, copy) FBSDKLoggingBehavior loggingBehavior; + +- (instancetype)initWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + ++ (void)singleShotLogEntry:(FBSDKLoggingBehavior)loggingBehavior + logEntry:(NSString *)logEntry; + +- (void)logEntry:(NSString *)logEntry; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h new file mode 100644 index 00000000..900542d2 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoggingBehavior.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. + */ + +typedef NSString *FBSDKLoggingBehavior NS_TYPED_ENUM NS_SWIFT_NAME(LoggingBehavior); + +/// Include access token in logging. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens; + +/// Log performance characteristics +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics; + +/// Log FBSDKAppEvents interactions +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents; + +/// Log Informational occurrences +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational; + +/// Log cache errors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors; + +/// Log errors from SDK UI controls +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors; + +/// Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning; + +/** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. + Info is the lowest level of severity, using it will result in logging all previously mentioned levels. + */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo; + +/// Log errors from SDK network requests +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests; + +/// Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h new file mode 100644 index 00000000..a6637497 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKLoginTooltip.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +@interface FBSDKLoginTooltip : NSObject +@property (nonatomic, readonly, getter = isEnabled, assign) BOOL enabled; +@property (nonatomic, readonly, copy) NSString *text; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithText:(NSString *)text + enabled:(BOOL)enabled + NS_DESIGNATED_INITIALIZER; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h new file mode 100644 index 00000000..5b157c20 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecker.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Concrete type providing functionality that checks whether an error represents a + network error. + */ +NS_SWIFT_NAME(NetworkErrorChecker) +@interface FBSDKNetworkErrorChecker : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h new file mode 100644 index 00000000..2868737f --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKNetworkErrorChecking.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_SWIFT_NAME(NetworkErrorChecking) +@protocol FBSDKNetworkErrorChecking + +/** + Checks whether an error is a network error. + + @param error An error that may or may not represent a network error. + + @return `YES` if the error represents a network error, otherwise `NO`. + */ +- (BOOL)isNetworkError:(NSError *)error; + +@end diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h new file mode 100644 index 00000000..fa8f4cde --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductAvailability.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductAvailability) + Specifies product availability for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductAvailability) { + /// Item ships immediately + FBSDKProductAvailabilityInStock = 0, + /// No plan to restock + FBSDKProductAvailabilityOutOfStock, + /// Available in future + FBSDKProductAvailabilityPreOrder, + /// Ships in 1-2 weeks + FBSDKProductAvailabilityAvailableForOrder, + /// Discontinued + FBSDKProductAvailabilityDiscontinued, +} NS_SWIFT_NAME(AppEvents.ProductAvailability); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h new file mode 100644 index 00000000..41e23b1e --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKProductCondition.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + NS_ENUM(NSUInteger, FBSDKProductCondition) + Specifies product condition for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductCondition) { + FBSDKProductConditionNew = 0, + FBSDKProductConditionRefurbished, + FBSDKProductConditionUsed, +} NS_SWIFT_NAME(AppEvents.ProductCondition); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKRandom.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKRandom.h new file mode 100644 index 00000000..653a0389 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKRandom.h @@ -0,0 +1,15 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/** + Provides a random string + @param numberOfBytes the number of bytes to use + */ +extern NSString *fb_randomString(NSUInteger numberOfBytes); diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h new file mode 100644 index 00000000..884b84ac --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKServerConfigurationProvider.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal block type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoginTooltipBlock) +typedef void (^FBSDKLoginTooltipBlock)(FBSDKLoginTooltip *_Nullable loginTooltip, NSError *_Nullable error); + +/** +Internal Type exposed to facilitate transition to Swift. +API Subject to change or removal without warning. Do not use. + +@warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(ServerConfigurationProvider) +@interface FBSDKServerConfigurationProvider : NSObject + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nonatomic, readonly) NSString *loggingToken; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (NSUInteger)cachedSmartLoginOptions; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (BOOL)useSafariViewControllerForDialogName:(NSString *)dialogName; + +/** + Internal method exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (void)loadServerConfigurationWithCompletionBlock:(nullable FBSDKLoginTooltipBlock)completionBlock; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettings.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettings.h new file mode 100644 index 00000000..6b3a2897 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettings.h @@ -0,0 +1,197 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Settings) +@interface FBSDKSettings : NSObject + +#if !FBTEST +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +#endif + +/// The shared settings instance. Prefer this and the exposed instance methods over the class variants. +@property (class, nonatomic, readonly) FBSDKSettings *sharedSettings; + +/// Retrieve the current iOS SDK version. +@property (nonatomic, readonly, copy) NSString *sdkVersion; + +/// Retrieve the current default Graph API version. +@property (nonatomic, readonly, copy) NSString *defaultGraphAPIVersion; + +/** + The quality of JPEG images sent to Facebook from the SDK, + expressed as a value from 0.0 to 1.0. + + If not explicitly set, the default is 0.9. +*/ +@property (nonatomic) CGFloat JPEGCompressionQuality +NS_SWIFT_NAME(jpegCompressionQuality); + +/** + Controls the auto logging of basic app events, such as activateApp and deactivateApp. + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAutoLogAppEventsEnabled) BOOL autoLogAppEventsEnabled; + +/** + Controls the fb_codeless_debug logging event + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; + +/** + Controls the access to IDFA + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; + +/** + Controls the SKAdNetwork report + If not explicitly set, the default is true + */ +@property (nonatomic, getter = isSKAdNetworkReportEnabled) BOOL skAdNetworkReportEnabled; + +/** + Whether data such as that generated through FBSDKAppEvents and sent to Facebook + should be restricted from being used for other than analytics and conversions. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL isEventDataUsageLimited; + +/** + Whether in memory cached values should be used for expensive metadata fields, such as + carrier and advertiser ID, that are fetched on many applicationDidBecomeActive notifications. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; + +/// A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; + +/** + The Facebook App ID used by the SDK. + + If not explicitly set, the default will be read from the application's plist (FacebookAppID). + */ +@property (nullable, nonatomic, copy) NSString *appID; + +/** + The default url scheme suffix used for sessions. + + If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). + */ +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; + +/** + The Client Token that has been set via [[FBSDKSettings sharedSettings] setClientToken]. + This is needed for certain API calls when made anonymously, without a user-based access token. + + The Facebook App's "client token", which, for a given appid can be found in the Security + section of the Advanced tab of the Facebook App settings found at + + If not explicitly set, the default will be read from the application's plist (FacebookClientToken). + */ +@property (nullable, nonatomic, copy) NSString *clientToken; + +/** + The Facebook Display Name used by the SDK. + + This should match the Display Name that has been set for the app with the corresponding Facebook App ID, + in the Facebook App Dashboard. + + If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). + */ +@property (nullable, nonatomic, copy) NSString *displayName; + +/** + The Facebook domain part. This can be used to change the Facebook domain + (e.g. @"beta") so that requests will be sent to `graph.beta.facebook.com` + + If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). + */ +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; + +/** + The current Facebook SDK logging behavior. This should consist of strings + defined as constants with FBSDKLoggingBehavior*. + + This should consist a set of strings indicating what information should be logged + defined as constants with FBSDKLoggingBehavior*. Set to an empty set in order to disable all logging. + + You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLoggingBehavior: + + The default is a set consisting of FBSDKLoggingBehaviorDeveloperErrors + */ +@property (nonatomic, copy) NSSet *loggingBehaviors; + +/** + Overrides the default Graph API version to use with `FBSDKGraphRequests`. + + The string should be of the form `@"v2.7"`. + + Defaults to `defaultGraphAPIVersion`. + */ +@property (nonatomic, copy) NSString *graphAPIVersion; + +/** + Internal property exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; + +/** + The value of the flag advertiser_tracking_enabled that controls the advertiser tracking status of the data sent to Facebook + If not explicitly set in iOS14 or above, the default is false in iOS14 or above. + */ +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; + +/** +Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** +Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +/** + Enable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +/** + Disable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ +- (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h new file mode 100644 index 00000000..1e21fe02 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsLogging.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsLogging) +@protocol FBSDKSettingsLogging + +- (void)logWarnings; +- (void)logIfSDKSettingsChanged; +- (void)recordInstall; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h new file mode 100644 index 00000000..d0eeb7ab --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKSettingsProtocol.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SettingsProtocol) +@protocol FBSDKSettings + +@property (nullable, nonatomic, copy) NSString *appID; +@property (nullable, nonatomic, copy) NSString *clientToken; +@property (nullable, nonatomic, copy) NSString *userAgentSuffix; +@property (nonatomic, readonly, copy) NSString *sdkVersion; +@property (nullable, nonatomic, copy) NSString *displayName; +@property (nullable, nonatomic, copy) NSString *facebookDomainPart; +@property (nonnull, nonatomic, copy) NSSet *loggingBehaviors; +@property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix; +@property (nonatomic, readonly) BOOL isDataProcessingRestricted; +@property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled; +@property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; +@property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; +@property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime; +@property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled; +@property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; +@property (nullable, nonatomic, readonly) NSDate *installTimestamp; +@property (nullable, nonatomic, readonly) NSDate *advertiserTrackingEnabledTimestamp; +@property (nonatomic) BOOL isEventDataUsageLimited; +@property (nonatomic) BOOL shouldUseTokenOptimizations; +@property (nonatomic, copy) NSString *graphAPIVersion; +@property (nonatomic) BOOL isGraphErrorRecoveryEnabled; +@property (nullable, nonatomic, readonly, copy) NSString *graphAPIDebugParamValue; +@property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled; +@property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata; +@property (nullable, nonatomic, readonly) NSDictionary *persistableDataProcessingOptions; + +/** + Set the data processing options. + + @param options list of options + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options; + +/** + Set the data processing options. + + @param options list of the options + @param country code of the country + @param state code of the state + */ +- (void)setDataProcessingOptions:(nullable NSArray *)options + country:(int)country + state:(int)state; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h new file mode 100644 index 00000000..6b07cb40 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenCaching.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(TokenCaching) +@protocol FBSDKTokenCaching + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAccessToken *accessToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h new file mode 100644 index 00000000..87f227de --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTokenStringProviding.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(TokenStringProviding) +@protocol FBSDKTokenStringProviding + +/** + Return the token string of the current access token. + + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ + +@property (class, nullable, nonatomic, readonly, copy) NSString *tokenString; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h new file mode 100644 index 00000000..ea415c83 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKTransformer.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +extern CATransform3D const FBSDKCATransform3DIdentity; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +@interface FBSDKTransformer : NSObject +- (CATransform3D)CATransform3DMakeScale:(CGFloat)sx sy:(CGFloat)sy sz:(CGFloat)sz; +- (CATransform3D)CATransform3DMakeTranslation:(CGFloat)tx ty:(CGFloat)ty tz:(CGFloat)tz; +- (CATransform3D)CATransform3DConcat:(CATransform3D)a b:(CATransform3D)b; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h new file mode 100644 index 00000000..f7283921 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKURLScheme.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +typedef NSString *FBSDKURLScheme NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(URLScheme); + +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeFacebookAPI; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeMessengerApp; +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTPS NS_SWIFT_NAME(https); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeHTTP NS_SWIFT_NAME(http); +FOUNDATION_EXPORT FBSDKURLScheme const FBSDKURLSchemeWeb; diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h new file mode 100644 index 00000000..7d719165 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUserAgeRange.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(UserAgeRange) +@interface FBSDKUserAgeRange : NSObject + +/// The user's minimun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *min; +/// The user's maximun age, nil if unspecified +@property (nullable, nonatomic, readonly, strong) NSNumber *max; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns a UserAgeRange object from a dinctionary containing valid user age range. + @param dictionary The dictionary containing raw user age range + + Valid user age range will consist of "min" and/or "max" values that are + positive integers, where "min" is smaller than or equal to "max". + */ ++ (nullable instancetype)ageRangeFromDictionary:(NSDictionary *)dictionary; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUtility.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUtility.h new file mode 100644 index 00000000..eb5ca0a4 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/FBSDKUtility.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Class to contain common utility methods. +NS_SWIFT_NAME(Utility) +@interface FBSDKUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Parses a query string into a dictionary. + @param queryString The query string value. + @return A dictionary with the key/value pairs. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString +NS_SWIFT_NAME(dictionary(withQuery:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Constructs a query string from a dictionary. + @param dictionary The dictionary with key/value pairs for the query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return Query string representation of the parameters. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary + error:(NSError **)errorRef +NS_SWIFT_NAME(query(from:)) +__attribute__((swift_error(nonnull_error))); +// UNCRUSTIFY_FORMAT_ON + +/** + Decodes a value from an URL. + @param value The value to decode. + @return The decoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLDecode:(NSString *)value +NS_SWIFT_NAME(decode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Encodes a value for an URL. + @param value The value to encode. + @return The encoded value. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (NSString *)URLEncode:(NSString *)value +NS_SWIFT_NAME(encode(urlString:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Creates a timer using Grand Central Dispatch. + @param interval The interval to fire the timer, in seconds. + @param block The code block to execute when timer is fired. + @return The dispatch handle. + */ ++ (dispatch_source_t)startGCDTimerWithInterval:(double)interval block:(dispatch_block_t)block; + +/** + Stop a timer that was started by startGCDTimerWithInterval. + @param timer The dispatch handle received from startGCDTimerWithInterval. + */ ++ (void)stopGCDTimer:(dispatch_source_t)timer; + +/** + Get SHA256 hased string of NSString/NSData + + @param input The data that needs to be hashed, it could be NSString or NSData. + */ + +// UNCRUSTIFY_FORMAT_OFF ++ (nullable NSString *)SHA256Hash:(NSObject *)input +NS_SWIFT_NAME(sha256Hash(_:)); +// UNCRUSTIFY_FORMAT_ON + +/// Returns the graphdomain stored in FBSDKAuthenticationToken ++ (nullable NSString *)getGraphDomainFromToken; + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ ++ (NSURL *)unversionedFacebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h new file mode 100644 index 00000000..a9d946f3 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/_FBSDKWindowFinding.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#if !TARGET_OS_TV + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(_WindowFinding) +@protocol _FBSDKWindowFinding + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +- (nullable UIWindow *)findWindow; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h new file mode 100644 index 00000000..a8114b1c --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Headers/__FBSDKLoggerCreating.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Internal Type exposed to facilitate transition to Swift. + API Subject to change or removal without warning. Do not use. + + @warning INTERNAL - DO NOT USE + */ +NS_SWIFT_NAME(LoggerCreating) +@protocol __FBSDKLoggerCreating + +- (id)createLoggerWithLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Info.plist b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Info.plist new file mode 100644 index 00000000..fa882ed3 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..515c40e5 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..0657735b --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..5d103138 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..696b5377 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,93 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKCoreKit +@_exported import FBSDKCoreKit +import FBSDKCoreKit_Basics +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.AccessToken { + public var permissions: Swift.Set { + get + } + public var declinedPermissions: Swift.Set { + get + } + public var expiredPermissions: Swift.Set { + get + } + public func hasGranted(_ permission: FBSDKCoreKit.Permission) -> Swift.Bool +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKAppEventsCAPIManager : ObjectiveC.NSObject { + @objc public static let shared: FBSDKCoreKit.FBSDKAppEventsCAPIManager + @objc override dynamic public init() + @objc public func configure(factory: FBSDKCoreKit.GraphRequestFactoryProtocol, settings: FBSDKCoreKit.SettingsProtocol) + @objc public func enable() + @objc deinit +} +@objc @_inheritsConvenienceInitializers @objcMembers public class FBSDKTransformerGraphRequestFactory : FBSDKCoreKit.GraphRequestFactory { + @objc public static let shared: FBSDKCoreKit.FBSDKTransformerGraphRequestFactory + public struct CbCredentials { + } + @objc override dynamic public init() + @objc public func configure(datasetID: Swift.String, url: Swift.String, accessKey: Swift.String) + @objc public func callCapiGatewayAPI(with graphPath: Swift.String, parameters: [Swift.String : Any]) + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod?, flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any]) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], tokenString: Swift.String?, version: Swift.String?, httpMethod: FBSDKCoreKit.HTTPMethod) -> FBSDKCoreKit.GraphRequestProtocol + @objc override dynamic public func createGraphRequest(withGraphPath graphPath: Swift.String, parameters: [Swift.String : Any], flags: FBSDKCoreKit.GraphRequestFlags) -> FBSDKCoreKit.GraphRequestProtocol + @objc deinit +} +public enum Permission : Swift.Hashable, Swift.ExpressibleByStringLiteral { + case publicProfile + case userFriends + case email + case userAboutMe + case userActionsBooks + case userActionsFitness + case userActionsMusic + case userActionsNews + case userActionsVideo + case userBirthday + case userEducationHistory + case userEvents + case userGamesActivity + case userGender + case userHometown + case userLikes + case userLocation + case userManagedGroups + case userPhotos + case userPosts + case userRelationships + case userRelationshipDetails + case userReligionPolitics + case userTaggedPlaces + case userVideos + case userWebsite + case userWorkHistory + case readCustomFriendlists + case readInsights + case readAudienceNetworkInsights + case readPageMailboxes + case pagesShowList + case pagesManageCta + case pagesManageInstantArticles + case adsRead + case custom(Swift.String) + public init(stringLiteral value: Swift.String) + public var name: Swift.String { + get + } + public func hash(into hasher: inout Swift.Hasher) + public static func == (a: FBSDKCoreKit.Permission, b: FBSDKCoreKit.Permission) -> Swift.Bool + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias StringLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String + public var hashValue: Swift.Int { + get + } +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/module.modulemap b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..f951cee0 --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKCoreKit { + umbrella header "FBSDKCoreKit.h" + + export * + module * { export * } +} + +module FBSDKCoreKit.Swift { + header "FBSDKCoreKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeDirectory b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeDirectory new file mode 100644 index 00000000..df812746 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeDirectory differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements new file mode 100644 index 00000000..dbf9d614 Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements-1 b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 00000000..ed5249bc Binary files /dev/null and b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeResources b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..4ae290cd --- /dev/null +++ b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeResources @@ -0,0 +1,1347 @@ + + + + + files + + Headers/FBSDKAccessToken.h + + Zwalh7WGm73EGYq6r0hOtY6TVyM= + + Headers/FBSDKAccessTokenProtocols.h + + QpJzB6oI1x1D3M0cC8Yw7FSuwKg= + + Headers/FBSDKAdvertisingTrackingStatus.h + + s2/tT+xSXPH4xXaQ+yW41JtgT58= + + Headers/FBSDKAppAvailabilityChecker.h + + Wyf9l4OPVlNw4rmgihSwsLLXekY= + + Headers/FBSDKAppEventName.h + + EU49DFEvgz3pfVKd2Gh6GcVz19w= + + Headers/FBSDKAppEventParameterName.h + + jMPwz6fdms/XUiUDkGZXO8LsEPs= + + Headers/FBSDKAppEventParameterProduct.h + + r+KeRcYNIPkXBrMbyUHT2wI7s9Y= + + Headers/FBSDKAppEventParameterValue.h + + 040yhBlHKamIDlwNu0ImpgLTCqc= + + Headers/FBSDKAppEventUserDataType.h + + A3lEI7gxtNx4AHoXWeE0s7u1zK8= + + Headers/FBSDKAppEvents.h + + ZabZwehtvq6nno9KnlPUHOfoXSA= + + Headers/FBSDKAppEventsFlushBehavior.h + + tGoQfvz6uAy5DjnhPnzX/Ai2vl4= + + Headers/FBSDKAppEventsNotificationName.h + + y7c3PKWx/w77oSbeugClHIvTMS8= + + Headers/FBSDKAppURLSchemeProviding.h + + G7H5ArEaw56tAdukKkeFnHJW3yM= + + Headers/FBSDKApplicationDelegate.h + + gySEL45XjsZYoHif6xbW5+3LZNQ= + + Headers/FBSDKApplicationObserving.h + + E5Ew6Wmyl//0dt7F2wSyYMbL8Uc= + + Headers/FBSDKAuthenticationToken.h + + 8MSOJbkw+GYK17UVaHITUogBFow= + + Headers/FBSDKAuthenticationTokenClaims.h + + xojLcwuGpunIQjN3S1ntX2IxWxk= + + Headers/FBSDKAuthenticationTokenProtocols.h + + ll9VzBIGgFDag+gJiL8CfwN8Vmc= + + Headers/FBSDKButton.h + + Q5s1g6x77uecqksyNP9YvwAxGKo= + + Headers/FBSDKButtonImpressionLogging.h + + LsVpQhR6smaHCPnF/ITEWiKGkKA= + + Headers/FBSDKConstants.h + + 8uLZKrsuXsxVHJGVSrF1lCoNawo= + + Headers/FBSDKCoreKit-Swift.h + + 9+bMBCD9BxRjD3PQ3rB3NOMTVqk= + + Headers/FBSDKCoreKit.h + + rSB/5qnmwQ/YfcHSajkFConHwuI= + + Headers/FBSDKCoreKitVersions.h + + rKH5hq1ilwGLoekVN/Gg8mdUg9g= + + Headers/FBSDKDeviceButton.h + + 4LIheHz+TKvNTDHMFLx9U5N9muI= + + Headers/FBSDKDeviceDialogView.h + + 0aubj8CDlLTz/o8MfbxQrck/VQs= + + Headers/FBSDKDeviceViewControllerBase.h + + 9d5jpsDwPq4ZpbCHYzNDectdVyE= + + Headers/FBSDKDynamicFrameworkLoaderProxy.h + + gQze+1wXFmg8HHDE0Ba4/AdlSbk= + + Headers/FBSDKDynamicSocialFrameworkLoader.h + + VkK7+4REIGtAPH/eFKxy/bj9hQ0= + + Headers/FBSDKErrorCreating.h + + hSTHauBFdEYzYLgpazD8Nu2mbvA= + + Headers/FBSDKErrorFactory.h + + BbwtPEHEtIq6FGLxlzJ+93hv4XU= + + Headers/FBSDKErrorRecoveryAttempting.h + + r3mkBDHcKe63UzmZCJLFEisXL3I= + + Headers/FBSDKFeature.h + + FyLPjFGney8xxCzilFkUSbm265Y= + + Headers/FBSDKFeatureChecking.h + + rYTkx84W03mL0rrno4sthw6poiM= + + Headers/FBSDKGraphRequest.h + + mDiia1xQGNDzGWkoO2IrQrHcVCo= + + Headers/FBSDKGraphRequestConnecting.h + + paaU79+o3FwlCqzfosIGlXZTwL4= + + Headers/FBSDKGraphRequestConnection.h + + ZCtXBvpuATZKAZvJLOo9h5KrckA= + + Headers/FBSDKGraphRequestConnectionDelegate.h + + FSHiVcHDpJTlfdfBczQNHtjDJ8s= + + Headers/FBSDKGraphRequestConnectionFactory.h + + gAfT3DO/vuTTlEaJPEP8hL5P3Eo= + + Headers/FBSDKGraphRequestConnectionFactoryProtocol.h + + A26a5H79Zb1dRO6YHMFB4DbS+D8= + + Headers/FBSDKGraphRequestDataAttachment.h + + 7vvCqPiZp4o6JKVaJJ4FP9XkXKE= + + Headers/FBSDKGraphRequestFactory.h + + lAwX1CKv5VHiJ07/xZZylICOdg4= + + Headers/FBSDKGraphRequestFactoryProtocol.h + + Nz3K53RPMCO3ckDCvhJoBJ9TIKI= + + Headers/FBSDKGraphRequestFlags.h + + Zas2ccUoNaCrjUffAdLC6TmKLWs= + + Headers/FBSDKGraphRequestHTTPMethod.h + + sF4WT7ko2ZXuQ91thBewwSb29Cc= + + Headers/FBSDKGraphRequestProtocol.h + + E72bbJ8BaX/EV/so4aPEeaLRTkY= + + Headers/FBSDKIcon.h + + nSUcEGcswYAb2H/1Kk1Ibii38sQ= + + Headers/FBSDKImpressionLoggingButton.h + + aaainoJHYRbRmab8MpwHmrU4hVo= + + Headers/FBSDKInternalUtility.h + + upq6sOVxvYgmqem02YoK1SQZ4fI= + + Headers/FBSDKInternalUtilityProtocol.h + + Fv2HZA8YkLc1F/996f+/OhkAzZM= + + Headers/FBSDKKeychainStore.h + + VSfBFlzguwgAJhVey77PM3TiKzI= + + Headers/FBSDKKeychainStoreFactory.h + + EokxqDkQxYQBz5YnFwcqJvVKd8I= + + Headers/FBSDKKeychainStoreProtocol.h + + Vl4nIrUwT7cqcjwlXymbPkKUVDo= + + Headers/FBSDKKeychainStoreProviding.h + + mIeRZ1Khyvf/6V2HXI3+7c15XfU= + + Headers/FBSDKLocation.h + + lVldFN//gmPckkWOntm6/lMe0QE= + + Headers/FBSDKLogger.h + + rtRqjTXsaZXv5x8H14rMIs3g7Gk= + + Headers/FBSDKLogging.h + + /DbryGZcqEQACAktvCjPjV6SDG4= + + Headers/FBSDKLoggingBehavior.h + + 2RipnoPNHjzmVyzHpZjxsO+csE0= + + Headers/FBSDKLoginTooltip.h + + t9qlwGoUeyWhxDfXE8Ky6RnF/gg= + + Headers/FBSDKNetworkErrorChecker.h + + lc4ltIsnGN0wefVKZeW3BTQqt8o= + + Headers/FBSDKNetworkErrorChecking.h + + DQOOpk+tae6sTARv6zgYkUNQv+4= + + Headers/FBSDKProductAvailability.h + + 4z6lAOLiyG+H6sMmuDzBXlrBO4Q= + + Headers/FBSDKProductCondition.h + + p2M86R+0XjuIIHBALGh4qHhF0sg= + + Headers/FBSDKRandom.h + + R8FED9YvoEocX/AhmRTKcVPRw2o= + + Headers/FBSDKServerConfigurationProvider.h + + pQXes4mDHFLyo95AmuqC6AXyKDI= + + Headers/FBSDKSettings.h + + FIxUl9WHubBQ4Rmv8W7iNVRzrq4= + + Headers/FBSDKSettingsLogging.h + + j4NKiO1um7BzI27sPShA+WNNV6E= + + Headers/FBSDKSettingsProtocol.h + + QogmjQBweHFkUWSIRYsBQvR4gHE= + + Headers/FBSDKTokenCaching.h + + Y9D8zDMXaiaJEPNG6yqmuv8sdxU= + + Headers/FBSDKTokenStringProviding.h + + 1ULLCT9qWhm7HkrSyND4RJwRF6Y= + + Headers/FBSDKTransformer.h + + Ui2GFPACS7T6kK9LcCLcdJyCYyo= + + Headers/FBSDKURLScheme.h + + 36HfFNYLwWfRajDYFDJeNZe/evc= + + Headers/FBSDKUserAgeRange.h + + eRyqSxEieMcqdjv0yKXNIDnmRIg= + + Headers/FBSDKUtility.h + + ACK+e48w6WLwZDhZT9VIaXDWTlk= + + Headers/_FBSDKWindowFinding.h + + Gac9mAAYHny41SRhpW53CbfSo2s= + + Headers/__FBSDKLoggerCreating.h + + y1VVRA/XNhhKMaoTUc/66smvRqI= + + Info.plist + + xY7jM/1/Ozj7JUt405WTBd+YgVc= + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + 2BFEos44TSB/IdQ0eVtRmpwfpUk= + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + Vj4yJfCYt2lZJ/46CHtjmDSwZAU= + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + wo4OompaVimKddR2QHIPyVdq5Xo= + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + qRuQ1oDdrQ/0dCHFia0InZwDlTc= + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + Iv1gws6yr/ABEx8xm/wRRkSPCjQ= + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + TzVJnD8T0x7tUvtE58kMtXzRuoQ= + + Modules/module.modulemap + + dqxVNYXT9nBvFc3sI+M8nUrDXuA= + + + files2 + + Headers/FBSDKAccessToken.h + + hash + + Zwalh7WGm73EGYq6r0hOtY6TVyM= + + hash2 + + 1HuXQBYX9e+yfKLIyhwED67a3VCkpra3DxlLwws0NvA= + + + Headers/FBSDKAccessTokenProtocols.h + + hash + + QpJzB6oI1x1D3M0cC8Yw7FSuwKg= + + hash2 + + VuMGgje9C8CglYD1qDMt29vcNIUBUZlTAdNo+qvSeXM= + + + Headers/FBSDKAdvertisingTrackingStatus.h + + hash + + s2/tT+xSXPH4xXaQ+yW41JtgT58= + + hash2 + + pj5HBFKU2AJRVkryxLDxsNyV+Hq0vhsL7ESLeXA7gco= + + + Headers/FBSDKAppAvailabilityChecker.h + + hash + + Wyf9l4OPVlNw4rmgihSwsLLXekY= + + hash2 + + WCKAfRQSLZ76amGNcy7D85Zr0FqbK3yqgD2x9Q2KMVc= + + + Headers/FBSDKAppEventName.h + + hash + + EU49DFEvgz3pfVKd2Gh6GcVz19w= + + hash2 + + qlGcgxs7AVCOJpK7+czagW3XaPQIdPFE23qdql2xK3s= + + + Headers/FBSDKAppEventParameterName.h + + hash + + jMPwz6fdms/XUiUDkGZXO8LsEPs= + + hash2 + + P5BcIc7FNHua2MKnE3mmflQlvvdqk25zXugjGZGRhJk= + + + Headers/FBSDKAppEventParameterProduct.h + + hash + + r+KeRcYNIPkXBrMbyUHT2wI7s9Y= + + hash2 + + FIPXmw+JMv7bBSbF0zhfVC2Ib03Sx9JYrwjlNp1XInI= + + + Headers/FBSDKAppEventParameterValue.h + + hash + + 040yhBlHKamIDlwNu0ImpgLTCqc= + + hash2 + + Q2olYJJI/DN976h566Nwy3D+obhtAQAKHOJ5lKeTfm8= + + + Headers/FBSDKAppEventUserDataType.h + + hash + + A3lEI7gxtNx4AHoXWeE0s7u1zK8= + + hash2 + + 7pjsRgcXBeV8tJeLjrQvQ/3ZBmzY9k086Z46TsArMag= + + + Headers/FBSDKAppEvents.h + + hash + + ZabZwehtvq6nno9KnlPUHOfoXSA= + + hash2 + + /dqfqBWS1XAnIVpkJtTdrw+vGtx3hEWCNfcr96cZ7rU= + + + Headers/FBSDKAppEventsFlushBehavior.h + + hash + + tGoQfvz6uAy5DjnhPnzX/Ai2vl4= + + hash2 + + iUxqEKL4pmF7f47Qul2Oe8QI0MjDPnOn3VhWjVQWe90= + + + Headers/FBSDKAppEventsNotificationName.h + + hash + + y7c3PKWx/w77oSbeugClHIvTMS8= + + hash2 + + 7JmzpHhHPCXS4WcGYrhN2g1u5YXUgR/ltWdRyfv8l0I= + + + Headers/FBSDKAppURLSchemeProviding.h + + hash + + G7H5ArEaw56tAdukKkeFnHJW3yM= + + hash2 + + o9vW113QSBrXeTu8w1RgrMfMpi3Li+ZHpavPt/xYGa4= + + + Headers/FBSDKApplicationDelegate.h + + hash + + gySEL45XjsZYoHif6xbW5+3LZNQ= + + hash2 + + 9pKDm3WpHxIUpfhHV2ax+r5Ruz52fIsSa/tSfHfH8TY= + + + Headers/FBSDKApplicationObserving.h + + hash + + E5Ew6Wmyl//0dt7F2wSyYMbL8Uc= + + hash2 + + I09jTNQCgePthHc0fW/okp1bhMUx7+PPWoHkC8vl+Ls= + + + Headers/FBSDKAuthenticationToken.h + + hash + + 8MSOJbkw+GYK17UVaHITUogBFow= + + hash2 + + vMJ3N8rqdWY+q5wZWX5vjz3+YpiIueuJEVZ63TxUS6s= + + + Headers/FBSDKAuthenticationTokenClaims.h + + hash + + xojLcwuGpunIQjN3S1ntX2IxWxk= + + hash2 + + aBU/e5udieGDwDgz+qcP4zTL0e86m4akTzjoHIZViY4= + + + Headers/FBSDKAuthenticationTokenProtocols.h + + hash + + ll9VzBIGgFDag+gJiL8CfwN8Vmc= + + hash2 + + 9hunZocu2ArA/iddd/8a9xWZwt0gHDZPA7mNEhsFEgQ= + + + Headers/FBSDKButton.h + + hash + + Q5s1g6x77uecqksyNP9YvwAxGKo= + + hash2 + + VGY0AU3C6L7ZwTarF+0BOGRkeoqOQcLDpxQJ6sRMJXY= + + + Headers/FBSDKButtonImpressionLogging.h + + hash + + LsVpQhR6smaHCPnF/ITEWiKGkKA= + + hash2 + + pShKA3myYUve8S5W/TI08BTWmhPh0RgoZQ6lY9c5S9g= + + + Headers/FBSDKConstants.h + + hash + + 8uLZKrsuXsxVHJGVSrF1lCoNawo= + + hash2 + + LxzBWAAzRjmjvoPtHtvZHe66BnfzV1RlnGfB8ljOYVA= + + + Headers/FBSDKCoreKit-Swift.h + + hash + + 9+bMBCD9BxRjD3PQ3rB3NOMTVqk= + + hash2 + + Jl9dwDlBiVxHiW68OI5OC2RYXiGeUhSeLro9/4KPfJU= + + + Headers/FBSDKCoreKit.h + + hash + + rSB/5qnmwQ/YfcHSajkFConHwuI= + + hash2 + + wiDLJIdGwhq62RT8NUGC9H3Ji6WVgPCTE3q7FTMneJw= + + + Headers/FBSDKCoreKitVersions.h + + hash + + rKH5hq1ilwGLoekVN/Gg8mdUg9g= + + hash2 + + l7IPGNpfCqVF+sjcP5uMsu37gMB3fm66FZWFuDUwc3E= + + + Headers/FBSDKDeviceButton.h + + hash + + 4LIheHz+TKvNTDHMFLx9U5N9muI= + + hash2 + + jraVs1muJpXk8r7ljiHH2+6sCGrZ0j+17u95Jn5xgKM= + + + Headers/FBSDKDeviceDialogView.h + + hash + + 0aubj8CDlLTz/o8MfbxQrck/VQs= + + hash2 + + 5SsLAz81rfMji3a9qaEVQ9gWESKGuH6ziUaSTA4K+k4= + + + Headers/FBSDKDeviceViewControllerBase.h + + hash + + 9d5jpsDwPq4ZpbCHYzNDectdVyE= + + hash2 + + 996f3WvoxwknKnreRc5JpTLQcUB27LR5tq5tV3qRHe0= + + + Headers/FBSDKDynamicFrameworkLoaderProxy.h + + hash + + gQze+1wXFmg8HHDE0Ba4/AdlSbk= + + hash2 + + DKzc5A2VHGjb5zjiW11FfYE+be1Je5rxetWvpGpLWP8= + + + Headers/FBSDKDynamicSocialFrameworkLoader.h + + hash + + VkK7+4REIGtAPH/eFKxy/bj9hQ0= + + hash2 + + I6uYOLsEUDxk7HKK39oiWyshO9sP8I6Ul2aPS4AGbaM= + + + Headers/FBSDKErrorCreating.h + + hash + + hSTHauBFdEYzYLgpazD8Nu2mbvA= + + hash2 + + J1rXYSPoy877pIwlZKDP6n/b3DufexQeIl0pOymmYVY= + + + Headers/FBSDKErrorFactory.h + + hash + + BbwtPEHEtIq6FGLxlzJ+93hv4XU= + + hash2 + + PwxuvjiaBR9QpRJl5SjDI8lRM5aDTxvbBAloH4txjBs= + + + Headers/FBSDKErrorRecoveryAttempting.h + + hash + + r3mkBDHcKe63UzmZCJLFEisXL3I= + + hash2 + + bbQLx2KLum7BokOQzq6eMFMcPRKyQgeSJyYi567SqfQ= + + + Headers/FBSDKFeature.h + + hash + + FyLPjFGney8xxCzilFkUSbm265Y= + + hash2 + + y4M4PFCnnEh5bBoswQADFakDdQJKWmhSzNYwEjdspE0= + + + Headers/FBSDKFeatureChecking.h + + hash + + rYTkx84W03mL0rrno4sthw6poiM= + + hash2 + + QtYErERzFYGRmUpt4HXd8p062xQtrNl5l+J2nUhhc1k= + + + Headers/FBSDKGraphRequest.h + + hash + + mDiia1xQGNDzGWkoO2IrQrHcVCo= + + hash2 + + cObAdeSuYo3AG0Il/A6PknPlmQQkmsy8p6wzTTeJnFc= + + + Headers/FBSDKGraphRequestConnecting.h + + hash + + paaU79+o3FwlCqzfosIGlXZTwL4= + + hash2 + + ly7JyuRHRTif+4dhHHyNJrgci4jYJ1SPobEAWFdeBG8= + + + Headers/FBSDKGraphRequestConnection.h + + hash + + ZCtXBvpuATZKAZvJLOo9h5KrckA= + + hash2 + + ZbfPRx7gmcdeVKVyDE+cliM8ehWUJBPao1Kbkzn0Xv8= + + + Headers/FBSDKGraphRequestConnectionDelegate.h + + hash + + FSHiVcHDpJTlfdfBczQNHtjDJ8s= + + hash2 + + pbeIgtjILQ+9lWJviGFFqpO8IqXWnVf2DQ094YKDKMY= + + + Headers/FBSDKGraphRequestConnectionFactory.h + + hash + + gAfT3DO/vuTTlEaJPEP8hL5P3Eo= + + hash2 + + xgTvIuiH3O0GP4dAfx+lVweVvj/3VUFzk/ZwDkEd6UM= + + + Headers/FBSDKGraphRequestConnectionFactoryProtocol.h + + hash + + A26a5H79Zb1dRO6YHMFB4DbS+D8= + + hash2 + + ZSBkNkUs6k4hh3lOO6aa5+j5kuh9vwSm6BTbH++KEH4= + + + Headers/FBSDKGraphRequestDataAttachment.h + + hash + + 7vvCqPiZp4o6JKVaJJ4FP9XkXKE= + + hash2 + + rrQm0dv7u0VNuBOOr4bOsLq22U2VRKN5+/8z8dvg8ac= + + + Headers/FBSDKGraphRequestFactory.h + + hash + + lAwX1CKv5VHiJ07/xZZylICOdg4= + + hash2 + + VHji6+eQJ/noGhXoav1+rDhYGkeNSPac5f3JMIMO4OQ= + + + Headers/FBSDKGraphRequestFactoryProtocol.h + + hash + + Nz3K53RPMCO3ckDCvhJoBJ9TIKI= + + hash2 + + 4EdOx1EfPwkCg86SDjtSacKJozvb0RRnJZ19a7qirAA= + + + Headers/FBSDKGraphRequestFlags.h + + hash + + Zas2ccUoNaCrjUffAdLC6TmKLWs= + + hash2 + + QaBxTTw493IFQLv0fwkhBkWu57wAPkAZ/fexBSmcWuA= + + + Headers/FBSDKGraphRequestHTTPMethod.h + + hash + + sF4WT7ko2ZXuQ91thBewwSb29Cc= + + hash2 + + s/ZdV1PYtfb+e5MToTE5eWQ/g8Ea8Lfbn1y5cPXIois= + + + Headers/FBSDKGraphRequestProtocol.h + + hash + + E72bbJ8BaX/EV/so4aPEeaLRTkY= + + hash2 + + GDWolFR0Dj6corFdcjDQZdk7rfU0AEPiBD4Ij/x0efk= + + + Headers/FBSDKIcon.h + + hash + + nSUcEGcswYAb2H/1Kk1Ibii38sQ= + + hash2 + + +bRm7DWEBj2Qs6f5L8UwS8K4WF3DXn9C+47shPYf33Q= + + + Headers/FBSDKImpressionLoggingButton.h + + hash + + aaainoJHYRbRmab8MpwHmrU4hVo= + + hash2 + + YdoyQtxZm0tnh9jsgEZSnzReYlue+nwzRR4z3AsUkdg= + + + Headers/FBSDKInternalUtility.h + + hash + + upq6sOVxvYgmqem02YoK1SQZ4fI= + + hash2 + + Fe2S171oUUBElc9qkWiXG7eZQtTmmXOQ8JFhXqh9too= + + + Headers/FBSDKInternalUtilityProtocol.h + + hash + + Fv2HZA8YkLc1F/996f+/OhkAzZM= + + hash2 + + mbZQDpstOa8EgXL6i2KXC/6Al3EIoKxJT0wqzk2UNfs= + + + Headers/FBSDKKeychainStore.h + + hash + + VSfBFlzguwgAJhVey77PM3TiKzI= + + hash2 + + sQGCel/07cMPMZI0kl8wscwPV9WL/JIYf1ns0PSf8v0= + + + Headers/FBSDKKeychainStoreFactory.h + + hash + + EokxqDkQxYQBz5YnFwcqJvVKd8I= + + hash2 + + la/OM0KnLr35SmfD02P88Sr62T2F8+uRVF/wDtbdfSw= + + + Headers/FBSDKKeychainStoreProtocol.h + + hash + + Vl4nIrUwT7cqcjwlXymbPkKUVDo= + + hash2 + + XNfcYyJYq69j5eL0ARtTlzkh8SdVCq+G/s9eY4Pd8O8= + + + Headers/FBSDKKeychainStoreProviding.h + + hash + + mIeRZ1Khyvf/6V2HXI3+7c15XfU= + + hash2 + + N5iX620VVuEnU9MNl/truAcPdvE78EoCZ13WK/XGM7w= + + + Headers/FBSDKLocation.h + + hash + + lVldFN//gmPckkWOntm6/lMe0QE= + + hash2 + + 4VM07vWgUKPPsLEMLF29hXYKIHBkc9vETSX506Z++Uw= + + + Headers/FBSDKLogger.h + + hash + + rtRqjTXsaZXv5x8H14rMIs3g7Gk= + + hash2 + + Qfqspxm3/sPBdO0HFJAKtqdycEFIM/L2eebvKieQ5F4= + + + Headers/FBSDKLogging.h + + hash + + /DbryGZcqEQACAktvCjPjV6SDG4= + + hash2 + + IvKTyTv5bHSAJcZqLwaHR/lW5CFnjIggFOzHMRDWMk4= + + + Headers/FBSDKLoggingBehavior.h + + hash + + 2RipnoPNHjzmVyzHpZjxsO+csE0= + + hash2 + + 4aOXHNufAYanMkOEmfMy+Os4pKJrcNj1FhZ5sT1dlwA= + + + Headers/FBSDKLoginTooltip.h + + hash + + t9qlwGoUeyWhxDfXE8Ky6RnF/gg= + + hash2 + + C6wHDAq5ukwucR1FkTnnq3ucsw6y7GR9wDadgB3zHZY= + + + Headers/FBSDKNetworkErrorChecker.h + + hash + + lc4ltIsnGN0wefVKZeW3BTQqt8o= + + hash2 + + mQPfqbSnxLTJW64KKhoGcZPQYNTYQABLzG1AZ2hcTSs= + + + Headers/FBSDKNetworkErrorChecking.h + + hash + + DQOOpk+tae6sTARv6zgYkUNQv+4= + + hash2 + + JaxujLpfeoL0uJ15AXk/+TxmnQ+XgmtHYz9sb5k3r1w= + + + Headers/FBSDKProductAvailability.h + + hash + + 4z6lAOLiyG+H6sMmuDzBXlrBO4Q= + + hash2 + + AfSg3sbP+VegxUAApbWi9NSI+/dlu9LbDGiLvCWo3Z0= + + + Headers/FBSDKProductCondition.h + + hash + + p2M86R+0XjuIIHBALGh4qHhF0sg= + + hash2 + + dNGTpMMgyZMruD+nBPSsD0Y3Bc2L8ZoTcsW1f5tdK7Q= + + + Headers/FBSDKRandom.h + + hash + + R8FED9YvoEocX/AhmRTKcVPRw2o= + + hash2 + + JXR3YBjvsfljeUoFjq/rNAz0+acuqvjZkXBhXXs5bgE= + + + Headers/FBSDKServerConfigurationProvider.h + + hash + + pQXes4mDHFLyo95AmuqC6AXyKDI= + + hash2 + + 01hR69Hyq4I9ftA7aAoMDpz9HPUBUDo234syKknYqek= + + + Headers/FBSDKSettings.h + + hash + + FIxUl9WHubBQ4Rmv8W7iNVRzrq4= + + hash2 + + P3FaEtZ85Yn2izQSfBxU5Z7R0wZX7KuiRjTEsgEoSGU= + + + Headers/FBSDKSettingsLogging.h + + hash + + j4NKiO1um7BzI27sPShA+WNNV6E= + + hash2 + + GgfZ+r7AkNT2pA6iA72tqgExzEgxS0MRiVNUSlpsa48= + + + Headers/FBSDKSettingsProtocol.h + + hash + + QogmjQBweHFkUWSIRYsBQvR4gHE= + + hash2 + + vYviw3P0xVBPMPq5TFbuuFWvwiZH9HkZcHV1gavtPLo= + + + Headers/FBSDKTokenCaching.h + + hash + + Y9D8zDMXaiaJEPNG6yqmuv8sdxU= + + hash2 + + adI/CmzszZ3MQwaZv5E3iCsNy9ipB09TK9oNjPirDD4= + + + Headers/FBSDKTokenStringProviding.h + + hash + + 1ULLCT9qWhm7HkrSyND4RJwRF6Y= + + hash2 + + Cmhyy2RK5YdGkiMeYR7YqggjtKl5xi9gfIWd5Rzyos0= + + + Headers/FBSDKTransformer.h + + hash + + Ui2GFPACS7T6kK9LcCLcdJyCYyo= + + hash2 + + 76ADDGvmmKAAjwJQmqZOKN1QRhrUmGE9qELPwGG2F4k= + + + Headers/FBSDKURLScheme.h + + hash + + 36HfFNYLwWfRajDYFDJeNZe/evc= + + hash2 + + BdpEnJgCwk4m/BX4jdUcFWtch+dOASiPi4b4XuShRow= + + + Headers/FBSDKUserAgeRange.h + + hash + + eRyqSxEieMcqdjv0yKXNIDnmRIg= + + hash2 + + HlG9273bkbhwQ3Z40EFALmtcSl7mgJYAMF+i4LVTQuM= + + + Headers/FBSDKUtility.h + + hash + + ACK+e48w6WLwZDhZT9VIaXDWTlk= + + hash2 + + aDJa31ufENPB6jQuSRYbBb60HcsTocEvvcqZw2iWBN8= + + + Headers/_FBSDKWindowFinding.h + + hash + + Gac9mAAYHny41SRhpW53CbfSo2s= + + hash2 + + QxPymhBROXgyvxD0bzeN+T5ennsD7zaelwvA1a2l3oE= + + + Headers/__FBSDKLoggerCreating.h + + hash + + y1VVRA/XNhhKMaoTUc/66smvRqI= + + hash2 + + /8e+8f0FIi7sNd85JGNd2gXdF5x4vJgOTUOgWIssxL4= + + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + hash + + 2BFEos44TSB/IdQ0eVtRmpwfpUk= + + hash2 + + rsNCe2KpGw+8xjTJ4iXpjeR2AtenyPRNH3pOem1gPcA= + + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + hash + + Vj4yJfCYt2lZJ/46CHtjmDSwZAU= + + hash2 + + ceTV3N3dyeFX0RHp9dAojo2OwiKawTXdVe+XO5POIZk= + + + Modules/FBSDKCoreKit.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + hash + + wo4OompaVimKddR2QHIPyVdq5Xo= + + hash2 + + xPSJjI2WmJF42t5ErzghEMBvFtK8r8X1g3QzPcdARnk= + + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + hash + + qRuQ1oDdrQ/0dCHFia0InZwDlTc= + + hash2 + + 2x6g7vlLmx79MZo0khnilnK0GETwC6StKF70UeWdTPY= + + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + hash + + Iv1gws6yr/ABEx8xm/wRRkSPCjQ= + + hash2 + + OVthe5DhPVyFmBcZk+Fj+rzaZGSJXBqRMvNQpc1yhB4= + + + Modules/FBSDKCoreKit.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + hash + + TzVJnD8T0x7tUvtE58kMtXzRuoQ= + + hash2 + + JdvBySAJTZBLbHm0UIalAz0bPpk0LlwS+3f1lyKXVoM= + + + Modules/module.modulemap + + hash + + dqxVNYXT9nBvFc3sI+M8nUrDXuA= + + hash2 + + c2A9sHV9BPDFexemM1nM/fNWiYjoYt4V7Zxb+LDeu2Y= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeSignature b/ios/platform/FBSDKCoreKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKCoreKit.framework/_CodeSignature/CodeSignature new file mode 100644 index 00000000..e69de29b diff --git a/ios/platform/FBSDKLoginKit.framework/FBSDKLoginKit b/ios/platform/FBSDKLoginKit.framework/FBSDKLoginKit deleted file mode 100644 index 05a78c94..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/FBSDKLoginKit and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKCoreKitImport.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKCoreKitImport.h deleted file mode 100644 index aa0979d4..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKCoreKitImport.h +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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. - -// Importing FBSDKCoreKit is tricky due to build variants. -// SPM require that it is imported as while CocoaPods, -// Carthage, Buck, and xcodebuild require -// This file is not exposed via SPM so non SPM users will use - -// 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 -#else - #import -#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h deleted file mode 100644 index 36665b96..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/*! - @abstract Describes the initial response when starting the device login flow. - @discussion This is used by `FBSDKDeviceLoginManager`. - */ -NS_SWIFT_NAME(DeviceLoginCodeInfo) -@interface FBSDKDeviceLoginCodeInfo : NSObject - -/*! - @abstract There is no public initializer. - */ -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/*! - @abstract the unique id for this login flow. -*/ -@property (nonatomic, copy, readonly) NSString *identifier; - -/*! - @abstract the short "user_code" that should be presented to the user. -*/ -@property (nonatomic, copy, readonly) NSString *loginCode; - -/*! - @abstract the verification URL. -*/ -@property (nonatomic, copy, readonly) NSURL *verificationURL; - -/*! - @abstract the expiration date. -*/ -@property (nonatomic, copy, readonly) NSDate *expirationDate; - -/*! - @abstract the polling interval -*/ -@property (nonatomic, assign, readonly) NSUInteger pollingInterval; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h deleted file mode 100644 index b4e483ab..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKDeviceLoginCodeInfo.h" -#import "FBSDKDeviceLoginManagerResult.h" - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKDeviceLoginManager; - -/*! - @abstract A delegate for `FBSDKDeviceLoginManager`. - */ -NS_SWIFT_NAME(DeviceLoginManagerDelegate) -@protocol FBSDKDeviceLoginManagerDelegate - -/*! - @abstract Indicates the device login flow has started. You should parse `codeInfo` to - present the code to the user to enter. - @param loginManager the login manager instance. - @param codeInfo the code info data. - */ -- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager - startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; - -/*! - @abstract Indicates the device login flow has finished. - @param loginManager the login manager instance. - @param result the results of the login flow. - @param error the error, if available. - @discussion The flow can be finished if the user completed the flow, cancelled, or if the code has expired. - */ -- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager - completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result - error:(nullable NSError *)error; - -@end - -/*! - @abstract Use this class to perform a device login flow. - @discussion The device login flow starts by requesting a code from the device login API. - This class informs the delegate when this code is received. You should then present the - code to the user to enter. In the meantime, this class polls the device login API - periodically and informs the delegate of the results. - - See [Facebook Device Login](https://developers.facebook.com/docs/facebook-login/for-devices). - */ -NS_SWIFT_NAME(DeviceLoginManager) -@interface FBSDKDeviceLoginManager : NSObject - -/*! - @abstract Initializes a new instance. - @param permissions permissions to request. - */ -- (instancetype)initWithPermissions:(NSArray *)permissions - enableSmartLogin:(BOOL)enableSmartLogin -NS_DESIGNATED_INITIALIZER; - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/*! - @abstract the delegate. - */ -@property (nonatomic, weak) id delegate; - -/*! - @abstract the requested permissions. - */ -@property (nonatomic, copy, readonly) NSArray *permissions; - -/*! - @abstract the optional URL to redirect the user to after they complete the login. - @discussion the URL must be configured in your App Settings -> Advanced -> OAuth Redirect URIs - */ -@property (nullable, nonatomic, copy) NSURL *redirectURL; - -/*! - @abstract Starts the device login flow - @discussion This instance will retain self until the flow is finished or cancelled. - */ -- (void)start; - -/*! - @abstract Attempts to cancel the device login flow. - */ -- (void)cancel; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h deleted file mode 100644 index 3124c0fa..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#ifdef FBSDKCOCOAPODS -#import -#endif - -@class FBSDKAccessToken; - -NS_ASSUME_NONNULL_BEGIN - -/*! - @abstract Represents the results of the a device login flow. - @discussion This is used by `FBSDKDeviceLoginManager`. - */ -NS_SWIFT_NAME(DeviceLoginManagerResult) -@interface FBSDKDeviceLoginManagerResult : NSObject - -/*! - @abstract There is no public initializer. - */ -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/*! - @abstract The token. - */ -@property (nullable, nonatomic, strong, readonly) FBSDKAccessToken *accessToken; - -/*! - @abstract Indicates if the login was cancelled by the user, or if the device - login code has expired. - */ -@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h deleted file mode 100644 index 4be58012..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "TargetConditionals.h" - -#if TARGET_OS_TV - -@interface FBLoginButton : UIView - -@property (copy, nonatomic) NSArray *permissions; - -@end - -#else - -#import "FBSDKCoreKitImport.h" - -#import "FBSDKLoginManager.h" -#import "FBSDKTooltipView.h" - -NS_ASSUME_NONNULL_BEGIN - -@protocol FBSDKLoginButtonDelegate; - -/** - NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) - Indicates the desired login tooltip behavior. - */ -typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) -{ - /** The default behavior. The tooltip will only be displayed if - the app is eligible (determined by possible server round trip) */ - FBSDKLoginButtonTooltipBehaviorAutomatic = 0, - /** Force display of the tooltip (typically for UI testing) */ - FBSDKLoginButtonTooltipBehaviorForceDisplay = 1, - /** Force disable. In this case you can still exert more refined - control by manually constructing a `FBSDKLoginTooltipView` instance. */ - FBSDKLoginButtonTooltipBehaviorDisable = 2 -} NS_SWIFT_NAME(FBLoginButton.TooltipBehavior); - -/** - A button that initiates a log in or log out flow upon tapping. - - `FBSDKLoginButton` works with `FBSDKProfile.currentProfile` to - determine what to display, and automatically starts authentication when tapped (i.e., - you do not need to manually subscribe action targets). - - Like `FBSDKLoginManager`, you should make sure your app delegate is connected to - `FBSDKApplicationDelegate` in order for the button's delegate to receive messages. - - `FBSDKLoginButton` has a fixed height of @c 30 pixels, but you may change the width. `initWithFrame:CGRectZero` - will size the button to its minimum frame. -*/ -NS_SWIFT_NAME(FBLoginButton) -@interface FBSDKLoginButton : FBSDKButton - -/** - The default audience to use, if publish permissions are requested at login time. - */ -@property (assign, nonatomic) FBSDKDefaultAudience defaultAudience; -/** - Gets or sets the delegate. - */ -@property (weak, nonatomic) IBOutlet id delegate; -/*! - @abstract The permissions to request. - @discussion To provide the best experience, you should minimize the number of permissions you request, and only ask for them when needed. - For example, do not ask for "user_location" until you the information is actually used by the app. - - Note this is converted to NSSet and is only - an NSArray for the convenience of literal syntax. - - See [the permissions guide]( https://developers.facebook.com/docs/facebook-login/permissions/ ) for more details. - */ -@property (copy, nonatomic) NSArray *permissions; -/** - Gets or sets the desired tooltip behavior. - */ -@property (assign, nonatomic) FBSDKLoginButtonTooltipBehavior tooltipBehavior; -/** - Gets or sets the desired tooltip color style. - */ -@property (assign, nonatomic) FBSDKTooltipColorStyle tooltipColorStyle; -/** - Gets or sets the desired tracking preference to use for login attempts. Defaults to `.enabled` - */ -@property (assign, nonatomic) FBSDKLoginTracking loginTracking; -/** - Gets or sets an optional nonce to use for login attempts. A valid nonce must be a non-empty string without whitespace. - An invalid nonce will not be set. Instead, default unique nonces will be used for login attempts. - */ -@property (assign, nonatomic, nullable) NSString *nonce; - -@end - -/** - @protocol - A delegate for `FBSDKLoginButton` - */ -NS_SWIFT_NAME(LoginButtonDelegate) -@protocol FBSDKLoginButtonDelegate - -@required -/** - Sent to the delegate when the button was used to login. - @param loginButton the sender - @param result The results of the login - @param error The error (if any) from the login - */ -- (void)loginButton:(FBSDKLoginButton *)loginButton -didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result - error:(nullable NSError *)error; - -/** - Sent to the delegate when the button was used to logout. - @param loginButton The button that was clicked. -*/ -- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; - -@optional -/** - Sent to the delegate when the button is about to login. - @param loginButton the sender - @return YES if the login should be allowed to proceed, NO otherwise - */ -- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h deleted file mode 100644 index 1c9c4221..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKPermission; - -/// The login tracking preference to use for a login attempt. For more information on the differences between -/// `enabled` and `limited` see: https://developers.facebook.com/docs/facebook-login/ios/limited-login/ -typedef NS_ENUM(NSUInteger, FBSDKLoginTracking) -{ - FBSDKLoginTrackingEnabled, - FBSDKLoginTrackingLimited, -} NS_SWIFT_NAME(LoginTracking); - -/// A configuration to use for modifying the behavior of a login attempt. -NS_SWIFT_NAME(LoginConfiguration) -@interface FBSDKLoginConfiguration : NSObject - -/// The nonce that the configuration was created with. -/// A unique nonce will be used if none is provided to the initializer. -@property (nonatomic, readonly, copy) NSString *nonce; - -/// The tracking preference. Defaults to `.enabled`. -@property (nonatomic, readonly) FBSDKLoginTracking tracking; - -/// The requested permissions for the login attempt. Defaults to an empty set. -@property (nonatomic, readonly, copy) NSSet *requestedPermissions; - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - Attempts to initialize a new configuration with the expected parameters. - - @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. - The only permissions allowed when the `loginTracking` is `.limited` are 'email', 'public_profile', 'gaming_profile' and 'gaming_user_picture' - @param tracking the tracking preference to use for a login attempt. - @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. - Creation of the configuration will fail if the nonce is invalid. - */ -- (nullable instancetype)initWithPermissions:(NSArray *)permissions - tracking:(FBSDKLoginTracking)tracking - nonce:(NSString *)nonce -NS_REFINED_FOR_SWIFT; - -/** - Attempts to initialize a new configuration with the expected parameters. - - @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. - The only permissions allowed when the `loginTracking` is `.limited` are 'email', 'public_profile', 'gaming_profile' and 'gaming_user_picture' - @param tracking the tracking preference to use for a login attempt. - */ -- (nullable instancetype)initWithPermissions:(NSArray *)permissions - tracking:(FBSDKLoginTracking)tracking -NS_REFINED_FOR_SWIFT; - -/** - Attempts to initialize a new configuration with the expected parameters. - - @param tracking the login tracking preference to use for a login attempt. - */ -- (nullable instancetype)initWithTracking:(FBSDKLoginTracking)tracking -NS_REFINED_FOR_SWIFT; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h deleted file mode 100644 index 85bab47c..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 - -/** - The error domain for all errors from FBSDKLoginKit - - Error codes from the SDK in the range 300-399 are reserved for this domain. - */ -FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain -NS_SWIFT_NAME(LoginErrorDomain); - -#else - -/** - The error domain for all errors from FBSDKLoginKit - - Error codes from the SDK in the range 300-399 are reserved for this domain. - */ -FOUNDATION_EXPORT NSString *const FBSDKLoginErrorDomain -NS_SWIFT_NAME(LoginErrorDomain); - -#endif - -#ifndef NS_ERROR_ENUM -#define NS_ERROR_ENUM(_domain, _name) \ -enum _name: NSInteger _name; \ -enum __attribute__((ns_error_domain(_domain))) _name: NSInteger -#endif - -/** - FBSDKLoginError - Error codes for FBSDKLoginErrorDomain. - */ -typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKLoginError) -{ - /** - Reserved. - */ - FBSDKLoginErrorReserved = 300, - - /** - The error code for unknown errors. - */ - FBSDKLoginErrorUnknown, - - /** - The user's password has changed and must log in again - */ - FBSDKLoginErrorPasswordChanged, - - /** - The user must log in to their account on www.facebook.com to restore access - */ - FBSDKLoginErrorUserCheckpointed, - - /** - Indicates a failure to request new permissions because the user has changed. - */ - FBSDKLoginErrorUserMismatch, - - /** - The user must confirm their account with Facebook before logging in - */ - FBSDKLoginErrorUnconfirmedUser, - - /** - The Accounts framework failed without returning an error, indicating the - app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has - been disabled. - */ - FBSDKLoginErrorSystemAccountAppDisabled, - - /** - An error occurred related to Facebook system Account store - */ - FBSDKLoginErrorSystemAccountUnavailable, - - /** - The login response was missing a valid challenge string. - */ - FBSDKLoginErrorBadChallengeString, - - /** - The ID token returned in login response was invalid - */ - FBSDKLoginErrorInvalidIDToken, - - /** - A current access token was required and not provided - */ - FBSDKLoginErrorMissingAccessToken, -} NS_SWIFT_NAME(LoginError); - -/** - FBSDKDeviceLoginError - Error codes for FBSDKDeviceLoginErrorDomain. - */ -typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { - /** - Your device is polling too frequently. - */ - FBSDKDeviceLoginErrorExcessivePolling = 1349172, - /** - User has declined to authorize your application. - */ - FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, - /** - User has not yet authorized your application. Continue polling. - */ - FBSDKDeviceLoginErrorAuthorizationPending = 1349174, - /** - The code you entered has expired. - */ - FBSDKDeviceLoginErrorCodeExpired = 1349152 -} NS_SWIFT_NAME(DeviceLoginError); - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h deleted file mode 100644 index f27581eb..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKCoreKitImport.h" -#import "FBSDKDeviceLoginCodeInfo.h" -#import "FBSDKDeviceLoginManager.h" -#import "FBSDKDeviceLoginManagerResult.h" -#import "FBSDKLoginConfiguration.h" -#import "FBSDKLoginConstants.h" - -#if !TARGET_OS_TV - #import "FBSDKLoginButton.h" - #import "FBSDKLoginManager.h" - #import "FBSDKLoginManagerLoginResult.h" - #import "FBSDKLoginTooltipView.h" - #import "FBSDKReferralManager.h" - #import "FBSDKReferralManagerResult.h" -#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h deleted file mode 100644 index be427909..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -#if TARGET_OS_TV - -// This is an unfortunate hack for Swift Package Manager support. -// SPM does not allow us to conditionally exclude Swift files for compilation by platform. -// -// So to support tvOS with SPM we need to use runtime availability checks in the Swift files. -// This means that even though the code in `LoginManager.swift` will never be run for tvOS -// targets, it still needs to be able to compile. Hence we need to declare it here. -// -// The way to fix this is to remove extensions of ObjC types in Swift. - -@interface LoginManagerLoginResult : NSObject - -@property (copy, nonatomic, nullable) FBSDKAccessToken *token; -@property (copy, nonatomic, nullable) FBSDKAuthenticationToken *authenticationToken; -@property (readonly, nonatomic) BOOL isCancelled; -@property (copy, nonatomic) NSSet *grantedPermissions; -@property (copy, nonatomic) NSSet *declinedPermissions; - -@end - -#else - -@class FBSDKAccessToken; -@class FBSDKAuthenticationToken; - -/** - Describes the result of a login attempt. - */ -NS_SWIFT_NAME(LoginManagerLoginResult) -@interface FBSDKLoginManagerLoginResult : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - the access token. - */ -@property (copy, nonatomic, nullable) FBSDKAccessToken *token; - -/** - the authentication token. - */ -@property (copy, nonatomic, nullable) FBSDKAuthenticationToken *authenticationToken; - -/** - whether the login was cancelled by the user. - */ -@property (readonly, nonatomic) BOOL isCancelled; - -/** - the set of permissions granted by the user in the associated request. - - inspect the token's permissions set for a complete list. - */ -@property (copy, nonatomic) NSSet *grantedPermissions; - -/** - the set of permissions declined by the user in the associated request. - - inspect the token's permissions set for a complete list. - */ -@property (copy, nonatomic) NSSet *declinedPermissions; - -/** - Initializes a new instance. - @param token the access token - @param authenticationToken the authentication token - @param isCancelled whether the login was cancelled by the user - @param grantedPermissions the set of granted permissions - @param declinedPermissions the set of declined permissions - */ -- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token - authenticationToken:(nullable FBSDKAuthenticationToken *)authenticationToken - isCancelled:(BOOL)isCancelled - grantedPermissions:(NSSet *)grantedPermissions - declinedPermissions:(NSSet *)declinedPermissions -NS_DESIGNATED_INITIALIZER; -@end - -#endif - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h deleted file mode 100644 index 1e03eeae..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKTooltipView.h" - -NS_ASSUME_NONNULL_BEGIN - -@protocol FBSDKLoginTooltipViewDelegate; - -/** - - Represents a tooltip to be displayed next to a Facebook login button - to highlight features for new users. - - - The `FBSDKLoginButton` may display this view automatically. If you do - not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods - as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. - - By default, the `FBSDKLoginTooltipView` is not added to the superview until it is - determined the app has migrated to the new login experience. You can override this - (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. - - */ -NS_SWIFT_NAME(FBLoginTooltipView) -@interface FBSDKLoginTooltipView : FBSDKTooltipView - -/** the delegate */ -@property (nonatomic, weak) id delegate; - -/** if set to YES, the view will always be displayed and the delegate's - `loginTooltipView:shouldAppear:` will NOT be called. */ -@property (nonatomic, assign, getter=shouldForceDisplay) BOOL forceDisplay; - -@end - -/** - @protocol - - The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event - notifications from `FBSDKLoginTooltipView` objects. - */ -NS_SWIFT_NAME(LoginTooltipViewDelegate) -@protocol FBSDKLoginTooltipViewDelegate - -@optional - -/** - Asks the delegate if the tooltip view should appear - - @param view The tooltip view. - @param appIsEligible The value fetched from the server identifying if the app - is eligible for the new login experience. - - - Use this method to customize display behavior. - */ -- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; - -/** - Tells the delegate the tooltip view will appear, specifically after it's been - added to the super view but before the fade in animation. - - @param view The tooltip view. - */ -- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; - -/** - Tells the delegate the tooltip view will not appear (i.e., was not - added to the super view). - - @param view The tooltip view. - */ -- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; - - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralCode.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralCode.h deleted file mode 100644 index 05ab81a4..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralCode.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -NS_ASSUME_NONNULL_BEGIN - -/** - Represent a referral code used in the referral process -*/ -NS_SWIFT_NAME(ReferralCode) -@interface FBSDKReferralCode : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - The string value of the referral code -*/ -@property NSString *value; - -/** - Initializes a new instance if the referral code is valid. Otherwise returns nil. - A code is valid if it is non-empty and contains only alphanumeric characters. - @param string the raw string referral code -*/ -+ (nullable instancetype)initWithString:(NSString *)string; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralManager.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralManager.h deleted file mode 100644 index f923d54d..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKReferralManagerResult; - -/** - Describes the call back to the FBSDKReferralManager - @param result the result of the referral - @param error the referral error, if any. - */ -typedef void (^FBSDKReferralManagerResultBlock)(FBSDKReferralManagerResult *_Nullable result, - NSError *_Nullable error) -NS_SWIFT_NAME(ReferralManagerResultBlock); - -/** - `FBSDKReferralManager` provides methods for starting the referral process. -*/ -NS_SWIFT_NAME(ReferralManager) -@interface FBSDKReferralManager : NSObject - -/** - Initialize a new instance with the provided view controller - @param viewController the view controller to present from. If nil, the topmost view controller will be automatically determined as best as possible. - */ -- (instancetype)initWithViewController:(nullable UIViewController *)viewController; - -/** - Open the referral dialog. - @param handler the callback. - */ --(void)startReferralWithCompletionHandler:(nullable FBSDKReferralManagerResultBlock)handler; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralManagerResult.h b/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralManagerResult.h deleted file mode 100644 index 8406c303..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKReferralManagerResult.h +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKReferralCode.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - Describes the result of a referral request. - */ -NS_SWIFT_NAME(ReferralManagerResult) -@interface FBSDKReferralManagerResult : NSObject - -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)new NS_UNAVAILABLE; - -/** - whether the referral was cancelled by the user. - */ -@property (readonly, nonatomic) BOOL isCancelled; - -/** - An array of referral codes for each referral made by the user - */ -@property (copy, nonatomic) NSArray *referralCodes; - -/** Initializes a new instance. - @param referralCodes the referral codes - @param isCancelled whether the referral was cancelled by the user - */ -- (instancetype)initWithReferralCodes:(nullable NSArray *)referralCodes - isCancelled:(BOOL)isCancelled -NS_DESIGNATED_INITIALIZER; -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm.swiftsourceinfo deleted file mode 100644 index 7c8836cd..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo deleted file mode 100644 index 56a2dac5..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm64.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm64.swiftsourceinfo deleted file mode 100644 index 56a2dac5..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/arm64.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo deleted file mode 100644 index 7c8836cd..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/armv7.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/armv7.swiftsourceinfo deleted file mode 100644 index 7c8836cd..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/armv7.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo deleted file mode 100644 index bdfc3500..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/i386.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/i386.swiftsourceinfo deleted file mode 100644 index bdfc3500..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/i386.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo deleted file mode 100644 index 87d20d27..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/x86_64.swiftsourceinfo b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/x86_64.swiftsourceinfo deleted file mode 100644 index 87d20d27..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/Project/x86_64.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftinterface deleted file mode 100644 index f8e60e0d..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftmodule deleted file mode 100644 index 3a2d7f25..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftinterface deleted file mode 100644 index 53622869..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftmodule deleted file mode 100644 index e0e3ce61..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftinterface deleted file mode 100644 index 53622869..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftmodule deleted file mode 100644 index e0e3ce61..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftinterface deleted file mode 100644 index f8e60e0d..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftmodule deleted file mode 100644 index 3a2d7f25..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftdoc b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftdoc deleted file mode 100644 index 11504351..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftinterface deleted file mode 100644 index f8e60e0d..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftmodule deleted file mode 100644 index 3a2d7f25..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftdoc deleted file mode 100644 index 17853610..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftinterface deleted file mode 100644 index 8dee16bf..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftmodule deleted file mode 100644 index 67011769..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386-apple-ios-simulator.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftdoc b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftdoc deleted file mode 100644 index 17853610..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftinterface deleted file mode 100644 index 8dee16bf..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftmodule deleted file mode 100644 index 67011769..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/i386.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface deleted file mode 100644 index fb57e592..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule deleted file mode 100644 index b114bc14..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftdoc b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftdoc deleted file mode 100644 index ed65a819..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftinterface b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftinterface deleted file mode 100644 index fb57e592..00000000 --- a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftinterface +++ /dev/null @@ -1,29 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit -import FBSDKCoreKit -@_exported import FBSDKLoginKit -import Swift -import UIKit -@available(tvOS, unavailable) -public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void -@available(tvOS, unavailable) -public enum LoginResult { - case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) - case cancelled - case failed(Swift.Error) -} -@available(tvOS, unavailable) -extension LoginManager { - convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) - public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) - public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) - public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) -} -@available(tvOS, unavailable) -extension FBLoginButton { - convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) -} -extension LoginConfiguration { - convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString) -} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftmodule b/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftmodule deleted file mode 100644 index b114bc14..00000000 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/Info.plist b/ios/platform/FBSDKLoginKit.xcframework/Info.plist new file mode 100644 index 00000000..daae464a --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/Info.plist @@ -0,0 +1,82 @@ + + + + + AvailableLibraries + + + LibraryIdentifier + ios-arm64 + LibraryPath + FBSDKLoginKit.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + LibraryIdentifier + tvos-arm64 + LibraryPath + FBSDKLoginKit.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + tvos + + + LibraryIdentifier + tvos-arm64_x86_64-simulator + LibraryPath + FBSDKLoginKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + tvos + SupportedPlatformVariant + simulator + + + LibraryIdentifier + ios-arm64_x86_64-maccatalyst + LibraryPath + FBSDKLoginKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + maccatalyst + + + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + FBSDKLoginKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/ios/platform/FBSDKLoginKit.xcframework/LICENSE b/ios/platform/FBSDKLoginKit.xcframework/LICENSE new file mode 100644 index 00000000..2eecb625 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/LICENSE @@ -0,0 +1,17 @@ +Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + +You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +copy, modify, and distribute this software in source code or binary form for use +in connection with the web services and APIs provided by Facebook. + +As with any software that integrates with the Facebook platform, your use of +this software is subject to the Facebook Platform Policy +[http://developers.facebook.com/policy/]. This copyright notice shall be +included in all copies or substantial portions of the software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +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. diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit new file mode 100644 index 00000000..900a4701 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/FBSDKLoginKit differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h new file mode 100644 index 00000000..67250d6f --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a code verifier used in the PKCE (Proof Key for Code Exchange) + process. This is a cryptographically random string using the characters + A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, + underscore, and tilde), between 43 and 128 characters long. + */ +NS_SWIFT_NAME(CodeVerifier) +@interface FBSDKCodeVerifier : NSObject + +/// The string value of the code verifier +@property (nonatomic, readonly, copy) NSString *value; + +/// The SHA256 hashed challenge of the code verifier +@property (nonatomic, readonly, copy) NSString *challenge; + +/** + Attempts to initialize a new code verifier instance with the given string. + Creation will fail and return nil if the string is invalid. + + @param string the code verifier string + */ +- (nullable instancetype)initWithString:(NSString *)string + NS_DESIGNATED_INITIALIZER; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h new file mode 100644 index 00000000..fc08ff25 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the initial response when starting the device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginCodeInfo) +@interface FBSDKDeviceLoginCodeInfo : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The unique id for this login flow. +@property (nonatomic, readonly, copy) NSString *identifier; + +/// The short "user_code" that should be presented to the user. +@property (nonatomic, readonly, copy) NSString *loginCode; + +/// The verification URL. +@property (nonatomic, readonly, copy) NSURL *verificationURL; + +/// The expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// The polling interval +@property (nonatomic, readonly, assign) NSUInteger pollingInterval; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h new file mode 100644 index 00000000..89def803 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKDeviceLoginManagerDelegate; + +/** + Use this class to perform a device login flow. + The device login flow starts by requesting a code from the device login API. + This class informs the delegate when this code is received. You should then present the + code to the user to enter. In the meantime, this class polls the device login API + periodically and informs the delegate of the results. + + See [Facebook Device Login](https://developers.facebook.com/docs/facebook-login/for-devices). + */ +NS_SWIFT_NAME(DeviceLoginManager) +@interface FBSDKDeviceLoginManager : NSObject + +/** + Initializes a new instance. + @param permissions permissions to request. + */ +- (instancetype)initWithPermissions:(NSArray *)permissions + enableSmartLogin:(BOOL)enableSmartLogin; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The delegate. +@property (nonatomic, weak) id delegate; + +/// The requested permissions. +@property (nonatomic, readonly, copy) NSArray *permissions; + +/** + The optional URL to redirect the user to after they complete the login. + The URL must be configured in your App Settings -> Advanced -> OAuth Redirect URIs + */ +@property (nullable, nonatomic, copy) NSURL *redirectURL; + +/** + Starts the device login flow + This instance will retain self until the flow is finished or cancelled. + */ +- (void)start; + +/// Attempts to cancel the device login flow. +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h new file mode 100644 index 00000000..cdcf8048 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKDeviceLoginCodeInfo; +@class FBSDKDeviceLoginManager; +@class FBSDKDeviceLoginManagerResult; + +NS_ASSUME_NONNULL_BEGIN + +/// A delegate for `FBSDKDeviceLoginManager`. +NS_SWIFT_NAME(DeviceLoginManagerDelegate) +@protocol FBSDKDeviceLoginManagerDelegate + +/** + Indicates the device login flow has started. You should parse `codeInfo` to present the code to the user to enter. + @param loginManager the login manager instance. + @param codeInfo the code info data. + */ + +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; + +/** + Indicates the device login flow has finished. + @param loginManager the login manager instance. + @param result the results of the login flow. + @param error the error, if available. + The flow can be finished if the user completed the flow, cancelled, or if the code has expired. + */ +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h new file mode 100644 index 00000000..93266b99 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAccessToken; + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents the results of the a device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginManagerResult) +@interface FBSDKDeviceLoginManagerResult : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The token. +@property (nullable, nonatomic, readonly, strong) FBSDKAccessToken *accessToken; + +/** + Indicates if the login was cancelled by the user, or if the device + login code has expired. + */ +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h new file mode 100644 index 00000000..ebf14f5b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h @@ -0,0 +1,94 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +#if !TARGET_OS_TV + + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginButtonDelegate; +@class FBSDKCodeVerifier; + +/** + NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) + Indicates the desired login tooltip behavior. + */ +typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) { + /** The default behavior. The tooltip will only be displayed if + the app is eligible (determined by possible server round trip) */ + FBSDKLoginButtonTooltipBehaviorAutomatic = 0, + /// Force display of the tooltip (typically for UI testing) + FBSDKLoginButtonTooltipBehaviorForceDisplay = 1, + /** Force disable. In this case you can still exert more refined + control by manually constructing a `FBSDKLoginTooltipView` instance. */ + FBSDKLoginButtonTooltipBehaviorDisable = 2, +} NS_SWIFT_NAME(FBLoginButton.TooltipBehavior); + +/** + A button that initiates a log in or log out flow upon tapping. + + `FBSDKLoginButton` works with `FBSDKProfile.currentProfile` to + determine what to display, and automatically starts authentication when tapped (i.e., + you do not need to manually subscribe action targets). + + Like `FBSDKLoginManager`, you should make sure your app delegate is connected to + `FBSDKApplicationDelegate` in order for the button's delegate to receive messages. + + `FBSDKLoginButton` has a fixed height of @c 30 pixels, but you may change the width. `initWithFrame:CGRectZero` + will size the button to its minimum frame. + */ +NS_SWIFT_NAME(FBLoginButton) +@interface FBSDKLoginButton : FBSDKButton + +/// The default audience to use, if publish permissions are requested at login time. +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; +/// Gets or sets the delegate. +@property (nonatomic, weak) IBOutlet id delegate; +/** + The permissions to request. + To provide the best experience, you should minimize the number of permissions you request, and only ask for them when needed. + For example, do not ask for "user_location" until you the information is actually used by the app. + + Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + + See [the permissions guide]( https://developers.facebook.com/docs/facebook-login/permissions/ ) for more details. + */ +@property (nonatomic, copy) NSArray *permissions; +/// Gets or sets the desired tooltip behavior. +@property (nonatomic, assign) FBSDKLoginButtonTooltipBehavior tooltipBehavior; +/// Gets or sets the desired tooltip color style. +@property (nonatomic, assign) FBSDKTooltipColorStyle tooltipColorStyle; +/// Gets or sets the desired tracking preference to use for login attempts. Defaults to `.enabled` +@property (nonatomic, assign) FBSDKLoginTracking loginTracking; +/** + Gets or sets an optional nonce to use for login attempts. A valid nonce must be a non-empty string without whitespace. + An invalid nonce will not be set. Instead, default unique nonces will be used for login attempts. + */ +@property (nullable, nonatomic, copy) NSString *nonce; +/// Gets or sets an optional page id to use for login attempts. +@property (nullable, nonatomic, copy) NSString *messengerPageId; +/// Gets or sets the auth_type to use in the login request. Defaults to rerequest. +@property (nullable, nonatomic) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic) FBSDKCodeVerifier *codeVerifier; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h new file mode 100644 index 00000000..9ba1ad5d --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + A delegate for `FBSDKLoginButton` + */ +NS_SWIFT_NAME(LoginButtonDelegate) +@protocol FBSDKLoginButtonDelegate + +@required +/** + Sent to the delegate when the button was used to login. + @param loginButton The sender + @param result The results of the login + @param error The error (if any) from the login + */ +- (void) loginButton:(FBSDKLoginButton *)loginButton + didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result + error:(nullable NSError *)error; + +/** + Sent to the delegate when the button was used to logout. + @param loginButton The button that was clicked. + */ +- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; + +@optional +/** + Sent to the delegate when the button is about to login. + @param loginButton The sender + @return YES if the login should be allowed to proceed, NO otherwise + */ +- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h new file mode 100644 index 00000000..5711f029 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h @@ -0,0 +1,182 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import "FBSDKCodeVerifier.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKPermission; + +/// typedef for FBSDKLoginAuthType +/// See: https://developers.facebook.com/docs/reference/javascript/FB.login/v10.0#options +typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType); + +/// Rerequest +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest; + +/// Reauthorize +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize; + +/// The login tracking preference to use for a login attempt. For more information on the differences between +/// `enabled` and `limited` see: https://developers.facebook.com/docs/facebook-login/ios/limited-login/ +typedef NS_ENUM(NSUInteger, FBSDKLoginTracking) { + FBSDKLoginTrackingEnabled, + FBSDKLoginTrackingLimited, +} NS_SWIFT_NAME(LoginTracking); + +/// A configuration to use for modifying the behavior of a login attempt. +NS_SWIFT_NAME(LoginConfiguration) +@interface FBSDKLoginConfiguration : NSObject + +/// The nonce that the configuration was created with. +/// A unique nonce will be used if none is provided to the initializer. +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The tracking preference. Defaults to `.enabled`. +@property (nonatomic, readonly) FBSDKLoginTracking tracking; + +/// The requested permissions for the login attempt. Defaults to an empty set. +@property (nonatomic, readonly, copy) NSSet *requestedPermissions; + +/// The Messenger Page Id associated with this login request. +@property (nullable, nonatomic, readonly, copy) NSString *messengerPageId; + +/// The auth type associated with this login request. +@property (nullable, nonatomic, readonly) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic, readonly) FBSDKCodeVerifier *codeVerifier; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + @param codeVerifier The code verifier used in the PKCE process. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + codeVerifier:(FBSDKCodeVerifier *)codeVerifier + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param tracking the login tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithTracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Given a string, return the corresponding FBSDKLoginAuthType. Returns nil if the string cannot be mapped to a valid auth type + + @param rawValue the raw auth type. + */ ++ (nullable FBSDKLoginAuthType)authTypeForString:(NSString *)rawValue; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h new file mode 100644 index 00000000..aa554432 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKLoginKit + + Error codes from the SDK in the range 300-399 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain +NS_SWIFT_NAME(LoginErrorDomain); + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKLoginError + Error codes for FBSDKLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKLoginError) +{ + /// Reserved. + FBSDKLoginErrorReserved = 300, + + /// The error code for unknown errors. + FBSDKLoginErrorUnknown, + + /// The user's password has changed and must log in again + FBSDKLoginErrorPasswordChanged, + + /// The user must log in to their account on www.facebook.com to restore access + FBSDKLoginErrorUserCheckpointed, + + /// Indicates a failure to request new permissions because the user has changed. + FBSDKLoginErrorUserMismatch, + + /// The user must confirm their account with Facebook before logging in + FBSDKLoginErrorUnconfirmedUser, + + /** + The Accounts framework failed without returning an error, indicating the + app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has + been disabled. + */ + FBSDKLoginErrorSystemAccountAppDisabled, + + /// An error occurred related to Facebook system Account store + FBSDKLoginErrorSystemAccountUnavailable, + + /// The login response was missing a valid challenge string. + FBSDKLoginErrorBadChallengeString, + + /// The ID token returned in login response was invalid + FBSDKLoginErrorInvalidIDToken, + + /// A current access token was required and not provided + FBSDKLoginErrorMissingAccessToken, +} NS_SWIFT_NAME(LoginError); + +/** + FBSDKDeviceLoginError + Error codes for FBSDKDeviceLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { + /// Your device is polling too frequently. + FBSDKDeviceLoginErrorExcessivePolling = 1349172, + /// User has declined to authorize your application. + FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, + /// User has not yet authorized your application. Continue polling. + FBSDKDeviceLoginErrorAuthorizationPending = 1349174, + /// The code you entered has expired. + FBSDKDeviceLoginErrorCodeExpired = 1349152 +} NS_SWIFT_NAME(DeviceLoginError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h new file mode 100644 index 00000000..3cd3859b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h @@ -0,0 +1,249 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import FBSDKCoreKit; +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKLoginKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h new file mode 100644 index 00000000..276a1b9e --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h similarity index 57% rename from ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h index e6b5aafd..ddf96d24 100644 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h @@ -1,87 +1,30 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ #import -#import "FBSDKLoginConfiguration.h" +#import NS_ASSUME_NONNULL_BEGIN -#if TARGET_OS_TV - -// This is an unfortunate hack for Swift Package Manager support. -// SPM does not allow us to conditionally exclude Swift files for compilation by platform. -// -// So to support tvOS with SPM we need to use runtime availability checks in the Swift files. -// This means that even though the code in `LoginManager.swift` will never be run for tvOS -// targets, it still needs to be able to compile. Hence we need to declare it here. -// -// The way to fix this is to remove extensions of ObjC types in Swift. - -@class LoginManagerLoginResult; -@class FBSDKLoginConfiguration; - -typedef NS_ENUM(NSUInteger, LoginBehavior) { LoginBehaviorBrowser }; -typedef NS_ENUM(NSUInteger, DefaultAudience) { DefaultAudienceFriends }; - -typedef void (^LoginManagerLoginResultBlock)(LoginManagerLoginResult *_Nullable result, - NSError *_Nullable error); - -@interface LoginManager : NSObject - -@property (assign, nonatomic) LoginBehavior loginBehavior; -@property (assign, nonatomic) DefaultAudience defaultAudience; - -- (void)logInWithPermissions:(NSArray *)permissions - fromViewController:(nullable UIViewController *)fromViewController - handler:(nullable LoginManagerLoginResultBlock)handler -NS_SWIFT_NAME(logIn(permissions:from:handler:)); - -- (void)logInFromViewController:(nullable UIViewController *)viewController - configuration:(FBSDKLoginConfiguration *)configuration - completion:(LoginManagerLoginResultBlock)completion -NS_REFINED_FOR_SWIFT; - -@end - -#else +#if !TARGET_OS_TV @class FBSDKLoginManagerLoginResult; -/// typedef for FBSDKLoginAuthType -typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType); - -/// Rerequest -FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest; - -/// Reauthorize -FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize; - /** - Describes the call back to the FBSDKLoginManager + Describes the call back to the FBSDKLoginManager @param result the result of the authorization @param error the authorization error, if any. */ -typedef void (^FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result, - NSError *_Nullable error) +typedef void (^ FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result, + NSError *_Nullable error) NS_SWIFT_NAME(LoginManagerLoginResultBlock); - /** FBSDKDefaultAudience enum @@ -92,18 +35,17 @@ NS_SWIFT_NAME(LoginManagerLoginResultBlock); publication ceiling for the application. This enumerated value allows the application to select which audience to ask the user to grant publish permission for. */ -typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) -{ - /** Indicates that the user's friends are able to see posts made by the application */ +typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) { + /// Indicates that the user's friends are able to see posts made by the application FBSDKDefaultAudienceFriends = 0, - /** Indicates that only the user is able to see posts made by the application */ + /// Indicates that only the user is able to see posts made by the application FBSDKDefaultAudienceOnlyMe, - /** Indicates that all Facebook users are able to see posts made by the application */ + /// Indicates that all Facebook users are able to see posts made by the application FBSDKDefaultAudienceEveryone, } NS_SWIFT_NAME(DefaultAudience); /** - `FBSDKLoginManager` provides methods for logging the user in and out. + `FBSDKLoginManager` provides methods for logging the user in and out. `FBSDKLoginManager` serves to help manage sessions represented by tokens for authentication, `AuthenticationToken`, and data access, `AccessToken`. @@ -119,15 +61,11 @@ NS_SWIFT_NAME(LoginManager) @interface FBSDKLoginManager : NSObject /** - Auth type - */ -@property (strong, nonatomic) FBSDKLoginAuthType authType; -/** - the default audience. + the default audience. you should set this if you intend to ask for publish permissions. */ -@property (assign, nonatomic) FBSDKDefaultAudience defaultAudience; +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; /** Logs the user in or authorizes additional permissions. @@ -148,10 +86,13 @@ NS_SWIFT_NAME(LoginManager) on a previous login attempt will result in an error. @warning This method will present a UI to the user and thus should be called on the main thread. */ + +// UNCRUSTIFY_FORMAT_OFF - (void)logInWithPermissions:(NSArray *)permissions fromViewController:(nullable UIViewController *)fromViewController handler:(nullable FBSDKLoginManagerLoginResultBlock)handler NS_SWIFT_NAME(logIn(permissions:from:handler:)); +// UNCRUSTIFY_FORMAT_ON /** Logs the user in or authorizes additional permissions. @@ -175,21 +116,7 @@ NS_SWIFT_NAME(logIn(permissions:from:handler:)); - (void)logInFromViewController:(nullable UIViewController *)viewController configuration:(FBSDKLoginConfiguration *)configuration completion:(FBSDKLoginManagerLoginResultBlock)completion -NS_REFINED_FOR_SWIFT; - -/** - Logs the user in with the given deep link url. Will only log user in if the given url contains valid login data. - @param url the deep link url - @param handler the callback. - -This method will present a UI to the user and thus should be called on the main thread. -This method should be called with the url from the openURL method. - - @warning This method will present a UI to the user and thus should be called on the main thread. - */ -- (void)logInWithURL:(NSURL *)url - handler:(nullable FBSDKLoginManagerLoginResultBlock)handler -NS_SWIFT_NAME(logIn(url:handler:)); + NS_REFINED_FOR_SWIFT; /** Requests user's permission to reathorize application's data access, after it has expired due to inactivity. @@ -207,12 +134,15 @@ user based on any declined permissions. @warning This method will reauthorize using a `LoginConfiguration` with `FBSDKLoginTracking` set to `.enabled`. @warning This method will present UI the user. You typically should call this if `AccessToken.isDataAccessExpired` is true. */ + +// UNCRUSTIFY_FORMAT_OFF - (void)reauthorizeDataAccess:(UIViewController *)fromViewController handler:(FBSDKLoginManagerLoginResultBlock)handler NS_SWIFT_NAME(reauthorizeDataAccess(from:handler:)); +// UNCRUSTIFY_FORMAT_ON /** - Logs the user out + Logs the user out This nils out the singleton instances of `AccessToken` `AuthenticationToken` and `Profle`. diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h new file mode 100644 index 00000000..21df36e9 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/// Describes the result of a login attempt. +NS_SWIFT_NAME(LoginManagerLoginResult) +@interface FBSDKLoginManagerLoginResult : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// the access token. +@property (nullable, nonatomic, copy) FBSDKAccessToken *token; + +/// the authentication token. +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +/// whether the login was cancelled by the user. +@property (nonatomic, readonly) BOOL isCancelled; + +/** + the set of permissions granted by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *grantedPermissions; + +/** + the set of permissions declined by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *declinedPermissions; + +/** + Initializes a new instance. + @param token the access token + @param authenticationToken the authentication token + @param isCancelled whether the login was cancelled by the user + @param grantedPermissions the set of granted permissions + @param declinedPermissions the set of declined permissions + */ +- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token + authenticationToken:(nullable FBSDKAuthenticationToken *)authenticationToken + isCancelled:(BOOL)isCancelled + grantedPermissions:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions + NS_DESIGNATED_INITIALIZER; +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h new file mode 100644 index 00000000..c703f57b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginTooltipViewDelegate; + +/** + Represents a tooltip to be displayed next to a Facebook login button + to highlight features for new users. + + The `FBSDKLoginButton` may display this view automatically. If you do + not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods + as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. + + By default, the `FBSDKLoginTooltipView` is not added to the superview until it is + determined the app has migrated to the new login experience. You can override this + (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. + */ +NS_SWIFT_NAME(FBLoginTooltipView) +@interface FBSDKLoginTooltipView : FBSDKTooltipView + +/// the delegate +@property (nonatomic, weak) id delegate; + +/** if set to YES, the view will always be displayed and the delegate's + `loginTooltipView:shouldAppear:` will NOT be called. */ +@property (nonatomic, getter = shouldForceDisplay, assign) BOOL forceDisplay; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h new file mode 100644 index 00000000..9d609430 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event + notifications from `FBSDKLoginTooltipView` objects. + */ +NS_SWIFT_NAME(LoginTooltipViewDelegate) +@protocol FBSDKLoginTooltipViewDelegate + +@optional + +/** + Asks the delegate if the tooltip view should appear + + @param view The tooltip view. + @param appIsEligible The value fetched from the server identifying if the app + is eligible for the new login experience. + + Use this method to customize display behavior. + */ +- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; + +/** + Tells the delegate the tooltip view will appear, specifically after it's been + added to the super view but before the fade in animation. + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; + +/** + Tells the delegate the tooltip view will not appear (i.e., was not + added to the super view). + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h similarity index 55% rename from ios/platform/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h index eee01c7b..ab8bab05 100644 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h @@ -1,26 +1,16 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import #if !TARGET_OS_TV -#import + #import NS_ASSUME_NONNULL_BEGIN @@ -29,11 +19,10 @@ NS_ASSUME_NONNULL_BEGIN Passed on construction to determine arrow orientation. */ -typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) -{ - /** View is located above given point, arrow is pointing down. */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) { + /// View is located above given point, arrow is pointing down. FBSDKTooltipViewArrowDirectionDown = 0, - /** View is located below given point, arrow is pointing up. */ + /// View is located below given point, arrow is pointing up. FBSDKTooltipViewArrowDirectionUp = 1, } NS_SWIFT_NAME(FBTooltipView.ArrowDirection); @@ -42,51 +31,43 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) Passed on construction to determine color styling. */ -typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle) -{ - /** Light blue background, white text, faded blue close button. */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle) { + /// Light blue background, white text, faded blue close button. FBSDKTooltipColorStyleFriendlyBlue = 0, - /** Dark gray background, white text, light gray close button. */ + /// Dark gray background, white text, light gray close button. FBSDKTooltipColorStyleNeutralGray = 1, } NS_SWIFT_NAME(FBTooltipView.ColorStyle); /** - - Tooltip bubble with text in it used to display tips for UI elements, + Tooltip bubble with text in it used to display tips for UI elements, with a pointed arrow (to refer to the UI element). - - The tooltip fades in and will automatically fade out. See `displayDuration`. */ NS_SWIFT_NAME(FBTooltipView) @interface FBSDKTooltipView : UIView /** - Gets or sets the amount of time in seconds the tooltip should be displayed. + Gets or sets the amount of time in seconds the tooltip should be displayed. Set this to zero to make the display permanent until explicitly dismissed. Defaults to six seconds. */ @property (nonatomic, assign) CFTimeInterval displayDuration; /** - Gets or sets the color style after initialization. + Gets or sets the color style after initialization. Defaults to value passed to -initWithTagline:message:colorStyle:. */ @property (nonatomic, assign) FBSDKTooltipColorStyle colorStyle; -/** - Gets or sets the message. - */ -@property (nonatomic, copy, nullable) NSString *message; +/// Gets or sets the message. +@property (nullable, nonatomic, copy) NSString *message; -/** - Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). - */ -@property (nonatomic, copy, nullable) NSString *tagline; +/// Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). +@property (nullable, nonatomic, copy) NSString *tagline; /** - Designated initializer. + Designated initializer. @param tagline First part of the label, that will be highlighted with different color. Can be nil. @@ -94,27 +75,22 @@ NS_SWIFT_NAME(FBTooltipView) @param colorStyle Color style to use for tooltip. - - If you need to show a tooltip for login, consider using the `FBSDKLoginTooltipView` view. - - @see FBSDKLoginTooltipView + See FBSDKLoginTooltipView */ - (instancetype)initWithTagline:(nullable NSString *)tagline message:(nullable NSString *)message colorStyle:(FBSDKTooltipColorStyle)colorStyle; /** - Show tooltip at the top or at the bottom of given view. + Show tooltip at the top or at the bottom of given view. Tooltip will be added to anchorView.window.rootViewController.view @param anchorView view to show at, must be already added to window view hierarchy, in order to decide where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - tooltip will be shown at the bottom of it) - - Use this method to present the tooltip with automatic positioning or use -presentInView:withArrowPosition:direction: for manual positioning If anchorView is nil or has no window - this method does nothing. @@ -122,7 +98,7 @@ NS_SWIFT_NAME(FBTooltipView) - (void)presentFromView:(UIView *)anchorView; /** - Adds tooltip to given view, with given position and arrow direction. + Adds tooltip to given view, with given position and arrow direction. @param view View to be used as superview. @@ -131,15 +107,16 @@ NS_SWIFT_NAME(FBTooltipView) @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or down (message bubble is above the arrow). */ + +// UNCRUSTIFY_FORMAT_OFF - (void)presentInView:(UIView *)view withArrowPosition:(CGPoint)arrowPosition direction:(FBSDKTooltipViewArrowDirection)arrowDirection NS_SWIFT_NAME(present(in:arrowPosition:direction:)); +// UNCRUSTIFY_FORMAT_ON /** - Remove tooltip manually. - - + Remove tooltip manually. Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. */ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Info.plist b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Info.plist new file mode 100644 index 00000000..bc541ae3 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftdoc similarity index 76% rename from ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftdoc rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftdoc index a70b39c0..38dbfcc8 100644 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftdoc and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 00000000..39d60a33 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,38 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKLoginKit.FBLoginButton { + @_Concurrency.MainActor(unsafe) convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +extension FBSDKLoginKit.LoginConfiguration { + convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString, messengerPageId: Swift.String? = nil, authType: FBSDKLoginKit.LoginAuthType? = .rerequest, codeVerifier: FBSDKLoginKit.CodeVerifier = CodeVerifier()) +} +public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void +@frozen public enum LoginResult { + case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) + case cancelled + case failed(Swift.Error) +} +extension FBSDKLoginKit.LoginManager { + convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) + public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) + public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) + public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/module.modulemap b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/module.modulemap similarity index 100% rename from ios/platform/FBSDKLoginKit.framework/Modules/module.modulemap rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64/FBSDKLoginKit.framework/Modules/module.modulemap diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/FBSDKLoginKit b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/FBSDKLoginKit new file mode 100644 index 00000000..21823aee Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/FBSDKLoginKit differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h new file mode 100644 index 00000000..67250d6f --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a code verifier used in the PKCE (Proof Key for Code Exchange) + process. This is a cryptographically random string using the characters + A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, + underscore, and tilde), between 43 and 128 characters long. + */ +NS_SWIFT_NAME(CodeVerifier) +@interface FBSDKCodeVerifier : NSObject + +/// The string value of the code verifier +@property (nonatomic, readonly, copy) NSString *value; + +/// The SHA256 hashed challenge of the code verifier +@property (nonatomic, readonly, copy) NSString *challenge; + +/** + Attempts to initialize a new code verifier instance with the given string. + Creation will fail and return nil if the string is invalid. + + @param string the code verifier string + */ +- (nullable instancetype)initWithString:(NSString *)string + NS_DESIGNATED_INITIALIZER; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h new file mode 100644 index 00000000..fc08ff25 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the initial response when starting the device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginCodeInfo) +@interface FBSDKDeviceLoginCodeInfo : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The unique id for this login flow. +@property (nonatomic, readonly, copy) NSString *identifier; + +/// The short "user_code" that should be presented to the user. +@property (nonatomic, readonly, copy) NSString *loginCode; + +/// The verification URL. +@property (nonatomic, readonly, copy) NSURL *verificationURL; + +/// The expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// The polling interval +@property (nonatomic, readonly, assign) NSUInteger pollingInterval; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h new file mode 100644 index 00000000..89def803 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKDeviceLoginManagerDelegate; + +/** + Use this class to perform a device login flow. + The device login flow starts by requesting a code from the device login API. + This class informs the delegate when this code is received. You should then present the + code to the user to enter. In the meantime, this class polls the device login API + periodically and informs the delegate of the results. + + See [Facebook Device Login](https://developers.facebook.com/docs/facebook-login/for-devices). + */ +NS_SWIFT_NAME(DeviceLoginManager) +@interface FBSDKDeviceLoginManager : NSObject + +/** + Initializes a new instance. + @param permissions permissions to request. + */ +- (instancetype)initWithPermissions:(NSArray *)permissions + enableSmartLogin:(BOOL)enableSmartLogin; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The delegate. +@property (nonatomic, weak) id delegate; + +/// The requested permissions. +@property (nonatomic, readonly, copy) NSArray *permissions; + +/** + The optional URL to redirect the user to after they complete the login. + The URL must be configured in your App Settings -> Advanced -> OAuth Redirect URIs + */ +@property (nullable, nonatomic, copy) NSURL *redirectURL; + +/** + Starts the device login flow + This instance will retain self until the flow is finished or cancelled. + */ +- (void)start; + +/// Attempts to cancel the device login flow. +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h new file mode 100644 index 00000000..cdcf8048 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKDeviceLoginCodeInfo; +@class FBSDKDeviceLoginManager; +@class FBSDKDeviceLoginManagerResult; + +NS_ASSUME_NONNULL_BEGIN + +/// A delegate for `FBSDKDeviceLoginManager`. +NS_SWIFT_NAME(DeviceLoginManagerDelegate) +@protocol FBSDKDeviceLoginManagerDelegate + +/** + Indicates the device login flow has started. You should parse `codeInfo` to present the code to the user to enter. + @param loginManager the login manager instance. + @param codeInfo the code info data. + */ + +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; + +/** + Indicates the device login flow has finished. + @param loginManager the login manager instance. + @param result the results of the login flow. + @param error the error, if available. + The flow can be finished if the user completed the flow, cancelled, or if the code has expired. + */ +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h new file mode 100644 index 00000000..93266b99 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAccessToken; + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents the results of the a device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginManagerResult) +@interface FBSDKDeviceLoginManagerResult : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The token. +@property (nullable, nonatomic, readonly, strong) FBSDKAccessToken *accessToken; + +/** + Indicates if the login was cancelled by the user, or if the device + login code has expired. + */ +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h new file mode 100644 index 00000000..ebf14f5b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h @@ -0,0 +1,94 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +#if !TARGET_OS_TV + + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginButtonDelegate; +@class FBSDKCodeVerifier; + +/** + NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) + Indicates the desired login tooltip behavior. + */ +typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) { + /** The default behavior. The tooltip will only be displayed if + the app is eligible (determined by possible server round trip) */ + FBSDKLoginButtonTooltipBehaviorAutomatic = 0, + /// Force display of the tooltip (typically for UI testing) + FBSDKLoginButtonTooltipBehaviorForceDisplay = 1, + /** Force disable. In this case you can still exert more refined + control by manually constructing a `FBSDKLoginTooltipView` instance. */ + FBSDKLoginButtonTooltipBehaviorDisable = 2, +} NS_SWIFT_NAME(FBLoginButton.TooltipBehavior); + +/** + A button that initiates a log in or log out flow upon tapping. + + `FBSDKLoginButton` works with `FBSDKProfile.currentProfile` to + determine what to display, and automatically starts authentication when tapped (i.e., + you do not need to manually subscribe action targets). + + Like `FBSDKLoginManager`, you should make sure your app delegate is connected to + `FBSDKApplicationDelegate` in order for the button's delegate to receive messages. + + `FBSDKLoginButton` has a fixed height of @c 30 pixels, but you may change the width. `initWithFrame:CGRectZero` + will size the button to its minimum frame. + */ +NS_SWIFT_NAME(FBLoginButton) +@interface FBSDKLoginButton : FBSDKButton + +/// The default audience to use, if publish permissions are requested at login time. +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; +/// Gets or sets the delegate. +@property (nonatomic, weak) IBOutlet id delegate; +/** + The permissions to request. + To provide the best experience, you should minimize the number of permissions you request, and only ask for them when needed. + For example, do not ask for "user_location" until you the information is actually used by the app. + + Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + + See [the permissions guide]( https://developers.facebook.com/docs/facebook-login/permissions/ ) for more details. + */ +@property (nonatomic, copy) NSArray *permissions; +/// Gets or sets the desired tooltip behavior. +@property (nonatomic, assign) FBSDKLoginButtonTooltipBehavior tooltipBehavior; +/// Gets or sets the desired tooltip color style. +@property (nonatomic, assign) FBSDKTooltipColorStyle tooltipColorStyle; +/// Gets or sets the desired tracking preference to use for login attempts. Defaults to `.enabled` +@property (nonatomic, assign) FBSDKLoginTracking loginTracking; +/** + Gets or sets an optional nonce to use for login attempts. A valid nonce must be a non-empty string without whitespace. + An invalid nonce will not be set. Instead, default unique nonces will be used for login attempts. + */ +@property (nullable, nonatomic, copy) NSString *nonce; +/// Gets or sets an optional page id to use for login attempts. +@property (nullable, nonatomic, copy) NSString *messengerPageId; +/// Gets or sets the auth_type to use in the login request. Defaults to rerequest. +@property (nullable, nonatomic) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic) FBSDKCodeVerifier *codeVerifier; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h new file mode 100644 index 00000000..9ba1ad5d --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + A delegate for `FBSDKLoginButton` + */ +NS_SWIFT_NAME(LoginButtonDelegate) +@protocol FBSDKLoginButtonDelegate + +@required +/** + Sent to the delegate when the button was used to login. + @param loginButton The sender + @param result The results of the login + @param error The error (if any) from the login + */ +- (void) loginButton:(FBSDKLoginButton *)loginButton + didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result + error:(nullable NSError *)error; + +/** + Sent to the delegate when the button was used to logout. + @param loginButton The button that was clicked. + */ +- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; + +@optional +/** + Sent to the delegate when the button is about to login. + @param loginButton The sender + @return YES if the login should be allowed to proceed, NO otherwise + */ +- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h new file mode 100644 index 00000000..5711f029 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h @@ -0,0 +1,182 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import "FBSDKCodeVerifier.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKPermission; + +/// typedef for FBSDKLoginAuthType +/// See: https://developers.facebook.com/docs/reference/javascript/FB.login/v10.0#options +typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType); + +/// Rerequest +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest; + +/// Reauthorize +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize; + +/// The login tracking preference to use for a login attempt. For more information on the differences between +/// `enabled` and `limited` see: https://developers.facebook.com/docs/facebook-login/ios/limited-login/ +typedef NS_ENUM(NSUInteger, FBSDKLoginTracking) { + FBSDKLoginTrackingEnabled, + FBSDKLoginTrackingLimited, +} NS_SWIFT_NAME(LoginTracking); + +/// A configuration to use for modifying the behavior of a login attempt. +NS_SWIFT_NAME(LoginConfiguration) +@interface FBSDKLoginConfiguration : NSObject + +/// The nonce that the configuration was created with. +/// A unique nonce will be used if none is provided to the initializer. +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The tracking preference. Defaults to `.enabled`. +@property (nonatomic, readonly) FBSDKLoginTracking tracking; + +/// The requested permissions for the login attempt. Defaults to an empty set. +@property (nonatomic, readonly, copy) NSSet *requestedPermissions; + +/// The Messenger Page Id associated with this login request. +@property (nullable, nonatomic, readonly, copy) NSString *messengerPageId; + +/// The auth type associated with this login request. +@property (nullable, nonatomic, readonly) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic, readonly) FBSDKCodeVerifier *codeVerifier; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + @param codeVerifier The code verifier used in the PKCE process. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + codeVerifier:(FBSDKCodeVerifier *)codeVerifier + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param tracking the login tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithTracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Given a string, return the corresponding FBSDKLoginAuthType. Returns nil if the string cannot be mapped to a valid auth type + + @param rawValue the raw auth type. + */ ++ (nullable FBSDKLoginAuthType)authTypeForString:(NSString *)rawValue; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h new file mode 100644 index 00000000..aa554432 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKLoginKit + + Error codes from the SDK in the range 300-399 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain +NS_SWIFT_NAME(LoginErrorDomain); + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKLoginError + Error codes for FBSDKLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKLoginError) +{ + /// Reserved. + FBSDKLoginErrorReserved = 300, + + /// The error code for unknown errors. + FBSDKLoginErrorUnknown, + + /// The user's password has changed and must log in again + FBSDKLoginErrorPasswordChanged, + + /// The user must log in to their account on www.facebook.com to restore access + FBSDKLoginErrorUserCheckpointed, + + /// Indicates a failure to request new permissions because the user has changed. + FBSDKLoginErrorUserMismatch, + + /// The user must confirm their account with Facebook before logging in + FBSDKLoginErrorUnconfirmedUser, + + /** + The Accounts framework failed without returning an error, indicating the + app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has + been disabled. + */ + FBSDKLoginErrorSystemAccountAppDisabled, + + /// An error occurred related to Facebook system Account store + FBSDKLoginErrorSystemAccountUnavailable, + + /// The login response was missing a valid challenge string. + FBSDKLoginErrorBadChallengeString, + + /// The ID token returned in login response was invalid + FBSDKLoginErrorInvalidIDToken, + + /// A current access token was required and not provided + FBSDKLoginErrorMissingAccessToken, +} NS_SWIFT_NAME(LoginError); + +/** + FBSDKDeviceLoginError + Error codes for FBSDKDeviceLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { + /// Your device is polling too frequently. + FBSDKDeviceLoginErrorExcessivePolling = 1349172, + /// User has declined to authorize your application. + FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, + /// User has not yet authorized your application. Continue polling. + FBSDKDeviceLoginErrorAuthorizationPending = 1349174, + /// The code you entered has expired. + FBSDKDeviceLoginErrorCodeExpired = 1349152 +} NS_SWIFT_NAME(DeviceLoginError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h similarity index 86% rename from ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h index 0ffeeb2f..13ed46f0 100644 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h @@ -1,6 +1,8 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -184,10 +186,18 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(IBSegueAction) # define IBSegueAction #endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import FBSDKCoreKit; #endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" @@ -201,17 +211,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if __has_attribute(external_source_symbol) # pragma push_macro("any") # undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKLoginKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) # pragma pop_macro("any") #endif + +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + + + + + #if __has_attribute(external_source_symbol) # pragma clang attribute pop #endif #pragma clang diagnostic pop +#endif -#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ -// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -395,10 +437,18 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(IBSegueAction) # define IBSegueAction #endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import FBSDKCoreKit; #endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" @@ -412,13 +462,43 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if __has_attribute(external_source_symbol) # pragma push_macro("any") # undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKLoginKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) # pragma pop_macro("any") #endif + +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + + + + + #if __has_attribute(external_source_symbol) # pragma clang attribute pop #endif #pragma clang diagnostic pop +#endif #endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h new file mode 100644 index 00000000..276a1b9e --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h new file mode 100644 index 00000000..ddf96d24 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h @@ -0,0 +1,157 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKLoginManagerLoginResult; + +/** + Describes the call back to the FBSDKLoginManager + @param result the result of the authorization + @param error the authorization error, if any. + */ +typedef void (^ FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result, + NSError *_Nullable error) +NS_SWIFT_NAME(LoginManagerLoginResultBlock); + +/** + FBSDKDefaultAudience enum + + Passed to openURL to indicate which default audience to use for sessions that post data to Facebook. + + Certain operations such as publishing a status or publishing a photo require an audience. When the user + grants an application permission to perform a publish operation, a default audience is selected as the + publication ceiling for the application. This enumerated value allows the application to select which + audience to ask the user to grant publish permission for. + */ +typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) { + /// Indicates that the user's friends are able to see posts made by the application + FBSDKDefaultAudienceFriends = 0, + /// Indicates that only the user is able to see posts made by the application + FBSDKDefaultAudienceOnlyMe, + /// Indicates that all Facebook users are able to see posts made by the application + FBSDKDefaultAudienceEveryone, +} NS_SWIFT_NAME(DefaultAudience); + +/** + `FBSDKLoginManager` provides methods for logging the user in and out. + + `FBSDKLoginManager` serves to help manage sessions represented by tokens for authentication, + `AuthenticationToken`, and data access, `AccessToken`. + + You should check if the type of token you expect is present as a singleton instance, either `AccessToken.current` + or `AuthenticationToken.current` before calling any of the login methods to see if there is a cached token + available. A standard place to do this is in `viewDidLoad`. + + @warning If you are managing your own token instances outside of `AccessToken.current`, you will need to set + `AccessToken.current` before calling any of the login methods to authorize further permissions on your tokens. + */ +NS_SWIFT_NAME(LoginManager) +@interface FBSDKLoginManager : NSObject + +/** + the default audience. + + you should set this if you intend to ask for publish permissions. + */ +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; + +/** + Logs the user in or authorizes additional permissions. + + @param permissions the optional array of permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param fromViewController the view controller to present from. If nil, the topmost view controller will be + automatically determined as best as possible. + @param handler the callback. + + Use this method when asking for read permissions. You should only ask for permissions when they + are needed and explain the value to the user. You can inspect the `FBSDKLoginManagerLoginResultBlock`'s + `result.declinedPermissions` to provide more information to the user if they decline permissions. + You typically should check if `AccessToken.current` already contains the permissions you need before + asking to reduce unnecessary login attempts. For example, you could perform that check in `viewDidLoad`. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)logInWithPermissions:(NSArray *)permissions + fromViewController:(nullable UIViewController *)fromViewController + handler:(nullable FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(logIn(permissions:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user in or authorizes additional permissions. + + @param viewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param configuration the login configuration to use. + @param completion the login completion handler. + + Use this method when asking for permissions. You should only ask for permissions when they + are needed and the value should be explained to the user. You can inspect the + `FBSDKLoginManagerLoginResultBlock`'s `result.declinedPermissions` to provide more information + to the user if they decline permissions. + To reduce unnecessary login attempts, you should typically check if `AccessToken.current` + already contains the permissions you need. If it does, you probably do not need to call this method. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ +- (void)logInFromViewController:(nullable UIViewController *)viewController + configuration:(FBSDKLoginConfiguration *)configuration + completion:(FBSDKLoginManagerLoginResultBlock)completion + NS_REFINED_FOR_SWIFT; + +/** + Requests user's permission to reathorize application's data access, after it has expired due to inactivity. + @param fromViewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param handler the callback. + +Use this method when you need to reathorize your app's access to user data via the Graph API. +You should only call this after access has expired. +You should provide as much context to the user as possible as to why you need to reauthorize the access, the +scope of access being reathorized, and what added value your app provides when the access is reathorized. +You can inspect the `result.declinedPermissions` to determine if you should provide more information to the +user based on any declined permissions. + + @warning This method will reauthorize using a `LoginConfiguration` with `FBSDKLoginTracking` set to `.enabled`. + @warning This method will present UI the user. You typically should call this if `AccessToken.isDataAccessExpired` is true. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)reauthorizeDataAccess:(UIViewController *)fromViewController + handler:(FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(reauthorizeDataAccess(from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user out + + This nils out the singleton instances of `AccessToken` `AuthenticationToken` and `Profle`. + + @note This is only a client side logout. It will not log the user out of their Facebook account. + */ +- (void)logOut; + +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h new file mode 100644 index 00000000..21df36e9 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/// Describes the result of a login attempt. +NS_SWIFT_NAME(LoginManagerLoginResult) +@interface FBSDKLoginManagerLoginResult : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// the access token. +@property (nullable, nonatomic, copy) FBSDKAccessToken *token; + +/// the authentication token. +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +/// whether the login was cancelled by the user. +@property (nonatomic, readonly) BOOL isCancelled; + +/** + the set of permissions granted by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *grantedPermissions; + +/** + the set of permissions declined by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *declinedPermissions; + +/** + Initializes a new instance. + @param token the access token + @param authenticationToken the authentication token + @param isCancelled whether the login was cancelled by the user + @param grantedPermissions the set of granted permissions + @param declinedPermissions the set of declined permissions + */ +- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token + authenticationToken:(nullable FBSDKAuthenticationToken *)authenticationToken + isCancelled:(BOOL)isCancelled + grantedPermissions:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions + NS_DESIGNATED_INITIALIZER; +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h new file mode 100644 index 00000000..c703f57b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginTooltipViewDelegate; + +/** + Represents a tooltip to be displayed next to a Facebook login button + to highlight features for new users. + + The `FBSDKLoginButton` may display this view automatically. If you do + not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods + as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. + + By default, the `FBSDKLoginTooltipView` is not added to the superview until it is + determined the app has migrated to the new login experience. You can override this + (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. + */ +NS_SWIFT_NAME(FBLoginTooltipView) +@interface FBSDKLoginTooltipView : FBSDKTooltipView + +/// the delegate +@property (nonatomic, weak) id delegate; + +/** if set to YES, the view will always be displayed and the delegate's + `loginTooltipView:shouldAppear:` will NOT be called. */ +@property (nonatomic, getter = shouldForceDisplay, assign) BOOL forceDisplay; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h new file mode 100644 index 00000000..9d609430 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event + notifications from `FBSDKLoginTooltipView` objects. + */ +NS_SWIFT_NAME(LoginTooltipViewDelegate) +@protocol FBSDKLoginTooltipViewDelegate + +@optional + +/** + Asks the delegate if the tooltip view should appear + + @param view The tooltip view. + @param appIsEligible The value fetched from the server identifying if the app + is eligible for the new login experience. + + Use this method to customize display behavior. + */ +- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; + +/** + Tells the delegate the tooltip view will appear, specifically after it's been + added to the super view but before the fade in animation. + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; + +/** + Tells the delegate the tooltip view will not appear (i.e., was not + added to the super view). + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h new file mode 100644 index 00000000..ab8bab05 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h @@ -0,0 +1,129 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKTooltipViewArrowDirection enum + + Passed on construction to determine arrow orientation. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) { + /// View is located above given point, arrow is pointing down. + FBSDKTooltipViewArrowDirectionDown = 0, + /// View is located below given point, arrow is pointing up. + FBSDKTooltipViewArrowDirectionUp = 1, +} NS_SWIFT_NAME(FBTooltipView.ArrowDirection); + +/** + FBSDKTooltipColorStyle enum + + Passed on construction to determine color styling. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle) { + /// Light blue background, white text, faded blue close button. + FBSDKTooltipColorStyleFriendlyBlue = 0, + /// Dark gray background, white text, light gray close button. + FBSDKTooltipColorStyleNeutralGray = 1, +} NS_SWIFT_NAME(FBTooltipView.ColorStyle); + +/** + Tooltip bubble with text in it used to display tips for UI elements, + with a pointed arrow (to refer to the UI element). + + The tooltip fades in and will automatically fade out. See `displayDuration`. + */ +NS_SWIFT_NAME(FBTooltipView) +@interface FBSDKTooltipView : UIView + +/** + Gets or sets the amount of time in seconds the tooltip should be displayed. + Set this to zero to make the display permanent until explicitly dismissed. + Defaults to six seconds. + */ +@property (nonatomic, assign) CFTimeInterval displayDuration; + +/** + Gets or sets the color style after initialization. + Defaults to value passed to -initWithTagline:message:colorStyle:. + */ +@property (nonatomic, assign) FBSDKTooltipColorStyle colorStyle; + +/// Gets or sets the message. +@property (nullable, nonatomic, copy) NSString *message; + +/// Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). +@property (nullable, nonatomic, copy) NSString *tagline; + +/** + Designated initializer. + + @param tagline First part of the label, that will be highlighted with different color. Can be nil. + + @param message Main message to display. + + @param colorStyle Color style to use for tooltip. + + If you need to show a tooltip for login, consider using the `FBSDKLoginTooltipView` view. + + See FBSDKLoginTooltipView + */ +- (instancetype)initWithTagline:(nullable NSString *)tagline + message:(nullable NSString *)message + colorStyle:(FBSDKTooltipColorStyle)colorStyle; + +/** + Show tooltip at the top or at the bottom of given view. + Tooltip will be added to anchorView.window.rootViewController.view + + @param anchorView view to show at, must be already added to window view hierarchy, in order to decide + where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - + tooltip will be shown at the bottom of it) + + Use this method to present the tooltip with automatic positioning or + use -presentInView:withArrowPosition:direction: for manual positioning + If anchorView is nil or has no window - this method does nothing. + */ +- (void)presentFromView:(UIView *)anchorView; + +/** + Adds tooltip to given view, with given position and arrow direction. + + @param view View to be used as superview. + + @param arrowPosition Point in view's cordinates, where arrow will be pointing + + @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or + down (message bubble is above the arrow). + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)presentInView:(UIView *)view + withArrowPosition:(CGPoint)arrowPosition + direction:(FBSDKTooltipViewArrowDirection)arrowDirection +NS_SWIFT_NAME(present(in:arrowPosition:direction:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Remove tooltip manually. + + Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. + */ +- (void)dismiss; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc similarity index 76% rename from ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftdoc rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc index 11504351..1548ee9f 100644 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm.swiftdoc and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..c8825503 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface @@ -0,0 +1,38 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKLoginKit.FBLoginButton { + @_Concurrency.MainActor(unsafe) convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +extension FBSDKLoginKit.LoginConfiguration { + convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString, messengerPageId: Swift.String? = nil, authType: FBSDKLoginKit.LoginAuthType? = .rerequest, codeVerifier: FBSDKLoginKit.CodeVerifier = CodeVerifier()) +} +public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void +@frozen public enum LoginResult { + case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) + case cancelled + case failed(Swift.Error) +} +extension FBSDKLoginKit.LoginManager { + convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) + public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) + public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) + public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc similarity index 76% rename from ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftdoc rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc index a70b39c0..6ad4389d 100644 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64.swiftdoc and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..c261218e --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface @@ -0,0 +1,38 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKLoginKit.FBLoginButton { + @_Concurrency.MainActor(unsafe) convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +extension FBSDKLoginKit.LoginConfiguration { + convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString, messengerPageId: Swift.String? = nil, authType: FBSDKLoginKit.LoginAuthType? = .rerequest, codeVerifier: FBSDKLoginKit.CodeVerifier = CodeVerifier()) +} +public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void +@frozen public enum LoginResult { + case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) + case cancelled + case failed(Swift.Error) +} +extension FBSDKLoginKit.LoginManager { + convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) + public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) + public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) + public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/module.modulemap b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..de53eb21 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKLoginKit { + umbrella header "FBSDKLoginKit.h" + + export * + module * { export * } +} + +module FBSDKLoginKit.Swift { + header "FBSDKLoginKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Resources/Info.plist b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Resources/Info.plist new file mode 100644 index 00000000..bf8bfca4 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKLoginKit.framework/Resources/Info.plist @@ -0,0 +1,52 @@ + + + + + BuildMachineOSBuild + 21D62 + CFBundleDevelopmentRegion + en + CFBundleExecutable + FBSDKLoginKit + CFBundleIdentifier + com.facebook.sdk.FBSDKLoginKit + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FBSDKLoginKit + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 13.1.0 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 13E113 + DTPlatformName + macosx + DTPlatformVersion + 12.3 + DTSDKBuild + 21E226 + DTSDKName + macosx12.3 + DTXcode + 1330 + DTXcodeBuild + 13E113 + LSMinimumSystemVersion + 10.15 + UIDeviceFamily + + 2 + + + diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/FBSDKLoginKit b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/FBSDKLoginKit new file mode 100644 index 00000000..51697877 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/FBSDKLoginKit differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h new file mode 100644 index 00000000..67250d6f --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a code verifier used in the PKCE (Proof Key for Code Exchange) + process. This is a cryptographically random string using the characters + A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, + underscore, and tilde), between 43 and 128 characters long. + */ +NS_SWIFT_NAME(CodeVerifier) +@interface FBSDKCodeVerifier : NSObject + +/// The string value of the code verifier +@property (nonatomic, readonly, copy) NSString *value; + +/// The SHA256 hashed challenge of the code verifier +@property (nonatomic, readonly, copy) NSString *challenge; + +/** + Attempts to initialize a new code verifier instance with the given string. + Creation will fail and return nil if the string is invalid. + + @param string the code verifier string + */ +- (nullable instancetype)initWithString:(NSString *)string + NS_DESIGNATED_INITIALIZER; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h new file mode 100644 index 00000000..fc08ff25 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the initial response when starting the device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginCodeInfo) +@interface FBSDKDeviceLoginCodeInfo : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The unique id for this login flow. +@property (nonatomic, readonly, copy) NSString *identifier; + +/// The short "user_code" that should be presented to the user. +@property (nonatomic, readonly, copy) NSString *loginCode; + +/// The verification URL. +@property (nonatomic, readonly, copy) NSURL *verificationURL; + +/// The expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// The polling interval +@property (nonatomic, readonly, assign) NSUInteger pollingInterval; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h new file mode 100644 index 00000000..89def803 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKDeviceLoginManagerDelegate; + +/** + Use this class to perform a device login flow. + The device login flow starts by requesting a code from the device login API. + This class informs the delegate when this code is received. You should then present the + code to the user to enter. In the meantime, this class polls the device login API + periodically and informs the delegate of the results. + + See [Facebook Device Login](https://developers.facebook.com/docs/facebook-login/for-devices). + */ +NS_SWIFT_NAME(DeviceLoginManager) +@interface FBSDKDeviceLoginManager : NSObject + +/** + Initializes a new instance. + @param permissions permissions to request. + */ +- (instancetype)initWithPermissions:(NSArray *)permissions + enableSmartLogin:(BOOL)enableSmartLogin; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The delegate. +@property (nonatomic, weak) id delegate; + +/// The requested permissions. +@property (nonatomic, readonly, copy) NSArray *permissions; + +/** + The optional URL to redirect the user to after they complete the login. + The URL must be configured in your App Settings -> Advanced -> OAuth Redirect URIs + */ +@property (nullable, nonatomic, copy) NSURL *redirectURL; + +/** + Starts the device login flow + This instance will retain self until the flow is finished or cancelled. + */ +- (void)start; + +/// Attempts to cancel the device login flow. +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h new file mode 100644 index 00000000..cdcf8048 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKDeviceLoginCodeInfo; +@class FBSDKDeviceLoginManager; +@class FBSDKDeviceLoginManagerResult; + +NS_ASSUME_NONNULL_BEGIN + +/// A delegate for `FBSDKDeviceLoginManager`. +NS_SWIFT_NAME(DeviceLoginManagerDelegate) +@protocol FBSDKDeviceLoginManagerDelegate + +/** + Indicates the device login flow has started. You should parse `codeInfo` to present the code to the user to enter. + @param loginManager the login manager instance. + @param codeInfo the code info data. + */ + +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; + +/** + Indicates the device login flow has finished. + @param loginManager the login manager instance. + @param result the results of the login flow. + @param error the error, if available. + The flow can be finished if the user completed the flow, cancelled, or if the code has expired. + */ +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h new file mode 100644 index 00000000..93266b99 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAccessToken; + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents the results of the a device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginManagerResult) +@interface FBSDKDeviceLoginManagerResult : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The token. +@property (nullable, nonatomic, readonly, strong) FBSDKAccessToken *accessToken; + +/** + Indicates if the login was cancelled by the user, or if the device + login code has expired. + */ +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h new file mode 100644 index 00000000..ebf14f5b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h @@ -0,0 +1,94 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +#if !TARGET_OS_TV + + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginButtonDelegate; +@class FBSDKCodeVerifier; + +/** + NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) + Indicates the desired login tooltip behavior. + */ +typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) { + /** The default behavior. The tooltip will only be displayed if + the app is eligible (determined by possible server round trip) */ + FBSDKLoginButtonTooltipBehaviorAutomatic = 0, + /// Force display of the tooltip (typically for UI testing) + FBSDKLoginButtonTooltipBehaviorForceDisplay = 1, + /** Force disable. In this case you can still exert more refined + control by manually constructing a `FBSDKLoginTooltipView` instance. */ + FBSDKLoginButtonTooltipBehaviorDisable = 2, +} NS_SWIFT_NAME(FBLoginButton.TooltipBehavior); + +/** + A button that initiates a log in or log out flow upon tapping. + + `FBSDKLoginButton` works with `FBSDKProfile.currentProfile` to + determine what to display, and automatically starts authentication when tapped (i.e., + you do not need to manually subscribe action targets). + + Like `FBSDKLoginManager`, you should make sure your app delegate is connected to + `FBSDKApplicationDelegate` in order for the button's delegate to receive messages. + + `FBSDKLoginButton` has a fixed height of @c 30 pixels, but you may change the width. `initWithFrame:CGRectZero` + will size the button to its minimum frame. + */ +NS_SWIFT_NAME(FBLoginButton) +@interface FBSDKLoginButton : FBSDKButton + +/// The default audience to use, if publish permissions are requested at login time. +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; +/// Gets or sets the delegate. +@property (nonatomic, weak) IBOutlet id delegate; +/** + The permissions to request. + To provide the best experience, you should minimize the number of permissions you request, and only ask for them when needed. + For example, do not ask for "user_location" until you the information is actually used by the app. + + Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + + See [the permissions guide]( https://developers.facebook.com/docs/facebook-login/permissions/ ) for more details. + */ +@property (nonatomic, copy) NSArray *permissions; +/// Gets or sets the desired tooltip behavior. +@property (nonatomic, assign) FBSDKLoginButtonTooltipBehavior tooltipBehavior; +/// Gets or sets the desired tooltip color style. +@property (nonatomic, assign) FBSDKTooltipColorStyle tooltipColorStyle; +/// Gets or sets the desired tracking preference to use for login attempts. Defaults to `.enabled` +@property (nonatomic, assign) FBSDKLoginTracking loginTracking; +/** + Gets or sets an optional nonce to use for login attempts. A valid nonce must be a non-empty string without whitespace. + An invalid nonce will not be set. Instead, default unique nonces will be used for login attempts. + */ +@property (nullable, nonatomic, copy) NSString *nonce; +/// Gets or sets an optional page id to use for login attempts. +@property (nullable, nonatomic, copy) NSString *messengerPageId; +/// Gets or sets the auth_type to use in the login request. Defaults to rerequest. +@property (nullable, nonatomic) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic) FBSDKCodeVerifier *codeVerifier; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h new file mode 100644 index 00000000..9ba1ad5d --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + A delegate for `FBSDKLoginButton` + */ +NS_SWIFT_NAME(LoginButtonDelegate) +@protocol FBSDKLoginButtonDelegate + +@required +/** + Sent to the delegate when the button was used to login. + @param loginButton The sender + @param result The results of the login + @param error The error (if any) from the login + */ +- (void) loginButton:(FBSDKLoginButton *)loginButton + didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result + error:(nullable NSError *)error; + +/** + Sent to the delegate when the button was used to logout. + @param loginButton The button that was clicked. + */ +- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; + +@optional +/** + Sent to the delegate when the button is about to login. + @param loginButton The sender + @return YES if the login should be allowed to proceed, NO otherwise + */ +- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h new file mode 100644 index 00000000..5711f029 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h @@ -0,0 +1,182 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import "FBSDKCodeVerifier.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKPermission; + +/// typedef for FBSDKLoginAuthType +/// See: https://developers.facebook.com/docs/reference/javascript/FB.login/v10.0#options +typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType); + +/// Rerequest +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest; + +/// Reauthorize +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize; + +/// The login tracking preference to use for a login attempt. For more information on the differences between +/// `enabled` and `limited` see: https://developers.facebook.com/docs/facebook-login/ios/limited-login/ +typedef NS_ENUM(NSUInteger, FBSDKLoginTracking) { + FBSDKLoginTrackingEnabled, + FBSDKLoginTrackingLimited, +} NS_SWIFT_NAME(LoginTracking); + +/// A configuration to use for modifying the behavior of a login attempt. +NS_SWIFT_NAME(LoginConfiguration) +@interface FBSDKLoginConfiguration : NSObject + +/// The nonce that the configuration was created with. +/// A unique nonce will be used if none is provided to the initializer. +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The tracking preference. Defaults to `.enabled`. +@property (nonatomic, readonly) FBSDKLoginTracking tracking; + +/// The requested permissions for the login attempt. Defaults to an empty set. +@property (nonatomic, readonly, copy) NSSet *requestedPermissions; + +/// The Messenger Page Id associated with this login request. +@property (nullable, nonatomic, readonly, copy) NSString *messengerPageId; + +/// The auth type associated with this login request. +@property (nullable, nonatomic, readonly) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic, readonly) FBSDKCodeVerifier *codeVerifier; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + @param codeVerifier The code verifier used in the PKCE process. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + codeVerifier:(FBSDKCodeVerifier *)codeVerifier + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param tracking the login tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithTracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Given a string, return the corresponding FBSDKLoginAuthType. Returns nil if the string cannot be mapped to a valid auth type + + @param rawValue the raw auth type. + */ ++ (nullable FBSDKLoginAuthType)authTypeForString:(NSString *)rawValue; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h new file mode 100644 index 00000000..aa554432 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKLoginKit + + Error codes from the SDK in the range 300-399 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain +NS_SWIFT_NAME(LoginErrorDomain); + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKLoginError + Error codes for FBSDKLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKLoginError) +{ + /// Reserved. + FBSDKLoginErrorReserved = 300, + + /// The error code for unknown errors. + FBSDKLoginErrorUnknown, + + /// The user's password has changed and must log in again + FBSDKLoginErrorPasswordChanged, + + /// The user must log in to their account on www.facebook.com to restore access + FBSDKLoginErrorUserCheckpointed, + + /// Indicates a failure to request new permissions because the user has changed. + FBSDKLoginErrorUserMismatch, + + /// The user must confirm their account with Facebook before logging in + FBSDKLoginErrorUnconfirmedUser, + + /** + The Accounts framework failed without returning an error, indicating the + app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has + been disabled. + */ + FBSDKLoginErrorSystemAccountAppDisabled, + + /// An error occurred related to Facebook system Account store + FBSDKLoginErrorSystemAccountUnavailable, + + /// The login response was missing a valid challenge string. + FBSDKLoginErrorBadChallengeString, + + /// The ID token returned in login response was invalid + FBSDKLoginErrorInvalidIDToken, + + /// A current access token was required and not provided + FBSDKLoginErrorMissingAccessToken, +} NS_SWIFT_NAME(LoginError); + +/** + FBSDKDeviceLoginError + Error codes for FBSDKDeviceLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { + /// Your device is polling too frequently. + FBSDKDeviceLoginErrorExcessivePolling = 1349172, + /// User has declined to authorize your application. + FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, + /// User has not yet authorized your application. Continue polling. + FBSDKDeviceLoginErrorAuthorizationPending = 1349174, + /// The code you entered has expired. + FBSDKDeviceLoginErrorCodeExpired = 1349152 +} NS_SWIFT_NAME(DeviceLoginError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h similarity index 85% rename from ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h index 0ffe4a84..13ed46f0 100644 --- a/ios/platform/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h @@ -1,6 +1,8 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -184,14 +186,20 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(IBSegueAction) # define IBSegueAction #endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import FBSDKCoreKit; #endif -#import - #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -203,11 +211,36 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if __has_attribute(external_source_symbol) # pragma push_macro("any") # undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKLoginKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) # pragma pop_macro("any") #endif +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + + @@ -215,9 +248,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # pragma clang attribute pop #endif #pragma clang diagnostic pop +#endif -#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ -// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -401,14 +437,20 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(IBSegueAction) # define IBSegueAction #endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import FBSDKCoreKit; #endif -#import - #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -420,11 +462,36 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if __has_attribute(external_source_symbol) # pragma push_macro("any") # undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKCoreKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKLoginKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) # pragma pop_macro("any") #endif +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + + @@ -432,5 +499,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # pragma clang attribute pop #endif #pragma clang diagnostic pop +#endif #endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h new file mode 100644 index 00000000..276a1b9e --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h new file mode 100644 index 00000000..ddf96d24 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h @@ -0,0 +1,157 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKLoginManagerLoginResult; + +/** + Describes the call back to the FBSDKLoginManager + @param result the result of the authorization + @param error the authorization error, if any. + */ +typedef void (^ FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result, + NSError *_Nullable error) +NS_SWIFT_NAME(LoginManagerLoginResultBlock); + +/** + FBSDKDefaultAudience enum + + Passed to openURL to indicate which default audience to use for sessions that post data to Facebook. + + Certain operations such as publishing a status or publishing a photo require an audience. When the user + grants an application permission to perform a publish operation, a default audience is selected as the + publication ceiling for the application. This enumerated value allows the application to select which + audience to ask the user to grant publish permission for. + */ +typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) { + /// Indicates that the user's friends are able to see posts made by the application + FBSDKDefaultAudienceFriends = 0, + /// Indicates that only the user is able to see posts made by the application + FBSDKDefaultAudienceOnlyMe, + /// Indicates that all Facebook users are able to see posts made by the application + FBSDKDefaultAudienceEveryone, +} NS_SWIFT_NAME(DefaultAudience); + +/** + `FBSDKLoginManager` provides methods for logging the user in and out. + + `FBSDKLoginManager` serves to help manage sessions represented by tokens for authentication, + `AuthenticationToken`, and data access, `AccessToken`. + + You should check if the type of token you expect is present as a singleton instance, either `AccessToken.current` + or `AuthenticationToken.current` before calling any of the login methods to see if there is a cached token + available. A standard place to do this is in `viewDidLoad`. + + @warning If you are managing your own token instances outside of `AccessToken.current`, you will need to set + `AccessToken.current` before calling any of the login methods to authorize further permissions on your tokens. + */ +NS_SWIFT_NAME(LoginManager) +@interface FBSDKLoginManager : NSObject + +/** + the default audience. + + you should set this if you intend to ask for publish permissions. + */ +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; + +/** + Logs the user in or authorizes additional permissions. + + @param permissions the optional array of permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param fromViewController the view controller to present from. If nil, the topmost view controller will be + automatically determined as best as possible. + @param handler the callback. + + Use this method when asking for read permissions. You should only ask for permissions when they + are needed and explain the value to the user. You can inspect the `FBSDKLoginManagerLoginResultBlock`'s + `result.declinedPermissions` to provide more information to the user if they decline permissions. + You typically should check if `AccessToken.current` already contains the permissions you need before + asking to reduce unnecessary login attempts. For example, you could perform that check in `viewDidLoad`. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)logInWithPermissions:(NSArray *)permissions + fromViewController:(nullable UIViewController *)fromViewController + handler:(nullable FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(logIn(permissions:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user in or authorizes additional permissions. + + @param viewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param configuration the login configuration to use. + @param completion the login completion handler. + + Use this method when asking for permissions. You should only ask for permissions when they + are needed and the value should be explained to the user. You can inspect the + `FBSDKLoginManagerLoginResultBlock`'s `result.declinedPermissions` to provide more information + to the user if they decline permissions. + To reduce unnecessary login attempts, you should typically check if `AccessToken.current` + already contains the permissions you need. If it does, you probably do not need to call this method. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ +- (void)logInFromViewController:(nullable UIViewController *)viewController + configuration:(FBSDKLoginConfiguration *)configuration + completion:(FBSDKLoginManagerLoginResultBlock)completion + NS_REFINED_FOR_SWIFT; + +/** + Requests user's permission to reathorize application's data access, after it has expired due to inactivity. + @param fromViewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param handler the callback. + +Use this method when you need to reathorize your app's access to user data via the Graph API. +You should only call this after access has expired. +You should provide as much context to the user as possible as to why you need to reauthorize the access, the +scope of access being reathorized, and what added value your app provides when the access is reathorized. +You can inspect the `result.declinedPermissions` to determine if you should provide more information to the +user based on any declined permissions. + + @warning This method will reauthorize using a `LoginConfiguration` with `FBSDKLoginTracking` set to `.enabled`. + @warning This method will present UI the user. You typically should call this if `AccessToken.isDataAccessExpired` is true. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)reauthorizeDataAccess:(UIViewController *)fromViewController + handler:(FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(reauthorizeDataAccess(from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user out + + This nils out the singleton instances of `AccessToken` `AuthenticationToken` and `Profle`. + + @note This is only a client side logout. It will not log the user out of their Facebook account. + */ +- (void)logOut; + +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h new file mode 100644 index 00000000..21df36e9 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/// Describes the result of a login attempt. +NS_SWIFT_NAME(LoginManagerLoginResult) +@interface FBSDKLoginManagerLoginResult : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// the access token. +@property (nullable, nonatomic, copy) FBSDKAccessToken *token; + +/// the authentication token. +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +/// whether the login was cancelled by the user. +@property (nonatomic, readonly) BOOL isCancelled; + +/** + the set of permissions granted by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *grantedPermissions; + +/** + the set of permissions declined by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *declinedPermissions; + +/** + Initializes a new instance. + @param token the access token + @param authenticationToken the authentication token + @param isCancelled whether the login was cancelled by the user + @param grantedPermissions the set of granted permissions + @param declinedPermissions the set of declined permissions + */ +- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token + authenticationToken:(nullable FBSDKAuthenticationToken *)authenticationToken + isCancelled:(BOOL)isCancelled + grantedPermissions:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions + NS_DESIGNATED_INITIALIZER; +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h new file mode 100644 index 00000000..c703f57b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginTooltipViewDelegate; + +/** + Represents a tooltip to be displayed next to a Facebook login button + to highlight features for new users. + + The `FBSDKLoginButton` may display this view automatically. If you do + not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods + as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. + + By default, the `FBSDKLoginTooltipView` is not added to the superview until it is + determined the app has migrated to the new login experience. You can override this + (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. + */ +NS_SWIFT_NAME(FBLoginTooltipView) +@interface FBSDKLoginTooltipView : FBSDKTooltipView + +/// the delegate +@property (nonatomic, weak) id delegate; + +/** if set to YES, the view will always be displayed and the delegate's + `loginTooltipView:shouldAppear:` will NOT be called. */ +@property (nonatomic, getter = shouldForceDisplay, assign) BOOL forceDisplay; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h new file mode 100644 index 00000000..9d609430 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event + notifications from `FBSDKLoginTooltipView` objects. + */ +NS_SWIFT_NAME(LoginTooltipViewDelegate) +@protocol FBSDKLoginTooltipViewDelegate + +@optional + +/** + Asks the delegate if the tooltip view should appear + + @param view The tooltip view. + @param appIsEligible The value fetched from the server identifying if the app + is eligible for the new login experience. + + Use this method to customize display behavior. + */ +- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; + +/** + Tells the delegate the tooltip view will appear, specifically after it's been + added to the super view but before the fade in animation. + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; + +/** + Tells the delegate the tooltip view will not appear (i.e., was not + added to the super view). + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h new file mode 100644 index 00000000..ab8bab05 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h @@ -0,0 +1,129 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKTooltipViewArrowDirection enum + + Passed on construction to determine arrow orientation. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) { + /// View is located above given point, arrow is pointing down. + FBSDKTooltipViewArrowDirectionDown = 0, + /// View is located below given point, arrow is pointing up. + FBSDKTooltipViewArrowDirectionUp = 1, +} NS_SWIFT_NAME(FBTooltipView.ArrowDirection); + +/** + FBSDKTooltipColorStyle enum + + Passed on construction to determine color styling. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle) { + /// Light blue background, white text, faded blue close button. + FBSDKTooltipColorStyleFriendlyBlue = 0, + /// Dark gray background, white text, light gray close button. + FBSDKTooltipColorStyleNeutralGray = 1, +} NS_SWIFT_NAME(FBTooltipView.ColorStyle); + +/** + Tooltip bubble with text in it used to display tips for UI elements, + with a pointed arrow (to refer to the UI element). + + The tooltip fades in and will automatically fade out. See `displayDuration`. + */ +NS_SWIFT_NAME(FBTooltipView) +@interface FBSDKTooltipView : UIView + +/** + Gets or sets the amount of time in seconds the tooltip should be displayed. + Set this to zero to make the display permanent until explicitly dismissed. + Defaults to six seconds. + */ +@property (nonatomic, assign) CFTimeInterval displayDuration; + +/** + Gets or sets the color style after initialization. + Defaults to value passed to -initWithTagline:message:colorStyle:. + */ +@property (nonatomic, assign) FBSDKTooltipColorStyle colorStyle; + +/// Gets or sets the message. +@property (nullable, nonatomic, copy) NSString *message; + +/// Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). +@property (nullable, nonatomic, copy) NSString *tagline; + +/** + Designated initializer. + + @param tagline First part of the label, that will be highlighted with different color. Can be nil. + + @param message Main message to display. + + @param colorStyle Color style to use for tooltip. + + If you need to show a tooltip for login, consider using the `FBSDKLoginTooltipView` view. + + See FBSDKLoginTooltipView + */ +- (instancetype)initWithTagline:(nullable NSString *)tagline + message:(nullable NSString *)message + colorStyle:(FBSDKTooltipColorStyle)colorStyle; + +/** + Show tooltip at the top or at the bottom of given view. + Tooltip will be added to anchorView.window.rootViewController.view + + @param anchorView view to show at, must be already added to window view hierarchy, in order to decide + where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - + tooltip will be shown at the bottom of it) + + Use this method to present the tooltip with automatic positioning or + use -presentInView:withArrowPosition:direction: for manual positioning + If anchorView is nil or has no window - this method does nothing. + */ +- (void)presentFromView:(UIView *)anchorView; + +/** + Adds tooltip to given view, with given position and arrow direction. + + @param view View to be used as superview. + + @param arrowPosition Point in view's cordinates, where arrow will be pointing + + @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or + down (message bubble is above the arrow). + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)presentInView:(UIView *)view + withArrowPosition:(CGPoint)arrowPosition + direction:(FBSDKTooltipViewArrowDirection)arrowDirection +NS_SWIFT_NAME(present(in:arrowPosition:direction:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Remove tooltip manually. + + Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. + */ +- (void)dismiss; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Info.plist b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Info.plist new file mode 100644 index 00000000..63a35511 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc similarity index 76% rename from ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftdoc rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc index 11504351..87e64c2e 100644 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/armv7-apple-ios.swiftdoc and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..1bd5d968 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -0,0 +1,38 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKLoginKit.FBLoginButton { + @_Concurrency.MainActor(unsafe) convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +extension FBSDKLoginKit.LoginConfiguration { + convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString, messengerPageId: Swift.String? = nil, authType: FBSDKLoginKit.LoginAuthType? = .rerequest, codeVerifier: FBSDKLoginKit.CodeVerifier = CodeVerifier()) +} +public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void +@frozen public enum LoginResult { + case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) + case cancelled + case failed(Swift.Error) +} +extension FBSDKLoginKit.LoginManager { + convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) + public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) + public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) + public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc similarity index 76% rename from ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc rename to ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index ed65a819..75fbbe6b 100644 Binary files a/ios/platform/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..63423ac0 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,38 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKLoginKit.FBLoginButton { + @_Concurrency.MainActor(unsafe) convenience public init(frame: CoreGraphics.CGRect = .zero, permissions: [FBSDKCoreKit.Permission] = [.publicProfile]) +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +extension FBSDKLoginKit.LoginConfiguration { + convenience public init?(permissions: Swift.Set = [], tracking: FBSDKLoginKit.LoginTracking = .enabled, nonce: Swift.String = UUID().uuidString, messengerPageId: Swift.String? = nil, authType: FBSDKLoginKit.LoginAuthType? = .rerequest, codeVerifier: FBSDKLoginKit.CodeVerifier = CodeVerifier()) +} +public typealias LoginResultBlock = (FBSDKLoginKit.LoginResult) -> Swift.Void +@frozen public enum LoginResult { + case success(granted: Swift.Set, declined: Swift.Set, token: FBSDKCoreKit.AccessToken?) + case cancelled + case failed(Swift.Error) +} +extension FBSDKLoginKit.LoginManager { + convenience public init(defaultAudience: FBSDKLoginKit.DefaultAudience = .friends) + public func logIn(permissions: [FBSDKCoreKit.Permission] = [.publicProfile], viewController: UIKit.UIViewController? = nil, completion: FBSDKLoginKit.LoginResultBlock? = nil) + public func logIn(viewController: UIKit.UIViewController? = nil, configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) + public func logIn(configuration: FBSDKLoginKit.LoginConfiguration, completion: @escaping FBSDKLoginKit.LoginResultBlock) +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/module.modulemap b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..de53eb21 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKLoginKit { + umbrella header "FBSDKLoginKit.h" + + export * + module * { export * } +} + +module FBSDKLoginKit.Swift { + header "FBSDKLoginKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeDirectory b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeDirectory new file mode 100644 index 00000000..63d34dd3 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeDirectory differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements new file mode 100644 index 00000000..dbf9d614 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements-1 b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 00000000..082f98b0 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeResources b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..8ec08ffb --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeResources @@ -0,0 +1,447 @@ + + + + + files + + Headers/FBSDKCodeVerifier.h + + EjPHvLMqGbP/vUT9DPNoJJuyWAo= + + Headers/FBSDKDeviceLoginCodeInfo.h + + FXtwVMamqT11doLljBddZfXdSN4= + + Headers/FBSDKDeviceLoginManager.h + + uD4FVlO9bIJ1fR4+nlGBS1+Iyno= + + Headers/FBSDKDeviceLoginManagerDelegate.h + + hY/wg20i+M+NFVer6d3an7JfcP0= + + Headers/FBSDKDeviceLoginManagerResult.h + + 5ZIzt8USCIvWtanSVwUd08QOKpw= + + Headers/FBSDKLoginButton.h + + ASZ+KP7aEFmgdLD/AUvn7nbFwls= + + Headers/FBSDKLoginButtonDelegate.h + + BRcZixw9+/gs3seuR9cLlDHo6FE= + + Headers/FBSDKLoginConfiguration.h + + MuFc+hq69ENcihV3WlvAvj+pwO4= + + Headers/FBSDKLoginConstants.h + + MPfHPqxSclz/yRUCIFSiHttaiIE= + + Headers/FBSDKLoginKit-Swift.h + + RVvA3JWcSKIgi31dkeGNpuNDN2M= + + Headers/FBSDKLoginKit.h + + A49rEuXcIliMrYbtnWqQ1izFxOE= + + Headers/FBSDKLoginManager.h + + 5Q8kFbHEhBPSHVxNB4WLe4CmpHk= + + Headers/FBSDKLoginManagerLoginResult.h + + dLNZGf9Q4o1RMToPN2NatvHKj/E= + + Headers/FBSDKLoginTooltipView.h + + lqBCv5OIAQGg0a9VvMVQafx/0oE= + + Headers/FBSDKLoginTooltipViewDelegate.h + + mkidijks/G9jwN7xSa/cxtEyq1A= + + Headers/FBSDKTooltipView.h + + Azg+uzHoPWlUAbPTg3eXaCXhgok= + + Info.plist + + 0E3OutGRtFOqbtP/sAEAqcxpe24= + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + edU8VcduSSmNVCtNDZAVnryiDDo= + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + k9UiPNku1bFs+H7rR57DPwo7iWE= + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + t2a2nZPu4C0D1AQNPJhxwQDNfZ8= + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + tQaKuAkXW1iUVXzeUMwdFY0XU2E= + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + moQNiCXnPeP1ljd+oZdyazxq+gU= + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + WdhmAj4EwebAwVaLaJ6ra7PtPrQ= + + Modules/module.modulemap + + tfc04nZSIwhoHV/QsoW1UgsqZrM= + + + files2 + + Headers/FBSDKCodeVerifier.h + + hash + + EjPHvLMqGbP/vUT9DPNoJJuyWAo= + + hash2 + + TT1hvLT7CD93434WRpckoVDjq/IxyTaGc58KDH/Riw4= + + + Headers/FBSDKDeviceLoginCodeInfo.h + + hash + + FXtwVMamqT11doLljBddZfXdSN4= + + hash2 + + g5Rwb6XgmK+lz75XESEgOIetBB/BS9DOpWgyhvRDpZg= + + + Headers/FBSDKDeviceLoginManager.h + + hash + + uD4FVlO9bIJ1fR4+nlGBS1+Iyno= + + hash2 + + v4dQNFbtB6k/JBptSYTCub0GAQvz63TBwZgcwUu0Xg4= + + + Headers/FBSDKDeviceLoginManagerDelegate.h + + hash + + hY/wg20i+M+NFVer6d3an7JfcP0= + + hash2 + + JhcXcmGyXN2YV183sGawyEtz/A4HgiGfuaH6F4xQAMk= + + + Headers/FBSDKDeviceLoginManagerResult.h + + hash + + 5ZIzt8USCIvWtanSVwUd08QOKpw= + + hash2 + + 9So69KdlNzNSmMcFA/ZxVMrlETnJJM35bb6QSIb6f7s= + + + Headers/FBSDKLoginButton.h + + hash + + ASZ+KP7aEFmgdLD/AUvn7nbFwls= + + hash2 + + 9Xp4Z3Lji4FXKIaxM0lURsNOUpGVR1amIi8pLSr6G1E= + + + Headers/FBSDKLoginButtonDelegate.h + + hash + + BRcZixw9+/gs3seuR9cLlDHo6FE= + + hash2 + + DXde9B2nfwMBfkPDM2j13yFQTlyv4W2/LOXrzmg6GqQ= + + + Headers/FBSDKLoginConfiguration.h + + hash + + MuFc+hq69ENcihV3WlvAvj+pwO4= + + hash2 + + SzvBiDHYzoRZDQcXUWG9Vm5kFVm06oWsYbzWv/zfpYo= + + + Headers/FBSDKLoginConstants.h + + hash + + MPfHPqxSclz/yRUCIFSiHttaiIE= + + hash2 + + b4XDaENl+R7u4kCcB7RCYie6oPCP8dwvUe92f5RzDz8= + + + Headers/FBSDKLoginKit-Swift.h + + hash + + RVvA3JWcSKIgi31dkeGNpuNDN2M= + + hash2 + + 07LLBQOeId1aez4secJE0bN38yamBdemXeNRS/575PI= + + + Headers/FBSDKLoginKit.h + + hash + + A49rEuXcIliMrYbtnWqQ1izFxOE= + + hash2 + + mBLoAmVhuGhunAeuNCawsBXjAkan6H0PhYCTQcnLotA= + + + Headers/FBSDKLoginManager.h + + hash + + 5Q8kFbHEhBPSHVxNB4WLe4CmpHk= + + hash2 + + ZvAioZqjVmieR5INO6CttC5lGC6yj1fL4owYzoktjSc= + + + Headers/FBSDKLoginManagerLoginResult.h + + hash + + dLNZGf9Q4o1RMToPN2NatvHKj/E= + + hash2 + + ZvH4brMd8ozOL8xV55KSpnX4vgUabuG4R9rp/WbAL8g= + + + Headers/FBSDKLoginTooltipView.h + + hash + + lqBCv5OIAQGg0a9VvMVQafx/0oE= + + hash2 + + LARd9poj4pkMqmAsIay5DV4seppcLTgUqKysGr4VwHw= + + + Headers/FBSDKLoginTooltipViewDelegate.h + + hash + + mkidijks/G9jwN7xSa/cxtEyq1A= + + hash2 + + RD5LXdo3q7UGvx+j1hQeKPY/sOu3SfdIA4pJMs0Rd7A= + + + Headers/FBSDKTooltipView.h + + hash + + Azg+uzHoPWlUAbPTg3eXaCXhgok= + + hash2 + + rQrJFU+VFezXq6XJ07u0l1iicG5RbRD30K87A3VS4hs= + + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + hash + + edU8VcduSSmNVCtNDZAVnryiDDo= + + hash2 + + lTxQ+ujoWb0GbQH9GPDUhneMXvCqeDHt85UZWOoXEo4= + + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + hash + + k9UiPNku1bFs+H7rR57DPwo7iWE= + + hash2 + + Ke3dLcKLDR4+82tn0x9WcvKzb3Sum4Yv5c+58X7wQ0k= + + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + hash + + t2a2nZPu4C0D1AQNPJhxwQDNfZ8= + + hash2 + + vE/eQnf4iqTEd11Kggxa3br4nyVWHbhJvGFOc7k6c9g= + + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + hash + + tQaKuAkXW1iUVXzeUMwdFY0XU2E= + + hash2 + + 4zW7iNhLJgV+OFaR2F1VYPpViBq2rFqfCwjqi0aAjOA= + + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + hash + + moQNiCXnPeP1ljd+oZdyazxq+gU= + + hash2 + + TNID0K0Vp194/2jX3o132MmNAfi3jPg3L1gHvkAg8l0= + + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + hash + + WdhmAj4EwebAwVaLaJ6ra7PtPrQ= + + hash2 + + M9K5yteR9kWLOvctXtrAvjxUfddc8FRyayDIswSXKwc= + + + Modules/module.modulemap + + hash + + tfc04nZSIwhoHV/QsoW1UgsqZrM= + + hash2 + + mg/tLWcmTWvzzkcRtPQSnONw1PhzIM4vXke4Qdm7upM= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeSignature b/ios/platform/FBSDKLoginKit.xcframework/ios-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeSignature new file mode 100644 index 00000000..e69de29b diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/FBSDKLoginKit b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/FBSDKLoginKit new file mode 100644 index 00000000..203af4eb Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/FBSDKLoginKit differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h new file mode 100644 index 00000000..67250d6f --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a code verifier used in the PKCE (Proof Key for Code Exchange) + process. This is a cryptographically random string using the characters + A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, + underscore, and tilde), between 43 and 128 characters long. + */ +NS_SWIFT_NAME(CodeVerifier) +@interface FBSDKCodeVerifier : NSObject + +/// The string value of the code verifier +@property (nonatomic, readonly, copy) NSString *value; + +/// The SHA256 hashed challenge of the code verifier +@property (nonatomic, readonly, copy) NSString *challenge; + +/** + Attempts to initialize a new code verifier instance with the given string. + Creation will fail and return nil if the string is invalid. + + @param string the code verifier string + */ +- (nullable instancetype)initWithString:(NSString *)string + NS_DESIGNATED_INITIALIZER; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h new file mode 100644 index 00000000..fc08ff25 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the initial response when starting the device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginCodeInfo) +@interface FBSDKDeviceLoginCodeInfo : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The unique id for this login flow. +@property (nonatomic, readonly, copy) NSString *identifier; + +/// The short "user_code" that should be presented to the user. +@property (nonatomic, readonly, copy) NSString *loginCode; + +/// The verification URL. +@property (nonatomic, readonly, copy) NSURL *verificationURL; + +/// The expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// The polling interval +@property (nonatomic, readonly, assign) NSUInteger pollingInterval; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h new file mode 100644 index 00000000..89def803 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKDeviceLoginManagerDelegate; + +/** + Use this class to perform a device login flow. + The device login flow starts by requesting a code from the device login API. + This class informs the delegate when this code is received. You should then present the + code to the user to enter. In the meantime, this class polls the device login API + periodically and informs the delegate of the results. + + See [Facebook Device Login](https://developers.facebook.com/docs/facebook-login/for-devices). + */ +NS_SWIFT_NAME(DeviceLoginManager) +@interface FBSDKDeviceLoginManager : NSObject + +/** + Initializes a new instance. + @param permissions permissions to request. + */ +- (instancetype)initWithPermissions:(NSArray *)permissions + enableSmartLogin:(BOOL)enableSmartLogin; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The delegate. +@property (nonatomic, weak) id delegate; + +/// The requested permissions. +@property (nonatomic, readonly, copy) NSArray *permissions; + +/** + The optional URL to redirect the user to after they complete the login. + The URL must be configured in your App Settings -> Advanced -> OAuth Redirect URIs + */ +@property (nullable, nonatomic, copy) NSURL *redirectURL; + +/** + Starts the device login flow + This instance will retain self until the flow is finished or cancelled. + */ +- (void)start; + +/// Attempts to cancel the device login flow. +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h new file mode 100644 index 00000000..cdcf8048 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKDeviceLoginCodeInfo; +@class FBSDKDeviceLoginManager; +@class FBSDKDeviceLoginManagerResult; + +NS_ASSUME_NONNULL_BEGIN + +/// A delegate for `FBSDKDeviceLoginManager`. +NS_SWIFT_NAME(DeviceLoginManagerDelegate) +@protocol FBSDKDeviceLoginManagerDelegate + +/** + Indicates the device login flow has started. You should parse `codeInfo` to present the code to the user to enter. + @param loginManager the login manager instance. + @param codeInfo the code info data. + */ + +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; + +/** + Indicates the device login flow has finished. + @param loginManager the login manager instance. + @param result the results of the login flow. + @param error the error, if available. + The flow can be finished if the user completed the flow, cancelled, or if the code has expired. + */ +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h new file mode 100644 index 00000000..93266b99 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAccessToken; + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents the results of the a device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginManagerResult) +@interface FBSDKDeviceLoginManagerResult : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The token. +@property (nullable, nonatomic, readonly, strong) FBSDKAccessToken *accessToken; + +/** + Indicates if the login was cancelled by the user, or if the device + login code has expired. + */ +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h new file mode 100644 index 00000000..ebf14f5b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h @@ -0,0 +1,94 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +#if !TARGET_OS_TV + + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginButtonDelegate; +@class FBSDKCodeVerifier; + +/** + NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) + Indicates the desired login tooltip behavior. + */ +typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) { + /** The default behavior. The tooltip will only be displayed if + the app is eligible (determined by possible server round trip) */ + FBSDKLoginButtonTooltipBehaviorAutomatic = 0, + /// Force display of the tooltip (typically for UI testing) + FBSDKLoginButtonTooltipBehaviorForceDisplay = 1, + /** Force disable. In this case you can still exert more refined + control by manually constructing a `FBSDKLoginTooltipView` instance. */ + FBSDKLoginButtonTooltipBehaviorDisable = 2, +} NS_SWIFT_NAME(FBLoginButton.TooltipBehavior); + +/** + A button that initiates a log in or log out flow upon tapping. + + `FBSDKLoginButton` works with `FBSDKProfile.currentProfile` to + determine what to display, and automatically starts authentication when tapped (i.e., + you do not need to manually subscribe action targets). + + Like `FBSDKLoginManager`, you should make sure your app delegate is connected to + `FBSDKApplicationDelegate` in order for the button's delegate to receive messages. + + `FBSDKLoginButton` has a fixed height of @c 30 pixels, but you may change the width. `initWithFrame:CGRectZero` + will size the button to its minimum frame. + */ +NS_SWIFT_NAME(FBLoginButton) +@interface FBSDKLoginButton : FBSDKButton + +/// The default audience to use, if publish permissions are requested at login time. +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; +/// Gets or sets the delegate. +@property (nonatomic, weak) IBOutlet id delegate; +/** + The permissions to request. + To provide the best experience, you should minimize the number of permissions you request, and only ask for them when needed. + For example, do not ask for "user_location" until you the information is actually used by the app. + + Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + + See [the permissions guide]( https://developers.facebook.com/docs/facebook-login/permissions/ ) for more details. + */ +@property (nonatomic, copy) NSArray *permissions; +/// Gets or sets the desired tooltip behavior. +@property (nonatomic, assign) FBSDKLoginButtonTooltipBehavior tooltipBehavior; +/// Gets or sets the desired tooltip color style. +@property (nonatomic, assign) FBSDKTooltipColorStyle tooltipColorStyle; +/// Gets or sets the desired tracking preference to use for login attempts. Defaults to `.enabled` +@property (nonatomic, assign) FBSDKLoginTracking loginTracking; +/** + Gets or sets an optional nonce to use for login attempts. A valid nonce must be a non-empty string without whitespace. + An invalid nonce will not be set. Instead, default unique nonces will be used for login attempts. + */ +@property (nullable, nonatomic, copy) NSString *nonce; +/// Gets or sets an optional page id to use for login attempts. +@property (nullable, nonatomic, copy) NSString *messengerPageId; +/// Gets or sets the auth_type to use in the login request. Defaults to rerequest. +@property (nullable, nonatomic) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic) FBSDKCodeVerifier *codeVerifier; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h new file mode 100644 index 00000000..9ba1ad5d --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + A delegate for `FBSDKLoginButton` + */ +NS_SWIFT_NAME(LoginButtonDelegate) +@protocol FBSDKLoginButtonDelegate + +@required +/** + Sent to the delegate when the button was used to login. + @param loginButton The sender + @param result The results of the login + @param error The error (if any) from the login + */ +- (void) loginButton:(FBSDKLoginButton *)loginButton + didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result + error:(nullable NSError *)error; + +/** + Sent to the delegate when the button was used to logout. + @param loginButton The button that was clicked. + */ +- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; + +@optional +/** + Sent to the delegate when the button is about to login. + @param loginButton The sender + @return YES if the login should be allowed to proceed, NO otherwise + */ +- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h new file mode 100644 index 00000000..5711f029 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h @@ -0,0 +1,182 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import "FBSDKCodeVerifier.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKPermission; + +/// typedef for FBSDKLoginAuthType +/// See: https://developers.facebook.com/docs/reference/javascript/FB.login/v10.0#options +typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType); + +/// Rerequest +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest; + +/// Reauthorize +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize; + +/// The login tracking preference to use for a login attempt. For more information on the differences between +/// `enabled` and `limited` see: https://developers.facebook.com/docs/facebook-login/ios/limited-login/ +typedef NS_ENUM(NSUInteger, FBSDKLoginTracking) { + FBSDKLoginTrackingEnabled, + FBSDKLoginTrackingLimited, +} NS_SWIFT_NAME(LoginTracking); + +/// A configuration to use for modifying the behavior of a login attempt. +NS_SWIFT_NAME(LoginConfiguration) +@interface FBSDKLoginConfiguration : NSObject + +/// The nonce that the configuration was created with. +/// A unique nonce will be used if none is provided to the initializer. +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The tracking preference. Defaults to `.enabled`. +@property (nonatomic, readonly) FBSDKLoginTracking tracking; + +/// The requested permissions for the login attempt. Defaults to an empty set. +@property (nonatomic, readonly, copy) NSSet *requestedPermissions; + +/// The Messenger Page Id associated with this login request. +@property (nullable, nonatomic, readonly, copy) NSString *messengerPageId; + +/// The auth type associated with this login request. +@property (nullable, nonatomic, readonly) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic, readonly) FBSDKCodeVerifier *codeVerifier; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + @param codeVerifier The code verifier used in the PKCE process. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + codeVerifier:(FBSDKCodeVerifier *)codeVerifier + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param tracking the login tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithTracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Given a string, return the corresponding FBSDKLoginAuthType. Returns nil if the string cannot be mapped to a valid auth type + + @param rawValue the raw auth type. + */ ++ (nullable FBSDKLoginAuthType)authTypeForString:(NSString *)rawValue; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h new file mode 100644 index 00000000..aa554432 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKLoginKit + + Error codes from the SDK in the range 300-399 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain +NS_SWIFT_NAME(LoginErrorDomain); + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKLoginError + Error codes for FBSDKLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKLoginError) +{ + /// Reserved. + FBSDKLoginErrorReserved = 300, + + /// The error code for unknown errors. + FBSDKLoginErrorUnknown, + + /// The user's password has changed and must log in again + FBSDKLoginErrorPasswordChanged, + + /// The user must log in to their account on www.facebook.com to restore access + FBSDKLoginErrorUserCheckpointed, + + /// Indicates a failure to request new permissions because the user has changed. + FBSDKLoginErrorUserMismatch, + + /// The user must confirm their account with Facebook before logging in + FBSDKLoginErrorUnconfirmedUser, + + /** + The Accounts framework failed without returning an error, indicating the + app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has + been disabled. + */ + FBSDKLoginErrorSystemAccountAppDisabled, + + /// An error occurred related to Facebook system Account store + FBSDKLoginErrorSystemAccountUnavailable, + + /// The login response was missing a valid challenge string. + FBSDKLoginErrorBadChallengeString, + + /// The ID token returned in login response was invalid + FBSDKLoginErrorInvalidIDToken, + + /// A current access token was required and not provided + FBSDKLoginErrorMissingAccessToken, +} NS_SWIFT_NAME(LoginError); + +/** + FBSDKDeviceLoginError + Error codes for FBSDKDeviceLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { + /// Your device is polling too frequently. + FBSDKDeviceLoginErrorExcessivePolling = 1349172, + /// User has declined to authorize your application. + FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, + /// User has not yet authorized your application. Continue polling. + FBSDKDeviceLoginErrorAuthorizationPending = 1349174, + /// The code you entered has expired. + FBSDKDeviceLoginErrorCodeExpired = 1349152 +} NS_SWIFT_NAME(DeviceLoginError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h new file mode 100644 index 00000000..1528df34 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h @@ -0,0 +1,246 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import FBSDKCoreKit; +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKLoginKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h new file mode 100644 index 00000000..276a1b9e --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h new file mode 100644 index 00000000..ddf96d24 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h @@ -0,0 +1,157 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKLoginManagerLoginResult; + +/** + Describes the call back to the FBSDKLoginManager + @param result the result of the authorization + @param error the authorization error, if any. + */ +typedef void (^ FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result, + NSError *_Nullable error) +NS_SWIFT_NAME(LoginManagerLoginResultBlock); + +/** + FBSDKDefaultAudience enum + + Passed to openURL to indicate which default audience to use for sessions that post data to Facebook. + + Certain operations such as publishing a status or publishing a photo require an audience. When the user + grants an application permission to perform a publish operation, a default audience is selected as the + publication ceiling for the application. This enumerated value allows the application to select which + audience to ask the user to grant publish permission for. + */ +typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) { + /// Indicates that the user's friends are able to see posts made by the application + FBSDKDefaultAudienceFriends = 0, + /// Indicates that only the user is able to see posts made by the application + FBSDKDefaultAudienceOnlyMe, + /// Indicates that all Facebook users are able to see posts made by the application + FBSDKDefaultAudienceEveryone, +} NS_SWIFT_NAME(DefaultAudience); + +/** + `FBSDKLoginManager` provides methods for logging the user in and out. + + `FBSDKLoginManager` serves to help manage sessions represented by tokens for authentication, + `AuthenticationToken`, and data access, `AccessToken`. + + You should check if the type of token you expect is present as a singleton instance, either `AccessToken.current` + or `AuthenticationToken.current` before calling any of the login methods to see if there is a cached token + available. A standard place to do this is in `viewDidLoad`. + + @warning If you are managing your own token instances outside of `AccessToken.current`, you will need to set + `AccessToken.current` before calling any of the login methods to authorize further permissions on your tokens. + */ +NS_SWIFT_NAME(LoginManager) +@interface FBSDKLoginManager : NSObject + +/** + the default audience. + + you should set this if you intend to ask for publish permissions. + */ +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; + +/** + Logs the user in or authorizes additional permissions. + + @param permissions the optional array of permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param fromViewController the view controller to present from. If nil, the topmost view controller will be + automatically determined as best as possible. + @param handler the callback. + + Use this method when asking for read permissions. You should only ask for permissions when they + are needed and explain the value to the user. You can inspect the `FBSDKLoginManagerLoginResultBlock`'s + `result.declinedPermissions` to provide more information to the user if they decline permissions. + You typically should check if `AccessToken.current` already contains the permissions you need before + asking to reduce unnecessary login attempts. For example, you could perform that check in `viewDidLoad`. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)logInWithPermissions:(NSArray *)permissions + fromViewController:(nullable UIViewController *)fromViewController + handler:(nullable FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(logIn(permissions:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user in or authorizes additional permissions. + + @param viewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param configuration the login configuration to use. + @param completion the login completion handler. + + Use this method when asking for permissions. You should only ask for permissions when they + are needed and the value should be explained to the user. You can inspect the + `FBSDKLoginManagerLoginResultBlock`'s `result.declinedPermissions` to provide more information + to the user if they decline permissions. + To reduce unnecessary login attempts, you should typically check if `AccessToken.current` + already contains the permissions you need. If it does, you probably do not need to call this method. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ +- (void)logInFromViewController:(nullable UIViewController *)viewController + configuration:(FBSDKLoginConfiguration *)configuration + completion:(FBSDKLoginManagerLoginResultBlock)completion + NS_REFINED_FOR_SWIFT; + +/** + Requests user's permission to reathorize application's data access, after it has expired due to inactivity. + @param fromViewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param handler the callback. + +Use this method when you need to reathorize your app's access to user data via the Graph API. +You should only call this after access has expired. +You should provide as much context to the user as possible as to why you need to reauthorize the access, the +scope of access being reathorized, and what added value your app provides when the access is reathorized. +You can inspect the `result.declinedPermissions` to determine if you should provide more information to the +user based on any declined permissions. + + @warning This method will reauthorize using a `LoginConfiguration` with `FBSDKLoginTracking` set to `.enabled`. + @warning This method will present UI the user. You typically should call this if `AccessToken.isDataAccessExpired` is true. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)reauthorizeDataAccess:(UIViewController *)fromViewController + handler:(FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(reauthorizeDataAccess(from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user out + + This nils out the singleton instances of `AccessToken` `AuthenticationToken` and `Profle`. + + @note This is only a client side logout. It will not log the user out of their Facebook account. + */ +- (void)logOut; + +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h new file mode 100644 index 00000000..21df36e9 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/// Describes the result of a login attempt. +NS_SWIFT_NAME(LoginManagerLoginResult) +@interface FBSDKLoginManagerLoginResult : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// the access token. +@property (nullable, nonatomic, copy) FBSDKAccessToken *token; + +/// the authentication token. +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +/// whether the login was cancelled by the user. +@property (nonatomic, readonly) BOOL isCancelled; + +/** + the set of permissions granted by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *grantedPermissions; + +/** + the set of permissions declined by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *declinedPermissions; + +/** + Initializes a new instance. + @param token the access token + @param authenticationToken the authentication token + @param isCancelled whether the login was cancelled by the user + @param grantedPermissions the set of granted permissions + @param declinedPermissions the set of declined permissions + */ +- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token + authenticationToken:(nullable FBSDKAuthenticationToken *)authenticationToken + isCancelled:(BOOL)isCancelled + grantedPermissions:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions + NS_DESIGNATED_INITIALIZER; +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h new file mode 100644 index 00000000..c703f57b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginTooltipViewDelegate; + +/** + Represents a tooltip to be displayed next to a Facebook login button + to highlight features for new users. + + The `FBSDKLoginButton` may display this view automatically. If you do + not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods + as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. + + By default, the `FBSDKLoginTooltipView` is not added to the superview until it is + determined the app has migrated to the new login experience. You can override this + (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. + */ +NS_SWIFT_NAME(FBLoginTooltipView) +@interface FBSDKLoginTooltipView : FBSDKTooltipView + +/// the delegate +@property (nonatomic, weak) id delegate; + +/** if set to YES, the view will always be displayed and the delegate's + `loginTooltipView:shouldAppear:` will NOT be called. */ +@property (nonatomic, getter = shouldForceDisplay, assign) BOOL forceDisplay; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h new file mode 100644 index 00000000..9d609430 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event + notifications from `FBSDKLoginTooltipView` objects. + */ +NS_SWIFT_NAME(LoginTooltipViewDelegate) +@protocol FBSDKLoginTooltipViewDelegate + +@optional + +/** + Asks the delegate if the tooltip view should appear + + @param view The tooltip view. + @param appIsEligible The value fetched from the server identifying if the app + is eligible for the new login experience. + + Use this method to customize display behavior. + */ +- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; + +/** + Tells the delegate the tooltip view will appear, specifically after it's been + added to the super view but before the fade in animation. + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; + +/** + Tells the delegate the tooltip view will not appear (i.e., was not + added to the super view). + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h new file mode 100644 index 00000000..ab8bab05 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h @@ -0,0 +1,129 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKTooltipViewArrowDirection enum + + Passed on construction to determine arrow orientation. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) { + /// View is located above given point, arrow is pointing down. + FBSDKTooltipViewArrowDirectionDown = 0, + /// View is located below given point, arrow is pointing up. + FBSDKTooltipViewArrowDirectionUp = 1, +} NS_SWIFT_NAME(FBTooltipView.ArrowDirection); + +/** + FBSDKTooltipColorStyle enum + + Passed on construction to determine color styling. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle) { + /// Light blue background, white text, faded blue close button. + FBSDKTooltipColorStyleFriendlyBlue = 0, + /// Dark gray background, white text, light gray close button. + FBSDKTooltipColorStyleNeutralGray = 1, +} NS_SWIFT_NAME(FBTooltipView.ColorStyle); + +/** + Tooltip bubble with text in it used to display tips for UI elements, + with a pointed arrow (to refer to the UI element). + + The tooltip fades in and will automatically fade out. See `displayDuration`. + */ +NS_SWIFT_NAME(FBTooltipView) +@interface FBSDKTooltipView : UIView + +/** + Gets or sets the amount of time in seconds the tooltip should be displayed. + Set this to zero to make the display permanent until explicitly dismissed. + Defaults to six seconds. + */ +@property (nonatomic, assign) CFTimeInterval displayDuration; + +/** + Gets or sets the color style after initialization. + Defaults to value passed to -initWithTagline:message:colorStyle:. + */ +@property (nonatomic, assign) FBSDKTooltipColorStyle colorStyle; + +/// Gets or sets the message. +@property (nullable, nonatomic, copy) NSString *message; + +/// Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). +@property (nullable, nonatomic, copy) NSString *tagline; + +/** + Designated initializer. + + @param tagline First part of the label, that will be highlighted with different color. Can be nil. + + @param message Main message to display. + + @param colorStyle Color style to use for tooltip. + + If you need to show a tooltip for login, consider using the `FBSDKLoginTooltipView` view. + + See FBSDKLoginTooltipView + */ +- (instancetype)initWithTagline:(nullable NSString *)tagline + message:(nullable NSString *)message + colorStyle:(FBSDKTooltipColorStyle)colorStyle; + +/** + Show tooltip at the top or at the bottom of given view. + Tooltip will be added to anchorView.window.rootViewController.view + + @param anchorView view to show at, must be already added to window view hierarchy, in order to decide + where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - + tooltip will be shown at the bottom of it) + + Use this method to present the tooltip with automatic positioning or + use -presentInView:withArrowPosition:direction: for manual positioning + If anchorView is nil or has no window - this method does nothing. + */ +- (void)presentFromView:(UIView *)anchorView; + +/** + Adds tooltip to given view, with given position and arrow direction. + + @param view View to be used as superview. + + @param arrowPosition Point in view's cordinates, where arrow will be pointing + + @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or + down (message bubble is above the arrow). + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)presentInView:(UIView *)view + withArrowPosition:(CGPoint)arrowPosition + direction:(FBSDKTooltipViewArrowDirection)arrowDirection +NS_SWIFT_NAME(present(in:arrowPosition:direction:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Remove tooltip manually. + + Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. + */ +- (void)dismiss; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.framework/Info.plist b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Info.plist similarity index 53% rename from ios/platform/FBSDKLoginKit.framework/Info.plist rename to ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Info.plist index c7e93c75..ca26b5b2 100644 Binary files a/ios/platform/FBSDKLoginKit.framework/Info.plist and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos.swiftdoc new file mode 100644 index 00000000..bcb609e3 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos.swiftinterface new file mode 100644 index 00000000..4866d49b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos.swiftinterface @@ -0,0 +1,20 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/module.modulemap b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..de53eb21 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64/FBSDKLoginKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKLoginKit { + umbrella header "FBSDKLoginKit.h" + + export * + module * { export * } +} + +module FBSDKLoginKit.Swift { + header "FBSDKLoginKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/FBSDKLoginKit b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/FBSDKLoginKit new file mode 100644 index 00000000..a1f20542 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/FBSDKLoginKit differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h new file mode 100644 index 00000000..67250d6f --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKCodeVerifier.h @@ -0,0 +1,45 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a code verifier used in the PKCE (Proof Key for Code Exchange) + process. This is a cryptographically random string using the characters + A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, + underscore, and tilde), between 43 and 128 characters long. + */ +NS_SWIFT_NAME(CodeVerifier) +@interface FBSDKCodeVerifier : NSObject + +/// The string value of the code verifier +@property (nonatomic, readonly, copy) NSString *value; + +/// The SHA256 hashed challenge of the code verifier +@property (nonatomic, readonly, copy) NSString *challenge; + +/** + Attempts to initialize a new code verifier instance with the given string. + Creation will fail and return nil if the string is invalid. + + @param string the code verifier string + */ +- (nullable instancetype)initWithString:(NSString *)string + NS_DESIGNATED_INITIALIZER; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h new file mode 100644 index 00000000..fc08ff25 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the initial response when starting the device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginCodeInfo) +@interface FBSDKDeviceLoginCodeInfo : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The unique id for this login flow. +@property (nonatomic, readonly, copy) NSString *identifier; + +/// The short "user_code" that should be presented to the user. +@property (nonatomic, readonly, copy) NSString *loginCode; + +/// The verification URL. +@property (nonatomic, readonly, copy) NSURL *verificationURL; + +/// The expiration date. +@property (nonatomic, readonly, copy) NSDate *expirationDate; + +/// The polling interval +@property (nonatomic, readonly, assign) NSUInteger pollingInterval; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h new file mode 100644 index 00000000..89def803 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKDeviceLoginManagerDelegate; + +/** + Use this class to perform a device login flow. + The device login flow starts by requesting a code from the device login API. + This class informs the delegate when this code is received. You should then present the + code to the user to enter. In the meantime, this class polls the device login API + periodically and informs the delegate of the results. + + See [Facebook Device Login](https://developers.facebook.com/docs/facebook-login/for-devices). + */ +NS_SWIFT_NAME(DeviceLoginManager) +@interface FBSDKDeviceLoginManager : NSObject + +/** + Initializes a new instance. + @param permissions permissions to request. + */ +- (instancetype)initWithPermissions:(NSArray *)permissions + enableSmartLogin:(BOOL)enableSmartLogin; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The delegate. +@property (nonatomic, weak) id delegate; + +/// The requested permissions. +@property (nonatomic, readonly, copy) NSArray *permissions; + +/** + The optional URL to redirect the user to after they complete the login. + The URL must be configured in your App Settings -> Advanced -> OAuth Redirect URIs + */ +@property (nullable, nonatomic, copy) NSURL *redirectURL; + +/** + Starts the device login flow + This instance will retain self until the flow is finished or cancelled. + */ +- (void)start; + +/// Attempts to cancel the device login flow. +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h new file mode 100644 index 00000000..cdcf8048 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerDelegate.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKDeviceLoginCodeInfo; +@class FBSDKDeviceLoginManager; +@class FBSDKDeviceLoginManagerResult; + +NS_ASSUME_NONNULL_BEGIN + +/// A delegate for `FBSDKDeviceLoginManager`. +NS_SWIFT_NAME(DeviceLoginManagerDelegate) +@protocol FBSDKDeviceLoginManagerDelegate + +/** + Indicates the device login flow has started. You should parse `codeInfo` to present the code to the user to enter. + @param loginManager the login manager instance. + @param codeInfo the code info data. + */ + +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; + +/** + Indicates the device login flow has finished. + @param loginManager the login manager instance. + @param result the results of the login flow. + @param error the error, if available. + The flow can be finished if the user completed the flow, cancelled, or if the code has expired. + */ +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h new file mode 100644 index 00000000..93266b99 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class FBSDKAccessToken; + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents the results of the a device login flow. + This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginManagerResult) +@interface FBSDKDeviceLoginManagerResult : NSObject + +// There is no public initializer. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// The token. +@property (nullable, nonatomic, readonly, strong) FBSDKAccessToken *accessToken; + +/** + Indicates if the login was cancelled by the user, or if the device + login code has expired. + */ +@property (nonatomic, readonly, getter = isCancelled, assign) BOOL cancelled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h new file mode 100644 index 00000000..ebf14f5b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h @@ -0,0 +1,94 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +#if !TARGET_OS_TV + + #import + #import + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginButtonDelegate; +@class FBSDKCodeVerifier; + +/** + NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) + Indicates the desired login tooltip behavior. + */ +typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) { + /** The default behavior. The tooltip will only be displayed if + the app is eligible (determined by possible server round trip) */ + FBSDKLoginButtonTooltipBehaviorAutomatic = 0, + /// Force display of the tooltip (typically for UI testing) + FBSDKLoginButtonTooltipBehaviorForceDisplay = 1, + /** Force disable. In this case you can still exert more refined + control by manually constructing a `FBSDKLoginTooltipView` instance. */ + FBSDKLoginButtonTooltipBehaviorDisable = 2, +} NS_SWIFT_NAME(FBLoginButton.TooltipBehavior); + +/** + A button that initiates a log in or log out flow upon tapping. + + `FBSDKLoginButton` works with `FBSDKProfile.currentProfile` to + determine what to display, and automatically starts authentication when tapped (i.e., + you do not need to manually subscribe action targets). + + Like `FBSDKLoginManager`, you should make sure your app delegate is connected to + `FBSDKApplicationDelegate` in order for the button's delegate to receive messages. + + `FBSDKLoginButton` has a fixed height of @c 30 pixels, but you may change the width. `initWithFrame:CGRectZero` + will size the button to its minimum frame. + */ +NS_SWIFT_NAME(FBLoginButton) +@interface FBSDKLoginButton : FBSDKButton + +/// The default audience to use, if publish permissions are requested at login time. +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; +/// Gets or sets the delegate. +@property (nonatomic, weak) IBOutlet id delegate; +/** + The permissions to request. + To provide the best experience, you should minimize the number of permissions you request, and only ask for them when needed. + For example, do not ask for "user_location" until you the information is actually used by the app. + + Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + + See [the permissions guide]( https://developers.facebook.com/docs/facebook-login/permissions/ ) for more details. + */ +@property (nonatomic, copy) NSArray *permissions; +/// Gets or sets the desired tooltip behavior. +@property (nonatomic, assign) FBSDKLoginButtonTooltipBehavior tooltipBehavior; +/// Gets or sets the desired tooltip color style. +@property (nonatomic, assign) FBSDKTooltipColorStyle tooltipColorStyle; +/// Gets or sets the desired tracking preference to use for login attempts. Defaults to `.enabled` +@property (nonatomic, assign) FBSDKLoginTracking loginTracking; +/** + Gets or sets an optional nonce to use for login attempts. A valid nonce must be a non-empty string without whitespace. + An invalid nonce will not be set. Instead, default unique nonces will be used for login attempts. + */ +@property (nullable, nonatomic, copy) NSString *nonce; +/// Gets or sets an optional page id to use for login attempts. +@property (nullable, nonatomic, copy) NSString *messengerPageId; +/// Gets or sets the auth_type to use in the login request. Defaults to rerequest. +@property (nullable, nonatomic) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic) FBSDKCodeVerifier *codeVerifier; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h new file mode 100644 index 00000000..9ba1ad5d --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginButtonDelegate.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + A delegate for `FBSDKLoginButton` + */ +NS_SWIFT_NAME(LoginButtonDelegate) +@protocol FBSDKLoginButtonDelegate + +@required +/** + Sent to the delegate when the button was used to login. + @param loginButton The sender + @param result The results of the login + @param error The error (if any) from the login + */ +- (void) loginButton:(FBSDKLoginButton *)loginButton + didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result + error:(nullable NSError *)error; + +/** + Sent to the delegate when the button was used to logout. + @param loginButton The button that was clicked. + */ +- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; + +@optional +/** + Sent to the delegate when the button is about to login. + @param loginButton The sender + @return YES if the login should be allowed to proceed, NO otherwise + */ +- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h new file mode 100644 index 00000000..5711f029 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConfiguration.h @@ -0,0 +1,182 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import "FBSDKCodeVerifier.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKPermission; + +/// typedef for FBSDKLoginAuthType +/// See: https://developers.facebook.com/docs/reference/javascript/FB.login/v10.0#options +typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType); + +/// Rerequest +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest; + +/// Reauthorize +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize; + +/// The login tracking preference to use for a login attempt. For more information on the differences between +/// `enabled` and `limited` see: https://developers.facebook.com/docs/facebook-login/ios/limited-login/ +typedef NS_ENUM(NSUInteger, FBSDKLoginTracking) { + FBSDKLoginTrackingEnabled, + FBSDKLoginTrackingLimited, +} NS_SWIFT_NAME(LoginTracking); + +/// A configuration to use for modifying the behavior of a login attempt. +NS_SWIFT_NAME(LoginConfiguration) +@interface FBSDKLoginConfiguration : NSObject + +/// The nonce that the configuration was created with. +/// A unique nonce will be used if none is provided to the initializer. +@property (nonatomic, readonly, copy) NSString *nonce; + +/// The tracking preference. Defaults to `.enabled`. +@property (nonatomic, readonly) FBSDKLoginTracking tracking; + +/// The requested permissions for the login attempt. Defaults to an empty set. +@property (nonatomic, readonly, copy) NSSet *requestedPermissions; + +/// The Messenger Page Id associated with this login request. +@property (nullable, nonatomic, readonly, copy) NSString *messengerPageId; + +/// The auth type associated with this login request. +@property (nullable, nonatomic, readonly) FBSDKLoginAuthType authType; + +/// The code verifier used in the PKCE process. +/// If not provided, a code verifier will be randomly generated. +@property (nonatomic, readonly) FBSDKCodeVerifier *codeVerifier; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for a login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + @param nonce an optional nonce to use for the login attempt. A valid nonce must be a non-empty string without whitespace. + Creation of the configuration will fail if the nonce is invalid. + @param messengerPageId the associated page id to use for a login attempt. + @param authType auth_type param to use for login. + @param codeVerifier The code verifier used in the PKCE process. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + nonce:(NSString *)nonce + messengerPageId:(nullable NSString *)messengerPageId + authType:(nullable FBSDKLoginAuthType)authType + codeVerifier:(FBSDKCodeVerifier *)codeVerifier + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param permissions the requested permissions for the login attempt. Permissions must be an array of strings that do not contain whitespace. + @param tracking the tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithPermissions:(NSArray *)permissions + tracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Attempts to initialize a new configuration with the expected parameters. + + @param tracking the login tracking preference to use for a login attempt. + */ +- (nullable instancetype)initWithTracking:(FBSDKLoginTracking)tracking + NS_REFINED_FOR_SWIFT; + +/** + Given a string, return the corresponding FBSDKLoginAuthType. Returns nil if the string cannot be mapped to a valid auth type + + @param rawValue the raw auth type. + */ ++ (nullable FBSDKLoginAuthType)authTypeForString:(NSString *)rawValue; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h new file mode 100644 index 00000000..aa554432 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h @@ -0,0 +1,86 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKLoginKit + + Error codes from the SDK in the range 300-399 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain +NS_SWIFT_NAME(LoginErrorDomain); + +#ifndef NS_ERROR_ENUM + #define NS_ERROR_ENUM(_domain, _name) \ + enum _name : NSInteger _name; \ + enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKLoginError + Error codes for FBSDKLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKLoginError) +{ + /// Reserved. + FBSDKLoginErrorReserved = 300, + + /// The error code for unknown errors. + FBSDKLoginErrorUnknown, + + /// The user's password has changed and must log in again + FBSDKLoginErrorPasswordChanged, + + /// The user must log in to their account on www.facebook.com to restore access + FBSDKLoginErrorUserCheckpointed, + + /// Indicates a failure to request new permissions because the user has changed. + FBSDKLoginErrorUserMismatch, + + /// The user must confirm their account with Facebook before logging in + FBSDKLoginErrorUnconfirmedUser, + + /** + The Accounts framework failed without returning an error, indicating the + app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has + been disabled. + */ + FBSDKLoginErrorSystemAccountAppDisabled, + + /// An error occurred related to Facebook system Account store + FBSDKLoginErrorSystemAccountUnavailable, + + /// The login response was missing a valid challenge string. + FBSDKLoginErrorBadChallengeString, + + /// The ID token returned in login response was invalid + FBSDKLoginErrorInvalidIDToken, + + /// A current access token was required and not provided + FBSDKLoginErrorMissingAccessToken, +} NS_SWIFT_NAME(LoginError); + +/** + FBSDKDeviceLoginError + Error codes for FBSDKDeviceLoginErrorDomain. + */ +typedef NS_ERROR_ENUM (FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { + /// Your device is polling too frequently. + FBSDKDeviceLoginErrorExcessivePolling = 1349172, + /// User has declined to authorize your application. + FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, + /// User has not yet authorized your application. Continue polling. + FBSDKDeviceLoginErrorAuthorizationPending = 1349174, + /// The code you entered has expired. + FBSDKDeviceLoginErrorCodeExpired = 1349152 +} NS_SWIFT_NAME(DeviceLoginError); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h similarity index 87% rename from ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h rename to ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h index bf41d828..291f3d97 100644 --- a/ios/platform/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h @@ -1,6 +1,8 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -184,14 +186,20 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(IBSegueAction) # define IBSegueAction #endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import FBSDKCoreKit; #endif -#import - #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -207,9 +215,29 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # pragma pop_macro("any") #endif +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end @@ -217,9 +245,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # pragma clang attribute pop #endif #pragma clang diagnostic pop +#endif -#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ -// Generated by Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKLOGINKIT_SWIFT_H +#define FBSDKLOGINKIT_SWIFT_H #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wgcc-compat" @@ -403,14 +434,20 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(IBSegueAction) # define IBSegueAction #endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif #if __has_feature(modules) #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import FBSDKCoreKit; #endif -#import - #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" #if __has_warning("-Wpragma-clang-attribute") @@ -426,9 +463,29 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # pragma pop_macro("any") #endif +@class NSBundle; + +SWIFT_PROTOCOL_NAMED("UserInterfaceStringProviding") +@protocol FBSDKUserInterfaceStringProviding +@property (nonatomic, readonly, strong) NSBundle * _Nonnull bundleForStrings; +@end +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end +@class UIViewController; +@class UIView; + +SWIFT_PROTOCOL_NAMED("UserInterfaceElementProviding") +@protocol FBSDKUserInterfaceElementProviding +- (UIViewController * _Nullable)topMostViewController SWIFT_WARN_UNUSED_RESULT; +- (UIViewController * _Nullable)viewControllerForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKInternalUtility (SWIFT_EXTENSION(FBSDKLoginKit)) +@end @@ -436,5 +493,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # pragma clang attribute pop #endif #pragma clang diagnostic pop +#endif #endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h new file mode 100644 index 00000000..276a1b9e --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h new file mode 100644 index 00000000..ddf96d24 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h @@ -0,0 +1,157 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKLoginManagerLoginResult; + +/** + Describes the call back to the FBSDKLoginManager + @param result the result of the authorization + @param error the authorization error, if any. + */ +typedef void (^ FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result, + NSError *_Nullable error) +NS_SWIFT_NAME(LoginManagerLoginResultBlock); + +/** + FBSDKDefaultAudience enum + + Passed to openURL to indicate which default audience to use for sessions that post data to Facebook. + + Certain operations such as publishing a status or publishing a photo require an audience. When the user + grants an application permission to perform a publish operation, a default audience is selected as the + publication ceiling for the application. This enumerated value allows the application to select which + audience to ask the user to grant publish permission for. + */ +typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) { + /// Indicates that the user's friends are able to see posts made by the application + FBSDKDefaultAudienceFriends = 0, + /// Indicates that only the user is able to see posts made by the application + FBSDKDefaultAudienceOnlyMe, + /// Indicates that all Facebook users are able to see posts made by the application + FBSDKDefaultAudienceEveryone, +} NS_SWIFT_NAME(DefaultAudience); + +/** + `FBSDKLoginManager` provides methods for logging the user in and out. + + `FBSDKLoginManager` serves to help manage sessions represented by tokens for authentication, + `AuthenticationToken`, and data access, `AccessToken`. + + You should check if the type of token you expect is present as a singleton instance, either `AccessToken.current` + or `AuthenticationToken.current` before calling any of the login methods to see if there is a cached token + available. A standard place to do this is in `viewDidLoad`. + + @warning If you are managing your own token instances outside of `AccessToken.current`, you will need to set + `AccessToken.current` before calling any of the login methods to authorize further permissions on your tokens. + */ +NS_SWIFT_NAME(LoginManager) +@interface FBSDKLoginManager : NSObject + +/** + the default audience. + + you should set this if you intend to ask for publish permissions. + */ +@property (nonatomic, assign) FBSDKDefaultAudience defaultAudience; + +/** + Logs the user in or authorizes additional permissions. + + @param permissions the optional array of permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param fromViewController the view controller to present from. If nil, the topmost view controller will be + automatically determined as best as possible. + @param handler the callback. + + Use this method when asking for read permissions. You should only ask for permissions when they + are needed and explain the value to the user. You can inspect the `FBSDKLoginManagerLoginResultBlock`'s + `result.declinedPermissions` to provide more information to the user if they decline permissions. + You typically should check if `AccessToken.current` already contains the permissions you need before + asking to reduce unnecessary login attempts. For example, you could perform that check in `viewDidLoad`. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)logInWithPermissions:(NSArray *)permissions + fromViewController:(nullable UIViewController *)fromViewController + handler:(nullable FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(logIn(permissions:from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user in or authorizes additional permissions. + + @param viewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param configuration the login configuration to use. + @param completion the login completion handler. + + Use this method when asking for permissions. You should only ask for permissions when they + are needed and the value should be explained to the user. You can inspect the + `FBSDKLoginManagerLoginResultBlock`'s `result.declinedPermissions` to provide more information + to the user if they decline permissions. + To reduce unnecessary login attempts, you should typically check if `AccessToken.current` + already contains the permissions you need. If it does, you probably do not need to call this method. + + @warning You can only perform one login call at a time. Calling a login method before the completion handler is called + on a previous login attempt will result in an error. + @warning This method will present a UI to the user and thus should be called on the main thread. + */ +- (void)logInFromViewController:(nullable UIViewController *)viewController + configuration:(FBSDKLoginConfiguration *)configuration + completion:(FBSDKLoginManagerLoginResultBlock)completion + NS_REFINED_FOR_SWIFT; + +/** + Requests user's permission to reathorize application's data access, after it has expired due to inactivity. + @param fromViewController the view controller from which to present the login UI. If nil, the topmost view + controller will be automatically determined and used. + @param handler the callback. + +Use this method when you need to reathorize your app's access to user data via the Graph API. +You should only call this after access has expired. +You should provide as much context to the user as possible as to why you need to reauthorize the access, the +scope of access being reathorized, and what added value your app provides when the access is reathorized. +You can inspect the `result.declinedPermissions` to determine if you should provide more information to the +user based on any declined permissions. + + @warning This method will reauthorize using a `LoginConfiguration` with `FBSDKLoginTracking` set to `.enabled`. + @warning This method will present UI the user. You typically should call this if `AccessToken.isDataAccessExpired` is true. + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)reauthorizeDataAccess:(UIViewController *)fromViewController + handler:(FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(reauthorizeDataAccess(from:handler:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Logs the user out + + This nils out the singleton instances of `AccessToken` `AuthenticationToken` and `Profle`. + + @note This is only a client side logout. It will not log the user out of their Facebook account. + */ +- (void)logOut; + +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h new file mode 100644 index 00000000..21df36e9 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if !TARGET_OS_TV + +@class FBSDKAccessToken; +@class FBSDKAuthenticationToken; + +/// Describes the result of a login attempt. +NS_SWIFT_NAME(LoginManagerLoginResult) +@interface FBSDKLoginManagerLoginResult : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// the access token. +@property (nullable, nonatomic, copy) FBSDKAccessToken *token; + +/// the authentication token. +@property (nullable, nonatomic, copy) FBSDKAuthenticationToken *authenticationToken; + +/// whether the login was cancelled by the user. +@property (nonatomic, readonly) BOOL isCancelled; + +/** + the set of permissions granted by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *grantedPermissions; + +/** + the set of permissions declined by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (nonatomic, copy) NSSet *declinedPermissions; + +/** + Initializes a new instance. + @param token the access token + @param authenticationToken the authentication token + @param isCancelled whether the login was cancelled by the user + @param grantedPermissions the set of granted permissions + @param declinedPermissions the set of declined permissions + */ +- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token + authenticationToken:(nullable FBSDKAuthenticationToken *)authenticationToken + isCancelled:(BOOL)isCancelled + grantedPermissions:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions + NS_DESIGNATED_INITIALIZER; +@end + +#endif + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h new file mode 100644 index 00000000..c703f57b --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + + #import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginTooltipViewDelegate; + +/** + Represents a tooltip to be displayed next to a Facebook login button + to highlight features for new users. + + The `FBSDKLoginButton` may display this view automatically. If you do + not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods + as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. + + By default, the `FBSDKLoginTooltipView` is not added to the superview until it is + determined the app has migrated to the new login experience. You can override this + (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. + */ +NS_SWIFT_NAME(FBLoginTooltipView) +@interface FBSDKLoginTooltipView : FBSDKTooltipView + +/// the delegate +@property (nonatomic, weak) id delegate; + +/** if set to YES, the view will always be displayed and the delegate's + `loginTooltipView:shouldAppear:` will NOT be called. */ +@property (nonatomic, getter = shouldForceDisplay, assign) BOOL forceDisplay; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h new file mode 100644 index 00000000..9d609430 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipViewDelegate.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + +NS_ASSUME_NONNULL_BEGIN + +/** + @protocol + + The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event + notifications from `FBSDKLoginTooltipView` objects. + */ +NS_SWIFT_NAME(LoginTooltipViewDelegate) +@protocol FBSDKLoginTooltipViewDelegate + +@optional + +/** + Asks the delegate if the tooltip view should appear + + @param view The tooltip view. + @param appIsEligible The value fetched from the server identifying if the app + is eligible for the new login experience. + + Use this method to customize display behavior. + */ +- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; + +/** + Tells the delegate the tooltip view will appear, specifically after it's been + added to the super view but before the fade in animation. + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; + +/** + Tells the delegate the tooltip view will not appear (i.e., was not + added to the super view). + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h new file mode 100644 index 00000000..ab8bab05 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h @@ -0,0 +1,129 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#if !TARGET_OS_TV + + #import + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKTooltipViewArrowDirection enum + + Passed on construction to determine arrow orientation. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) { + /// View is located above given point, arrow is pointing down. + FBSDKTooltipViewArrowDirectionDown = 0, + /// View is located below given point, arrow is pointing up. + FBSDKTooltipViewArrowDirectionUp = 1, +} NS_SWIFT_NAME(FBTooltipView.ArrowDirection); + +/** + FBSDKTooltipColorStyle enum + + Passed on construction to determine color styling. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle) { + /// Light blue background, white text, faded blue close button. + FBSDKTooltipColorStyleFriendlyBlue = 0, + /// Dark gray background, white text, light gray close button. + FBSDKTooltipColorStyleNeutralGray = 1, +} NS_SWIFT_NAME(FBTooltipView.ColorStyle); + +/** + Tooltip bubble with text in it used to display tips for UI elements, + with a pointed arrow (to refer to the UI element). + + The tooltip fades in and will automatically fade out. See `displayDuration`. + */ +NS_SWIFT_NAME(FBTooltipView) +@interface FBSDKTooltipView : UIView + +/** + Gets or sets the amount of time in seconds the tooltip should be displayed. + Set this to zero to make the display permanent until explicitly dismissed. + Defaults to six seconds. + */ +@property (nonatomic, assign) CFTimeInterval displayDuration; + +/** + Gets or sets the color style after initialization. + Defaults to value passed to -initWithTagline:message:colorStyle:. + */ +@property (nonatomic, assign) FBSDKTooltipColorStyle colorStyle; + +/// Gets or sets the message. +@property (nullable, nonatomic, copy) NSString *message; + +/// Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). +@property (nullable, nonatomic, copy) NSString *tagline; + +/** + Designated initializer. + + @param tagline First part of the label, that will be highlighted with different color. Can be nil. + + @param message Main message to display. + + @param colorStyle Color style to use for tooltip. + + If you need to show a tooltip for login, consider using the `FBSDKLoginTooltipView` view. + + See FBSDKLoginTooltipView + */ +- (instancetype)initWithTagline:(nullable NSString *)tagline + message:(nullable NSString *)message + colorStyle:(FBSDKTooltipColorStyle)colorStyle; + +/** + Show tooltip at the top or at the bottom of given view. + Tooltip will be added to anchorView.window.rootViewController.view + + @param anchorView view to show at, must be already added to window view hierarchy, in order to decide + where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - + tooltip will be shown at the bottom of it) + + Use this method to present the tooltip with automatic positioning or + use -presentInView:withArrowPosition:direction: for manual positioning + If anchorView is nil or has no window - this method does nothing. + */ +- (void)presentFromView:(UIView *)anchorView; + +/** + Adds tooltip to given view, with given position and arrow direction. + + @param view View to be used as superview. + + @param arrowPosition Point in view's cordinates, where arrow will be pointing + + @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or + down (message bubble is above the arrow). + */ + +// UNCRUSTIFY_FORMAT_OFF +- (void)presentInView:(UIView *)view + withArrowPosition:(CGPoint)arrowPosition + direction:(FBSDKTooltipViewArrowDirection)arrowDirection +NS_SWIFT_NAME(present(in:arrowPosition:direction:)); +// UNCRUSTIFY_FORMAT_ON + +/** + Remove tooltip manually. + + Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. + */ +- (void)dismiss; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Info.plist b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Info.plist new file mode 100644 index 00000000..1cb70756 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..5528772b Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..e69ec848 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,20 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..7752625a Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..08cb6241 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,20 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKLoginKit +import FBSDKCoreKit +@_exported import FBSDKLoginKit +import Foundation +import Swift +import UIKit +import _Concurrency +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceElementProviding { +} +extension FBSDKCoreKit.InternalUtility : FBSDKLoginKit.UserInterfaceStringProviding { +} +@objc(FBSDKUserInterfaceElementProviding) public protocol UserInterfaceElementProviding { + @objc func topMostViewController() -> UIKit.UIViewController? + @objc(viewControllerForView:) func viewController(for view: UIKit.UIView) -> UIKit.UIViewController? +} +@objc(FBSDKUserInterfaceStringProviding) public protocol UserInterfaceStringProviding { + @objc var bundleForStrings: Foundation.Bundle { get } +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/module.modulemap b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..de53eb21 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKLoginKit { + umbrella header "FBSDKLoginKit.h" + + export * + module * { export * } +} + +module FBSDKLoginKit.Swift { + header "FBSDKLoginKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeDirectory b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeDirectory new file mode 100644 index 00000000..b1261389 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeDirectory differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements new file mode 100644 index 00000000..dbf9d614 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements-1 b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 00000000..9f822623 Binary files /dev/null and b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeResources b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..666d2b56 --- /dev/null +++ b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeResources @@ -0,0 +1,447 @@ + + + + + files + + Headers/FBSDKCodeVerifier.h + + EjPHvLMqGbP/vUT9DPNoJJuyWAo= + + Headers/FBSDKDeviceLoginCodeInfo.h + + FXtwVMamqT11doLljBddZfXdSN4= + + Headers/FBSDKDeviceLoginManager.h + + uD4FVlO9bIJ1fR4+nlGBS1+Iyno= + + Headers/FBSDKDeviceLoginManagerDelegate.h + + hY/wg20i+M+NFVer6d3an7JfcP0= + + Headers/FBSDKDeviceLoginManagerResult.h + + 5ZIzt8USCIvWtanSVwUd08QOKpw= + + Headers/FBSDKLoginButton.h + + ASZ+KP7aEFmgdLD/AUvn7nbFwls= + + Headers/FBSDKLoginButtonDelegate.h + + BRcZixw9+/gs3seuR9cLlDHo6FE= + + Headers/FBSDKLoginConfiguration.h + + MuFc+hq69ENcihV3WlvAvj+pwO4= + + Headers/FBSDKLoginConstants.h + + MPfHPqxSclz/yRUCIFSiHttaiIE= + + Headers/FBSDKLoginKit-Swift.h + + 75C0NUYKVDjs+ua3OT+OKe0D2tU= + + Headers/FBSDKLoginKit.h + + A49rEuXcIliMrYbtnWqQ1izFxOE= + + Headers/FBSDKLoginManager.h + + 5Q8kFbHEhBPSHVxNB4WLe4CmpHk= + + Headers/FBSDKLoginManagerLoginResult.h + + dLNZGf9Q4o1RMToPN2NatvHKj/E= + + Headers/FBSDKLoginTooltipView.h + + lqBCv5OIAQGg0a9VvMVQafx/0oE= + + Headers/FBSDKLoginTooltipViewDelegate.h + + mkidijks/G9jwN7xSa/cxtEyq1A= + + Headers/FBSDKTooltipView.h + + Azg+uzHoPWlUAbPTg3eXaCXhgok= + + Info.plist + + hEqZOLVjZ8Qr52SnJ1kvKZpK8Zo= + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + IcrkoFEIpuTIn8Ilo40CxsoRn9A= + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + MTt1m0HF0yAAijn2rik9Ne0W570= + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + FIltA1ns/GI42AyN+ghqg5nfUwE= + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + HuJBI4kdoGvGBG20enDKeLazl5o= + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + QErCDgGynFmA1skBDhGeXapJX4o= + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + zZtgNLL9zktOqhvTHC2UsL2K4Bk= + + Modules/module.modulemap + + tfc04nZSIwhoHV/QsoW1UgsqZrM= + + + files2 + + Headers/FBSDKCodeVerifier.h + + hash + + EjPHvLMqGbP/vUT9DPNoJJuyWAo= + + hash2 + + TT1hvLT7CD93434WRpckoVDjq/IxyTaGc58KDH/Riw4= + + + Headers/FBSDKDeviceLoginCodeInfo.h + + hash + + FXtwVMamqT11doLljBddZfXdSN4= + + hash2 + + g5Rwb6XgmK+lz75XESEgOIetBB/BS9DOpWgyhvRDpZg= + + + Headers/FBSDKDeviceLoginManager.h + + hash + + uD4FVlO9bIJ1fR4+nlGBS1+Iyno= + + hash2 + + v4dQNFbtB6k/JBptSYTCub0GAQvz63TBwZgcwUu0Xg4= + + + Headers/FBSDKDeviceLoginManagerDelegate.h + + hash + + hY/wg20i+M+NFVer6d3an7JfcP0= + + hash2 + + JhcXcmGyXN2YV183sGawyEtz/A4HgiGfuaH6F4xQAMk= + + + Headers/FBSDKDeviceLoginManagerResult.h + + hash + + 5ZIzt8USCIvWtanSVwUd08QOKpw= + + hash2 + + 9So69KdlNzNSmMcFA/ZxVMrlETnJJM35bb6QSIb6f7s= + + + Headers/FBSDKLoginButton.h + + hash + + ASZ+KP7aEFmgdLD/AUvn7nbFwls= + + hash2 + + 9Xp4Z3Lji4FXKIaxM0lURsNOUpGVR1amIi8pLSr6G1E= + + + Headers/FBSDKLoginButtonDelegate.h + + hash + + BRcZixw9+/gs3seuR9cLlDHo6FE= + + hash2 + + DXde9B2nfwMBfkPDM2j13yFQTlyv4W2/LOXrzmg6GqQ= + + + Headers/FBSDKLoginConfiguration.h + + hash + + MuFc+hq69ENcihV3WlvAvj+pwO4= + + hash2 + + SzvBiDHYzoRZDQcXUWG9Vm5kFVm06oWsYbzWv/zfpYo= + + + Headers/FBSDKLoginConstants.h + + hash + + MPfHPqxSclz/yRUCIFSiHttaiIE= + + hash2 + + b4XDaENl+R7u4kCcB7RCYie6oPCP8dwvUe92f5RzDz8= + + + Headers/FBSDKLoginKit-Swift.h + + hash + + 75C0NUYKVDjs+ua3OT+OKe0D2tU= + + hash2 + + +eUJO4uxiRmEQnT8Qo4H+6Iyz75iEZ/CvihD+XLRrCk= + + + Headers/FBSDKLoginKit.h + + hash + + A49rEuXcIliMrYbtnWqQ1izFxOE= + + hash2 + + mBLoAmVhuGhunAeuNCawsBXjAkan6H0PhYCTQcnLotA= + + + Headers/FBSDKLoginManager.h + + hash + + 5Q8kFbHEhBPSHVxNB4WLe4CmpHk= + + hash2 + + ZvAioZqjVmieR5INO6CttC5lGC6yj1fL4owYzoktjSc= + + + Headers/FBSDKLoginManagerLoginResult.h + + hash + + dLNZGf9Q4o1RMToPN2NatvHKj/E= + + hash2 + + ZvH4brMd8ozOL8xV55KSpnX4vgUabuG4R9rp/WbAL8g= + + + Headers/FBSDKLoginTooltipView.h + + hash + + lqBCv5OIAQGg0a9VvMVQafx/0oE= + + hash2 + + LARd9poj4pkMqmAsIay5DV4seppcLTgUqKysGr4VwHw= + + + Headers/FBSDKLoginTooltipViewDelegate.h + + hash + + mkidijks/G9jwN7xSa/cxtEyq1A= + + hash2 + + RD5LXdo3q7UGvx+j1hQeKPY/sOu3SfdIA4pJMs0Rd7A= + + + Headers/FBSDKTooltipView.h + + hash + + Azg+uzHoPWlUAbPTg3eXaCXhgok= + + hash2 + + rQrJFU+VFezXq6XJ07u0l1iicG5RbRD30K87A3VS4hs= + + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + hash + + IcrkoFEIpuTIn8Ilo40CxsoRn9A= + + hash2 + + hLzcUwPFNkr1sBU/RB8TS3nA1nU6J6H0jXTc/zmbZyk= + + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + hash + + MTt1m0HF0yAAijn2rik9Ne0W570= + + hash2 + + CClNbMA5XbUS/6RPOOLtTKQJ8FlH/cs1Y26LJoxCVsA= + + + Modules/FBSDKLoginKit.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + hash + + FIltA1ns/GI42AyN+ghqg5nfUwE= + + hash2 + + 3jhngMSUYGnG/qpWG8UnWkmdreThiDDB+VUHk0hPVrs= + + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + hash + + HuJBI4kdoGvGBG20enDKeLazl5o= + + hash2 + + ng4Df/QrFUDhuALpiJYxMpFQs2tma72LcDxR5PcCXnI= + + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + hash + + QErCDgGynFmA1skBDhGeXapJX4o= + + hash2 + + UAVRyRYNUYxl3KNll0/oLf+G6mw0sZkcmLPHJJuHtf4= + + + Modules/FBSDKLoginKit.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + hash + + zZtgNLL9zktOqhvTHC2UsL2K4Bk= + + hash2 + + HDxyQbkMOC2+06vvJ7XJx9UdudyEbalzvoerUjNI/gI= + + + Modules/module.modulemap + + hash + + tfc04nZSIwhoHV/QsoW1UgsqZrM= + + hash2 + + mg/tLWcmTWvzzkcRtPQSnONw1PhzIM4vXke4Qdm7upM= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeSignature b/ios/platform/FBSDKLoginKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKLoginKit.framework/_CodeSignature/CodeSignature new file mode 100644 index 00000000..e69de29b diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h deleted file mode 100644 index 367a1687..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#if TARGET_OS_TV - -typedef NS_ENUM(NSUInteger, AppGroupPrivacy) { AppGroupPrivacyOpen }; - -FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(AppGroupPrivacy privacy) -NS_REFINED_FOR_SWIFT; - -#else - -#import "FBSDKCoreKitImport.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy) - Specifies the privacy of a group. - */ -typedef NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy) -{ - /** Anyone can see the group, who's in it and what members post. */ - FBSDKAppGroupPrivacyOpen = 0, - /** Anyone can see the group and who's in it, but only members can see posts. */ - FBSDKAppGroupPrivacyClosed, -} NS_SWIFT_NAME(AppGroupPrivacy); - -/** - Converts an FBSDKAppGroupPrivacy to an NSString. - */ -FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(FBSDKAppGroupPrivacy privacy) -NS_REFINED_FOR_SWIFT; - -/** - A model for creating an app group. - */ -NS_SWIFT_NAME(AppGroupContent) -@interface FBSDKAppGroupContent : NSObject - -/** - The description of the group. - */ -@property (nonatomic, copy) NSString *groupDescription; - -/** - The name of the group. - */ -@property (nonatomic, copy) NSString *name; - -/** - The privacy for the group. - */ -@property (nonatomic, assign) FBSDKAppGroupPrivacy privacy; - -/** - Compares the receiver to another app group content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToAppGroupContent:(FBSDKAppGroupContent *)content; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h deleted file mode 100644 index b0292631..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCoreKitImport.h" - -#import "FBSDKSharingValidation.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - NS_ENUM(NSUInteger, FBSDKAppInviteDestination) - Specifies the privacy of a group. - */ -typedef NS_ENUM(NSUInteger, FBSDKAppInviteDestination) -{ - /** Deliver to Facebook. */ - FBSDKAppInviteDestinationFacebook = 0, - /** Deliver to Messenger. */ - FBSDKAppInviteDestinationMessenger, -} NS_SWIFT_NAME(AppInviteDestination); - -/** - A model for app invite. - */ -NS_SWIFT_NAME(AppInviteContent) -@interface FBSDKAppInviteContent : NSObject - -/** - A URL to a preview image that will be displayed with the app invite - - - This is optional. If you don't include it a fallback image will be used. -*/ -@property (nonatomic, copy, nullable) NSURL *appInvitePreviewImageURL; - -/** - An app link target that will be used as a target when the user accept the invite. - - - This is a requirement. - */ -@property (nonatomic, copy) NSURL *appLinkURL; - -/** - Promotional code to be displayed while sending and receiving the invite. - - - This is optional. This can be between 0 and 10 characters long and can contain - alphanumeric characters only. To set a promo code, you need to set promo text. - */ -@property (nonatomic, copy, nullable) NSString *promotionCode; - -/** - Promotional text to be displayed while sending and receiving the invite. - - - This is optional. This can be between 0 and 80 characters long and can contain - alphanumeric and spaces only. - */ -@property (nonatomic, copy, nullable) NSString *promotionText; - -/** - Destination for the app invite. - - - This is optional and for declaring destination of the invite. - */ -@property (nonatomic, assign) FBSDKAppInviteDestination destination; - -/** - Compares the receiver to another app invite content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToAppInviteContent:(FBSDKAppInviteContent *)content; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCameraEffectArguments.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCameraEffectArguments.h deleted file mode 100644 index d02699e8..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCameraEffectArguments.h +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCoreKitImport.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - * A container of arguments for a camera effect. - * An argument is a NSString identified by a NSString key. - */ -NS_SWIFT_NAME(CameraEffectArguments) -@interface FBSDKCameraEffectArguments : NSObject - -/** - Sets a string argument in the container. - @param string The argument - @param key The key for the argument - */ -- (void)setString:(nullable NSString *)string forKey:(NSString *)key -NS_SWIFT_NAME(set(_:forKey:)); - -/** - Gets a string argument from the container. - @param key The key for the argument - @return The string value or nil - */ -- (nullable NSString *)stringForKey:(NSString *)key; - -/** - Sets a string array argument in the container. - @param array The array argument - @param key The key for the argument - */ -- (void)setArray:(nullable NSArray *)array forKey:(NSString *)key -NS_SWIFT_NAME(set(_:forKey:)); - -/** - Gets an array argument from the container. - @param key The key for the argument - @return The array argument - */ -- (nullable NSArray *)arrayForKey:(NSString *)key; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCameraEffectTextures.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCameraEffectTextures.h deleted file mode 100644 index 2cb6d5ca..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCameraEffectTextures.h +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCoreKitImport.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - * A container of textures for a camera effect. - * A texture for a camera effect is an UIImages identified by a NSString key. - */ -NS_SWIFT_NAME(CameraEffectTextures) -@interface FBSDKCameraEffectTextures : NSObject - -/** - Sets the image for a texture key. - @param image The UIImage for the texture - @param key The key for the texture - */ -- (void)setImage:(nullable UIImage *)image forKey:(NSString *)key -NS_SWIFT_NAME(set(_:forKey:)); - -/** - Gets the image for a texture key. - @param key The key for the texture - @return The texture UIImage or nil - */ -- (nullable UIImage *)imageForKey:(NSString *)key; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h deleted file mode 100644 index aa0979d4..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKCoreKitImport.h +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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. - -// Importing FBSDKCoreKit is tricky due to build variants. -// SPM require that it is imported as while CocoaPods, -// Carthage, Buck, and xcodebuild require -// This file is not exposed via SPM so non SPM users will use - -// 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 -#else - #import -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h deleted file mode 100644 index 62f41409..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCoreKitImport.h" - -#import "FBSDKSharingValidation.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - NS_ENUM(NSUInteger, FBSDKGameRequestActionType) - Additional context about the nature of the request. - */ -typedef NS_ENUM(NSUInteger, FBSDKGameRequestActionType) -{ - /** No action type */ - FBSDKGameRequestActionTypeNone = 0, - /** Send action type: The user is sending an object to the friends. */ - FBSDKGameRequestActionTypeSend, - /** Ask For action type: The user is asking for an object from friends. */ - FBSDKGameRequestActionTypeAskFor, - /** Turn action type: It is the turn of the friends to play against the user in a match. (no object) */ - FBSDKGameRequestActionTypeTurn, -} NS_SWIFT_NAME(GameRequestActionType); - -/** - NS_ENUM(NSUInteger, FBSDKGameRequestFilters) - Filter for who can be displayed in the multi-friend selector. - */ -typedef NS_ENUM(NSUInteger, FBSDKGameRequestFilter) -{ - /** No filter, all friends can be displayed. */ - FBSDKGameRequestFilterNone = 0, - /** Friends using the app can be displayed. */ - FBSDKGameRequestFilterAppUsers, - /** Friends not using the app can be displayed. */ - FBSDKGameRequestFilterAppNonUsers, -} NS_SWIFT_NAME(GameRequestFilter); - -/** - A model for a game request. - */ -NS_SWIFT_NAME(GameRequestContent) -@interface FBSDKGameRequestContent : NSObject - -/** - Used when defining additional context about the nature of the request. - - The parameter 'objectID' is required if the action type is either - 'FBSDKGameRequestSendActionType' or 'FBSDKGameRequestAskForActionType'. - -- SeeAlso:objectID - */ -@property (nonatomic, assign) FBSDKGameRequestActionType actionType; - -/** - Compares the receiver to another game request content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToGameRequestContent:(FBSDKGameRequestContent *)content; - -/** - Additional freeform data you may pass for tracking. This will be stored as part of - the request objects created. The maximum length is 255 characters. - */ -@property (nonatomic, copy, nullable) NSString *data; - -/** - This controls the set of friends someone sees if a multi-friend selector is shown. - It is FBSDKGameRequestNoFilter by default, meaning that all friends can be shown. - If specify as FBSDKGameRequestAppUsersFilter, only friends who use the app will be shown. - On the other hands, use FBSDKGameRequestAppNonUsersFilter to filter only friends who do not use the app. - - The parameter name is preserved to be consistent with the counter part on desktop. - */ -@property (nonatomic, assign) FBSDKGameRequestFilter filters; - -/** - A plain-text message to be sent as part of the request. This text will surface in the App Center view - of the request, but not on the notification jewel. Required parameter. - */ -@property (nonatomic, copy) NSString *message; - -/** - The Open Graph object ID of the object being sent. - -- SeeAlso:actionType - */ -@property (nonatomic, copy) NSString *objectID; - -/** - An array of user IDs, usernames or invite tokens (NSString) of people to send request. - - These may or may not be a friend of the sender. If this is specified by the app, - the sender will not have a choice of recipients. If not, the sender will see a multi-friend selector - - This is equivalent to the "to" parameter when using the web game request dialog. - */ -@property (nonatomic, copy) NSArray *recipients; - -/** - An array of user IDs that will be included in the dialog as the first suggested friends. - Cannot be used together with filters. - - This is equivalent to the "suggestions" parameter when using the web game request dialog. -*/ -@property (nonatomic, copy) NSArray *recipientSuggestions; - -/** - The title for the dialog. - */ -@property (nonatomic, copy) NSString *title; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h deleted file mode 100644 index 847e2f0c..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKGameRequestContent.h" - -NS_ASSUME_NONNULL_BEGIN - -@protocol FBSDKGameRequestDialogDelegate; - -/** - A dialog for sending game requests. - */ -NS_SWIFT_NAME(GameRequestDialog) -@interface FBSDKGameRequestDialog : NSObject - -- (instancetype)init NS_DESIGNATED_INITIALIZER -NS_SWIFT_UNAVAILABLE("Use init(content:delegate:) instead"); -+ (instancetype)new NS_UNAVAILABLE; - -/** - Convenience method to build up a game request with content and a delegate. - @param content The content for the game request. - @param delegate The receiver's delegate. - */ -+ (instancetype)dialogWithContent:(FBSDKGameRequestContent *)content - delegate:(nullable id)delegate -NS_SWIFT_NAME(init(content:delegate:)); - -/** - Convenience method to build up and show a game request with content and a delegate. - @param content The content for the game request. - @param delegate The receiver's delegate. - */ -+ (instancetype)showWithContent:(FBSDKGameRequestContent *)content - delegate:(nullable id)delegate -NS_SWIFT_UNAVAILABLE("Use init(content:delegate:).show() instead"); - -/** - The receiver's delegate or nil if it doesn't have a delegate. - */ -@property (nonatomic, weak, nullable) id delegate; - -/** - The content for game request. - */ -@property (nonatomic, copy) FBSDKGameRequestContent *content; - -/** - Specifies whether frictionless requests are enabled. - */ -@property (nonatomic, assign, getter=isFrictionlessRequestsEnabled) BOOL frictionlessRequestsEnabled; - -/** - A Boolean value that indicates whether the receiver can initiate a game request. - - May return NO if the appropriate Facebook app is not installed and is required or an access token is - required but not available. This method does not validate the content on the receiver, so this can be checked before - building up the content. - - @see validateWithError: - @return YES if the receiver can share, otherwise NO. - */ -@property (nonatomic, readonly) BOOL canShow; - -/** - Begins the game request from the receiver. - @return YES if the receiver was able to show the dialog, otherwise NO. - */ -- (BOOL)show; - -/** - Validates the content on the receiver. - @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. - @return YES if the content is valid, otherwise NO. - */ -- (BOOL)validateWithError:(NSError *__autoreleasing *)errorRef; - -@end - -/** - A delegate for FBSDKGameRequestDialog. - - The delegate is notified with the results of the game request as long as the application has permissions to - receive the information. For example, if the person is not signed into the containing app, the shower may not be able - to distinguish between completion of a game request and cancellation. - */ -NS_SWIFT_NAME(GameRequestDialogDelegate) -@protocol FBSDKGameRequestDialogDelegate - -/** - Sent to the delegate when the game request completes without error. - @param gameRequestDialog The FBSDKGameRequestDialog that completed. - @param results The results from the dialog. This may be nil or empty. - */ -- (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didCompleteWithResults:(NSDictionary *)results; - -/** - Sent to the delegate when the game request encounters an error. - @param gameRequestDialog The FBSDKGameRequestDialog that completed. - @param error The error. - */ -- (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didFailWithError:(NSError *)error; - -/** - Sent to the delegate when the game request dialog is cancelled. - @param gameRequestDialog The FBSDKGameRequestDialog that completed. - */ -- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog *)gameRequestDialog; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKHashtag.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKHashtag.h deleted file mode 100644 index dc9d7660..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKHashtag.h +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKCoreKitImport.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - Represents a single hashtag that can be used with the share dialog. - */ -NS_SWIFT_NAME(Hashtag) -@interface FBSDKHashtag : NSObject - -/** - Convenience method to build a new hashtag with a string identifier. Equivalent to setting the - `stringRepresentation` property. - @param hashtagString The hashtag string. - */ -+ (instancetype)hashtagWithString:(NSString *)hashtagString -NS_SWIFT_NAME(init(_:)); - -/** - The hashtag string. - - You are responsible for making sure that `stringRepresentation` is a valid hashtag (a single '#' followed - by one or more word characters). Invalid hashtags are ignored when sharing content. You can check validity with the - `valid` property. - @return The hashtag string. - */ -@property (nonatomic, copy) NSString *stringRepresentation; - -/** - Tests if a hashtag is valid. - - A valid hashtag matches the regular expression "#\w+": A single '#' followed by one or more - word characters. - @return YES if the hashtag is valid, NO otherwise. - */ -@property (nonatomic, readonly, assign, getter=isValid) BOOL valid; - -/** - Compares the receiver to another hashtag. - @param hashtag The other hashtag - @return YES if the receiver is equal to the other hashtag; otherwise NO - */ -- (BOOL)isEqualToHashtag:(FBSDKHashtag *)hashtag; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h deleted file mode 100644 index b52ff04b..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - NS_ENUM (NSUInteger, FBSDKLikeObjectType) - Specifies the type of object referenced by the objectID for likes. - */ -typedef NS_ENUM(NSUInteger, FBSDKLikeObjectType) -{ - /** The objectID refers to an unknown object type. */ - FBSDKLikeObjectTypeUnknown = 0, - /** The objectID refers to an Open Graph object. */ - FBSDKLikeObjectTypeOpenGraph, - /** The objectID refers to an Page object. */ - FBSDKLikeObjectTypePage, -} NS_SWIFT_NAME(LikeObjectType); - -/** - Converts an FBLikeControlObjectType to an NSString. - */ -FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeObjectType(FBSDKLikeObjectType objectType) -NS_REFINED_FOR_SWIFT; - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKLiking.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKLiking.h deleted file mode 100644 index 028c0f93..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKLiking.h +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKLikeObjectType.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - The common interface for components that initiate liking. - - @see FBSDKLikeButton - - @see FBSDKLikeControl - */ -NS_SWIFT_NAME(Liking) -@protocol FBSDKLiking - -/** - The objectID for the object to like. - - - This value may be an Open Graph object ID or a string representation of an URL that describes an - Open Graph object. The objects may be public objects, like pages, or objects that are defined by your application. - */ -@property (nonatomic, copy) NSString *objectID; - -/** - The type of object referenced by the objectID. - - - If the objectType is unknown, the control will determine the objectType by querying the server with the - objectID. Specifying a value for the objectType is an optimization that should be used if the type is known by the - consumer. Consider setting the objectType if it is known when setting the objectID. - */ -@property (nonatomic, assign) FBSDKLikeObjectType objectType; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h deleted file mode 100644 index c38dc835..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKShareConstants.h" -#import "FBSDKSharing.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A dialog for sharing content through Messenger. - - SUPPORTED SHARE TYPES - - FBSDKShareLinkContent - - UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) - - FBSDKShareOpenGraphContent - - FBSDKSharePhotoContent - - FBSDKShareVideoContent - - FBSDKShareMessengerOpenGraphMusicTemplateContent - - FBSDKShareMessengerMediaTemplateContent - - FBSDKShareMessengerGenericTemplateContent - - Any other types that are not one of the four supported types listed above - */ -NS_SWIFT_NAME(MessageDialog) -@interface FBSDKMessageDialog : NSObject - -/** - Convenience method to return a Message Share Dialog with content and a delegate. - @param content The content to be shared. - @param delegate The receiver's delegate. - */ -+ (instancetype)dialogWithContent:(id)content - delegate:(nullable id)delegate -NS_SWIFT_NAME(init(content:delegate:)); - -/** - Convenience method to show a Message Share Dialog with content and a delegate. - @param content The content to be shared. - @param delegate The receiver's delegate. - */ -+ (instancetype)showWithContent:(id)content - delegate:(nullable id)delegate -NS_SWIFT_UNAVAILABLE("Use init(content:delegate:).show() instead"); - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSendButton.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSendButton.h deleted file mode 100644 index e3f038d0..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSendButton.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCoreKitImport.h" - -#import "FBSDKShareConstants.h" -#import "FBSDKSharingButton.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A button to send content through Messenger. - - Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot - be shown, the button will be disable. - */ -NS_SWIFT_NAME(FBSendButton) -@interface FBSDKSendButton : FBSDKButton - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareButton.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareButton.h deleted file mode 100644 index 1c5ab75d..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareButton.h +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCoreKitImport.h" - -#import "FBSDKSharingButton.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A button to share content. - - Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot - be shown, the button will be disabled. - */ -NS_SWIFT_NAME(FBShareButton) -@interface FBSDKShareButton : FBSDKButton - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareCameraEffectContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareCameraEffectContent.h deleted file mode 100644 index 4ad2e81f..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareCameraEffectContent.h +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKCameraEffectArguments.h" -#import "FBSDKCameraEffectTextures.h" -#import "FBSDKSharingContent.h" -#import "FBSDKSharingScheme.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A model for content to share with a Facebook camera effect. - */ -NS_SWIFT_NAME(ShareCameraEffectContent) -@interface FBSDKShareCameraEffectContent : NSObject - -/** - ID of the camera effect to use. - */ -@property (nonatomic, copy) NSString *effectID; - -/** - Arguments for the effect. - */ -@property (nonatomic, copy) FBSDKCameraEffectArguments *effectArguments; - -/** - Textures for the effect. - */ -@property (nonatomic, copy) FBSDKCameraEffectTextures *effectTextures; - -/** - Compares the receiver to another camera effect content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToShareCameraEffectContent:(FBSDKShareCameraEffectContent *)content; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h deleted file mode 100644 index c27b80cc..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 - -/** - The error domain for all errors from FBSDKShareKit. - - Error codes from the SDK in the range 200-299 are reserved for this domain. - */ -FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain -NS_SWIFT_NAME(ShareErrorDomain); - -#else - -/** - The error domain for all errors from FBSDKShareKit. - - Error codes from the SDK in the range 200-299 are reserved for this domain. - */ -FOUNDATION_EXPORT NSString *const FBSDKShareErrorDomain -NS_SWIFT_NAME(ShareErrorDomain); - -#endif - -#ifndef NS_ERROR_ENUM -#define NS_ERROR_ENUM(_domain, _name) \ -enum _name: NSInteger _name; \ -enum __attribute__((ns_error_domain(_domain))) _name: NSInteger -#endif - -/** - FBSDKShareError - Error codes for FBSDKShareErrorDomain. - */ -typedef NS_ERROR_ENUM(FBSDKShareErrorDomain, FBSDKShareError) -{ - /** - Reserved. - */ - FBSDKShareErrorReserved = 200, - - /** - The error code for errors from uploading open graph objects. - */ - FBSDKShareErrorOpenGraph, - - /** - The error code for when a sharing dialog is not available. - - Use the canShare methods to check for this case before calling show. - */ - FBSDKShareErrorDialogNotAvailable, - - /** - @The error code for unknown errors. - */ - FBSDKShareErrorUnknown, -} NS_SWIFT_NAME(ShareError); - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h deleted file mode 100644 index 33345239..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if TARGET_OS_TV - -// This is an unfortunate hack for Swift Package Manager support. -// SPM does not allow us to conditionally exclude Swift files for compilation by platform. -// -// So to support tvOS with SPM we need to use runtime availability checks in the Swift files. -// This means that even though the Swift extension of ShareDialog will never be run for tvOS -// targets, it still needs to be able to compile. Hence we need to declare it here. -// -// The way to fix this is to remove extensions of ObjC types in Swift. - -NS_SWIFT_NAME(ShareDialog) -@interface FBSDKShareDialog : NSObject -@end - -#else - -#import - -#import "FBSDKShareDialogMode.h" -#import "FBSDKSharing.h" -#import "FBSDKSharingContent.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A dialog for sharing content on Facebook. - */ -NS_SWIFT_NAME(ShareDialog) -@interface FBSDKShareDialog : NSObject - -/** - Convenience method to create a FBSDKShareDialog with a fromViewController, content and a delegate. - @param viewController A UIViewController to present the dialog from, if appropriate. - @param content The content to be shared. - @param delegate The receiver's delegate. - */ -+ (instancetype)dialogWithViewController:(nullable UIViewController *)viewController - withContent:(id)content - delegate:(nullable id)delegate -NS_SWIFT_NAME(init(fromViewController:content:delegate:)); - -/** - Convenience method to show an FBSDKShareDialog with a fromViewController, content and a delegate. - @param viewController A UIViewController to present the dialog from, if appropriate. - @param content The content to be shared. - @param delegate The receiver's delegate. - */ -+ (instancetype)showFromViewController:(UIViewController *)viewController - withContent:(id)content - delegate:(nullable id)delegate -NS_SWIFT_UNAVAILABLE("Use init(fromViewController:content:delegate:).show() instead"); - -/** - A UIViewController to present the dialog from. - - If not specified, the top most view controller will be automatically determined as best as possible. - */ -@property (nonatomic, weak) UIViewController *fromViewController; - -/** - The mode with which to display the dialog. - - Defaults to FBSDKShareDialogModeAutomatic, which will automatically choose the best available mode. - */ -@property (nonatomic, assign) FBSDKShareDialogMode mode; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h deleted file mode 100644 index 058ac1e9..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - NS_ENUM(NSUInteger, FBSDKShareDialogMode) - Modes for the FBSDKShareDialog. - - The automatic mode will progressively check the availability of different modes and open the most - appropriate mode for the dialog that is available. - */ -typedef NS_ENUM(NSUInteger, FBSDKShareDialogMode) -{ - /** - Acts with the most appropriate mode that is available. - */ - FBSDKShareDialogModeAutomatic = 0, - /** - @Displays the dialog in the main native Facebook app. - */ - FBSDKShareDialogModeNative, - /** - @Displays the dialog in the iOS integrated share sheet. - */ - FBSDKShareDialogModeShareSheet, - /** - @Displays the dialog in Safari. - */ - FBSDKShareDialogModeBrowser, - /** - @Displays the dialog in a WKWebView within the app. - */ - FBSDKShareDialogModeWeb, - /** - @Displays the feed dialog in Safari. - */ - FBSDKShareDialogModeFeedBrowser, - /** - @Displays the feed dialog in a WKWebView within the app. - */ - FBSDKShareDialogModeFeedWeb, -} NS_SWIFT_NAME(ShareDialog.Mode); - -/** - Converts an FBSDKShareDialogMode to an NSString. - */ -FOUNDATION_EXPORT NSString *NSStringFromFBSDKShareDialogMode(FBSDKShareDialogMode dialogMode) -NS_REFINED_FOR_SWIFT; - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareKit.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareKit.h deleted file mode 100644 index cca91f95..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareKit.h +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "FBSDKHashtag.h" -#import "FBSDKShareConstants.h" -#import "FBSDKShareLinkContent.h" -#import "FBSDKShareMediaContent.h" -#import "FBSDKSharePhoto.h" -#import "FBSDKSharePhotoContent.h" -#import "FBSDKShareVideo.h" -#import "FBSDKShareVideoContent.h" -#import "FBSDKSharing.h" -#import "FBSDKSharingContent.h" -#import "TargetConditionals.h" - -#if !TARGET_OS_TV - #import "FBSDKAppGroupContent.h" - #import "FBSDKAppInviteContent.h" - #import "FBSDKGameRequestContent.h" - #import "FBSDKGameRequestDialog.h" - #import "FBSDKLikeObjectType.h" - #import "FBSDKLiking.h" - #import "FBSDKMessageDialog.h" - #import "FBSDKSendButton.h" - #import "FBSDKShareButton.h" - #import "FBSDKShareCameraEffectContent.h" - #import "FBSDKShareDialog.h" - #import "FBSDKShareDialogMode.h" -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h deleted file mode 100644 index d4224a5d..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKSharingContent.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A model for status and link content to be shared. - */ -NS_SWIFT_NAME(ShareLinkContent) -@interface FBSDKShareLinkContent : NSObject - -/** - Some quote text of the link. - - If specified, the quote text will render with custom styling on top of the link. - @return The quote text of a link - */ -@property (nonatomic, copy, nullable) NSString *quote; - -/** - Compares the receiver to another link content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToShareLinkContent:(FBSDKShareLinkContent *)content; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h deleted file mode 100644 index f54c3165..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKSharingContent.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A protocol for media content (photo or video) to be shared. - */ -NS_SWIFT_NAME(ShareMedia) -@protocol FBSDKShareMedia - -@end - -/** - A model for media content (photo or video) to be shared. - */ -NS_SWIFT_NAME(ShareMediaContent) -@interface FBSDKShareMediaContent : NSObject - -/** - Media to be shared. - @return Array of the media (FBSDKSharePhoto or FBSDKShareVideo) - */ -@property (nonatomic, copy) NSArray> *media; - -/** - Compares the receiver to another media content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToShareMediaContent:(FBSDKShareMediaContent *)content; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h deleted file mode 100644 index 7fdcf7ce..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKCoreKitImport.h" -#import "FBSDKShareMediaContent.h" -#import "FBSDKSharingValidation.h" - -NS_ASSUME_NONNULL_BEGIN - -@class PHAsset; - -/** - A photo for sharing. - */ -NS_SWIFT_NAME(SharePhoto) -@interface FBSDKSharePhoto : NSObject - -/** - Convenience method to build a new photo object with an image. - @param image If the photo is resident in memory, this method supplies the data - @param userGenerated Specifies whether the photo represented by the receiver was generated by the user or by the - application - */ -+ (instancetype)photoWithImage:(UIImage *)image userGenerated:(BOOL)userGenerated; - -/** - Convenience method to build a new photo object with an imageURL. - @param imageURL The URL to the photo - @param userGenerated Specifies whether the photo represented by the receiver was generated by the user or by the - application - - This method should only be used when adding photo content to open graph stories. - For example, if you're trying to share a photo from the web by itself, download the image and use - `photoWithImage:userGenerated:` instead. - */ -+ (instancetype)photoWithImageURL:(NSURL *)imageURL userGenerated:(BOOL)userGenerated; - -/** - Convenience method to build a new photo object with a PHAsset. - - Parameter photoAsset: The PHAsset that represents the photo in the Photos library. - - Parameter userGenerated: Specifies whether the photo represented by the receiver was generated by the user or by the - application - */ -+ (instancetype)photoWithPhotoAsset:(PHAsset *)photoAsset userGenerated:(BOOL)userGenerated; - -/** - If the photo is resident in memory, this method supplies the data. - @return UIImage representation of the photo - */ -@property (nonatomic, strong, nullable) UIImage *image; - -/** - The URL to the photo. - @return URL that points to a network location or the location of the photo on disk - */ -@property (nonatomic, copy, nullable) NSURL *imageURL; - -/** - The representation of the photo in the Photos library. - - Returns: PHAsset that represents the photo in the Photos library. - */ -@property (nonatomic, copy, nullable) PHAsset *photoAsset; - -/** - Specifies whether the photo represented by the receiver was generated by the user or by the application. - @return YES if the photo is user-generated, otherwise NO - */ -@property (nonatomic, assign, getter=isUserGenerated) BOOL userGenerated; - -/** - The user generated caption for the photo. Note that the 'caption' must come from - * the user, as pre-filled content is forbidden by the Platform Policies (2.3). - @return the Photo's caption if exists else returns null. - */ -@property (nonatomic, copy, nullable) NSString *caption; - -/** - Compares the receiver to another photo. - @param photo The other photo - @return YES if the receiver's values are equal to the other photo's values; otherwise NO - */ -- (BOOL)isEqualToSharePhoto:(FBSDKSharePhoto *)photo; - - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h deleted file mode 100644 index 6d20c3e1..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKSharingContent.h" - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKSharePhoto; - -/** - A model for photo content to be shared. - */ -NS_SWIFT_NAME(SharePhotoContent) -@interface FBSDKSharePhotoContent : NSObject - -/** - Photos to be shared. - @return Array of the photos (FBSDKSharePhoto) - */ -@property (nonatomic, copy) NSArray *photos; - -/** - Compares the receiver to another photo content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToSharePhotoContent:(FBSDKSharePhotoContent *)content; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h deleted file mode 100644 index 2e135ffd..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 -#import - -#import "FBSDKCoreKitImport.h" -#import "FBSDKShareMediaContent.h" -#import "FBSDKSharingValidation.h" -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKSharePhoto; -@class PHAsset; - -/** - A video for sharing. - */ -NS_SWIFT_NAME(ShareVideo) -@interface FBSDKShareVideo : NSObject - -/** - Convenience method to build a new video object from raw data. - - Parameter data: The NSData object that holds the raw video data. - */ -+ (instancetype)videoWithData:(NSData *)data; - -/** - Convenience method to build a new video object with NSData and a previewPhoto. - - Parameter data: The NSData object that holds the raw video data. - - Parameter previewPhoto: The photo that represents the video. - */ -+ (instancetype)videoWithData:(NSData *)data previewPhoto:(FBSDKSharePhoto *)previewPhoto; - -/** - Convenience method to build a new video object with a PHAsset. - @param videoAsset The PHAsset that represents the video in the Photos library. - */ -+ (instancetype)videoWithVideoAsset:(PHAsset *)videoAsset; - -/** - Convenience method to build a new video object with a PHAsset and a previewPhoto. - @param videoAsset The PHAsset that represents the video in the Photos library. - @param previewPhoto The photo that represents the video. - */ -+ (instancetype)videoWithVideoAsset:(PHAsset *)videoAsset previewPhoto:(FBSDKSharePhoto *)previewPhoto; - -/** - Convenience method to build a new video object with a videoURL. - @param videoURL The URL to the video. - */ -+ (instancetype)videoWithVideoURL:(NSURL *)videoURL; - -/** - Convenience method to build a new video object with a videoURL and a previewPhoto. - @param videoURL The URL to the video. - @param previewPhoto The photo that represents the video. - */ -+ (instancetype)videoWithVideoURL:(NSURL *)videoURL previewPhoto:(FBSDKSharePhoto *)previewPhoto; - -/** - The raw video data. - - Returns: The video data. - */ -@property (nonatomic, strong, nullable) NSData *data; - -/** - The representation of the video in the Photos library. - @return PHAsset that represents the video in the Photos library. - */ -@property (nonatomic, copy, nullable) PHAsset *videoAsset; - -/** - The file URL to the video. - @return URL that points to the location of the video on disk - */ -@property (nonatomic, copy, nullable) NSURL *videoURL; - -/** - The photo that represents the video. - @return The photo - */ -@property (nonatomic, copy, nullable) FBSDKSharePhoto *previewPhoto; - -/** - Compares the receiver to another video. - @param video The other video - @return YES if the receiver's values are equal to the other video's values; otherwise NO - */ -- (BOOL)isEqualToShareVideo:(FBSDKShareVideo *)video; - -@end - -@interface PHAsset (FBSDKShareVideo) - -@property (nonatomic, copy, readonly) NSURL *videoURL; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h deleted file mode 100644 index 552eb2b6..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKSharePhoto.h" -#import "FBSDKShareVideo.h" -#import "FBSDKSharingContent.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A model for video content to be shared. - */ -NS_SWIFT_NAME(ShareVideoContent) -@interface FBSDKShareVideoContent : NSObject - -/** - The video to be shared. - @return The video - */ -@property (nonatomic, copy) FBSDKShareVideo *video; - -/** - Compares the receiver to another video content. - @param content The other content - @return YES if the receiver's values are equal to the other content's values; otherwise NO - */ -- (BOOL)isEqualToShareVideoContent:(FBSDKShareVideoContent *)content; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharing.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharing.h deleted file mode 100644 index 6775d5da..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharing.h +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKSharingContent.h" - -NS_ASSUME_NONNULL_BEGIN - -@protocol FBSDKSharingDelegate; - -/** - The common interface for components that initiate sharing. - - @see FBSDKShareDialog - - @see FBSDKMessageDialog - */ -NS_SWIFT_NAME(Sharing) -@protocol FBSDKSharing - -/** - The receiver's delegate or nil if it doesn't have a delegate. - */ -@property (nonatomic, weak) id delegate; - -/** - The content to be shared. - */ -@property (nonatomic, copy) id shareContent; - -/** - A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. - - If NO, the sharer will still be displayed without the data that was mis-configured. For example, an - invalid placeID specified on the shareContent would produce a data error. - */ -@property (nonatomic, assign) BOOL shouldFailOnDataError; - -/** - Validates the content on the receiver. - @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. - @return YES if the content is valid, otherwise NO. - */ -- (BOOL)validateWithError:(NSError **)errorRef; - -@end - -/** - The common interface for dialogs that initiate sharing. - */ -NS_SWIFT_NAME(SharingDialog) -@protocol FBSDKSharingDialog - -/** - A Boolean value that indicates whether the receiver can initiate a share. - - May return NO if the appropriate Facebook app is not installed and is required or an access token is - required but not available. This method does not validate the content on the receiver, so this can be checked before - building up the content. - - @see [FBSDKSharing validateWithError:] - @return YES if the receiver can share, otherwise NO. - */ -@property (nonatomic, readonly) BOOL canShow; - -/** - Shows the dialog. - @return YES if the receiver was able to begin sharing, otherwise NO. - */ -- (BOOL)show; - -@end - -/** - A delegate for FBSDKSharing. - - The delegate is notified with the results of the sharer as long as the application has permissions to - receive the information. For example, if the person is not signed into the containing app, the sharer may not be able - to distinguish between completion of a share and cancellation. - */ -NS_SWIFT_NAME(SharingDelegate) -@protocol FBSDKSharingDelegate - -/** - Sent to the delegate when the share completes without error or cancellation. - @param sharer The FBSDKSharing that completed. - @param results The results from the sharer. This may be nil or empty. - */ -- (void)sharer:(id)sharer didCompleteWithResults:(NSDictionary *)results; - -/** - Sent to the delegate when the sharer encounters an error. - @param sharer The FBSDKSharing that completed. - @param error The error. - */ -- (void)sharer:(id)sharer didFailWithError:(NSError *)error; - -/** - Sent to the delegate when the sharer is cancelled. - @param sharer The FBSDKSharing that completed. - */ -- (void)sharerDidCancel:(id)sharer; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingButton.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingButton.h deleted file mode 100644 index 145b285b..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingButton.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import - -#import "FBSDKSharingContent.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - The common interface for sharing buttons. - - @see FBSDKSendButton - - @see FBSDKShareButton - */ -NS_SWIFT_NAME(SharingButton) -@protocol FBSDKSharingButton - -/** - The content to be shared. - */ -@property (nonatomic, copy, nullable) id shareContent; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingContent.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingContent.h deleted file mode 100644 index 7833eab0..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingContent.h +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -#import "FBSDKCoreKitImport.h" -#import "FBSDKSharingValidation.h" - -NS_ASSUME_NONNULL_BEGIN - -@class FBSDKHashtag; - -/** - A base interface for content to be shared. - */ -NS_SWIFT_NAME(SharingContent) -@protocol FBSDKSharingContent - -/** - URL for the content being shared. - - This URL will be checked for all link meta tags for linking in platform specific ways. See documentation - for App Links (https://developers.facebook.com/docs/applinks/) - @return URL representation of the content link - */ -@property (nonatomic, copy) NSURL *contentURL; - -/** - Hashtag for the content being shared. - @return The hashtag for the content being shared. - */ -@property (nonatomic, copy, nullable) FBSDKHashtag *hashtag; - -/** - List of IDs for taggable people to tag with this content. - See documentation for Taggable Friends - (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) - @return Array of IDs for people to tag (NSString) - */ -@property (nonatomic, copy) NSArray *peopleIDs; - -/** - The ID for a place to tag with this content. - @return The ID for the place to tag - */ -@property (nonatomic, copy, nullable) NSString *placeID; - -/** - A value to be added to the referrer URL when a person follows a link from this shared content on feed. - @return The ref for the content. - */ -@property (nonatomic, copy, nullable) NSString *ref; - -/** - For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. - @return The ID of the Facebook page this share is associated with. - */ -@property (nonatomic, copy, nullable) NSString *pageID; - -/** - A unique identifier for a share involving this content, useful for tracking purposes. - @return A unique string identifying this share data. - */ -@property (nonatomic, copy, readonly, nullable) NSString *shareUUID; - -/** - Adds content to an existing dictionary as key/value pairs and returns the - updated dictionary - @param existingParameters An immutable dictionary of existing values - @param bridgeOptions The options for bridging - @return A new dictionary with the modified contents - */ -- (NSDictionary *)addParameters:(NSDictionary *)existingParameters - bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions -NS_SWIFT_NAME(addParameters(_:options:)); - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingScheme.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingScheme.h deleted file mode 100644 index 859db491..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingScheme.h +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 "TargetConditionals.h" - -#if !TARGET_OS_TV - -#import "FBSDKShareDialogMode.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - A base interface for indicating a custom URL scheme - */ -NS_SWIFT_NAME(SharingScheme) -@protocol FBSDKSharingScheme - -/** - Asks the receiver to provide a custom scheme. - @param mode The intended dialog mode for sharing the content. - @return A custom URL scheme to use for the specified mode, or nil. - */ -- (nullable NSString *)schemeForMode:(FBSDKShareDialogMode)mode; - -@end - -NS_ASSUME_NONNULL_END - -#endif diff --git a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingValidation.h b/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingValidation.h deleted file mode 100644 index bf9b52f3..00000000 --- a/ios/platform/FBSDKShareKit.framework/Headers/FBSDKSharingValidation.h +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. -// -// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -// copy, modify, and distribute this software in source code or binary form for use -// in connection with the web services and APIs provided by Facebook. -// -// As with any software that integrates with the Facebook platform, your use of -// this software is subject to the Facebook Developer Principles and Policies -// [http://developers.facebook.com/policy/]. This copyright notice shall be -// included in all copies or substantial portions of the software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// 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 - -NS_ASSUME_NONNULL_BEGIN - -/** - Flags to indicate support for newer bridge options beyond the initial 20130410 implementation. - */ -typedef NS_OPTIONS(NSUInteger, FBSDKShareBridgeOptions) -{ - FBSDKShareBridgeOptionsDefault = 0, - FBSDKShareBridgeOptionsPhotoAsset = 1 << 0, - FBSDKShareBridgeOptionsPhotoImageURL = 1 << 1, // if set, a web-based URL is required; asset, image, and imageURL.isFileURL not allowed - FBSDKShareBridgeOptionsVideoAsset = 1 << 2, - FBSDKShareBridgeOptionsVideoData = 1 << 3, - FBSDKShareBridgeOptionsWebHashtag = 1 << 4, // if set, pass the hashtag as a string value, not an array of one string -} NS_SWIFT_NAME(ShareBridgeOptions); - -/** - A base interface for validation of content and media. - */ -NS_SWIFT_NAME(SharingValidation) -@protocol FBSDKSharingValidation - -/** - Asks the receiver to validate that its content or media values are valid. - - Parameter errorRef: Optional, will receive an FBSDKShareError if the values are not valid. - - Returns: YES if the receiver's values are valid; otherwise NO - */ -- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError *__autoreleasing *)errorRef; - -@end - -NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm.swiftsourceinfo deleted file mode 100644 index fba2f745..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo deleted file mode 100644 index ad5af83f..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm64.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm64.swiftsourceinfo deleted file mode 100644 index ad5af83f..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/arm64.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo deleted file mode 100644 index fba2f745..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/armv7.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/armv7.swiftsourceinfo deleted file mode 100644 index fba2f745..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/armv7.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo deleted file mode 100644 index 73c1d7e1..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/i386.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/i386.swiftsourceinfo deleted file mode 100644 index 73c1d7e1..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/i386.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo deleted file mode 100644 index 1150468f..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/x86_64.swiftsourceinfo b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/x86_64.swiftsourceinfo deleted file mode 100644 index 1150468f..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/Project/x86_64.swiftsourceinfo and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftdoc deleted file mode 100644 index a6e7c4f0..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftinterface deleted file mode 100644 index c16b42a4..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftmodule deleted file mode 100644 index e44e09bd..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftdoc deleted file mode 100644 index 0092c8c6..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftinterface deleted file mode 100644 index a691dcf5..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftmodule deleted file mode 100644 index 4f9cb781..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftdoc deleted file mode 100644 index 0092c8c6..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftinterface deleted file mode 100644 index a691dcf5..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftmodule deleted file mode 100644 index 4f9cb781..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftdoc deleted file mode 100644 index a6e7c4f0..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftinterface deleted file mode 100644 index c16b42a4..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftmodule deleted file mode 100644 index e44e09bd..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7-apple-ios.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftdoc deleted file mode 100644 index a6e7c4f0..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftinterface deleted file mode 100644 index c16b42a4..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftmodule deleted file mode 100644 index e44e09bd..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/armv7.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftdoc deleted file mode 100644 index 5c50d816..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftinterface deleted file mode 100644 index 19f5fa99..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftmodule deleted file mode 100644 index b99d6891..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386-apple-ios-simulator.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftdoc deleted file mode 100644 index 5c50d816..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftinterface deleted file mode 100644 index 19f5fa99..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftmodule deleted file mode 100644 index b99d6891..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/i386.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc deleted file mode 100644 index bcc3f675..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface deleted file mode 100644 index ce1af107..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule deleted file mode 100644 index 53f9b9f3..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftdoc b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftdoc deleted file mode 100644 index bcc3f675..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftdoc and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftinterface b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftinterface deleted file mode 100644 index ce1af107..00000000 --- a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftinterface +++ /dev/null @@ -1,23 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53) -// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit -@_exported import FBSDKShareKit -import Swift -@available(tvOS, unavailable) -extension ShareDialog.Mode : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension AppGroupPrivacy : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} -@available(tvOS, unavailable) -extension LikeObjectType : Swift.CustomStringConvertible { - public var description: Swift.String { - get - } -} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftmodule b/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftmodule deleted file mode 100644 index 53f9b9f3..00000000 Binary files a/ios/platform/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64.swiftmodule and /dev/null differ diff --git a/ios/platform/FBSDKShareKit.xcframework/Info.plist b/ios/platform/FBSDKShareKit.xcframework/Info.plist new file mode 100644 index 00000000..3b217f0d --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/Info.plist @@ -0,0 +1,82 @@ + + + + + AvailableLibraries + + + LibraryIdentifier + tvos-arm64_x86_64-simulator + LibraryPath + FBSDKShareKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + tvos + SupportedPlatformVariant + simulator + + + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + FBSDKShareKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + LibraryIdentifier + tvos-arm64 + LibraryPath + FBSDKShareKit.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + tvos + + + LibraryIdentifier + ios-arm64 + LibraryPath + FBSDKShareKit.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + LibraryIdentifier + ios-arm64_x86_64-maccatalyst + LibraryPath + FBSDKShareKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + maccatalyst + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/ios/platform/FBSDKShareKit.xcframework/LICENSE b/ios/platform/FBSDKShareKit.xcframework/LICENSE new file mode 100644 index 00000000..2eecb625 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/LICENSE @@ -0,0 +1,17 @@ +Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + +You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +copy, modify, and distribute this software in source code or binary form for use +in connection with the web services and APIs provided by Facebook. + +As with any software that integrates with the Facebook platform, your use of +this software is subject to the Facebook Platform Policy +[http://developers.facebook.com/policy/]. This copyright notice shall be +included in all copies or substantial portions of the software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +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. diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/FBSDKShareKit b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/FBSDKShareKit new file mode 100644 index 00000000..6c9f9246 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/FBSDKShareKit differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h new file mode 100644 index 00000000..02dcbb27 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags to indicate support for newer bridge options beyond the initial 20130410 implementation. +typedef NS_OPTIONS(NSUInteger, FBSDKShareBridgeOptions) { + FBSDKShareBridgeOptionsDefault = 0, + FBSDKShareBridgeOptionsPhotoAsset = 1 << 0, + FBSDKShareBridgeOptionsPhotoImageURL = 1 << 1, // if set, a web-based URL is required; asset, image, and imageURL.isFileURL not allowed + FBSDKShareBridgeOptionsVideoAsset = 1 << 2, + FBSDKShareBridgeOptionsVideoData = 1 << 3, + FBSDKShareBridgeOptionsWebHashtag = 1 << 4, // if set, pass the hashtag as a string value, not an array of one string +} NS_SWIFT_NAME(ShareBridgeOptions); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h new file mode 100644 index 00000000..a4dfe609 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKShareKit. + + Error codes from the SDK in the range 200-299 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h new file mode 100644 index 00000000..319e8628 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h @@ -0,0 +1,963 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import CoreGraphics; +@import FBSDKCoreKit; +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSURL; +@class NSString; +enum FBSDKAppInviteDestination : NSInteger; + +/// A model for app invite +SWIFT_CLASS_NAMED("AppInviteContent") +@interface FBSDKAppInviteContent : NSObject +/// A URL to a preview image that will be displayed with the app invite +/// This is optional. If you don’t include it a fallback image will be used. +@property (nonatomic, copy) NSURL * _Nullable appInvitePreviewImageURL; +/// An app link target that will be used as a target when the user accept the invite. +@property (nonatomic, copy) NSURL * _Nonnull appLinkURL; +/// Promotional code to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 10 characters long and can contain +/// alphanumeric characters only. To set a promo code, you need to set promo text. +@property (nonatomic, copy) NSString * _Nullable promotionCode; +/// Promotional text to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 80 characters long and can contain +/// alphanumeric and spaces only. +@property (nonatomic, copy) NSString * _Nullable promotionText; +/// Destination for the app invite. The default value is .facebook. +@property (nonatomic) enum FBSDKAppInviteDestination destination; +- (nonnull instancetype)initWithAppLinkURL:(NSURL * _Nonnull)appLinkURL OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Specifies the privacy of a group. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKAppInviteDestination, "Destination", open) { +/// Deliver to Facebook + FBSDKAppInviteDestinationFacebook = 0, + FBSDKAppInviteDestinationMessenger = 1, +}; + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +@interface FBSDKAppInviteContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A container of arguments for a camera effect. +/// An argument is a String or [String] identified by a String key. +SWIFT_CLASS_NAMED("CameraEffectArguments") +@interface FBSDKCameraEffectArguments : NSObject +/// Sets a string argument in the container. +/// @param string The argument +/// @param key The key for the argument +- (void)setString:(NSString * _Nullable)string forKey:(NSString * _Nonnull)key; +/// Gets a string argument from the container. +/// @param key The key for the argument +/// @return The string value or nil +- (NSString * _Nullable)stringForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +/// Sets a string array argument in the container. +/// @param array The array argument +/// @param key The key for the argument +- (void)setArray:(NSArray * _Nullable)array forKey:(NSString * _Nonnull)key; +/// Gets an array argument from the container. +/// @param key The key for the argument +/// @return The array argument +- (NSArray * _Nullable)arrayForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class UIImage; + +/// A container of textures for a camera effect. +/// A texture for a camera effect is an UIImages identified by a NSString key. +SWIFT_CLASS_NAMED("CameraEffectTextures") +@interface FBSDKCameraEffectTextures : NSObject +/// Sets the image for a texture key. +/// @param image The UIImage for the texture +/// @param key The key for the texture +- (void)setImage:(UIImage * _Nullable)image forKey:(NSString * _Nonnull)key; +/// Gets the image for a texture key. +/// @param key The key for the texture +/// @return The texture UIImage or nil +- (UIImage * _Nullable)imageForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@protocol FBSDKSharingContent; + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + +@class FBSDKMessageDialog; +@class NSCoder; + +/// A button to send content through Messenger. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disable. +SWIFT_CLASS_NAMED("FBSendButton") +@interface FBSDKSendButton : FBSDKButton +@property (nonatomic, strong) FBSDKMessageDialog * _Nullable dialog; +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + + +/// A button to share content. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disabled. +SWIFT_CLASS_NAMED("FBShareButton") +@interface FBSDKShareButton : FBSDKButton +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@protocol FBSDKSharingDelegate; + +/// The common interface for components that initiate sharing. +/// See ShareDialog, MessageDialog +SWIFT_PROTOCOL_NAMED("Sharing") +@protocol FBSDKSharing +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Validates the content on the receiver. +/// @throws An error if the content is invalid +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for dialogs that initiate sharing. +SWIFT_PROTOCOL_NAMED("SharingDialog") +@protocol FBSDKSharingDialog +/// A boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate(error:) +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +@end + + +/// A dialog for sharing content through Messenger. +/// SUPPORTED SHARE TYPES +///
    +///
  • +/// FBSDKShareLinkContent +///
  • +///
+/// UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) +///
    +///
  • +/// FBSDKShareOpenGraphContent +///
  • +///
  • +/// FBSDKSharePhotoContent +///
  • +///
  • +/// FBSDKShareVideoContent +///
  • +///
  • +/// FBSDKShareMessengerOpenGraphMusicTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerMediaTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerGenericTemplateContent +///
  • +///
  • +/// Any other types that are not one of the four supported types listed above +///
  • +///
+SWIFT_CLASS_NAMED("MessageDialog") +@interface FBSDKMessageDialog : NSObject +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was mis-configured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +/// Convenience initializer to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. +- (nonnull instancetype)initWithContent:(id _Nullable)content delegate:(id _Nullable)delegate; +/// Convenience method to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)dialogWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)showWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate() +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +/// Validates the content on the receiver. +/// @return true if the content is valid, otherwise false. +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + + + +/// A model for content to share with a Facebook camera effect. +SWIFT_CLASS_NAMED("ShareCameraEffectContent") +@interface FBSDKShareCameraEffectContent : NSObject +/// ID of the camera effect to use. +@property (nonatomic, copy) NSString * _Nonnull effectID; +/// Arguments for the effect. +@property (nonatomic, strong) FBSDKCameraEffectArguments * _Nonnull effectArguments; +/// Textures for the effect. +@property (nonatomic, strong) FBSDKCameraEffectTextures * _Nonnull effectTextures; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareCameraEffectContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class UIViewController; +enum FBSDKShareDialogMode : NSUInteger; + +/// A dialog for sharing content on Facebook. +SWIFT_CLASS_NAMED("ShareDialog") +@interface FBSDKShareDialog : NSObject +/// A UIViewController from which to present the dialog. +/// If not specified, the topmost view controller will be automatically determined as best as possible. +@property (nonatomic, weak) UIViewController * _Nullable fromViewController; +/// The mode with which to display the dialog. +/// Defaults to .automatic, which will automatically choose the best available mode. +@property (nonatomic) enum FBSDKShareDialogMode mode; +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Convenience initializer to initialize a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. +- (nonnull instancetype)initWithViewController:(UIViewController * _Nullable)viewController content:(id _Nullable)content delegate:(id _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; +/// Convenience method to create a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)dialogWithViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)showFromViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@end + +/// Modes for the FBSDKShareDialog. +/// The automatic mode will progressively check the availability of different modes and open the most +/// appropriate mode for the dialog that is available. +typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKShareDialogMode, "Mode", open) { +/// Acts with the most appropriate mode that is available. + FBSDKShareDialogModeAutomatic = 0, +/// Displays the dialog in the main native Facebook app. + FBSDKShareDialogModeNative = 1, +/// Displays the dialog in the iOS integrated share sheet. + FBSDKShareDialogModeShareSheet = 2, +/// Displays the dialog in Safari. + FBSDKShareDialogModeBrowser = 3, +/// Displays the dialog in a WKWebView within the app. + FBSDKShareDialogModeWeb = 4, +/// Displays the feed dialog in Safari. + FBSDKShareDialogModeFeedBrowser = 5, +/// Displays the feed dialog in a WKWebView within the app. + FBSDKShareDialogModeFeedWeb = 6, +}; + +@class FBSDKWebDialog; + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary * _Nonnull)results; +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; +- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; +@end + + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@property (nonatomic, readonly) BOOL canShow; +- (BOOL)show; +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + + + +/// A delegate for types conforming to the Sharing protocol. +/// The delegate is notified with the results of the sharer as long as the application has permissions to +/// receive the information. For example, if the person is not signed into the containing app, the sharer may not be able +/// to distinguish between completion of a share and cancellation. +SWIFT_PROTOCOL_NAMED("SharingDelegate") +@protocol FBSDKSharingDelegate +/// Sent to the delegate when sharing completes without error or cancellation. +/// @param sharer The sharer that completed. +/// @param results The results from the sharer. This may be nil or empty. +- (void)sharer:(id _Nonnull)sharer didCompleteWithResults:(NSDictionary * _Nonnull)results; +/// Sent to the delegate when the sharer encounters an error. +/// @param sharer The sharer that completed. +/// @param error The error. +- (void)sharer:(id _Nonnull)sharer didFailWithError:(NSError * _Nonnull)error; +/// Sent to the delegate when the sharer is cancelled. +/// @param sharer The sharer that completed. +- (void)sharerDidCancel:(id _Nonnull)sharer; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit.h new file mode 100644 index 00000000..1600ab9e --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Info.plist b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Info.plist new file mode 100644 index 00000000..4dc9b5f6 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftdoc new file mode 100644 index 00000000..fb167e7a Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 00000000..2f3e0b67 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,368 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Social +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKAppInviteContent) final public class AppInviteContent : ObjectiveC.NSObject { + @objc(FBSDKAppInviteDestination) public enum Destination : Swift.Int { + case facebook + case messenger + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } + } + @objc final public var appInvitePreviewImageURL: Foundation.URL? + @objc final public var appLinkURL: Foundation.URL + @objc final public var promotionCode: Swift.String? + @objc final public var promotionText: Swift.String? + @objc final public var destination: FBSDKShareKit.AppInviteContent.Destination + @objc(initWithAppLinkURL:) public init(appLinkURL: Foundation.URL) + @objc deinit +} +extension FBSDKShareKit.AppInviteContent : FBSDKShareKit.SharingValidation { + @objc final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectArguments) final public class CameraEffectArguments : ObjectiveC.NSObject { + @objc(setString:forKey:) final public func set(_ string: Swift.String?, forKey key: Swift.String) + @objc final public func string(forKey key: Swift.String) -> Swift.String? + @objc(setArray:forKey:) final public func set(_ array: [Swift.String]?, forKey key: Swift.String) + @objc final public func array(forKey key: Swift.String) -> [Swift.String]? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectTextures) final public class CameraEffectTextures : ObjectiveC.NSObject { + @objc(setImage:forKey:) final public func set(_ image: UIKit.UIImage?, forKey key: Swift.String) + @objc(imageForKey:) final public func image(forKey key: Swift.String) -> UIKit.UIImage? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSendButton) @_Concurrency.MainActor(unsafe) final public class FBSendButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton, FBSDKCoreKit.FBButtonImpressionLogging { + @objc @_Concurrency.MainActor(unsafe) final public var dialog: FBSDKShareKit.MessageDialog? + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @_Concurrency.MainActor(unsafe) @objc final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareButton) @_Concurrency.MainActor(unsafe) final public class FBShareButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton { + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @objc @_Concurrency.MainActor(unsafe) final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKMessageDialog) public class MessageDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak public var delegate: FBSDKShareKit.SharingDelegate? + @objc public var shareContent: FBSDKShareKit.SharingContent? + @objc public var shouldFailOnDataError: Swift.Bool + @objc(initWithContent:delegate:) convenience public init(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc(dialogWithContent:delegate:) public static func dialog(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc(showWithContent:delegate:) public static func show(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc public func show() -> Swift.Bool + @objc public func validate() throws + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareCameraEffectContent) final public class ShareCameraEffectContent : ObjectiveC.NSObject { + @objc final public var effectID: Swift.String + @objc final public var effectArguments: FBSDKShareKit.CameraEffectArguments + @objc final public var effectTextures: FBSDKShareKit.CameraEffectTextures + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareCameraEffectContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objcMembers @objc(FBSDKShareDialog) final public class ShareDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak final public var fromViewController: UIKit.UIViewController? + @objc final public var mode: FBSDKShareKit.ShareDialog.Mode + @objc weak final public var delegate: FBSDKShareKit.SharingDelegate? + @objc final public var shareContent: FBSDKShareKit.SharingContent? + @objc final public var shouldFailOnDataError: Swift.Bool + @objc(initWithViewController:content:delegate:) public init(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc deinit + @objc(dialogWithViewController:withContent:delegate:) final public class func dialog(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self + @discardableResult + @objc(showFromViewController:withContent:delegate:) final public class func show(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self +} +extension FBSDKShareKit.ShareDialog { + @objc final public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc final public func show() -> Swift.Bool + @objc final public func validate() throws +} +extension FBSDKShareKit.ShareDialog : FBSDKCoreKit.WebDialogDelegate { + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didCompleteWithResults results: [Swift.String : Any]) + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didFailWithError error: Swift.Error) + @objc final public func webDialogDidCancel(_ webDialog: FBSDKCoreKit.WebDialog) +} +extension FBSDKShareKit.ShareDialog { + @objc(FBSDKShareDialogMode) public enum Mode : Swift.UInt, Swift.CustomStringConvertible { + case automatic + case native + case shareSheet + case browser + case web + case feedBrowser + case feedWeb + public var description: Swift.String { + get + } + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } + } +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKSharing) public protocol Sharing { + @objc weak var delegate: FBSDKShareKit.SharingDelegate? { get set } + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } + @objc var shouldFailOnDataError: Swift.Bool { get set } + @objc(validateWithError:) func validate() throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingDelegate) public protocol SharingDelegate { + @objc(sharer:didCompleteWithResults:) func sharer(_ sharer: FBSDKShareKit.Sharing, didCompleteWithResults results: [Swift.String : Any]) + @objc(sharer:didFailWithError:) func sharer(_ sharer: FBSDKShareKit.Sharing, didFailWithError error: Swift.Error) + @objc(sharerDidCancel:) func sharerDidCancel(_ sharer: FBSDKShareKit.Sharing) +} +@objc(FBSDKSharingDialog) public protocol SharingDialog : FBSDKShareKit.Sharing { + @objc var canShow: Swift.Bool { get } + @objc @discardableResult + func show() -> Swift.Bool +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Equatable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Hashable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Equatable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Hashable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.framework/Modules/module.modulemap b/ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/module.modulemap similarity index 100% rename from ios/platform/FBSDKShareKit.framework/Modules/module.modulemap rename to ios/platform/FBSDKShareKit.xcframework/ios-arm64/FBSDKShareKit.framework/Modules/module.modulemap diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/FBSDKShareKit b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/FBSDKShareKit new file mode 100644 index 00000000..309023ef Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/FBSDKShareKit differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h new file mode 100644 index 00000000..02dcbb27 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags to indicate support for newer bridge options beyond the initial 20130410 implementation. +typedef NS_OPTIONS(NSUInteger, FBSDKShareBridgeOptions) { + FBSDKShareBridgeOptionsDefault = 0, + FBSDKShareBridgeOptionsPhotoAsset = 1 << 0, + FBSDKShareBridgeOptionsPhotoImageURL = 1 << 1, // if set, a web-based URL is required; asset, image, and imageURL.isFileURL not allowed + FBSDKShareBridgeOptionsVideoAsset = 1 << 2, + FBSDKShareBridgeOptionsVideoData = 1 << 3, + FBSDKShareBridgeOptionsWebHashtag = 1 << 4, // if set, pass the hashtag as a string value, not an array of one string +} NS_SWIFT_NAME(ShareBridgeOptions); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h new file mode 100644 index 00000000..a4dfe609 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKShareKit. + + Error codes from the SDK in the range 200-299 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h new file mode 100644 index 00000000..332acc2a --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h @@ -0,0 +1,1932 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import CoreGraphics; +@import FBSDKCoreKit; +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSURL; +@class NSString; +enum FBSDKAppInviteDestination : NSInteger; + +/// A model for app invite +SWIFT_CLASS_NAMED("AppInviteContent") +@interface FBSDKAppInviteContent : NSObject +/// A URL to a preview image that will be displayed with the app invite +/// This is optional. If you don’t include it a fallback image will be used. +@property (nonatomic, copy) NSURL * _Nullable appInvitePreviewImageURL; +/// An app link target that will be used as a target when the user accept the invite. +@property (nonatomic, copy) NSURL * _Nonnull appLinkURL; +/// Promotional code to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 10 characters long and can contain +/// alphanumeric characters only. To set a promo code, you need to set promo text. +@property (nonatomic, copy) NSString * _Nullable promotionCode; +/// Promotional text to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 80 characters long and can contain +/// alphanumeric and spaces only. +@property (nonatomic, copy) NSString * _Nullable promotionText; +/// Destination for the app invite. The default value is .facebook. +@property (nonatomic) enum FBSDKAppInviteDestination destination; +- (nonnull instancetype)initWithAppLinkURL:(NSURL * _Nonnull)appLinkURL OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Specifies the privacy of a group. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKAppInviteDestination, "Destination", open) { +/// Deliver to Facebook + FBSDKAppInviteDestinationFacebook = 0, + FBSDKAppInviteDestinationMessenger = 1, +}; + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +@interface FBSDKAppInviteContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A container of arguments for a camera effect. +/// An argument is a String or [String] identified by a String key. +SWIFT_CLASS_NAMED("CameraEffectArguments") +@interface FBSDKCameraEffectArguments : NSObject +/// Sets a string argument in the container. +/// @param string The argument +/// @param key The key for the argument +- (void)setString:(NSString * _Nullable)string forKey:(NSString * _Nonnull)key; +/// Gets a string argument from the container. +/// @param key The key for the argument +/// @return The string value or nil +- (NSString * _Nullable)stringForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +/// Sets a string array argument in the container. +/// @param array The array argument +/// @param key The key for the argument +- (void)setArray:(NSArray * _Nullable)array forKey:(NSString * _Nonnull)key; +/// Gets an array argument from the container. +/// @param key The key for the argument +/// @return The array argument +- (NSArray * _Nullable)arrayForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class UIImage; + +/// A container of textures for a camera effect. +/// A texture for a camera effect is an UIImages identified by a NSString key. +SWIFT_CLASS_NAMED("CameraEffectTextures") +@interface FBSDKCameraEffectTextures : NSObject +/// Sets the image for a texture key. +/// @param image The UIImage for the texture +/// @param key The key for the texture +- (void)setImage:(UIImage * _Nullable)image forKey:(NSString * _Nonnull)key; +/// Gets the image for a texture key. +/// @param key The key for the texture +/// @return The texture UIImage or nil +- (UIImage * _Nullable)imageForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@protocol FBSDKSharingContent; + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + +@class FBSDKMessageDialog; +@class NSCoder; + +/// A button to send content through Messenger. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disable. +SWIFT_CLASS_NAMED("FBSendButton") +@interface FBSDKSendButton : FBSDKButton +@property (nonatomic, strong) FBSDKMessageDialog * _Nullable dialog; +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + + +/// A button to share content. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disabled. +SWIFT_CLASS_NAMED("FBShareButton") +@interface FBSDKShareButton : FBSDKButton +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@protocol FBSDKSharingDelegate; + +/// The common interface for components that initiate sharing. +/// See ShareDialog, MessageDialog +SWIFT_PROTOCOL_NAMED("Sharing") +@protocol FBSDKSharing +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Validates the content on the receiver. +/// @throws An error if the content is invalid +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for dialogs that initiate sharing. +SWIFT_PROTOCOL_NAMED("SharingDialog") +@protocol FBSDKSharingDialog +/// A boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate(error:) +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +@end + + +/// A dialog for sharing content through Messenger. +/// SUPPORTED SHARE TYPES +///
    +///
  • +/// FBSDKShareLinkContent +///
  • +///
+/// UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) +///
    +///
  • +/// FBSDKShareOpenGraphContent +///
  • +///
  • +/// FBSDKSharePhotoContent +///
  • +///
  • +/// FBSDKShareVideoContent +///
  • +///
  • +/// FBSDKShareMessengerOpenGraphMusicTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerMediaTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerGenericTemplateContent +///
  • +///
  • +/// Any other types that are not one of the four supported types listed above +///
  • +///
+SWIFT_CLASS_NAMED("MessageDialog") +@interface FBSDKMessageDialog : NSObject +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was mis-configured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +/// Convenience initializer to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. +- (nonnull instancetype)initWithContent:(id _Nullable)content delegate:(id _Nullable)delegate; +/// Convenience method to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)dialogWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)showWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate() +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +/// Validates the content on the receiver. +/// @return true if the content is valid, otherwise false. +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + + + +/// A model for content to share with a Facebook camera effect. +SWIFT_CLASS_NAMED("ShareCameraEffectContent") +@interface FBSDKShareCameraEffectContent : NSObject +/// ID of the camera effect to use. +@property (nonatomic, copy) NSString * _Nonnull effectID; +/// Arguments for the effect. +@property (nonatomic, strong) FBSDKCameraEffectArguments * _Nonnull effectArguments; +/// Textures for the effect. +@property (nonatomic, strong) FBSDKCameraEffectTextures * _Nonnull effectTextures; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareCameraEffectContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class UIViewController; +enum FBSDKShareDialogMode : NSUInteger; + +/// A dialog for sharing content on Facebook. +SWIFT_CLASS_NAMED("ShareDialog") +@interface FBSDKShareDialog : NSObject +/// A UIViewController from which to present the dialog. +/// If not specified, the topmost view controller will be automatically determined as best as possible. +@property (nonatomic, weak) UIViewController * _Nullable fromViewController; +/// The mode with which to display the dialog. +/// Defaults to .automatic, which will automatically choose the best available mode. +@property (nonatomic) enum FBSDKShareDialogMode mode; +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Convenience initializer to initialize a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. +- (nonnull instancetype)initWithViewController:(UIViewController * _Nullable)viewController content:(id _Nullable)content delegate:(id _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; +/// Convenience method to create a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)dialogWithViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)showFromViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@end + +/// Modes for the FBSDKShareDialog. +/// The automatic mode will progressively check the availability of different modes and open the most +/// appropriate mode for the dialog that is available. +typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKShareDialogMode, "Mode", open) { +/// Acts with the most appropriate mode that is available. + FBSDKShareDialogModeAutomatic = 0, +/// Displays the dialog in the main native Facebook app. + FBSDKShareDialogModeNative = 1, +/// Displays the dialog in the iOS integrated share sheet. + FBSDKShareDialogModeShareSheet = 2, +/// Displays the dialog in Safari. + FBSDKShareDialogModeBrowser = 3, +/// Displays the dialog in a WKWebView within the app. + FBSDKShareDialogModeWeb = 4, +/// Displays the feed dialog in Safari. + FBSDKShareDialogModeFeedBrowser = 5, +/// Displays the feed dialog in a WKWebView within the app. + FBSDKShareDialogModeFeedWeb = 6, +}; + +@class FBSDKWebDialog; + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary * _Nonnull)results; +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; +- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; +@end + + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@property (nonatomic, readonly) BOOL canShow; +- (BOOL)show; +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + + + +/// A delegate for types conforming to the Sharing protocol. +/// The delegate is notified with the results of the sharer as long as the application has permissions to +/// receive the information. For example, if the person is not signed into the containing app, the sharer may not be able +/// to distinguish between completion of a share and cancellation. +SWIFT_PROTOCOL_NAMED("SharingDelegate") +@protocol FBSDKSharingDelegate +/// Sent to the delegate when sharing completes without error or cancellation. +/// @param sharer The sharer that completed. +/// @param results The results from the sharer. This may be nil or empty. +- (void)sharer:(id _Nonnull)sharer didCompleteWithResults:(NSDictionary * _Nonnull)results; +/// Sent to the delegate when the sharer encounters an error. +/// @param sharer The sharer that completed. +/// @param error The error. +- (void)sharer:(id _Nonnull)sharer didFailWithError:(NSError * _Nonnull)error; +/// Sent to the delegate when the sharer is cancelled. +/// @param sharer The sharer that completed. +- (void)sharerDidCancel:(id _Nonnull)sharer; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import CoreGraphics; +@import FBSDKCoreKit; +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSURL; +@class NSString; +enum FBSDKAppInviteDestination : NSInteger; + +/// A model for app invite +SWIFT_CLASS_NAMED("AppInviteContent") +@interface FBSDKAppInviteContent : NSObject +/// A URL to a preview image that will be displayed with the app invite +/// This is optional. If you don’t include it a fallback image will be used. +@property (nonatomic, copy) NSURL * _Nullable appInvitePreviewImageURL; +/// An app link target that will be used as a target when the user accept the invite. +@property (nonatomic, copy) NSURL * _Nonnull appLinkURL; +/// Promotional code to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 10 characters long and can contain +/// alphanumeric characters only. To set a promo code, you need to set promo text. +@property (nonatomic, copy) NSString * _Nullable promotionCode; +/// Promotional text to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 80 characters long and can contain +/// alphanumeric and spaces only. +@property (nonatomic, copy) NSString * _Nullable promotionText; +/// Destination for the app invite. The default value is .facebook. +@property (nonatomic) enum FBSDKAppInviteDestination destination; +- (nonnull instancetype)initWithAppLinkURL:(NSURL * _Nonnull)appLinkURL OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Specifies the privacy of a group. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKAppInviteDestination, "Destination", open) { +/// Deliver to Facebook + FBSDKAppInviteDestinationFacebook = 0, + FBSDKAppInviteDestinationMessenger = 1, +}; + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +@interface FBSDKAppInviteContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A container of arguments for a camera effect. +/// An argument is a String or [String] identified by a String key. +SWIFT_CLASS_NAMED("CameraEffectArguments") +@interface FBSDKCameraEffectArguments : NSObject +/// Sets a string argument in the container. +/// @param string The argument +/// @param key The key for the argument +- (void)setString:(NSString * _Nullable)string forKey:(NSString * _Nonnull)key; +/// Gets a string argument from the container. +/// @param key The key for the argument +/// @return The string value or nil +- (NSString * _Nullable)stringForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +/// Sets a string array argument in the container. +/// @param array The array argument +/// @param key The key for the argument +- (void)setArray:(NSArray * _Nullable)array forKey:(NSString * _Nonnull)key; +/// Gets an array argument from the container. +/// @param key The key for the argument +/// @return The array argument +- (NSArray * _Nullable)arrayForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class UIImage; + +/// A container of textures for a camera effect. +/// A texture for a camera effect is an UIImages identified by a NSString key. +SWIFT_CLASS_NAMED("CameraEffectTextures") +@interface FBSDKCameraEffectTextures : NSObject +/// Sets the image for a texture key. +/// @param image The UIImage for the texture +/// @param key The key for the texture +- (void)setImage:(UIImage * _Nullable)image forKey:(NSString * _Nonnull)key; +/// Gets the image for a texture key. +/// @param key The key for the texture +/// @return The texture UIImage or nil +- (UIImage * _Nullable)imageForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@protocol FBSDKSharingContent; + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + +@class FBSDKMessageDialog; +@class NSCoder; + +/// A button to send content through Messenger. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disable. +SWIFT_CLASS_NAMED("FBSendButton") +@interface FBSDKSendButton : FBSDKButton +@property (nonatomic, strong) FBSDKMessageDialog * _Nullable dialog; +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + + +/// A button to share content. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disabled. +SWIFT_CLASS_NAMED("FBShareButton") +@interface FBSDKShareButton : FBSDKButton +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@protocol FBSDKSharingDelegate; + +/// The common interface for components that initiate sharing. +/// See ShareDialog, MessageDialog +SWIFT_PROTOCOL_NAMED("Sharing") +@protocol FBSDKSharing +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Validates the content on the receiver. +/// @throws An error if the content is invalid +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for dialogs that initiate sharing. +SWIFT_PROTOCOL_NAMED("SharingDialog") +@protocol FBSDKSharingDialog +/// A boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate(error:) +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +@end + + +/// A dialog for sharing content through Messenger. +/// SUPPORTED SHARE TYPES +///
    +///
  • +/// FBSDKShareLinkContent +///
  • +///
+/// UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) +///
    +///
  • +/// FBSDKShareOpenGraphContent +///
  • +///
  • +/// FBSDKSharePhotoContent +///
  • +///
  • +/// FBSDKShareVideoContent +///
  • +///
  • +/// FBSDKShareMessengerOpenGraphMusicTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerMediaTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerGenericTemplateContent +///
  • +///
  • +/// Any other types that are not one of the four supported types listed above +///
  • +///
+SWIFT_CLASS_NAMED("MessageDialog") +@interface FBSDKMessageDialog : NSObject +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was mis-configured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +/// Convenience initializer to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. +- (nonnull instancetype)initWithContent:(id _Nullable)content delegate:(id _Nullable)delegate; +/// Convenience method to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)dialogWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)showWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate() +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +/// Validates the content on the receiver. +/// @return true if the content is valid, otherwise false. +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + + + +/// A model for content to share with a Facebook camera effect. +SWIFT_CLASS_NAMED("ShareCameraEffectContent") +@interface FBSDKShareCameraEffectContent : NSObject +/// ID of the camera effect to use. +@property (nonatomic, copy) NSString * _Nonnull effectID; +/// Arguments for the effect. +@property (nonatomic, strong) FBSDKCameraEffectArguments * _Nonnull effectArguments; +/// Textures for the effect. +@property (nonatomic, strong) FBSDKCameraEffectTextures * _Nonnull effectTextures; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareCameraEffectContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class UIViewController; +enum FBSDKShareDialogMode : NSUInteger; + +/// A dialog for sharing content on Facebook. +SWIFT_CLASS_NAMED("ShareDialog") +@interface FBSDKShareDialog : NSObject +/// A UIViewController from which to present the dialog. +/// If not specified, the topmost view controller will be automatically determined as best as possible. +@property (nonatomic, weak) UIViewController * _Nullable fromViewController; +/// The mode with which to display the dialog. +/// Defaults to .automatic, which will automatically choose the best available mode. +@property (nonatomic) enum FBSDKShareDialogMode mode; +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Convenience initializer to initialize a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. +- (nonnull instancetype)initWithViewController:(UIViewController * _Nullable)viewController content:(id _Nullable)content delegate:(id _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; +/// Convenience method to create a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)dialogWithViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)showFromViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@end + +/// Modes for the FBSDKShareDialog. +/// The automatic mode will progressively check the availability of different modes and open the most +/// appropriate mode for the dialog that is available. +typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKShareDialogMode, "Mode", open) { +/// Acts with the most appropriate mode that is available. + FBSDKShareDialogModeAutomatic = 0, +/// Displays the dialog in the main native Facebook app. + FBSDKShareDialogModeNative = 1, +/// Displays the dialog in the iOS integrated share sheet. + FBSDKShareDialogModeShareSheet = 2, +/// Displays the dialog in Safari. + FBSDKShareDialogModeBrowser = 3, +/// Displays the dialog in a WKWebView within the app. + FBSDKShareDialogModeWeb = 4, +/// Displays the feed dialog in Safari. + FBSDKShareDialogModeFeedBrowser = 5, +/// Displays the feed dialog in a WKWebView within the app. + FBSDKShareDialogModeFeedWeb = 6, +}; + +@class FBSDKWebDialog; + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary * _Nonnull)results; +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; +- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; +@end + + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@property (nonatomic, readonly) BOOL canShow; +- (BOOL)show; +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + + + +/// A delegate for types conforming to the Sharing protocol. +/// The delegate is notified with the results of the sharer as long as the application has permissions to +/// receive the information. For example, if the person is not signed into the containing app, the sharer may not be able +/// to distinguish between completion of a share and cancellation. +SWIFT_PROTOCOL_NAMED("SharingDelegate") +@protocol FBSDKSharingDelegate +/// Sent to the delegate when sharing completes without error or cancellation. +/// @param sharer The sharer that completed. +/// @param results The results from the sharer. This may be nil or empty. +- (void)sharer:(id _Nonnull)sharer didCompleteWithResults:(NSDictionary * _Nonnull)results; +/// Sent to the delegate when the sharer encounters an error. +/// @param sharer The sharer that completed. +/// @param error The error. +- (void)sharer:(id _Nonnull)sharer didFailWithError:(NSError * _Nonnull)error; +/// Sent to the delegate when the sharer is cancelled. +/// @param sharer The sharer that completed. +- (void)sharerDidCancel:(id _Nonnull)sharer; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareKit.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareKit.h new file mode 100644 index 00000000..1600ab9e --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Headers/FBSDKShareKit.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc new file mode 100644 index 00000000..07bbbf3e Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-macabi.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..0b66834d --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-macabi.swiftinterface @@ -0,0 +1,368 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Social +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKAppInviteContent) final public class AppInviteContent : ObjectiveC.NSObject { + @objc(FBSDKAppInviteDestination) public enum Destination : Swift.Int { + case facebook + case messenger + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } + } + @objc final public var appInvitePreviewImageURL: Foundation.URL? + @objc final public var appLinkURL: Foundation.URL + @objc final public var promotionCode: Swift.String? + @objc final public var promotionText: Swift.String? + @objc final public var destination: FBSDKShareKit.AppInviteContent.Destination + @objc(initWithAppLinkURL:) public init(appLinkURL: Foundation.URL) + @objc deinit +} +extension FBSDKShareKit.AppInviteContent : FBSDKShareKit.SharingValidation { + @objc final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectArguments) final public class CameraEffectArguments : ObjectiveC.NSObject { + @objc(setString:forKey:) final public func set(_ string: Swift.String?, forKey key: Swift.String) + @objc final public func string(forKey key: Swift.String) -> Swift.String? + @objc(setArray:forKey:) final public func set(_ array: [Swift.String]?, forKey key: Swift.String) + @objc final public func array(forKey key: Swift.String) -> [Swift.String]? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectTextures) final public class CameraEffectTextures : ObjectiveC.NSObject { + @objc(setImage:forKey:) final public func set(_ image: UIKit.UIImage?, forKey key: Swift.String) + @objc(imageForKey:) final public func image(forKey key: Swift.String) -> UIKit.UIImage? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSendButton) @_Concurrency.MainActor(unsafe) final public class FBSendButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton, FBSDKCoreKit.FBButtonImpressionLogging { + @objc @_Concurrency.MainActor(unsafe) final public var dialog: FBSDKShareKit.MessageDialog? + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @_Concurrency.MainActor(unsafe) @objc final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareButton) @_Concurrency.MainActor(unsafe) final public class FBShareButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton { + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @objc @_Concurrency.MainActor(unsafe) final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKMessageDialog) public class MessageDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak public var delegate: FBSDKShareKit.SharingDelegate? + @objc public var shareContent: FBSDKShareKit.SharingContent? + @objc public var shouldFailOnDataError: Swift.Bool + @objc(initWithContent:delegate:) convenience public init(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc(dialogWithContent:delegate:) public static func dialog(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc(showWithContent:delegate:) public static func show(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc public func show() -> Swift.Bool + @objc public func validate() throws + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareCameraEffectContent) final public class ShareCameraEffectContent : ObjectiveC.NSObject { + @objc final public var effectID: Swift.String + @objc final public var effectArguments: FBSDKShareKit.CameraEffectArguments + @objc final public var effectTextures: FBSDKShareKit.CameraEffectTextures + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareCameraEffectContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objcMembers @objc(FBSDKShareDialog) final public class ShareDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak final public var fromViewController: UIKit.UIViewController? + @objc final public var mode: FBSDKShareKit.ShareDialog.Mode + @objc weak final public var delegate: FBSDKShareKit.SharingDelegate? + @objc final public var shareContent: FBSDKShareKit.SharingContent? + @objc final public var shouldFailOnDataError: Swift.Bool + @objc(initWithViewController:content:delegate:) public init(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc deinit + @objc(dialogWithViewController:withContent:delegate:) final public class func dialog(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self + @discardableResult + @objc(showFromViewController:withContent:delegate:) final public class func show(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self +} +extension FBSDKShareKit.ShareDialog { + @objc final public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc final public func show() -> Swift.Bool + @objc final public func validate() throws +} +extension FBSDKShareKit.ShareDialog : FBSDKCoreKit.WebDialogDelegate { + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didCompleteWithResults results: [Swift.String : Any]) + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didFailWithError error: Swift.Error) + @objc final public func webDialogDidCancel(_ webDialog: FBSDKCoreKit.WebDialog) +} +extension FBSDKShareKit.ShareDialog { + @objc(FBSDKShareDialogMode) public enum Mode : Swift.UInt, Swift.CustomStringConvertible { + case automatic + case native + case shareSheet + case browser + case web + case feedBrowser + case feedWeb + public var description: Swift.String { + get + } + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } + } +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKSharing) public protocol Sharing { + @objc weak var delegate: FBSDKShareKit.SharingDelegate? { get set } + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } + @objc var shouldFailOnDataError: Swift.Bool { get set } + @objc(validateWithError:) func validate() throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingDelegate) public protocol SharingDelegate { + @objc(sharer:didCompleteWithResults:) func sharer(_ sharer: FBSDKShareKit.Sharing, didCompleteWithResults results: [Swift.String : Any]) + @objc(sharer:didFailWithError:) func sharer(_ sharer: FBSDKShareKit.Sharing, didFailWithError error: Swift.Error) + @objc(sharerDidCancel:) func sharerDidCancel(_ sharer: FBSDKShareKit.Sharing) +} +@objc(FBSDKSharingDialog) public protocol SharingDialog : FBSDKShareKit.Sharing { + @objc var canShow: Swift.Bool { get } + @objc @discardableResult + func show() -> Swift.Bool +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Equatable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Hashable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Equatable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Hashable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc new file mode 100644 index 00000000..1e94ecba Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-macabi.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..f77e8662 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-macabi.swiftinterface @@ -0,0 +1,368 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Social +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKAppInviteContent) final public class AppInviteContent : ObjectiveC.NSObject { + @objc(FBSDKAppInviteDestination) public enum Destination : Swift.Int { + case facebook + case messenger + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } + } + @objc final public var appInvitePreviewImageURL: Foundation.URL? + @objc final public var appLinkURL: Foundation.URL + @objc final public var promotionCode: Swift.String? + @objc final public var promotionText: Swift.String? + @objc final public var destination: FBSDKShareKit.AppInviteContent.Destination + @objc(initWithAppLinkURL:) public init(appLinkURL: Foundation.URL) + @objc deinit +} +extension FBSDKShareKit.AppInviteContent : FBSDKShareKit.SharingValidation { + @objc final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectArguments) final public class CameraEffectArguments : ObjectiveC.NSObject { + @objc(setString:forKey:) final public func set(_ string: Swift.String?, forKey key: Swift.String) + @objc final public func string(forKey key: Swift.String) -> Swift.String? + @objc(setArray:forKey:) final public func set(_ array: [Swift.String]?, forKey key: Swift.String) + @objc final public func array(forKey key: Swift.String) -> [Swift.String]? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectTextures) final public class CameraEffectTextures : ObjectiveC.NSObject { + @objc(setImage:forKey:) final public func set(_ image: UIKit.UIImage?, forKey key: Swift.String) + @objc(imageForKey:) final public func image(forKey key: Swift.String) -> UIKit.UIImage? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSendButton) @_Concurrency.MainActor(unsafe) final public class FBSendButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton, FBSDKCoreKit.FBButtonImpressionLogging { + @objc @_Concurrency.MainActor(unsafe) final public var dialog: FBSDKShareKit.MessageDialog? + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @_Concurrency.MainActor(unsafe) @objc final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareButton) @_Concurrency.MainActor(unsafe) final public class FBShareButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton { + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @objc @_Concurrency.MainActor(unsafe) final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKMessageDialog) public class MessageDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak public var delegate: FBSDKShareKit.SharingDelegate? + @objc public var shareContent: FBSDKShareKit.SharingContent? + @objc public var shouldFailOnDataError: Swift.Bool + @objc(initWithContent:delegate:) convenience public init(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc(dialogWithContent:delegate:) public static func dialog(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc(showWithContent:delegate:) public static func show(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc public func show() -> Swift.Bool + @objc public func validate() throws + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareCameraEffectContent) final public class ShareCameraEffectContent : ObjectiveC.NSObject { + @objc final public var effectID: Swift.String + @objc final public var effectArguments: FBSDKShareKit.CameraEffectArguments + @objc final public var effectTextures: FBSDKShareKit.CameraEffectTextures + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareCameraEffectContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objcMembers @objc(FBSDKShareDialog) final public class ShareDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak final public var fromViewController: UIKit.UIViewController? + @objc final public var mode: FBSDKShareKit.ShareDialog.Mode + @objc weak final public var delegate: FBSDKShareKit.SharingDelegate? + @objc final public var shareContent: FBSDKShareKit.SharingContent? + @objc final public var shouldFailOnDataError: Swift.Bool + @objc(initWithViewController:content:delegate:) public init(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc deinit + @objc(dialogWithViewController:withContent:delegate:) final public class func dialog(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self + @discardableResult + @objc(showFromViewController:withContent:delegate:) final public class func show(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self +} +extension FBSDKShareKit.ShareDialog { + @objc final public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc final public func show() -> Swift.Bool + @objc final public func validate() throws +} +extension FBSDKShareKit.ShareDialog : FBSDKCoreKit.WebDialogDelegate { + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didCompleteWithResults results: [Swift.String : Any]) + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didFailWithError error: Swift.Error) + @objc final public func webDialogDidCancel(_ webDialog: FBSDKCoreKit.WebDialog) +} +extension FBSDKShareKit.ShareDialog { + @objc(FBSDKShareDialogMode) public enum Mode : Swift.UInt, Swift.CustomStringConvertible { + case automatic + case native + case shareSheet + case browser + case web + case feedBrowser + case feedWeb + public var description: Swift.String { + get + } + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } + } +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKSharing) public protocol Sharing { + @objc weak var delegate: FBSDKShareKit.SharingDelegate? { get set } + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } + @objc var shouldFailOnDataError: Swift.Bool { get set } + @objc(validateWithError:) func validate() throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingDelegate) public protocol SharingDelegate { + @objc(sharer:didCompleteWithResults:) func sharer(_ sharer: FBSDKShareKit.Sharing, didCompleteWithResults results: [Swift.String : Any]) + @objc(sharer:didFailWithError:) func sharer(_ sharer: FBSDKShareKit.Sharing, didFailWithError error: Swift.Error) + @objc(sharerDidCancel:) func sharerDidCancel(_ sharer: FBSDKShareKit.Sharing) +} +@objc(FBSDKSharingDialog) public protocol SharingDialog : FBSDKShareKit.Sharing { + @objc var canShow: Swift.Bool { get } + @objc @discardableResult + func show() -> Swift.Bool +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Equatable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Hashable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Equatable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Hashable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/module.modulemap b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..3d203af2 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKShareKit { + umbrella header "FBSDKShareKit.h" + + export * + module * { export * } +} + +module FBSDKShareKit.Swift { + header "FBSDKShareKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Resources/Info.plist b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Resources/Info.plist new file mode 100644 index 00000000..ff521cf2 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-maccatalyst/FBSDKShareKit.framework/Resources/Info.plist @@ -0,0 +1,52 @@ + + + + + BuildMachineOSBuild + 21D62 + CFBundleDevelopmentRegion + en + CFBundleExecutable + FBSDKShareKit + CFBundleIdentifier + com.facebook.sdk.FBSDKShareKit + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FBSDKShareKit + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 13.1.0 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 13E113 + DTPlatformName + macosx + DTPlatformVersion + 12.3 + DTSDKBuild + 21E226 + DTSDKName + macosx12.3 + DTXcode + 1330 + DTXcodeBuild + 13E113 + LSMinimumSystemVersion + 10.15 + UIDeviceFamily + + 2 + + + diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/FBSDKShareKit b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/FBSDKShareKit new file mode 100644 index 00000000..348f59c5 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/FBSDKShareKit differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h new file mode 100644 index 00000000..02dcbb27 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags to indicate support for newer bridge options beyond the initial 20130410 implementation. +typedef NS_OPTIONS(NSUInteger, FBSDKShareBridgeOptions) { + FBSDKShareBridgeOptionsDefault = 0, + FBSDKShareBridgeOptionsPhotoAsset = 1 << 0, + FBSDKShareBridgeOptionsPhotoImageURL = 1 << 1, // if set, a web-based URL is required; asset, image, and imageURL.isFileURL not allowed + FBSDKShareBridgeOptionsVideoAsset = 1 << 2, + FBSDKShareBridgeOptionsVideoData = 1 << 3, + FBSDKShareBridgeOptionsWebHashtag = 1 << 4, // if set, pass the hashtag as a string value, not an array of one string +} NS_SWIFT_NAME(ShareBridgeOptions); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h new file mode 100644 index 00000000..a4dfe609 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKShareKit. + + Error codes from the SDK in the range 200-299 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h new file mode 100644 index 00000000..332acc2a --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h @@ -0,0 +1,1932 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import CoreGraphics; +@import FBSDKCoreKit; +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSURL; +@class NSString; +enum FBSDKAppInviteDestination : NSInteger; + +/// A model for app invite +SWIFT_CLASS_NAMED("AppInviteContent") +@interface FBSDKAppInviteContent : NSObject +/// A URL to a preview image that will be displayed with the app invite +/// This is optional. If you don’t include it a fallback image will be used. +@property (nonatomic, copy) NSURL * _Nullable appInvitePreviewImageURL; +/// An app link target that will be used as a target when the user accept the invite. +@property (nonatomic, copy) NSURL * _Nonnull appLinkURL; +/// Promotional code to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 10 characters long and can contain +/// alphanumeric characters only. To set a promo code, you need to set promo text. +@property (nonatomic, copy) NSString * _Nullable promotionCode; +/// Promotional text to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 80 characters long and can contain +/// alphanumeric and spaces only. +@property (nonatomic, copy) NSString * _Nullable promotionText; +/// Destination for the app invite. The default value is .facebook. +@property (nonatomic) enum FBSDKAppInviteDestination destination; +- (nonnull instancetype)initWithAppLinkURL:(NSURL * _Nonnull)appLinkURL OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Specifies the privacy of a group. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKAppInviteDestination, "Destination", open) { +/// Deliver to Facebook + FBSDKAppInviteDestinationFacebook = 0, + FBSDKAppInviteDestinationMessenger = 1, +}; + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +@interface FBSDKAppInviteContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A container of arguments for a camera effect. +/// An argument is a String or [String] identified by a String key. +SWIFT_CLASS_NAMED("CameraEffectArguments") +@interface FBSDKCameraEffectArguments : NSObject +/// Sets a string argument in the container. +/// @param string The argument +/// @param key The key for the argument +- (void)setString:(NSString * _Nullable)string forKey:(NSString * _Nonnull)key; +/// Gets a string argument from the container. +/// @param key The key for the argument +/// @return The string value or nil +- (NSString * _Nullable)stringForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +/// Sets a string array argument in the container. +/// @param array The array argument +/// @param key The key for the argument +- (void)setArray:(NSArray * _Nullable)array forKey:(NSString * _Nonnull)key; +/// Gets an array argument from the container. +/// @param key The key for the argument +/// @return The array argument +- (NSArray * _Nullable)arrayForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class UIImage; + +/// A container of textures for a camera effect. +/// A texture for a camera effect is an UIImages identified by a NSString key. +SWIFT_CLASS_NAMED("CameraEffectTextures") +@interface FBSDKCameraEffectTextures : NSObject +/// Sets the image for a texture key. +/// @param image The UIImage for the texture +/// @param key The key for the texture +- (void)setImage:(UIImage * _Nullable)image forKey:(NSString * _Nonnull)key; +/// Gets the image for a texture key. +/// @param key The key for the texture +/// @return The texture UIImage or nil +- (UIImage * _Nullable)imageForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@protocol FBSDKSharingContent; + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + +@class FBSDKMessageDialog; +@class NSCoder; + +/// A button to send content through Messenger. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disable. +SWIFT_CLASS_NAMED("FBSendButton") +@interface FBSDKSendButton : FBSDKButton +@property (nonatomic, strong) FBSDKMessageDialog * _Nullable dialog; +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + + +/// A button to share content. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disabled. +SWIFT_CLASS_NAMED("FBShareButton") +@interface FBSDKShareButton : FBSDKButton +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@protocol FBSDKSharingDelegate; + +/// The common interface for components that initiate sharing. +/// See ShareDialog, MessageDialog +SWIFT_PROTOCOL_NAMED("Sharing") +@protocol FBSDKSharing +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Validates the content on the receiver. +/// @throws An error if the content is invalid +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for dialogs that initiate sharing. +SWIFT_PROTOCOL_NAMED("SharingDialog") +@protocol FBSDKSharingDialog +/// A boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate(error:) +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +@end + + +/// A dialog for sharing content through Messenger. +/// SUPPORTED SHARE TYPES +///
    +///
  • +/// FBSDKShareLinkContent +///
  • +///
+/// UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) +///
    +///
  • +/// FBSDKShareOpenGraphContent +///
  • +///
  • +/// FBSDKSharePhotoContent +///
  • +///
  • +/// FBSDKShareVideoContent +///
  • +///
  • +/// FBSDKShareMessengerOpenGraphMusicTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerMediaTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerGenericTemplateContent +///
  • +///
  • +/// Any other types that are not one of the four supported types listed above +///
  • +///
+SWIFT_CLASS_NAMED("MessageDialog") +@interface FBSDKMessageDialog : NSObject +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was mis-configured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +/// Convenience initializer to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. +- (nonnull instancetype)initWithContent:(id _Nullable)content delegate:(id _Nullable)delegate; +/// Convenience method to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)dialogWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)showWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate() +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +/// Validates the content on the receiver. +/// @return true if the content is valid, otherwise false. +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + + + +/// A model for content to share with a Facebook camera effect. +SWIFT_CLASS_NAMED("ShareCameraEffectContent") +@interface FBSDKShareCameraEffectContent : NSObject +/// ID of the camera effect to use. +@property (nonatomic, copy) NSString * _Nonnull effectID; +/// Arguments for the effect. +@property (nonatomic, strong) FBSDKCameraEffectArguments * _Nonnull effectArguments; +/// Textures for the effect. +@property (nonatomic, strong) FBSDKCameraEffectTextures * _Nonnull effectTextures; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareCameraEffectContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class UIViewController; +enum FBSDKShareDialogMode : NSUInteger; + +/// A dialog for sharing content on Facebook. +SWIFT_CLASS_NAMED("ShareDialog") +@interface FBSDKShareDialog : NSObject +/// A UIViewController from which to present the dialog. +/// If not specified, the topmost view controller will be automatically determined as best as possible. +@property (nonatomic, weak) UIViewController * _Nullable fromViewController; +/// The mode with which to display the dialog. +/// Defaults to .automatic, which will automatically choose the best available mode. +@property (nonatomic) enum FBSDKShareDialogMode mode; +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Convenience initializer to initialize a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. +- (nonnull instancetype)initWithViewController:(UIViewController * _Nullable)viewController content:(id _Nullable)content delegate:(id _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; +/// Convenience method to create a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)dialogWithViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)showFromViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@end + +/// Modes for the FBSDKShareDialog. +/// The automatic mode will progressively check the availability of different modes and open the most +/// appropriate mode for the dialog that is available. +typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKShareDialogMode, "Mode", open) { +/// Acts with the most appropriate mode that is available. + FBSDKShareDialogModeAutomatic = 0, +/// Displays the dialog in the main native Facebook app. + FBSDKShareDialogModeNative = 1, +/// Displays the dialog in the iOS integrated share sheet. + FBSDKShareDialogModeShareSheet = 2, +/// Displays the dialog in Safari. + FBSDKShareDialogModeBrowser = 3, +/// Displays the dialog in a WKWebView within the app. + FBSDKShareDialogModeWeb = 4, +/// Displays the feed dialog in Safari. + FBSDKShareDialogModeFeedBrowser = 5, +/// Displays the feed dialog in a WKWebView within the app. + FBSDKShareDialogModeFeedWeb = 6, +}; + +@class FBSDKWebDialog; + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary * _Nonnull)results; +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; +- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; +@end + + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@property (nonatomic, readonly) BOOL canShow; +- (BOOL)show; +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + + + +/// A delegate for types conforming to the Sharing protocol. +/// The delegate is notified with the results of the sharer as long as the application has permissions to +/// receive the information. For example, if the person is not signed into the containing app, the sharer may not be able +/// to distinguish between completion of a share and cancellation. +SWIFT_PROTOCOL_NAMED("SharingDelegate") +@protocol FBSDKSharingDelegate +/// Sent to the delegate when sharing completes without error or cancellation. +/// @param sharer The sharer that completed. +/// @param results The results from the sharer. This may be nil or empty. +- (void)sharer:(id _Nonnull)sharer didCompleteWithResults:(NSDictionary * _Nonnull)results; +/// Sent to the delegate when the sharer encounters an error. +/// @param sharer The sharer that completed. +/// @param error The error. +- (void)sharer:(id _Nonnull)sharer didFailWithError:(NSError * _Nonnull)error; +/// Sent to the delegate when the sharer is cancelled. +/// @param sharer The sharer that completed. +- (void)sharerDidCancel:(id _Nonnull)sharer; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import CoreGraphics; +@import FBSDKCoreKit; +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSURL; +@class NSString; +enum FBSDKAppInviteDestination : NSInteger; + +/// A model for app invite +SWIFT_CLASS_NAMED("AppInviteContent") +@interface FBSDKAppInviteContent : NSObject +/// A URL to a preview image that will be displayed with the app invite +/// This is optional. If you don’t include it a fallback image will be used. +@property (nonatomic, copy) NSURL * _Nullable appInvitePreviewImageURL; +/// An app link target that will be used as a target when the user accept the invite. +@property (nonatomic, copy) NSURL * _Nonnull appLinkURL; +/// Promotional code to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 10 characters long and can contain +/// alphanumeric characters only. To set a promo code, you need to set promo text. +@property (nonatomic, copy) NSString * _Nullable promotionCode; +/// Promotional text to be displayed while sending and receiving the invite. +/// This is optional. This can be between 0 and 80 characters long and can contain +/// alphanumeric and spaces only. +@property (nonatomic, copy) NSString * _Nullable promotionText; +/// Destination for the app invite. The default value is .facebook. +@property (nonatomic) enum FBSDKAppInviteDestination destination; +- (nonnull instancetype)initWithAppLinkURL:(NSURL * _Nonnull)appLinkURL OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +/// Specifies the privacy of a group. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKAppInviteDestination, "Destination", open) { +/// Deliver to Facebook + FBSDKAppInviteDestinationFacebook = 0, + FBSDKAppInviteDestinationMessenger = 1, +}; + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +@interface FBSDKAppInviteContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A container of arguments for a camera effect. +/// An argument is a String or [String] identified by a String key. +SWIFT_CLASS_NAMED("CameraEffectArguments") +@interface FBSDKCameraEffectArguments : NSObject +/// Sets a string argument in the container. +/// @param string The argument +/// @param key The key for the argument +- (void)setString:(NSString * _Nullable)string forKey:(NSString * _Nonnull)key; +/// Gets a string argument from the container. +/// @param key The key for the argument +/// @return The string value or nil +- (NSString * _Nullable)stringForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +/// Sets a string array argument in the container. +/// @param array The array argument +/// @param key The key for the argument +- (void)setArray:(NSArray * _Nullable)array forKey:(NSString * _Nonnull)key; +/// Gets an array argument from the container. +/// @param key The key for the argument +/// @return The array argument +- (NSArray * _Nullable)arrayForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@class UIImage; + +/// A container of textures for a camera effect. +/// A texture for a camera effect is an UIImages identified by a NSString key. +SWIFT_CLASS_NAMED("CameraEffectTextures") +@interface FBSDKCameraEffectTextures : NSObject +/// Sets the image for a texture key. +/// @param image The UIImage for the texture +/// @param key The key for the texture +- (void)setImage:(UIImage * _Nullable)image forKey:(NSString * _Nonnull)key; +/// Gets the image for a texture key. +/// @param key The key for the texture +/// @return The texture UIImage or nil +- (UIImage * _Nullable)imageForKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +@protocol FBSDKSharingContent; + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + +@class FBSDKMessageDialog; +@class NSCoder; + +/// A button to send content through Messenger. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disable. +SWIFT_CLASS_NAMED("FBSendButton") +@interface FBSDKSendButton : FBSDKButton +@property (nonatomic, strong) FBSDKMessageDialog * _Nullable dialog; +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + + +/// A button to share content. +/// Tapping the receiver will invoke the FBSDKShareDialog with the attached shareContent. If the dialog cannot +/// be shown, the button will be disabled. +SWIFT_CLASS_NAMED("FBShareButton") +@interface FBSDKShareButton : FBSDKButton +@property (nonatomic, strong) id _Nullable shareContent; +@property (nonatomic, readonly, copy) NSDictionary * _Nullable analyticsParameters; +@property (nonatomic, readonly) FBSDKAppEventName _Nonnull impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString * _Nonnull impressionTrackingIdentifier; +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; +- (void)configureButton; +- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; +- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER; +@end + + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +@protocol FBSDKSharingDelegate; + +/// The common interface for components that initiate sharing. +/// See ShareDialog, MessageDialog +SWIFT_PROTOCOL_NAMED("Sharing") +@protocol FBSDKSharing +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Validates the content on the receiver. +/// @throws An error if the content is invalid +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for dialogs that initiate sharing. +SWIFT_PROTOCOL_NAMED("SharingDialog") +@protocol FBSDKSharingDialog +/// A boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate(error:) +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +@end + + +/// A dialog for sharing content through Messenger. +/// SUPPORTED SHARE TYPES +///
    +///
  • +/// FBSDKShareLinkContent +///
  • +///
+/// UNSUPPORTED SHARE TYPES (DEPRECATED AUGUST 2018) +///
    +///
  • +/// FBSDKShareOpenGraphContent +///
  • +///
  • +/// FBSDKSharePhotoContent +///
  • +///
  • +/// FBSDKShareVideoContent +///
  • +///
  • +/// FBSDKShareMessengerOpenGraphMusicTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerMediaTemplateContent +///
  • +///
  • +/// FBSDKShareMessengerGenericTemplateContent +///
  • +///
  • +/// Any other types that are not one of the four supported types listed above +///
  • +///
+SWIFT_CLASS_NAMED("MessageDialog") +@interface FBSDKMessageDialog : NSObject +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was mis-configured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +/// Convenience initializer to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. +- (nonnull instancetype)initWithContent:(id _Nullable)content delegate:(id _Nullable)delegate; +/// Convenience method to return a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)dialogWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a Message Share Dialog with content and a delegate. +/// @param content The content to be shared. +/// @param delegate The receiver’s delegate. ++ (FBSDKMessageDialog * _Nonnull)showWithContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// A Boolean value that indicates whether the receiver can initiate a share. +/// May return false if the appropriate Facebook app is not installed and is required or an access token is +/// required but not available. This method does not validate the content on the receiver, so this can be checked before +/// building up the content. +/// See Sharing.validate() +/// @return true if the receiver can share, otherwise false. +@property (nonatomic, readonly) BOOL canShow; +/// Shows the dialog. +/// @return true if the receiver was able to begin sharing, otherwise false. +- (BOOL)show; +/// Validates the content on the receiver. +/// @return true if the content is valid, otherwise false. +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + + + +/// A model for content to share with a Facebook camera effect. +SWIFT_CLASS_NAMED("ShareCameraEffectContent") +@interface FBSDKShareCameraEffectContent : NSObject +/// ID of the camera effect to use. +@property (nonatomic, copy) NSString * _Nonnull effectID; +/// Arguments for the effect. +@property (nonatomic, strong) FBSDKCameraEffectArguments * _Nonnull effectArguments; +/// Textures for the effect. +@property (nonatomic, strong) FBSDKCameraEffectTextures * _Nonnull effectTextures; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareCameraEffectContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class UIViewController; +enum FBSDKShareDialogMode : NSUInteger; + +/// A dialog for sharing content on Facebook. +SWIFT_CLASS_NAMED("ShareDialog") +@interface FBSDKShareDialog : NSObject +/// A UIViewController from which to present the dialog. +/// If not specified, the topmost view controller will be automatically determined as best as possible. +@property (nonatomic, weak) UIViewController * _Nullable fromViewController; +/// The mode with which to display the dialog. +/// Defaults to .automatic, which will automatically choose the best available mode. +@property (nonatomic) enum FBSDKShareDialogMode mode; +/// The receiver’s delegate or nil if it doesn’t have a delegate. +@property (nonatomic, weak) id _Nullable delegate; +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +/// A Boolean value that indicates whether the receiver should fail if it finds an error with the share content. +/// If false, the sharer will still be displayed without the data that was misconfigured. For example, an +/// invalid placeID specified on the shareContent would produce a data error. +@property (nonatomic) BOOL shouldFailOnDataError; +/// Convenience initializer to initialize a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. +- (nonnull instancetype)initWithViewController:(UIViewController * _Nullable)viewController content:(id _Nullable)content delegate:(id _Nullable)delegate OBJC_DESIGNATED_INITIALIZER; +/// Convenience method to create a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)dialogWithViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate SWIFT_WARN_UNUSED_RESULT; +/// Convenience method to show a ShareDialog with a view controller, content and delegate. +/// @param viewController A view controller from which to present the dialog, if appropriate. +/// @param content The content to be shared. +/// @param delegate The dialog’s delegate. ++ (nonnull instancetype)showFromViewController:(UIViewController * _Nullable)viewController withContent:(id _Nullable)content delegate:(id _Nullable)delegate; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@end + +/// Modes for the FBSDKShareDialog. +/// The automatic mode will progressively check the availability of different modes and open the most +/// appropriate mode for the dialog that is available. +typedef SWIFT_ENUM_NAMED(NSUInteger, FBSDKShareDialogMode, "Mode", open) { +/// Acts with the most appropriate mode that is available. + FBSDKShareDialogModeAutomatic = 0, +/// Displays the dialog in the main native Facebook app. + FBSDKShareDialogModeNative = 1, +/// Displays the dialog in the iOS integrated share sheet. + FBSDKShareDialogModeShareSheet = 2, +/// Displays the dialog in Safari. + FBSDKShareDialogModeBrowser = 3, +/// Displays the dialog in a WKWebView within the app. + FBSDKShareDialogModeWeb = 4, +/// Displays the feed dialog in Safari. + FBSDKShareDialogModeFeedBrowser = 5, +/// Displays the feed dialog in a WKWebView within the app. + FBSDKShareDialogModeFeedWeb = 6, +}; + +@class FBSDKWebDialog; + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didCompleteWithResults:(NSDictionary * _Nonnull)results; +- (void)webDialog:(FBSDKWebDialog * _Nonnull)webDialog didFailWithError:(NSError * _Nonnull)error; +- (void)webDialogDidCancel:(FBSDKWebDialog * _Nonnull)webDialog; +@end + + + +@interface FBSDKShareDialog (SWIFT_EXTENSION(FBSDKShareKit)) +@property (nonatomic, readonly) BOOL canShow; +- (BOOL)show; +- (BOOL)validateWithError:(NSError * _Nullable * _Nullable)error; +@end + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + + + +/// A delegate for types conforming to the Sharing protocol. +/// The delegate is notified with the results of the sharer as long as the application has permissions to +/// receive the information. For example, if the person is not signed into the containing app, the sharer may not be able +/// to distinguish between completion of a share and cancellation. +SWIFT_PROTOCOL_NAMED("SharingDelegate") +@protocol FBSDKSharingDelegate +/// Sent to the delegate when sharing completes without error or cancellation. +/// @param sharer The sharer that completed. +/// @param results The results from the sharer. This may be nil or empty. +- (void)sharer:(id _Nonnull)sharer didCompleteWithResults:(NSDictionary * _Nonnull)results; +/// Sent to the delegate when the sharer encounters an error. +/// @param sharer The sharer that completed. +/// @param error The error. +- (void)sharer:(id _Nonnull)sharer didFailWithError:(NSError * _Nonnull)error; +/// Sent to the delegate when the sharer is cancelled. +/// @param sharer The sharer that completed. +- (void)sharerDidCancel:(id _Nonnull)sharer; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit.h b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit.h new file mode 100644 index 00000000..1600ab9e --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Info.plist b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Info.plist new file mode 100644 index 00000000..9b582376 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc new file mode 100644 index 00000000..7ee0f4db Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..20e69b42 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -0,0 +1,368 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Social +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKAppInviteContent) final public class AppInviteContent : ObjectiveC.NSObject { + @objc(FBSDKAppInviteDestination) public enum Destination : Swift.Int { + case facebook + case messenger + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } + } + @objc final public var appInvitePreviewImageURL: Foundation.URL? + @objc final public var appLinkURL: Foundation.URL + @objc final public var promotionCode: Swift.String? + @objc final public var promotionText: Swift.String? + @objc final public var destination: FBSDKShareKit.AppInviteContent.Destination + @objc(initWithAppLinkURL:) public init(appLinkURL: Foundation.URL) + @objc deinit +} +extension FBSDKShareKit.AppInviteContent : FBSDKShareKit.SharingValidation { + @objc final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectArguments) final public class CameraEffectArguments : ObjectiveC.NSObject { + @objc(setString:forKey:) final public func set(_ string: Swift.String?, forKey key: Swift.String) + @objc final public func string(forKey key: Swift.String) -> Swift.String? + @objc(setArray:forKey:) final public func set(_ array: [Swift.String]?, forKey key: Swift.String) + @objc final public func array(forKey key: Swift.String) -> [Swift.String]? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectTextures) final public class CameraEffectTextures : ObjectiveC.NSObject { + @objc(setImage:forKey:) final public func set(_ image: UIKit.UIImage?, forKey key: Swift.String) + @objc(imageForKey:) final public func image(forKey key: Swift.String) -> UIKit.UIImage? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSendButton) @_Concurrency.MainActor(unsafe) final public class FBSendButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton, FBSDKCoreKit.FBButtonImpressionLogging { + @objc @_Concurrency.MainActor(unsafe) final public var dialog: FBSDKShareKit.MessageDialog? + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @_Concurrency.MainActor(unsafe) @objc final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareButton) @_Concurrency.MainActor(unsafe) final public class FBShareButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton { + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @objc @_Concurrency.MainActor(unsafe) final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKMessageDialog) public class MessageDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak public var delegate: FBSDKShareKit.SharingDelegate? + @objc public var shareContent: FBSDKShareKit.SharingContent? + @objc public var shouldFailOnDataError: Swift.Bool + @objc(initWithContent:delegate:) convenience public init(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc(dialogWithContent:delegate:) public static func dialog(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc(showWithContent:delegate:) public static func show(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc public func show() -> Swift.Bool + @objc public func validate() throws + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareCameraEffectContent) final public class ShareCameraEffectContent : ObjectiveC.NSObject { + @objc final public var effectID: Swift.String + @objc final public var effectArguments: FBSDKShareKit.CameraEffectArguments + @objc final public var effectTextures: FBSDKShareKit.CameraEffectTextures + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareCameraEffectContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objcMembers @objc(FBSDKShareDialog) final public class ShareDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak final public var fromViewController: UIKit.UIViewController? + @objc final public var mode: FBSDKShareKit.ShareDialog.Mode + @objc weak final public var delegate: FBSDKShareKit.SharingDelegate? + @objc final public var shareContent: FBSDKShareKit.SharingContent? + @objc final public var shouldFailOnDataError: Swift.Bool + @objc(initWithViewController:content:delegate:) public init(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc deinit + @objc(dialogWithViewController:withContent:delegate:) final public class func dialog(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self + @discardableResult + @objc(showFromViewController:withContent:delegate:) final public class func show(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self +} +extension FBSDKShareKit.ShareDialog { + @objc final public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc final public func show() -> Swift.Bool + @objc final public func validate() throws +} +extension FBSDKShareKit.ShareDialog : FBSDKCoreKit.WebDialogDelegate { + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didCompleteWithResults results: [Swift.String : Any]) + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didFailWithError error: Swift.Error) + @objc final public func webDialogDidCancel(_ webDialog: FBSDKCoreKit.WebDialog) +} +extension FBSDKShareKit.ShareDialog { + @objc(FBSDKShareDialogMode) public enum Mode : Swift.UInt, Swift.CustomStringConvertible { + case automatic + case native + case shareSheet + case browser + case web + case feedBrowser + case feedWeb + public var description: Swift.String { + get + } + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } + } +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKSharing) public protocol Sharing { + @objc weak var delegate: FBSDKShareKit.SharingDelegate? { get set } + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } + @objc var shouldFailOnDataError: Swift.Bool { get set } + @objc(validateWithError:) func validate() throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingDelegate) public protocol SharingDelegate { + @objc(sharer:didCompleteWithResults:) func sharer(_ sharer: FBSDKShareKit.Sharing, didCompleteWithResults results: [Swift.String : Any]) + @objc(sharer:didFailWithError:) func sharer(_ sharer: FBSDKShareKit.Sharing, didFailWithError error: Swift.Error) + @objc(sharerDidCancel:) func sharerDidCancel(_ sharer: FBSDKShareKit.Sharing) +} +@objc(FBSDKSharingDialog) public protocol SharingDialog : FBSDKShareKit.Sharing { + @objc var canShow: Swift.Bool { get } + @objc @discardableResult + func show() -> Swift.Bool +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Equatable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Hashable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Equatable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Hashable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc new file mode 100644 index 00000000..fe98981c Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..cf0f0f93 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,368 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Social +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKAppInviteContent) final public class AppInviteContent : ObjectiveC.NSObject { + @objc(FBSDKAppInviteDestination) public enum Destination : Swift.Int { + case facebook + case messenger + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } + } + @objc final public var appInvitePreviewImageURL: Foundation.URL? + @objc final public var appLinkURL: Foundation.URL + @objc final public var promotionCode: Swift.String? + @objc final public var promotionText: Swift.String? + @objc final public var destination: FBSDKShareKit.AppInviteContent.Destination + @objc(initWithAppLinkURL:) public init(appLinkURL: Foundation.URL) + @objc deinit +} +extension FBSDKShareKit.AppInviteContent : FBSDKShareKit.SharingValidation { + @objc final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectArguments) final public class CameraEffectArguments : ObjectiveC.NSObject { + @objc(setString:forKey:) final public func set(_ string: Swift.String?, forKey key: Swift.String) + @objc final public func string(forKey key: Swift.String) -> Swift.String? + @objc(setArray:forKey:) final public func set(_ array: [Swift.String]?, forKey key: Swift.String) + @objc final public func array(forKey key: Swift.String) -> [Swift.String]? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKCameraEffectTextures) final public class CameraEffectTextures : ObjectiveC.NSObject { + @objc(setImage:forKey:) final public func set(_ image: UIKit.UIImage?, forKey key: Swift.String) + @objc(imageForKey:) final public func image(forKey key: Swift.String) -> UIKit.UIImage? + @objc override dynamic public init() + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSendButton) @_Concurrency.MainActor(unsafe) final public class FBSendButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton, FBSDKCoreKit.FBButtonImpressionLogging { + @objc @_Concurrency.MainActor(unsafe) final public var dialog: FBSDKShareKit.MessageDialog? + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @_Concurrency.MainActor(unsafe) @objc final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareButton) @_Concurrency.MainActor(unsafe) final public class FBShareButton : FBSDKCoreKit.FBButton, FBSDKShareKit.SharingButton { + @_Concurrency.MainActor(unsafe) @objc final public var shareContent: FBSDKShareKit.SharingContent? { + @objc get + @objc set + } + @objc @_Concurrency.MainActor(unsafe) final public var analyticsParameters: [FBSDKCoreKit.AppEvents.ParameterName : Any]? { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingEventName: FBSDKCoreKit.AppEvents.Name { + @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public var impressionTrackingIdentifier: Swift.String { + @objc get + } + @_Concurrency.MainActor(unsafe) @objc override final public var isImplicitlyDisabled: Swift.Bool { + @_Concurrency.MainActor(unsafe) @objc get + } + @objc @_Concurrency.MainActor(unsafe) final public func configureButton() + @_Concurrency.MainActor(unsafe) @objc override dynamic public init(frame: CoreGraphics.CGRect) + @_Concurrency.MainActor(unsafe) @objc required dynamic public init?(coder: Foundation.NSCoder) + @objc deinit +} +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKMessageDialog) public class MessageDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak public var delegate: FBSDKShareKit.SharingDelegate? + @objc public var shareContent: FBSDKShareKit.SharingContent? + @objc public var shouldFailOnDataError: Swift.Bool + @objc(initWithContent:delegate:) convenience public init(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc(dialogWithContent:delegate:) public static func dialog(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc(showWithContent:delegate:) public static func show(content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> FBSDKShareKit.MessageDialog + @objc public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc public func show() -> Swift.Bool + @objc public func validate() throws + @objc deinit +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareCameraEffectContent) final public class ShareCameraEffectContent : ObjectiveC.NSObject { + @objc final public var effectID: Swift.String + @objc final public var effectArguments: FBSDKShareKit.CameraEffectArguments + @objc final public var effectTextures: FBSDKShareKit.CameraEffectTextures + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareCameraEffectContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objcMembers @objc(FBSDKShareDialog) final public class ShareDialog : ObjectiveC.NSObject, FBSDKShareKit.SharingDialog { + @objc weak final public var fromViewController: UIKit.UIViewController? + @objc final public var mode: FBSDKShareKit.ShareDialog.Mode + @objc weak final public var delegate: FBSDKShareKit.SharingDelegate? + @objc final public var shareContent: FBSDKShareKit.SharingContent? + @objc final public var shouldFailOnDataError: Swift.Bool + @objc(initWithViewController:content:delegate:) public init(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) + @objc deinit + @objc(dialogWithViewController:withContent:delegate:) final public class func dialog(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self + @discardableResult + @objc(showFromViewController:withContent:delegate:) final public class func show(viewController: UIKit.UIViewController?, content: FBSDKShareKit.SharingContent?, delegate: FBSDKShareKit.SharingDelegate?) -> Self +} +extension FBSDKShareKit.ShareDialog { + @objc final public var canShow: Swift.Bool { + @objc get + } + @discardableResult + @objc final public func show() -> Swift.Bool + @objc final public func validate() throws +} +extension FBSDKShareKit.ShareDialog : FBSDKCoreKit.WebDialogDelegate { + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didCompleteWithResults results: [Swift.String : Any]) + @objc final public func webDialog(_ webDialog: FBSDKCoreKit.WebDialog, didFailWithError error: Swift.Error) + @objc final public func webDialogDidCancel(_ webDialog: FBSDKCoreKit.WebDialog) +} +extension FBSDKShareKit.ShareDialog { + @objc(FBSDKShareDialogMode) public enum Mode : Swift.UInt, Swift.CustomStringConvertible { + case automatic + case native + case shareSheet + case browser + case web + case feedBrowser + case feedWeb + public var description: Swift.String { + get + } + public init?(rawValue: Swift.UInt) + public typealias RawValue = Swift.UInt + public var rawValue: Swift.UInt { + get + } + } +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKSharing) public protocol Sharing { + @objc weak var delegate: FBSDKShareKit.SharingDelegate? { get set } + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } + @objc var shouldFailOnDataError: Swift.Bool { get set } + @objc(validateWithError:) func validate() throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingDelegate) public protocol SharingDelegate { + @objc(sharer:didCompleteWithResults:) func sharer(_ sharer: FBSDKShareKit.Sharing, didCompleteWithResults results: [Swift.String : Any]) + @objc(sharer:didFailWithError:) func sharer(_ sharer: FBSDKShareKit.Sharing, didFailWithError error: Swift.Error) + @objc(sharerDidCancel:) func sharerDidCancel(_ sharer: FBSDKShareKit.Sharing) +} +@objc(FBSDKSharingDialog) public protocol SharingDialog : FBSDKShareKit.Sharing { + @objc var canShow: Swift.Bool { get } + @objc @discardableResult + func show() -> Swift.Bool +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Equatable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.Hashable {} +extension FBSDKShareKit.AppInviteContent.Destination : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Equatable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.Hashable {} +extension FBSDKShareKit.ShareDialog.Mode : Swift.RawRepresentable {} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/module.modulemap b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..3d203af2 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKShareKit { + umbrella header "FBSDKShareKit.h" + + export * + module * { export * } +} + +module FBSDKShareKit.Swift { + header "FBSDKShareKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeDirectory b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeDirectory new file mode 100644 index 00000000..872ac06d Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeDirectory differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements new file mode 100644 index 00000000..dbf9d614 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements-1 b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 00000000..9af99b3c Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeResources b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..303586dc --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeResources @@ -0,0 +1,267 @@ + + + + + files + + Headers/FBSDKShareBridgeOptions.h + + UnSjaUXm5qLeLGXDUNVRzXY9NrQ= + + Headers/FBSDKShareErrorDomain.h + + ccdtzvuodQ/lvKIVoHt8KIM9u2U= + + Headers/FBSDKShareKit-Swift.h + + 2neuaz68NT8ycjnJ4suwRhvcJSM= + + Headers/FBSDKShareKit.h + + 3Vlzn/6bUD/wgctBGh6x9fepcJg= + + Info.plist + + 2uhyXhfOfyFetCcFNJx2wMg6uh0= + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + hEPKWPf1ter/Gw7FZiMwPa26Zco= + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + QnbXHHx3e1LS6hKvA3tRyzM1/I4= + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + YsAm/NqghY2Wm5aAsQ9ROxqsCNI= + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + Y5A7TxyFsfLRWtoh34nV24S+JRk= + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + N5WluHgOrKJJUo+iUmLL3gFp1Ew= + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + c7NHfrP0i4JqlWtmPOnhuVbq+UE= + + Modules/module.modulemap + + c/1l3+MTRWj+XKPFv/2HWhKeUtA= + + + files2 + + Headers/FBSDKShareBridgeOptions.h + + hash + + UnSjaUXm5qLeLGXDUNVRzXY9NrQ= + + hash2 + + IxpwBSGJEUrCXBdjRGpZ0yehzDl7wfNF5HReqM5qO/8= + + + Headers/FBSDKShareErrorDomain.h + + hash + + ccdtzvuodQ/lvKIVoHt8KIM9u2U= + + hash2 + + Gq/jBWHIi9/+dLPC1EqzBf+XM4GcHg1JpVUb0DiK6jM= + + + Headers/FBSDKShareKit-Swift.h + + hash + + 2neuaz68NT8ycjnJ4suwRhvcJSM= + + hash2 + + YBQhll4IT881vw37/GTtNNBrTcHOOP3M5CXlSMD6fsM= + + + Headers/FBSDKShareKit.h + + hash + + 3Vlzn/6bUD/wgctBGh6x9fepcJg= + + hash2 + + BizbBQ3VvhD8p64UL0pkalRRg0wPwYLFP3IXGeJnkE4= + + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + hash + + hEPKWPf1ter/Gw7FZiMwPa26Zco= + + hash2 + + /2tJ5E8ICMydPjO6FsaRHauRkP1cXWU0++eR6sgDOyQ= + + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + hash + + QnbXHHx3e1LS6hKvA3tRyzM1/I4= + + hash2 + + a8Rw6doG2emkNnsbNSTftbGEcxn/Z7vnLcEOmlFk76w= + + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + hash + + YsAm/NqghY2Wm5aAsQ9ROxqsCNI= + + hash2 + + TMhmcxXq2lAEB3GZFv2x5QdcROhrKBIM0MdXou4Mewk= + + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + hash + + Y5A7TxyFsfLRWtoh34nV24S+JRk= + + hash2 + + FLoLYSMYjjVqWLhgOtAr7/LutMZBEJtNhsV5nKOGfCQ= + + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + hash + + N5WluHgOrKJJUo+iUmLL3gFp1Ew= + + hash2 + + IH+4RmRF36lLQ8HbLtqNcrtZewzwX8U5OBB6Y4KcqsE= + + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + hash + + c7NHfrP0i4JqlWtmPOnhuVbq+UE= + + hash2 + + /dxDPZi1YqAC1GelemW7EYzsjELCo2BGG7WrSYnKqbY= + + + Modules/module.modulemap + + hash + + c/1l3+MTRWj+XKPFv/2HWhKeUtA= + + hash2 + + LFKLAS36xoxx786XN6Efo7GDNLqGNFpjOc/zQ1+JRXY= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeSignature b/ios/platform/FBSDKShareKit.xcframework/ios-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeSignature new file mode 100644 index 00000000..e69de29b diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/FBSDKShareKit b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/FBSDKShareKit new file mode 100644 index 00000000..b55a1fe3 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/FBSDKShareKit differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h new file mode 100644 index 00000000..02dcbb27 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags to indicate support for newer bridge options beyond the initial 20130410 implementation. +typedef NS_OPTIONS(NSUInteger, FBSDKShareBridgeOptions) { + FBSDKShareBridgeOptionsDefault = 0, + FBSDKShareBridgeOptionsPhotoAsset = 1 << 0, + FBSDKShareBridgeOptionsPhotoImageURL = 1 << 1, // if set, a web-based URL is required; asset, image, and imageURL.isFileURL not allowed + FBSDKShareBridgeOptionsVideoAsset = 1 << 2, + FBSDKShareBridgeOptionsVideoData = 1 << 3, + FBSDKShareBridgeOptionsWebHashtag = 1 << 4, // if set, pass the hashtag as a string value, not an array of one string +} NS_SWIFT_NAME(ShareBridgeOptions); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h new file mode 100644 index 00000000..a4dfe609 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKShareKit. + + Error codes from the SDK in the range 200-299 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h new file mode 100644 index 00000000..9cc30c1b --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h @@ -0,0 +1,594 @@ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSString; + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + +@class NSURL; + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class UIImage; +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit.h new file mode 100644 index 00000000..1600ab9e --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Headers/FBSDKShareKit.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import diff --git a/ios/platform/FBSDKShareKit.framework/Info.plist b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Info.plist similarity index 53% rename from ios/platform/FBSDKShareKit.framework/Info.plist rename to ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Info.plist index 20e05707..7c408ab5 100644 Binary files a/ios/platform/FBSDKShareKit.framework/Info.plist and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos.swiftdoc new file mode 100644 index 00000000..3dd9fdd3 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos.swiftinterface new file mode 100644 index 00000000..7fb9363e --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos.swiftinterface @@ -0,0 +1,186 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/module.modulemap b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..3d203af2 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64/FBSDKShareKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKShareKit { + umbrella header "FBSDKShareKit.h" + + export * + module * { export * } +} + +module FBSDKShareKit.Swift { + header "FBSDKShareKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/FBSDKShareKit b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/FBSDKShareKit new file mode 100644 index 00000000..54c14807 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/FBSDKShareKit differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h new file mode 100644 index 00000000..02dcbb27 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareBridgeOptions.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/// Flags to indicate support for newer bridge options beyond the initial 20130410 implementation. +typedef NS_OPTIONS(NSUInteger, FBSDKShareBridgeOptions) { + FBSDKShareBridgeOptionsDefault = 0, + FBSDKShareBridgeOptionsPhotoAsset = 1 << 0, + FBSDKShareBridgeOptionsPhotoImageURL = 1 << 1, // if set, a web-based URL is required; asset, image, and imageURL.isFileURL not allowed + FBSDKShareBridgeOptionsVideoAsset = 1 << 2, + FBSDKShareBridgeOptionsVideoData = 1 << 3, + FBSDKShareBridgeOptionsWebHashtag = 1 << 4, // if set, pass the hashtag as a string value, not an array of one string +} NS_SWIFT_NAME(ShareBridgeOptions); + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h new file mode 100644 index 00000000..a4dfe609 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareErrorDomain.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The error domain for all errors from FBSDKShareKit. + + Error codes from the SDK in the range 200-299 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain; + +NS_ASSUME_NONNULL_END diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h new file mode 100644 index 00000000..73305602 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit-Swift.h @@ -0,0 +1,1194 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSString; + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + +@class NSURL; + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class UIImage; +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +#ifndef FBSDKSHAREKIT_SWIFT_H +#define FBSDKSHAREKIT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if !defined(SWIFT_EXTERN) +# if defined(__cplusplus) +# define SWIFT_EXTERN extern "C" +# else +# define SWIFT_EXTERN extern +# endif +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +@import Foundation; +@import ObjectiveC; +#endif + +#import + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBSDKShareKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + + +@class NSString; + +/// Represents a single hashtag that can be used with the share dialog. +SWIFT_CLASS_NAMED("Hashtag") +@interface FBSDKHashtag : NSObject +/// The hashtag string. +/// You are responsible for making sure that stringRepresentation is a valid hashtag (a single ‘#’ followed by one or more +/// word characters). Invalid hashtags are ignored when sharing content. You can check validity with thevalid property. +/// @return The hashtag string +@property (nonatomic, copy) NSString * _Nonnull stringRepresentation; +- (nonnull instancetype)initWithString:(NSString * _Nonnull)string OBJC_DESIGNATED_INITIALIZER; +@property (nonatomic, readonly, copy) NSString * _Nonnull description; +/// Tests if a hashtag is valid. +/// A valid hashtag matches the regular expression “#\w+”: A single ‘#’ followed by one or more word characters. +/// @return true if the hashtag is valid, false otherwise. +@property (nonatomic, readonly) BOOL isValid; +@property (nonatomic, readonly) NSUInteger hash; +- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +/// ShareError +/// Error codes for ShareErrorDomain. +typedef SWIFT_ENUM_NAMED(NSInteger, FBSDKShareError, "ShareError", open) { +/// Reserved + FBSDKShareErrorReserved = 200, +/// The error code for errors from uploading open graph objects. + FBSDKShareErrorOpenGraph = 201, +/// The error code for when a sharing dialog is not available. +/// Use the canShare methods to check for this case before calling show. + FBSDKShareErrorDialogNotAvailable = 202, +/// The error code for unknown errors. + FBSDKShareErrorUnknown = 203, +}; + +@class NSURL; + +/// A model for status and link content to be shared. +SWIFT_CLASS_NAMED("ShareLinkContent") +@interface FBSDKShareLinkContent : NSObject +/// Some quote text of the link. +/// If specified, the quote text will render with custom styling on top of the link. +@property (nonatomic, copy) NSString * _Nullable quote; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +/// A base interface for validation of content and media. +SWIFT_PROTOCOL_NAMED("SharingValidation") +@protocol FBSDKSharingValidation +/// Asks the receiver to validate that its content or media values are valid. +/// \param options The share bridge options to use for validation. +/// +/// +/// throws: +/// If the values are not valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)options error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A base interface for content to be shared. +SWIFT_PROTOCOL_NAMED("SharingContent") +@protocol FBSDKSharingContent +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. +/// See documentation for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareLinkContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// A protocol for media content (photo or video) to be shared. +SWIFT_PROTOCOL_NAMED("ShareMedia") +@protocol FBSDKShareMedia +@end + + +/// A model for media content (photo or video) to be shared. +SWIFT_CLASS_NAMED("ShareMediaContent") +@interface FBSDKShareMediaContent : NSObject +/// Media to be shared: an array of SharePhoto or ShareVideo +@property (nonatomic, copy) NSArray> * _Nonnull media; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareMediaContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + +@class UIImage; +@class PHAsset; + +/// A photo for sharing. +SWIFT_CLASS_NAMED("SharePhoto") +@interface FBSDKSharePhoto : NSObject +/// If the photo is resident in memory, this method supplies the data. +@property (nonatomic, strong) UIImage * _Nullable image; +/// URL that points to a network location or the location of the photo on disk +@property (nonatomic, copy) NSURL * _Nullable imageURL; +/// The representation of the photo in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable photoAsset; +/// Specifies whether the photo represented by the receiver was generated by the user (true) +/// or by the application (false). +@property (nonatomic) BOOL isUserGenerated; +/// The user-generated caption for the photo. Note that the ‘caption’ must come from +/// the user, as pre-filled content is forbidden by the Platform Policies (2.3). +@property (nonatomic, copy) NSString * _Nullable caption; +/// Convenience method to build a new photo object with an image. +/// \param image If the photo is resident in memory, this method supplies the data +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with an imageURL. +/// This method should only be used when adding photo content to open graph stories. +/// For example, if you’re trying to share a photo from the web by itself, download the image and use +/// init(image:isUserGenerated:) instead. +/// \param imageURL The URL to the photo +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by the +/// application +/// +- (nonnull instancetype)initWithImageURL:(NSURL * _Nonnull)imageURL isUserGenerated:(BOOL)isUserGenerated; +/// Convenience method to build a new photo object with a PHAsset. +/// \param photoAsset The PHAsset that represents the photo in the Photos library. +/// +/// \param isUserGenerated Specifies whether the photo represented by the receiver was generated by the user or by +/// the application +/// +- (nonnull instancetype)initWithPhotoAsset:(PHAsset * _Nonnull)photoAsset isUserGenerated:(BOOL)isUserGenerated; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKSharePhoto (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for photo content to be shared. +SWIFT_CLASS_NAMED("SharePhotoContent") +@interface FBSDKSharePhotoContent : NSObject +/// Photos to be shared. +@property (nonatomic, copy) NSArray * _Nonnull photos; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKSharePhotoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Validate that this content contains valid values +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +@class NSData; + +/// A video for sharing. +SWIFT_CLASS_NAMED("ShareVideo") +@interface FBSDKShareVideo : NSObject +/// The raw video data. +@property (nonatomic, copy) NSData * _Nullable data; +/// The representation of the video in the Photos library. +@property (nonatomic, strong) PHAsset * _Nullable videoAsset; +/// The file URL to the video. +@property (nonatomic, copy) NSURL * _Nullable videoURL; +/// The photo that represents the video. +@property (nonatomic, strong) FBSDKSharePhoto * _Nullable previewPhoto; +/// Convenience method to build a new video object from raw data and an optional preview photo. +/// \param data The Data object that holds the raw video data. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithData:(NSData * _Nonnull)data previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a PHAsset and an optional preview photo. +/// \param videoAsset The PHAsset that represents the video in the Photos library. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoAsset:(PHAsset * _Nonnull)videoAsset previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +/// Convenience method to build a new video object from a URL and an optional preview photo. +/// \param videoURL The URL to the video. +/// +/// \param previewPhoto The photo that represents the video. +/// +- (nonnull instancetype)initWithVideoURL:(NSURL * _Nonnull)videoURL previewPhoto:(FBSDKSharePhoto * _Nullable)previewPhoto; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + +@interface FBSDKShareVideo (SWIFT_EXTENSION(FBSDKShareKit)) +/// Asks the receiver to validate that its content or media values are valid. +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + + +/// A model for video content to be shared. +SWIFT_CLASS_NAMED("ShareVideoContent") +@interface FBSDKShareVideoContent : NSObject +/// The video to be shared +@property (nonatomic, strong) FBSDKShareVideo * _Nonnull video; +/// URL for the content being shared. +/// This URL will be checked for all link meta tags for linking in platform specific ways. See documentation +/// for App Links (https://developers.facebook.com/docs/applinks/) +@property (nonatomic, copy) NSURL * _Nullable contentURL; +/// Hashtag for the content being shared. +@property (nonatomic, strong) FBSDKHashtag * _Nullable hashtag; +/// List of IDs for taggable people to tag with this content. +/// See documentation for Taggable Friends +/// (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends) +@property (nonatomic, copy) NSArray * _Nonnull peopleIDs; +/// The ID for a place to tag with this content. +@property (nonatomic, copy) NSString * _Nullable placeID; +/// A value to be added to the referrer URL when a person follows a link from this shared content on feed. +@property (nonatomic, copy) NSString * _Nullable ref; +/// For shares into Messenger, this pageID will be used to map the app to page and attach attribution to the share. +@property (nonatomic, copy) NSString * _Nullable pageID; +/// A unique identifier for a share involving this content, useful for tracking purposes. +@property (nonatomic, readonly, copy) NSString * _Nullable shareUUID; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +/// Adds content to an existing dictionary as key/value pairs and returns the +/// updated dictionary +/// @param existingParameters An immutable dictionary of existing values +/// @param bridgeOptions The options for bridging +/// @return A new dictionary with the modified contents +- (NSDictionary * _Nonnull)addParameters:(NSDictionary * _Nonnull)existingParameters bridgeOptions:(FBSDKShareBridgeOptions)bridgeOptions SWIFT_WARN_UNUSED_RESULT; +@end + + +@interface FBSDKShareVideoContent (SWIFT_EXTENSION(FBSDKShareKit)) +- (BOOL)validateWithOptions:(FBSDKShareBridgeOptions)bridgeOptions error:(NSError * _Nullable * _Nullable)error; +@end + + +/// The common interface for sharing buttons. +/// See FBSendButton and FBShareButton +SWIFT_PROTOCOL_NAMED("SharingButton") SWIFT_AVAILABILITY(tvos,unavailable) +@protocol FBSDKSharingButton +/// The content to be shared. +@property (nonatomic, strong) id _Nullable shareContent; +@end + + + + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit.h b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit.h new file mode 100644 index 00000000..1600ab9e --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Headers/FBSDKShareKit.h @@ -0,0 +1,10 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Info.plist b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Info.plist new file mode 100644 index 00000000..3a470a0f Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Info.plist differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..8a6d35df Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..5fc02948 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,186 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target arm64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..5932fea9 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..a85b7f0d --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,186 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8) +// swift-module-flags: -target x86_64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name FBSDKShareKit +import Dispatch +import FBSDKCoreKit +import FBSDKCoreKit_Basics +@_exported import FBSDKShareKit +import Foundation +import Photos +import Swift +import UIKit +import _Concurrency +@objcMembers @objc(FBSDKHashtag) final public class Hashtag : ObjectiveC.NSObject { + @objc final public var stringRepresentation: Swift.String + @objc(initWithString:) public init(_ string: Swift.String) + @objc override final public var description: Swift.String { + @objc get + } + @objc final public var isValid: Swift.Bool { + @objc get + } + @objc override final public var hash: Swift.Int { + @objc get + } + @objc override final public func isEqual(_ object: Any?) -> Swift.Bool + @objc deinit +} +public let ShareErrorDomain: Swift.String +@objc(FBSDKShareError) public enum ShareError : Swift.Int { + case reserved = 200 + case openGraph + case dialogNotAvailable + case unknown + public init?(rawValue: Swift.Int) + public typealias RawValue = Swift.Int + public var rawValue: Swift.Int { + get + } +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareLinkContent) final public class ShareLinkContent : ObjectiveC.NSObject { + @objc final public var quote: Swift.String? + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareLinkContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@objc(FBSDKShareMedia) public protocol ShareMedia { +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareMediaContent) final public class ShareMediaContent : ObjectiveC.NSObject { + @objc final public var media: [FBSDKShareKit.ShareMedia] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareMediaContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKSharePhoto) final public class SharePhoto : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var image: UIKit.UIImage? { + @objc get + @objc set + } + @objc final public var imageURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var photoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var isUserGenerated: Swift.Bool + @objc final public var caption: Swift.String? + @objc convenience public init(image: UIKit.UIImage, isUserGenerated: Swift.Bool) + @objc convenience public init(imageURL: Foundation.URL, isUserGenerated: Swift.Bool) + @objc convenience public init(photoAsset: Photos.PHAsset, isUserGenerated: Swift.Bool) + @objc deinit +} +extension FBSDKShareKit.SharePhoto : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKSharePhotoContent) final public class SharePhotoContent : ObjectiveC.NSObject { + @objc final public var photos: [FBSDKShareKit.SharePhoto] + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public let shareUUID: Swift.String? + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.SharePhotoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_hasMissingDesignatedInitializers @objcMembers @objc(FBSDKShareVideo) final public class ShareVideo : ObjectiveC.NSObject, FBSDKShareKit.ShareMedia { + @objc final public var data: Foundation.Data? { + @objc get + @objc set + } + @objc final public var videoAsset: Photos.PHAsset? { + @objc get + @objc set + } + @objc final public var videoURL: Foundation.URL? { + @objc get + @objc set + } + @objc final public var previewPhoto: FBSDKShareKit.SharePhoto? + @objc convenience public init(data: Foundation.Data, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoAsset: Photos.PHAsset, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc convenience public init(videoURL: Foundation.URL, previewPhoto: FBSDKShareKit.SharePhoto? = nil) + @objc deinit +} +extension FBSDKShareKit.ShareVideo : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@_inheritsConvenienceInitializers @objcMembers @objc(FBSDKShareVideoContent) final public class ShareVideoContent : ObjectiveC.NSObject { + @objc final public var video: FBSDKShareKit.ShareVideo + @objc final public var contentURL: Foundation.URL? + @objc final public var hashtag: FBSDKShareKit.Hashtag? + @objc final public var peopleIDs: [Swift.String] + @objc final public var placeID: Swift.String? + @objc final public var ref: Swift.String? + @objc final public var pageID: Swift.String? + @objc final public var shareUUID: Swift.String? { + get + } + @objc override dynamic public init() + @objc deinit +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingContent { + @objc(addParameters:bridgeOptions:) final public func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +extension FBSDKShareKit.ShareVideoContent : FBSDKShareKit.SharingValidation { + @objc(validateWithOptions:error:) final public func validate(options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) throws +} +@available(tvOS, unavailable) +@objc(FBSDKSharingButton) public protocol SharingButton { + @objc var shareContent: FBSDKShareKit.SharingContent? { get set } +} +@objc(FBSDKSharingContent) public protocol SharingContent : FBSDKShareKit.SharingValidation, ObjectiveC.NSObjectProtocol { + @objc var contentURL: Foundation.URL? { get set } + @objc var hashtag: FBSDKShareKit.Hashtag? { get set } + @objc var peopleIDs: [Swift.String] { get set } + @objc var placeID: Swift.String? { get set } + @objc var ref: Swift.String? { get set } + @objc var pageID: Swift.String? { get set } + @objc var shareUUID: Swift.String? { get } + @objc(addParameters:bridgeOptions:) func addParameters(_ existingParameters: [Swift.String : Any], options bridgeOptions: FBSDKShareKit.ShareBridgeOptions) -> [Swift.String : Any] +} +@objc(FBSDKSharingValidation) public protocol SharingValidation { + @objc(validateWithOptions:error:) func validate(options: FBSDKShareKit.ShareBridgeOptions) throws +} +public enum _ShareUtility { +} +extension FBSDKShareKit._ShareUtility { + public static func validateRequiredValue(_ value: Any, named name: Swift.String) throws + public static func validateArgument(_ value: Argument, named name: Swift.String, in possibleValues: Swift.Set) throws where Argument : Swift.Hashable +} +extension FBSDKShareKit.ShareError : Swift.Equatable {} +extension FBSDKShareKit.ShareError : Swift.Hashable {} +extension FBSDKShareKit.ShareError : Swift.RawRepresentable {} diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/module.modulemap b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/module.modulemap new file mode 100644 index 00000000..3d203af2 --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module FBSDKShareKit { + umbrella header "FBSDKShareKit.h" + + export * + module * { export * } +} + +module FBSDKShareKit.Swift { + header "FBSDKShareKit-Swift.h" + requires objc +} diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeDirectory b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeDirectory new file mode 100644 index 00000000..598ad75c Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeDirectory differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements new file mode 100644 index 00000000..dbf9d614 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements-1 b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements-1 new file mode 100644 index 00000000..19733c69 Binary files /dev/null and b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeRequirements-1 differ diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeResources b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..7d61bc5b --- /dev/null +++ b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeResources @@ -0,0 +1,267 @@ + + + + + files + + Headers/FBSDKShareBridgeOptions.h + + UnSjaUXm5qLeLGXDUNVRzXY9NrQ= + + Headers/FBSDKShareErrorDomain.h + + ccdtzvuodQ/lvKIVoHt8KIM9u2U= + + Headers/FBSDKShareKit-Swift.h + + +w6X9OO5SFtjs6fMwp82DGEZn1M= + + Headers/FBSDKShareKit.h + + 3Vlzn/6bUD/wgctBGh6x9fepcJg= + + Info.plist + + 7g5+ZAGQR5c2LiILvGbWLearz/I= + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + W+PKpU7mmJs7gmRtqYXkOVm0FnE= + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + 9zxLDUObFjwL+i51fP211ogsGPs= + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + UlCaAm1zDA4TV/x00CRbwHtc8yU= + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + XHGvcrGU0fc7SLfM6VjYlEylBYw= + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + AF6i6Hg9venaZnXQHkgY9Iw4Vas= + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + tE1Bnu0tu/laCzUCWxrZZzK+PeM= + + Modules/module.modulemap + + c/1l3+MTRWj+XKPFv/2HWhKeUtA= + + + files2 + + Headers/FBSDKShareBridgeOptions.h + + hash + + UnSjaUXm5qLeLGXDUNVRzXY9NrQ= + + hash2 + + IxpwBSGJEUrCXBdjRGpZ0yehzDl7wfNF5HReqM5qO/8= + + + Headers/FBSDKShareErrorDomain.h + + hash + + ccdtzvuodQ/lvKIVoHt8KIM9u2U= + + hash2 + + Gq/jBWHIi9/+dLPC1EqzBf+XM4GcHg1JpVUb0DiK6jM= + + + Headers/FBSDKShareKit-Swift.h + + hash + + +w6X9OO5SFtjs6fMwp82DGEZn1M= + + hash2 + + Z2aSAidGXlVLdH9/x2W47gR+CiFLJXH8RbL6v+ht2+c= + + + Headers/FBSDKShareKit.h + + hash + + 3Vlzn/6bUD/wgctBGh6x9fepcJg= + + hash2 + + BizbBQ3VvhD8p64UL0pkalRRg0wPwYLFP3IXGeJnkE4= + + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + hash + + W+PKpU7mmJs7gmRtqYXkOVm0FnE= + + hash2 + + CP8cZiHKdTHU+KUNYx+Llkd3XQT51FxLStEdWGusNnc= + + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + hash + + 9zxLDUObFjwL+i51fP211ogsGPs= + + hash2 + + hYpqO8NwTROrMIPerPFxS/VctTUtLjQHtqAinwe1nPE= + + + Modules/FBSDKShareKit.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + hash + + UlCaAm1zDA4TV/x00CRbwHtc8yU= + + hash2 + + tEikXxu4Ijq1F9Z7+Gd6WEidXoLtTKg3qSZ3cvpdo3U= + + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + hash + + XHGvcrGU0fc7SLfM6VjYlEylBYw= + + hash2 + + jA1NbU22bnTDEOF9mqsX/RZr55+gEJtqnGWCqK2Fp2s= + + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + hash + + AF6i6Hg9venaZnXQHkgY9Iw4Vas= + + hash2 + + j8r40bN7gWcqujOSKoRSiPIahsUxLr0vy9K63b4awx0= + + + Modules/FBSDKShareKit.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + hash + + tE1Bnu0tu/laCzUCWxrZZzK+PeM= + + hash2 + + Lrz6PCgH/Wj1wYFmXFxJmn8C2C14TgU+0DInRcQX5oQ= + + + Modules/module.modulemap + + hash + + c/1l3+MTRWj+XKPFv/2HWhKeUtA= + + hash2 + + LFKLAS36xoxx786XN6Efo7GDNLqGNFpjOc/zQ1+JRXY= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeSignature b/ios/platform/FBSDKShareKit.xcframework/tvos-arm64_x86_64-simulator/FBSDKShareKit.framework/_CodeSignature/CodeSignature new file mode 100644 index 00000000..e69de29b diff --git a/ios/titanium-facebook.xcodeproj/project.pbxproj b/ios/titanium-facebook.xcodeproj/project.pbxproj index 64cc0aad..6ed5549a 100644 --- a/ios/titanium-facebook.xcodeproj/project.pbxproj +++ b/ios/titanium-facebook.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 52; objects = { /* Begin PBXAggregateTarget section */ @@ -22,9 +22,9 @@ /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ - 312EA00A244444C5001B5EFA /* FBSDKCoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 312EA007244444C5001B5EFA /* FBSDKCoreKit.framework */; }; - 312EA00B244444C5001B5EFA /* FBSDKLoginKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 312EA008244444C5001B5EFA /* FBSDKLoginKit.framework */; }; - 312EA00C244444C5001B5EFA /* FBSDKShareKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 312EA009244444C5001B5EFA /* FBSDKShareKit.framework */; }; + 3AE75A1F26C679F900DA3B73 /* FBSDKCoreKit.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AE75A1C26C679F900DA3B73 /* FBSDKCoreKit.xcframework */; }; + 3AE75A2026C679F900DA3B73 /* FBSDKLoginKit.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AE75A1D26C679F900DA3B73 /* FBSDKLoginKit.xcframework */; }; + 3AE75A2126C679F900DA3B73 /* FBSDKShareKit.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AE75A1E26C679F900DA3B73 /* FBSDKShareKit.xcframework */; }; DB34EBF91F2574B70057008D /* FacebookLoginButton.h in Headers */ = {isa = PBXBuildFile; fileRef = DB34EBE41F2574B70057008D /* FacebookLoginButton.h */; }; DB34EBFA1F2574B70057008D /* FacebookLoginButton.m in Sources */ = {isa = PBXBuildFile; fileRef = DB34EBE51F2574B70057008D /* FacebookLoginButton.m */; }; DB34EBFB1F2574B70057008D /* FacebookLoginButtonProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = DB34EBE61F2574B70057008D /* FacebookLoginButtonProxy.h */; }; @@ -50,9 +50,9 @@ /* Begin PBXFileReference section */ 24DD6D1B1134B66800162E58 /* titanium.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = titanium.xcconfig; sourceTree = ""; }; - 312EA007244444C5001B5EFA /* FBSDKCoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSDKCoreKit.framework; path = platform/FBSDKCoreKit.framework; sourceTree = ""; }; - 312EA008244444C5001B5EFA /* FBSDKLoginKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSDKLoginKit.framework; path = platform/FBSDKLoginKit.framework; sourceTree = ""; }; - 312EA009244444C5001B5EFA /* FBSDKShareKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FBSDKShareKit.framework; path = platform/FBSDKShareKit.framework; sourceTree = ""; }; + 3AE75A1C26C679F900DA3B73 /* FBSDKCoreKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = FBSDKCoreKit.xcframework; path = platform/FBSDKCoreKit.xcframework; sourceTree = ""; }; + 3AE75A1D26C679F900DA3B73 /* FBSDKLoginKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = FBSDKLoginKit.xcframework; path = platform/FBSDKLoginKit.xcframework; sourceTree = ""; }; + 3AE75A1E26C679F900DA3B73 /* FBSDKShareKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = FBSDKShareKit.xcframework; path = platform/FBSDKShareKit.xcframework; sourceTree = ""; }; D2AAC07E0554694100DB518D /* libfacebook.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libfacebook.a; sourceTree = BUILT_PRODUCTS_DIR; }; DB34EBE41F2574B70057008D /* FacebookLoginButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FacebookLoginButton.h; sourceTree = ""; }; DB34EBE51F2574B70057008D /* FacebookLoginButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FacebookLoginButton.m; sourceTree = ""; }; @@ -72,9 +72,9 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 312EA00B244444C5001B5EFA /* FBSDKLoginKit.framework in Frameworks */, - 312EA00A244444C5001B5EFA /* FBSDKCoreKit.framework in Frameworks */, - 312EA00C244444C5001B5EFA /* FBSDKShareKit.framework in Frameworks */, + 3AE75A2126C679F900DA3B73 /* FBSDKShareKit.xcframework in Frameworks */, + 3AE75A1F26C679F900DA3B73 /* FBSDKCoreKit.xcframework in Frameworks */, + 3AE75A2026C679F900DA3B73 /* FBSDKLoginKit.xcframework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -103,9 +103,9 @@ 0867D69AFE84028FC02AAC07 /* Frameworks */ = { isa = PBXGroup; children = ( - 312EA007244444C5001B5EFA /* FBSDKCoreKit.framework */, - 312EA008244444C5001B5EFA /* FBSDKLoginKit.framework */, - 312EA009244444C5001B5EFA /* FBSDKShareKit.framework */, + 3AE75A1C26C679F900DA3B73 /* FBSDKCoreKit.xcframework */, + 3AE75A1D26C679F900DA3B73 /* FBSDKLoginKit.xcframework */, + 3AE75A1E26C679F900DA3B73 /* FBSDKShareKit.xcframework */, ); name = Frameworks; sourceTree = ""; @@ -205,7 +205,7 @@ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1220; + LastUpgradeCheck = 1320; }; buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "titanium-facebook" */; compatibilityVersion = "Xcode 3.2"; @@ -296,7 +296,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LIBRARY_SEARCH_PATHS = ""; OTHER_CFLAGS = ( "-DDEBUG", @@ -343,7 +343,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LIBRARY_SEARCH_PATHS = ""; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "-DTI_POST_1_2"; @@ -405,7 +405,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = ( "-DDEBUG", @@ -469,7 +469,7 @@ GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VARIABLE = NO; INSTALL_PATH = /usr/local/lib; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "-DTI_POST_1_2"; OTHER_LDFLAGS = "-ObjC"; diff --git a/ios/titanium.xcconfig b/ios/titanium.xcconfig index 5dbdc0d5..c333d35e 100644 --- a/ios/titanium.xcconfig +++ b/ios/titanium.xcconfig @@ -5,7 +5,7 @@ // // -TITANIUM_SDK_VERSION = 9.3.2.GA +TITANIUM_SDK_VERSION = 10.1.1.GA // // THESE SHOULD BE OK GENERALLY AS-IS