diff --git a/README.md b/README.md
index 4137b98f6..8cca08bc7 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,8 @@ $ cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="12345678
If you need to change your `APP_ID` after installation, it's recommended that you remove and then re-add the plugin as above. Note that changes to the `APP_ID` value in your `config.xml` file will *not* be propagated to the individual platform builds.
+IMPORTANT: This plugin works as is with cordova-ios 5 but if you use earlier version of cordova-ios then you need to add the code in the following comment to your CordovaLib/Classes/Public/CDVAppDelegate.m file which was added to your project as part of the cordova-ios ios platform template: https://github.com/apache/cordova-ios/issues/476#issuecomment-460907247
+
## Usage
This is a fork of the [official plugin for Facebook](https://github.com/Wizcorp/phonegap-facebook-plugin/) in Apache Cordova that implements the latest Facebook SDK. Unless noted, this is a drop-in replacement. You don't have to replace your client code.
diff --git a/plugin.xml b/plugin.xml
index b02ff12d0..5336f8815 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -20,7 +20,7 @@
-
+
@@ -160,9 +160,6 @@
-
-
-
diff --git a/src/android/ConnectPlugin.java b/src/android/ConnectPlugin.java
index 7449b7473..8e698526f 100644
--- a/src/android/ConnectPlugin.java
+++ b/src/android/ConnectPlugin.java
@@ -227,13 +227,13 @@ public void onError(FacebookException e) {
public void onResume(boolean multitasking) {
super.onResume(multitasking);
// Developers can observe how frequently users activate their app by logging an app activation event.
- AppEventsLogger.activateApp(cordova.getActivity());
+ AppEventsLogger.activateApp(cordova.getActivity().getApplication());
}
@Override
public void onPause(boolean multitasking) {
super.onPause(multitasking);
- AppEventsLogger.deactivateApp(cordova.getActivity());
+ AppEventsLogger.deactivateApp(cordova.getActivity().getApplication());
}
@Override
@@ -305,7 +305,7 @@ public boolean execute(String action, JSONArray args, final CallbackContext call
cordova.getThreadPool().execute(new Runnable() {
@Override
public void run() {
- AppEventsLogger.activateApp(cordova.getActivity());
+ AppEventsLogger.activateApp(cordova.getActivity().getApplication());
}
});
diff --git a/src/ios/Bolts.framework/Bolts b/src/ios/Bolts.framework/Bolts
deleted file mode 100644
index 6e13af4cc..000000000
Binary files a/src/ios/Bolts.framework/Bolts and /dev/null differ
diff --git a/src/ios/Bolts.framework/Headers/BFAppLink.h b/src/ios/Bolts.framework/Headers/BFAppLink.h
deleted file mode 100644
index aa89efc2b..000000000
--- a/src/ios/Bolts.framework/Headers/BFAppLink.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-/*! The version of the App Link protocol that this library supports */
-FOUNDATION_EXPORT NSString *const BFAppLinkVersion;
-
-/*!
- Contains App Link metadata relevant for navigation on this device
- derived from the HTML at a given URL.
- */
-@interface BFAppLink : NSObject
-
-/*!
- Creates a BFAppLink with the given list of BFAppLinkTargets and target URL.
-
- Generally, this will only be used by implementers of the BFAppLinkResolving 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 BFAppLinkTargets for this platform derived
- from App Link metadata.
- @param webURL the fallback web URL, if any, for the app link.
- */
-+ (instancetype)appLinkWithSourceURL:(NSURL *)sourceURL
- targets:(NSArray *)targets
- webURL:(NSURL *)webURL;
-
-/*! The URL from which this BFAppLink was derived */
-@property (nonatomic, strong, readonly) 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) NSURL *webURL;
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFAppLinkNavigation.h b/src/ios/Bolts.framework/Headers/BFAppLinkNavigation.h
deleted file mode 100644
index 4b8a71e02..000000000
--- a/src/ios/Bolts.framework/Headers/BFAppLinkNavigation.h
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-#import
-
-/*!
- The result of calling navigate on a BFAppLinkNavigation
- */
-typedef NS_ENUM(NSInteger, BFAppLinkNavigationType) {
- /*! Indicates that the navigation failed and no app was opened */
- BFAppLinkNavigationTypeFailure,
- /*! Indicates that the navigation succeeded by opening the URL in the browser */
- BFAppLinkNavigationTypeBrowser,
- /*! Indicates that the navigation succeeded by opening the URL in an app on the device */
- BFAppLinkNavigationTypeApp
-};
-
-@protocol BFAppLinkResolving;
-@class BFTask;
-
-/*!
- 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 BFAppLinkNavigations themselves.
- */
-NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension")
-@interface BFAppLinkNavigation : NSObject
-
-/*!
- 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, copy, readonly) 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;
-
-/*! The AppLink to navigate to */
-@property (nonatomic, strong, readonly) BFAppLink *appLink;
-
-/*! Creates an AppLinkNavigation with the given link, extras, and App Link data */
-+ (instancetype)navigationWithAppLink:(BFAppLink *)appLink
- extras:(NSDictionary *)extras
- appLinkData:(NSDictionary *)appLinkData;
-
-/*!
- 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;
-
-/*! Performs the navigation */
-- (BFAppLinkNavigationType)navigate:(NSError **)error;
-
-/*! Returns a BFAppLink for the given URL */
-+ (BFTask *)resolveAppLinkInBackground:(NSURL *)destination;
-
-/*! Returns a BFAppLink for the given URL using the given App Link resolution strategy */
-+ (BFTask *)resolveAppLinkInBackground:(NSURL *)destination resolver:(id)resolver;
-
-/*! Navigates to a BFAppLink and returns whether it opened in-app or in-browser */
-+ (BFAppLinkNavigationType)navigateToAppLink:(BFAppLink *)link error:(NSError **)error;
-
-/*!
- Returns a BFAppLinkNavigationType based on a BFAppLink.
- 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.)
- */
-+ (BFAppLinkNavigationType)navigationTypeForLink:(BFAppLink *)link;
-
-/*!
- Return navigation type for current instance.
- No-side-effect version of navigate:
- */
-- (BFAppLinkNavigationType)navigationType;
-
-/*! Navigates to a URL (an asynchronous action) and returns a BFNavigationType */
-+ (BFTask *)navigateToURLInBackground:(NSURL *)destination;
-
-/*!
- Navigates to a URL (an asynchronous action) using the given App Link resolution
- strategy and returns a BFNavigationType
- */
-+ (BFTask *)navigateToURLInBackground:(NSURL *)destination resolver:(id)resolver;
-
-/*!
- Gets the default resolver to be used for App Link resolution. If the developer has not set one explicitly,
- a basic, built-in resolver will be used.
- */
-+ (id)defaultResolver;
-
-/*!
- Sets the default resolver to be used for App Link resolution. Setting this to nil will revert the
- default resolver to the basic, built-in resolver provided by Bolts.
- */
-+ (void)setDefaultResolver:(id)resolver;
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFAppLinkResolving.h b/src/ios/Bolts.framework/Headers/BFAppLinkResolving.h
deleted file mode 100644
index 5c78bff45..000000000
--- a/src/ios/Bolts.framework/Headers/BFAppLinkResolving.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-@class BFTask;
-
-/*!
- 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.
- */
-@protocol BFAppLinkResolving
-
-/*!
- Asynchronously resolves App Link data for a given URL.
-
- @param url The URL to resolve into an App Link.
- @returns A BFTask that will return a BFAppLink for the given URL.
- */
-- (BFTask *)appLinkFromURLInBackground:(NSURL *)url NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension");
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h b/src/ios/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h
deleted file mode 100644
index 436c52806..000000000
--- a/src/ios/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-#import
-
-#import
-
-@class BFAppLink;
-@class BFAppLinkReturnToRefererController;
-
-/*!
- Protocol that a class can implement in order to be notified when the user has navigated back
- to the referer of an App Link.
- */
-@protocol BFAppLinkReturnToRefererControllerDelegate
-
-@optional
-
-/*! Called when the user has tapped to navigate, but before the navigation has been performed. */
-- (void)returnToRefererController:(BFAppLinkReturnToRefererController *)controller
- willNavigateToAppLink:(BFAppLink *)appLink;
-
-/*! Called after the navigation has been attempted, with an indication of whether the referer
- app link was successfully opened. */
-- (void)returnToRefererController:(BFAppLinkReturnToRefererController *)controller
- didNavigateToAppLink:(BFAppLink *)url
- type:(BFAppLinkNavigationType)type;
-
-@end
-
-/*!
- A controller class that implements default behavior for a BFAppLinkReturnToRefererView, including
- the ability to display the view above the navigation bar for navigation-based apps.
- */
-NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension")
-@interface BFAppLinkReturnToRefererController : NSObject
-
-/*!
- The delegate that will be notified when the user navigates back to the referer.
- */
-@property (nonatomic, weak) id delegate;
-
-/*!
- The BFAppLinkReturnToRefererView this controller is controlling.
- */
-@property (nonatomic, strong) BFAppLinkReturnToRefererView *view;
-
-/*!
- Initializes a controller suitable for controlling a BFAppLinkReturnToRefererView that is to be displayed
- contained within another UIView (i.e., not displayed above the navigation bar).
- */
-- (instancetype)init;
-
-/*!
- Initializes a controller suitable for controlling a BFAppLinkReturnToRefererView that is to be displayed
- displayed above the navigation bar.
- */
-- (instancetype)initForDisplayAboveNavController:(UINavigationController *)navController;
-
-/*!
- Removes the view entirely from the navigation controller it is currently displayed in.
- */
-- (void)removeFromNavController;
-
-/*!
- Shows the BFAppLinkReturnToRefererView with the specified referer information. If nil or missing data,
- the view will not be displayed. */
-- (void)showViewForRefererAppLink:(BFAppLink *)refererAppLink;
-
-/*!
- Shows the BFAppLinkReturnToRefererView 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;
-
-/*!
- Closes the view, possibly animating it.
- */
-- (void)closeViewAnimated:(BOOL)animated;
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h b/src/ios/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h
deleted file mode 100644
index f62bc66f6..000000000
--- a/src/ios/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-#import
-
-#import
-
-@class BFAppLinkReturnToRefererView;
-@class BFURL;
-
-typedef NS_ENUM(NSUInteger, BFIncludeStatusBarInSize) {
- BFIncludeStatusBarInSizeNever,
- BFIncludeStatusBarInSizeIOS7AndLater,
- BFIncludeStatusBarInSizeAlways,
-};
-
-/*!
- Protocol that a class can implement in order to be notified when the user has navigated back
- to the referer of an App Link.
- */
-@protocol BFAppLinkReturnToRefererViewDelegate
-
-/*!
- Called when the user has tapped inside the close button.
- */
-- (void)returnToRefererViewDidTapInsideCloseButton:(BFAppLinkReturnToRefererView *)view;
-
-/*!
- Called when the user has tapped inside the App Link portion of the view.
- */
-- (void)returnToRefererViewDidTapInsideLink:(BFAppLinkReturnToRefererView *)view
- link:(BFAppLink *)link;
-
-@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")
-@interface BFAppLinkReturnToRefererView : UIView
-
-/*!
- The delegate that will be notified when the user navigates back to the referer.
- */
-@property (nonatomic, weak) id delegate;
-
-/*!
- The color of the text label and close button.
- */
-@property (nonatomic, strong) UIColor *textColor;
-
-@property (nonatomic, strong) BFAppLink *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) BFIncludeStatusBarInSize includeStatusBarInSize;
-
-/*!
- Indicates whether the user has closed the view by clicking the close button.
- */
-@property (nonatomic, assign) BOOL closed;
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFAppLinkTarget.h b/src/ios/Bolts.framework/Headers/BFAppLinkTarget.h
deleted file mode 100644
index 61721269d..000000000
--- a/src/ios/Bolts.framework/Headers/BFAppLinkTarget.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-/*!
- Represents a target defined in App Link metadata, consisting of at least
- a URL, and optionally an App Store ID and name.
- */
-@interface BFAppLinkTarget : NSObject
-
-/*! Creates a BFAppLinkTarget with the given app site and target URL. */
-+ (instancetype)appLinkTargetWithURL:(NSURL *)url
- appStoreId:(NSString *)appStoreId
- appName:(NSString *)appName;
-
-/*! The URL prefix for this app link target */
-@property (nonatomic, strong, readonly) NSURL *URL;
-
-/*! The app ID for the app store */
-@property (nonatomic, copy, readonly) NSString *appStoreId;
-
-/*! The name of the app */
-@property (nonatomic, copy, readonly) NSString *appName;
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFCancellationToken.h b/src/ios/Bolts.framework/Headers/BFCancellationToken.h
deleted file mode 100644
index bda32ee80..000000000
--- a/src/ios/Bolts.framework/Headers/BFCancellationToken.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-#import
-
-NS_ASSUME_NONNULL_BEGIN
-
-/*!
- A block that will be called when a token is cancelled.
- */
-typedef void(^BFCancellationBlock)(void);
-
-/*!
- The consumer view of a CancellationToken.
- Propagates notification that operations should be canceled.
- A BFCancellationToken has methods to inspect whether the token has been cancelled.
- */
-@interface BFCancellationToken : NSObject
-
-/*!
- Whether cancellation has been requested for this token source.
- */
-@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested;
-
-/*!
- Register a block to be notified when the token is cancelled.
- If the token is already cancelled the delegate will be notified immediately.
- */
-- (BFCancellationTokenRegistration *)registerCancellationObserverWithBlock:(BFCancellationBlock)block;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/src/ios/Bolts.framework/Headers/BFCancellationTokenRegistration.h b/src/ios/Bolts.framework/Headers/BFCancellationTokenRegistration.h
deleted file mode 100644
index fa6090f66..000000000
--- a/src/ios/Bolts.framework/Headers/BFCancellationTokenRegistration.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-NS_ASSUME_NONNULL_BEGIN
-
-/*!
- Represents the registration of a cancellation observer with a cancellation token.
- Can be used to unregister the observer at a later time.
- */
-@interface BFCancellationTokenRegistration : NSObject
-
-/*!
- Removes the cancellation observer registered with the token
- and releases all resources associated with this registration.
- */
-- (void)dispose;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/src/ios/Bolts.framework/Headers/BFCancellationTokenSource.h b/src/ios/Bolts.framework/Headers/BFCancellationTokenSource.h
deleted file mode 100644
index 4627e9958..000000000
--- a/src/ios/Bolts.framework/Headers/BFCancellationTokenSource.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class BFCancellationToken;
-
-/*!
- BFCancellationTokenSource represents the producer side of a CancellationToken.
- Signals to a CancellationToken that it should be canceled.
- It is a cancellation token that also has methods
- for changing the state of a token by cancelling it.
- */
-@interface BFCancellationTokenSource : NSObject
-
-/*!
- Creates a new cancellation token source.
- */
-+ (instancetype)cancellationTokenSource;
-
-/*!
- The cancellation token associated with this CancellationTokenSource.
- */
-@property (nonatomic, strong, readonly) BFCancellationToken *token;
-
-/*!
- Whether cancellation has been requested for this token source.
- */
-@property (nonatomic, assign, readonly, getter=isCancellationRequested) BOOL cancellationRequested;
-
-/*!
- Cancels the token if it has not already been cancelled.
- */
-- (void)cancel;
-
-/*!
- Schedules a cancel operation on this CancellationTokenSource after the specified number of milliseconds.
- @param millis The number of milliseconds to wait before completing the returned task.
- If delay is `0` the cancel is executed immediately. If delay is `-1` any scheduled cancellation is stopped.
- */
-- (void)cancelAfterDelay:(int)millis;
-
-/*!
- Releases all resources associated with this token source,
- including disposing of all registrations.
- */
-- (void)dispose;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/src/ios/Bolts.framework/Headers/BFExecutor.h b/src/ios/Bolts.framework/Headers/BFExecutor.h
deleted file mode 100644
index 694c8a5fc..000000000
--- a/src/ios/Bolts.framework/Headers/BFExecutor.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-NS_ASSUME_NONNULL_BEGIN
-
-/*!
- An object that can run a given block.
- */
-@interface BFExecutor : NSObject
-
-/*!
- Returns a default executor, which runs continuations immediately until the call stack gets too
- deep, then dispatches to a new GCD queue.
- */
-+ (instancetype)defaultExecutor;
-
-/*!
- Returns an executor that runs continuations on the thread where the previous task was completed.
- */
-+ (instancetype)immediateExecutor;
-
-/*!
- Returns an executor that runs continuations on the main thread.
- */
-+ (instancetype)mainThreadExecutor;
-
-/*!
- Returns a new executor that uses the given block to execute continuations.
- @param block The block to use.
- */
-+ (instancetype)executorWithBlock:(void(^)(void(^block)(void)))block;
-
-/*!
- Returns a new executor that runs continuations on the given queue.
- @param queue The instance of `dispatch_queue_t` to dispatch all continuations onto.
- */
-+ (instancetype)executorWithDispatchQueue:(dispatch_queue_t)queue;
-
-/*!
- Returns a new executor that runs continuations on the given queue.
- @param queue The instance of `NSOperationQueue` to run all continuations on.
- */
-+ (instancetype)executorWithOperationQueue:(NSOperationQueue *)queue;
-
-/*!
- Runs the given block using this executor's particular strategy.
- @param block The block to execute.
- */
-- (void)execute:(void(^)(void))block;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/src/ios/Bolts.framework/Headers/BFGeneric.h b/src/ios/Bolts.framework/Headers/BFGeneric.h
deleted file mode 100644
index 99b2cf7de..000000000
--- a/src/ios/Bolts.framework/Headers/BFGeneric.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-#pragma once
-
-/**
- This exists to use along with `BFTask` and `BFTaskCompletionSource`.
-
- Instead of returning a `BFTask` with no generic type, or a generic type of 'NSNull'
- when there is no usable result from a task, we use the type 'BFVoid', which will always have a value of `nil`.
-
- This allows you to provide a more enforced API contract to the caller,
- as sending any message to `BFVoid` will result in a compile time error.
- */
-@class _BFVoid_Nonexistant;
-typedef _BFVoid_Nonexistant *BFVoid;
diff --git a/src/ios/Bolts.framework/Headers/BFMeasurementEvent.h b/src/ios/Bolts.framework/Headers/BFMeasurementEvent.h
deleted file mode 100644
index b3173fc23..000000000
--- a/src/ios/Bolts.framework/Headers/BFMeasurementEvent.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-/*! The name of the notification posted by BFMeasurementEvent */
-FOUNDATION_EXPORT NSString *const BFMeasurementEventNotificationName;
-
-/*! Defines keys in the userInfo object for the notification named BFMeasurementEventNotificationName */
-/*! The string field for the name of the event */
-FOUNDATION_EXPORT NSString *const BFMeasurementEventNameKey;
-/*! The dictionary field for the arguments of the event */
-FOUNDATION_EXPORT NSString *const BFMeasurementEventArgsKey;
-
-/*! Bolts Events raised by BFMeasurementEvent for Applink */
-/*!
- The name of the event posted when [BFURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL.
- */
-FOUNDATION_EXPORT NSString *const BFAppLinkParseEventName;
-
-/*!
- The name of the event posted when [BFURL URLWithInboundURL:] is called successfully.
- This represents parsing an inbound app link URL from a different application
- */
-FOUNDATION_EXPORT NSString *const BFAppLinkNavigateInEventName;
-
-/*! The event raised when the user navigates from your app to other apps */
-FOUNDATION_EXPORT NSString *const BFAppLinkNavigateOutEventName;
-
-/*!
- 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 BFAppLinkNavigateBackToReferrerEventName;
-
-@interface BFMeasurementEvent : NSObject
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFTask.h b/src/ios/Bolts.framework/Headers/BFTask.h
deleted file mode 100644
index 074c182de..000000000
--- a/src/ios/Bolts.framework/Headers/BFTask.h
+++ /dev/null
@@ -1,266 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-#import
-#import
-
-NS_ASSUME_NONNULL_BEGIN
-
-/*!
- Error domain used if there was multiple errors on .
- */
-extern NSString *const BFTaskErrorDomain;
-
-/*!
- An error code used for , if there were multiple errors.
- */
-extern NSInteger const kBFMultipleErrorsError;
-
-/*!
- An error userInfo key used if there were multiple errors on .
- Value type is `NSArray *`.
- */
-extern NSString *const BFTaskMultipleErrorsUserInfoKey;
-
-@class BFExecutor;
-@class BFTask;
-
-/*!
- The consumer view of a Task. A BFTask has methods to
- inspect the state of the task, and to add continuations to
- be run once the task is complete.
- */
-@interface BFTask<__covariant ResultType> : NSObject
-
-/*!
- A block that can act as a continuation for a task.
- */
-typedef __nullable id(^BFContinuationBlock)(BFTask *t);
-
-/*!
- Creates a task that is already completed with the given result.
- @param result The result for the task.
- */
-+ (instancetype)taskWithResult:(nullable ResultType)result;
-
-/*!
- Creates a task that is already completed with the given error.
- @param error The error for the task.
- */
-+ (instancetype)taskWithError:(NSError *)error;
-
-/*!
- Creates a task that is already cancelled.
- */
-+ (instancetype)cancelledTask;
-
-/*!
- Returns a task that will be completed (with result == nil) once
- all of the input tasks have completed.
- @param tasks An `NSArray` of the tasks to use as an input.
- */
-+ (instancetype)taskForCompletionOfAllTasks:(nullable NSArray *)tasks;
-
-/*!
- Returns a task that will be completed once all of the input tasks have completed.
- If all tasks complete successfully without being faulted or cancelled the result will be
- an `NSArray` of all task results in the order they were provided.
- @param tasks An `NSArray` of the tasks to use as an input.
- */
-+ (instancetype)taskForCompletionOfAllTasksWithResults:(nullable NSArray *)tasks;
-
-/*!
- Returns a task that will be completed once there is at least one successful task.
- The first task to successuly complete will set the result, all other tasks results are
- ignored.
- @param tasks An `NSArray` of the tasks to use as an input.
- */
-+ (instancetype)taskForCompletionOfAnyTask:(nullable NSArray *)tasks;
-
-/*!
- Returns a task that will be completed a certain amount of time in the future.
- @param millis The approximate number of milliseconds to wait before the
- task will be finished (with result == nil).
- */
-+ (BFTask *)taskWithDelay:(int)millis;
-
-/*!
- Returns a task that will be completed a certain amount of time in the future.
- @param millis The approximate number of milliseconds to wait before the
- task will be finished (with result == nil).
- @param token The cancellation token (optional).
- */
-+ (BFTask *)taskWithDelay:(int)millis cancellationToken:(nullable BFCancellationToken *)token;
-
-/*!
- Returns a task that will be completed after the given block completes with
- the specified executor.
- @param executor A BFExecutor responsible for determining how the
- continuation block will be run.
- @param block The block to immediately schedule to run with the given executor.
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-+ (instancetype)taskFromExecutor:(BFExecutor *)executor withBlock:(nullable id (^)(void))block;
-
-// Properties that will be set on the task once it is completed.
-
-/*!
- The result of a successful task.
- */
-@property (nullable, nonatomic, strong, readonly) ResultType result;
-
-/*!
- The error of a failed task.
- */
-@property (nullable, nonatomic, strong, readonly) NSError *error;
-
-/*!
- Whether this task has been cancelled.
- */
-@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled;
-
-/*!
- Whether this task has completed due to an error.
- */
-@property (nonatomic, assign, readonly, getter=isFaulted) BOOL faulted;
-
-/*!
- Whether this task has completed.
- */
-@property (nonatomic, assign, readonly, getter=isCompleted) BOOL completed;
-
-/*!
- Enqueues the given block to be run once this task is complete.
- This method uses a default execution strategy. The block will be
- run on the thread where the previous task completes, unless the
- the stack depth is too deep, in which case it will be run on a
- dispatch queue with default priority.
- @param block The block to be run once this task is complete.
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithBlock:(BFContinuationBlock)block NS_SWIFT_NAME(continueWith(block:));
-
-/*!
- Enqueues the given block to be run once this task is complete.
- This method uses a default execution strategy. The block will be
- run on the thread where the previous task completes, unless the
- the stack depth is too deep, in which case it will be run on a
- dispatch queue with default priority.
- @param block The block to be run once this task is complete.
- @param cancellationToken The cancellation token (optional).
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithBlock:(BFContinuationBlock)block
- cancellationToken:(nullable BFCancellationToken *)cancellationToken NS_SWIFT_NAME(continueWith(block:cancellationToken:));
-
-/*!
- Enqueues the given block to be run once this task is complete.
- @param executor A BFExecutor responsible for determining how the
- continuation block will be run.
- @param block The block to be run once this task is complete.
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithExecutor:(BFExecutor *)executor
- withBlock:(BFContinuationBlock)block NS_SWIFT_NAME(continueWith(executor:block:));
-
-/*!
- Enqueues the given block to be run once this task is complete.
- @param executor A BFExecutor responsible for determining how the
- continuation block will be run.
- @param block The block to be run once this task is complete.
- @param cancellationToken The cancellation token (optional).
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- his method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithExecutor:(BFExecutor *)executor
- block:(BFContinuationBlock)block
- cancellationToken:(nullable BFCancellationToken *)cancellationToken
-NS_SWIFT_NAME(continueWith(executor:block:cancellationToken:));
-
-/*!
- Identical to continueWithBlock:, except that the block is only run
- if this task did not produce a cancellation or an error.
- If it did, then the failure will be propagated to the returned
- task.
- @param block The block to be run once this task is complete.
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithSuccessBlock:(BFContinuationBlock)block NS_SWIFT_NAME(continueOnSuccessWith(block:));
-
-/*!
- Identical to continueWithBlock:, except that the block is only run
- if this task did not produce a cancellation or an error.
- If it did, then the failure will be propagated to the returned
- task.
- @param block The block to be run once this task is complete.
- @param cancellationToken The cancellation token (optional).
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithSuccessBlock:(BFContinuationBlock)block
- cancellationToken:(nullable BFCancellationToken *)cancellationToken
-NS_SWIFT_NAME(continueOnSuccessWith(block:cancellationToken:));
-
-/*!
- Identical to continueWithExecutor:withBlock:, except that the block
- is only run if this task did not produce a cancellation, error, or an error.
- If it did, then the failure will be propagated to the returned task.
- @param executor A BFExecutor responsible for determining how the
- continuation block will be run.
- @param block The block to be run once this task is complete.
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithExecutor:(BFExecutor *)executor
- withSuccessBlock:(BFContinuationBlock)block NS_SWIFT_NAME(continueOnSuccessWith(executor:block:));
-
-/*!
- Identical to continueWithExecutor:withBlock:, except that the block
- is only run if this task did not produce a cancellation or an error.
- If it did, then the failure will be propagated to the returned task.
- @param executor A BFExecutor responsible for determining how the
- continuation block will be run.
- @param block The block to be run once this task is complete.
- @param cancellationToken The cancellation token (optional).
- @returns A task that will be completed after block has run.
- If block returns a BFTask, then the task returned from
- this method will not be completed until that task is completed.
- */
-- (BFTask *)continueWithExecutor:(BFExecutor *)executor
- successBlock:(BFContinuationBlock)block
- cancellationToken:(nullable BFCancellationToken *)cancellationToken
-NS_SWIFT_NAME(continueOnSuccessWith(executor:block:cancellationToken:));
-
-/*!
- Waits until this operation is completed.
- This method is inefficient and consumes a thread resource while
- it's running. It should be avoided. This method logs a warning
- message if it is used on the main thread.
- */
-- (void)waitUntilFinished;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/src/ios/Bolts.framework/Headers/BFTaskCompletionSource.h b/src/ios/Bolts.framework/Headers/BFTaskCompletionSource.h
deleted file mode 100644
index f94c18fdb..000000000
--- a/src/ios/Bolts.framework/Headers/BFTaskCompletionSource.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class BFTask<__covariant ResultType>;
-
-/*!
- A BFTaskCompletionSource represents the producer side of tasks.
- It is a task that also has methods for changing the state of the
- task by settings its completion values.
- */
-@interface BFTaskCompletionSource<__covariant ResultType> : NSObject
-
-/*!
- Creates a new unfinished task.
- */
-+ (instancetype)taskCompletionSource;
-
-/*!
- The task associated with this TaskCompletionSource.
- */
-@property (nonatomic, strong, readonly) BFTask *task;
-
-/*!
- Completes the task by setting the result.
- Attempting to set this for a completed task will raise an exception.
- @param result The result of the task.
- */
-- (void)setResult:(nullable ResultType)result NS_SWIFT_NAME(set(result:));
-
-/*!
- Completes the task by setting the error.
- Attempting to set this for a completed task will raise an exception.
- @param error The error for the task.
- */
-- (void)setError:(NSError *)error NS_SWIFT_NAME(set(error:));
-
-/*!
- Completes the task by marking it as cancelled.
- Attempting to set this for a completed task will raise an exception.
- */
-- (void)cancel;
-
-/*!
- Sets the result of the task if it wasn't already completed.
- @returns whether the new value was set.
- */
-- (BOOL)trySetResult:(nullable ResultType)result NS_SWIFT_NAME(trySet(result:));
-
-/*!
- Sets the error of the task if it wasn't already completed.
- @param error The error for the task.
- @returns whether the new value was set.
- */
-- (BOOL)trySetError:(NSError *)error NS_SWIFT_NAME(trySet(error:));
-
-/*!
- Sets the cancellation state of the task if it wasn't already completed.
- @returns whether the new value was set.
- */
-- (BOOL)trySetCancelled;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/src/ios/Bolts.framework/Headers/BFURL.h b/src/ios/Bolts.framework/Headers/BFURL.h
deleted file mode 100644
index 924c91d48..000000000
--- a/src/ios/Bolts.framework/Headers/BFURL.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-@class BFAppLink;
-
-/*!
- Provides a set of utilities for working with NSURLs, such as parsing of query parameters
- and handling for App Link requests.
- */
-@interface BFURL : NSObject
-
-/*!
- Creates a link target from a raw URL.
- On success, this posts the BFAppLinkParseEventName measurement event. If you are constructing the BFURL within your application delegate's
- application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication:
- to support better BFMeasurementEvent notifications
- @param url The instance of `NSURL` to create BFURL from.
- */
-+ (BFURL *)URLWithURL:(NSURL *)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 BFAppLinkNavigateInEventName measurement event.
- @param url The instance of `NSURL` to create BFURL 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:
- */
-+ (BFURL *)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)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) NSDictionary *appLinkData;
-
-/*!
- If this link target is an App Link, this is the data found in extras.
- */
-@property (nonatomic, strong, readonly) NSDictionary *appLinkExtras;
-
-/*!
- The App Link indicating how to navigate back to the referer app, if any.
- */
-@property (nonatomic, strong, readonly) BFAppLink *appLinkReferer;
-
-/*!
- The URL that was used to create this BFURL.
- */
-@property (nonatomic, strong, readonly) NSURL *inputURL;
-
-/*!
- The query parameters of the inputURL, parsed into an NSDictionary.
- */
-@property (nonatomic, strong, readonly) NSDictionary *inputQueryParameters;
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/BFWebViewAppLinkResolver.h b/src/ios/Bolts.framework/Headers/BFWebViewAppLinkResolver.h
deleted file mode 100644
index 3782ae2cb..000000000
--- a/src/ios/Bolts.framework/Headers/BFWebViewAppLinkResolver.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-
-#import
-
-/*!
- A reference implementation for an App Link resolver that uses a hidden UIWebView
- to parse the HTML containing App Link metadata.
- */
-@interface BFWebViewAppLinkResolver : NSObject
-
-/*!
- Gets the instance of a BFWebViewAppLinkResolver.
- */
-+ (instancetype)sharedInstance;
-
-@end
diff --git a/src/ios/Bolts.framework/Headers/Bolts.h b/src/ios/Bolts.framework/Headers/Bolts.h
deleted file mode 100644
index a3f2bd6f2..000000000
--- a/src/ios/Bolts.framework/Headers/Bolts.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
-
-#import
-#import
-#import
-#import
-#import
-#import
-#import
-
-#if __has_include() && TARGET_OS_IPHONE && !TARGET_OS_WATCH && !TARGET_OS_TV
-#import
-#import
-#import
-#import
-#import
-#import
-#import
-#import
-#import
-#endif
-
-
-NS_ASSUME_NONNULL_BEGIN
-
-/**
- A string containing the version of the Bolts Framework used by the current application.
- */
-extern NSString *const BoltsFrameworkVersionString;
-
-NS_ASSUME_NONNULL_END
diff --git a/src/ios/Bolts.framework/Info.plist b/src/ios/Bolts.framework/Info.plist
deleted file mode 100644
index b2f3cc6fe..000000000
Binary files a/src/ios/Bolts.framework/Info.plist and /dev/null differ
diff --git a/src/ios/Bolts.framework/Modules/module.modulemap b/src/ios/Bolts.framework/Modules/module.modulemap
deleted file mode 100644
index 3c92a170f..000000000
--- a/src/ios/Bolts.framework/Modules/module.modulemap
+++ /dev/null
@@ -1,15 +0,0 @@
-framework module Bolts {
- umbrella header "Bolts.h"
-
- export *
- module * { export * }
-
- explicit module BFAppLinkResolving {
- header "BFAppLinkResolving.h"
- export *
- }
- explicit module BFWebViewAppLinkResolver {
- header "BFWebViewAppLinkResolver.h"
- export *
- }
-}
diff --git a/src/ios/FBSDKLoginKit.framework/FBSDKLoginKit b/src/ios/FBSDKLoginKit.framework/FBSDKLoginKit
index 4b469bbae..57d9bfad0 100644
Binary files a/src/ios/FBSDKLoginKit.framework/FBSDKLoginKit and b/src/ios/FBSDKLoginKit.framework/FBSDKLoginKit differ
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h
index 52c1de760..36665b96a 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h
@@ -24,6 +24,7 @@ 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
/*!
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h
index 3f6f0360b..1eca08210 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h
@@ -28,6 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
/*!
@abstract A delegate for `FBSDKDeviceLoginManager`.
*/
+NS_SWIFT_NAME(DeviceLoginManagerDelegate)
@protocol FBSDKDeviceLoginManagerDelegate
/*!
@@ -36,7 +37,8 @@ NS_ASSUME_NONNULL_BEGIN
@param loginManager the login manager instance.
@param codeInfo the code info data.
*/
-- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo;
+- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager
+ startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo;
/*!
@abstract Indicates the device login flow has finished.
@@ -60,13 +62,14 @@ NS_ASSUME_NONNULL_BEGIN
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:(nullable NSArray *)permissions
+- (instancetype)initWithPermissions:(NSArray *)permissions
enableSmartLogin:(BOOL)enableSmartLogin
NS_DESIGNATED_INITIALIZER;
@@ -81,7 +84,7 @@ NS_DESIGNATED_INITIALIZER;
/*!
@abstract the requested permissions.
*/
-@property (nullable, nonatomic, copy, readonly) NSArray *permissions;
+@property (nonatomic, copy, readonly) NSArray *permissions;
/*!
@abstract the optional URL to redirect the user to after they complete the login.
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h
index ccce55232..786f11b6e 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h
@@ -26,6 +26,7 @@ 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
/*!
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h
index 1b8ed2985..03005f0bc 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h
@@ -24,6 +24,8 @@
#import "FBSDKTooltipView.h"
+NS_ASSUME_NONNULL_BEGIN
+
@protocol FBSDKLoginButtonDelegate;
/**
@@ -40,7 +42,7 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior)
/** 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.
@@ -55,6 +57,7 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior)
`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
/**
@@ -69,23 +72,18 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior)
Gets or sets the login behavior to use
*/
@property (assign, nonatomic) FBSDKLoginBehavior loginBehavior;
-/**
- The publish permissions to request.
+/*!
+ @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.
- Use `defaultAudience` to specify the default audience to publish to.
Note this is converted to NSSet and is only
an NSArray for the convenience of literal syntax.
- */
-@property (copy, nonatomic) NSArray *publishPermissions;
-/**
- The read permissions to request.
-
- Note, that if read permissions are specified, then publish permissions should not be specified. 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 *readPermissions;
+@property (copy, nonatomic) NSArray *permissions;
/**
Gets or sets the desired tooltip behavior.
*/
@@ -101,6 +99,7 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior)
@protocol
A delegate for `FBSDKLoginButton`
*/
+NS_SWIFT_NAME(LoginButtonDelegate)
@protocol FBSDKLoginButtonDelegate
@required
@@ -111,8 +110,8 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior)
@param error The error (if any) from the login
*/
- (void)loginButton:(FBSDKLoginButton *)loginButton
-didCompleteWithResult:(FBSDKLoginManagerLoginResult *)result
- error:(NSError *)error;
+didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result
+ error:(nullable NSError *)error;
/**
Sent to the delegate when the button was used to logout.
@@ -126,6 +125,8 @@ didCompleteWithResult:(FBSDKLoginManagerLoginResult *)result
@param loginButton the sender
@return YES if the login should be allowed to proceed, NO otherwise
*/
-- (BOOL) loginButtonWillLogin:(FBSDKLoginButton *)loginButton;
+- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h
index bcbf9d669..471bfdcab 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h
@@ -18,6 +18,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
/**
@@ -25,7 +27,8 @@
Error codes from the SDK in the range 300-399 are reserved for this domain.
*/
-FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain;
+FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain
+NS_SWIFT_NAME(LoginErrorDomain);
#else
@@ -34,7 +37,8 @@ FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain;
Error codes from the SDK in the range 300-399 are reserved for this domain.
*/
-FOUNDATION_EXPORT NSString *const FBSDKLoginErrorDomain;
+FOUNDATION_EXPORT NSString *const FBSDKLoginErrorDomain
+NS_SWIFT_NAME(LoginErrorDomain);
#endif
@@ -54,6 +58,7 @@ typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKLoginError)
Reserved.
*/
FBSDKLoginErrorReserved = 300,
+
/**
The error code for unknown errors.
*/
@@ -63,14 +68,17 @@ typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKLoginError)
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
*/
@@ -82,15 +90,17 @@ typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKLoginError)
been disabled.
*/
FBSDKLoginErrorSystemAccountAppDisabled,
+
/**
An error occurred related to Facebook system Account store
*/
FBSDKLoginErrorSystemAccountUnavailable,
+
/**
The login response was missing a valid challenge string.
*/
FBSDKLoginErrorBadChallengeString,
-};
+} NS_SWIFT_NAME(LoginError);
/**
FBSDKDeviceLoginError
@@ -113,30 +123,6 @@ typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKDeviceLoginError) {
The code you entered has expired.
*/
FBSDKDeviceLoginErrorCodeExpired = 1349152
-};
+} NS_SWIFT_NAME(DeviceLoginError);
-/**
- Deprecated
- */
-typedef NS_ENUM(NSInteger, FBSDKLoginErrorCode)
-{
- FBSDKLoginReservedErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorReserved instead") = FBSDKLoginErrorReserved,
- FBSDKLoginUnknownErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorUnknown instead"),
- FBSDKLoginPasswordChangedErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorPasswordChanged instead"),
- FBSDKLoginUserCheckpointedErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorUserCheckpointed instead"),
- FBSDKLoginUserMismatchErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorUserMismatch instead"),
- FBSDKLoginUnconfirmedUserErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorUnconfirmedUser instead"),
- FBSDKLoginSystemAccountAppDisabledErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorSystemAccountAppDisabled instead"),
- FBSDKLoginSystemAccountUnavailableErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorSystemAccountUnavailable instead"),
- FBSDKLoginBadChallengeString DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginErrorBadChallengeString instead"),
-} DEPRECATED_MSG_ATTRIBUTE("use FBSDKLoginError instead");
-
-/**
- Deprecated
- */
-typedef NS_ENUM(NSUInteger, FBSDKDeviceLoginErrorSubcode) {
- FBSDKDeviceLoginExcessivePollingErrorSubcode DEPRECATED_MSG_ATTRIBUTE("use FBSDKDeviceLoginErrorExcessivePolling instead") = FBSDKDeviceLoginErrorExcessivePolling,
- FBSDKDeviceLoginAuthorizationDeclinedErrorSubcode DEPRECATED_MSG_ATTRIBUTE("use FBSDKDeviceLoginErrorAuthorizationDeclined instead") = FBSDKDeviceLoginErrorAuthorizationDeclined,
- FBSDKDeviceLoginAuthorizationPendingErrorSubcode DEPRECATED_MSG_ATTRIBUTE("use FBSDKDeviceLoginErrorAuthorizationPending instead") = FBSDKDeviceLoginErrorAuthorizationPending,
- FBSDKDeviceLoginCodeExpiredErrorSubcode DEPRECATED_MSG_ATTRIBUTE("use FBSDKDeviceLoginErrorCodeExpired instead") = FBSDKDeviceLoginErrorCodeExpired
-} DEPRECATED_MSG_ATTRIBUTE("use FBSDKDeviceLoginError instead");
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h
index 7b579d08c..b71bfcbf5 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h
@@ -16,18 +16,30 @@
// 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
+NS_ASSUME_NONNULL_BEGIN
+
@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
@param result the result of the authorization
@param error the authorization error, if any.
*/
-typedef void (^FBSDKLoginManagerRequestTokenHandler)(FBSDKLoginManagerLoginResult *result, NSError *error);
+typedef void (^FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result,
+ NSError *_Nullable error)
+NS_SWIFT_NAME(LoginManagerLoginResultBlock);
/**
@@ -50,7 +62,7 @@ typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience)
FBSDKDefaultAudienceOnlyMe,
/** Indicates that all Facebook users are able to see posts made by the application */
FBSDKDefaultAudienceEveryone,
-};
+} NS_SWIFT_NAME(DefaultAudience);
/**
FBSDKLoginBehavior enum
@@ -72,29 +84,11 @@ typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience)
typedef NS_ENUM(NSUInteger, FBSDKLoginBehavior)
{
/**
- This is the default behavior, and indicates logging in through the native
- Facebook app may be used. The SDK may still use Safari instead.
- */
- FBSDKLoginBehaviorNative = 0,
- /**
- Attempts log in through the Safari or SFSafariViewController, if available.
- */
- FBSDKLoginBehaviorBrowser,
- /**
- Attempts log in through the Facebook account currently signed in through
- the device Settings.
- @note If the account is not available to the app (either not configured by user or
- as determined by the SDK) this behavior falls back to \c FBSDKLoginBehaviorNative.
- */
- FBSDKLoginBehaviorSystemAccount,
- /**
- Attempts log in through a modal \c UIWebView pop up
-
- @note This behavior is only available to certain types of apps. Please check the Facebook
- Platform Policy to verify your app meets the restrictions.
+ This is the default behavior, and indicates logging in via ASWebAuthenticationSession (iOS 12+) or SFAuthenticationSession (iOS 11),
+ which present specialized SafariViewControllers. Falls back to plain SFSafariViewController (iOS 9 and 10) or Safari (iOS 8).
*/
- FBSDKLoginBehaviorWeb,
-};
+ FBSDKLoginBehaviorBrowser = 0,
+} NS_SWIFT_NAME(LoginBehavior);
/**
`FBSDKLoginManager` provides methods for logging the user in and out.
@@ -108,12 +102,13 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginBehavior)
If you are managing your own token instances outside of "currentAccessToken", you will need to set
"currentAccessToken" before calling logIn* to authorize further permissions on your tokens.
*/
+NS_SWIFT_NAME(LoginManager)
@interface FBSDKLoginManager : NSObject
/**
Auth type
*/
-@property (strong, nonatomic) NSString *authType;
+@property (strong, nonatomic) FBSDKLoginAuthType authType;
/**
the default audience.
@@ -127,50 +122,14 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginBehavior)
@property (assign, nonatomic) FBSDKLoginBehavior loginBehavior;
/**
-
-@warning use logInWithReadPermissions:fromViewController:handler: instead
- */
-- (void)logInWithReadPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler
-DEPRECATED_MSG_ATTRIBUTE("use logInWithReadPermissions:fromViewController:handler: instead");
-
-/**
-
-@warning use logInWithPublishPermissions:fromViewController:handler: instead
- */
-- (void)logInWithPublishPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler
-DEPRECATED_MSG_ATTRIBUTE("use logInWithPublishPermissions:fromViewController:handler: instead");
-
-/**
- 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 result.declinedPermissions to also
- provide more information to the user if they decline permissions.
-
- This method will present UI the user. You typically should check if `[FBSDKAccessToken currentAccessToken]`
- already contains the permissions you need before asking to reduce unnecessary app switching. For example,
- you could make that check at viewDidLoad.
- You can only do one login call at a time. Calling a login method before the completion handler is called
- on a previous login will return an error.
- */
-- (void)logInWithReadPermissions:(NSArray *)permissions
- fromViewController:(UIViewController *)fromViewController
- handler:(FBSDKLoginManagerRequestTokenHandler)handler;
-
-/**
- Logs the user in or authorizes additional permissions.
+ 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 publish permissions. You should only ask for permissions when they
+ 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 result.declinedPermissions to also
provide more information to the user if they decline permissions.
@@ -180,10 +139,10 @@ DEPRECATED_MSG_ATTRIBUTE("use logInWithPublishPermissions:fromViewController:han
You can only do one login call at a time. Calling a login method before the completion handler is called
on a previous login will return an error.
*/
-- (void)logInWithPublishPermissions:(NSArray *)permissions
- fromViewController:(UIViewController *)fromViewController
- handler:(FBSDKLoginManagerRequestTokenHandler)handler;
-
+- (void)logInWithPermissions:(NSArray *)permissions
+ fromViewController:(nullable UIViewController *)fromViewController
+ handler:(nullable FBSDKLoginManagerLoginResultBlock)handler
+NS_SWIFT_NAME(logIn(permissions:from:handler:));
/**
Requests user's permission to reathorize application's data access, after it has expired due to inactivity.
@@ -197,7 +156,8 @@ DEPRECATED_MSG_ATTRIBUTE("use logInWithPublishPermissions:fromViewController:han
This method will present UI the user. You typically should call this if `[FBSDKAccessToken isDataAccessExpired]` returns true.
*/
- (void)reauthorizeDataAccess:(UIViewController *)fromViewController
- handler:(FBSDKLoginManagerRequestTokenHandler)handler;
+ handler:(FBSDKLoginManagerLoginResultBlock)handler
+NS_SWIFT_NAME(reauthorizeDataAccess(from:handler:));
/**
Logs the user out
@@ -206,22 +166,6 @@ DEPRECATED_MSG_ATTRIBUTE("use logInWithPublishPermissions:fromViewController:han
*/
- (void)logOut;
-/**
- @method
-
- Issues an asynchronous renewCredentialsForAccount call to the device's Facebook account store.
-
- @param handler The completion handler to call when the renewal is completed. This can be invoked on an arbitrary thread.
-
-
- This can be used to explicitly renew account credentials and is provided as a convenience wrapper around
- `[ACAccountStore renewCredentialsForAccount:completion]`. Note the method will not issue the renewal call if the the
- Facebook account has not been set on the device, or if access had not been granted to the account (though the handler
- wil receive an error).
-
- If the `[FBSDKAccessToken currentAccessToken]` was from the account store, a succesful renewal will also set
- a new "currentAccessToken".
- */
-+ (void)renewSystemCredentials:(void (^)(ACAccountCredentialRenewResult result, NSError *error))handler;
-
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h
index 6601011d9..ffcaaae60 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h
@@ -18,11 +18,14 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
@class FBSDKAccessToken;
/**
Describes the result of a login attempt.
*/
+NS_SWIFT_NAME(LoginManagerLoginResult)
@interface FBSDKLoginManagerLoginResult : NSObject
- (instancetype)init NS_UNAVAILABLE;
@@ -31,7 +34,7 @@
/**
the access token.
*/
-@property (copy, nonatomic) FBSDKAccessToken *token;
+@property (copy, nonatomic, nullable) FBSDKAccessToken *token;
/**
whether the login was cancelled by the user.
@@ -43,14 +46,14 @@
inspect the token's permissions set for a complete list.
*/
-@property (copy, nonatomic) NSSet *grantedPermissions;
+@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;
+@property (copy, nonatomic) NSSet *declinedPermissions;
/**
Initializes a new instance.
@@ -59,9 +62,11 @@
@param grantedPermissions the set of granted permissions
@param declinedPermissions the set of declined permissions
*/
-- (instancetype)initWithToken:(FBSDKAccessToken *)token
+- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token
isCancelled:(BOOL)isCancelled
- grantedPermissions:(NSSet *)grantedPermissions
- declinedPermissions:(NSSet *)declinedPermissions
+ grantedPermissions:(NSSet *)grantedPermissions
+ declinedPermissions:(NSSet *)declinedPermissions
NS_DESIGNATED_INITIALIZER;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h
index 179219710..63f9e32aa 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h
@@ -20,6 +20,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
@protocol FBSDKLoginTooltipViewDelegate;
/**
@@ -37,6 +39,7 @@
(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 */
@@ -44,7 +47,7 @@
/** if set to YES, the view will always be displayed and the delegate's
`loginTooltipView:shouldAppear:` will NOT be called. */
-@property (nonatomic, assign) BOOL forceDisplay;
+@property (nonatomic, assign, getter=shouldForceDisplay) BOOL forceDisplay;
@end
@@ -54,6 +57,7 @@
The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event
notifications from `FBSDKLoginTooltipView` objects.
*/
+NS_SWIFT_NAME(LoginTooltipViewDelegate)
@protocol FBSDKLoginTooltipViewDelegate
@optional
@@ -88,3 +92,5 @@
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h
index d77392cfd..3941bcdd9 100644
--- a/src/ios/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h
+++ b/src/ios/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h
@@ -18,6 +18,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
FBSDKTooltipViewArrowDirection enum
@@ -29,7 +31,7 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection)
FBSDKTooltipViewArrowDirectionDown = 0,
/** View is located below given point, arrow is pointing up. */
FBSDKTooltipViewArrowDirectionUp = 1,
-};
+} NS_SWIFT_NAME(FBTooltipView.ArrowDirection);
/**
FBSDKTooltipColorStyle enum
@@ -42,7 +44,7 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle)
FBSDKTooltipColorStyleFriendlyBlue = 0,
/** Dark gray background, white text, light gray close button. */
FBSDKTooltipColorStyleNeutralGray = 1,
-};
+} NS_SWIFT_NAME(FBTooltipView.ColorStyle);
/**
@@ -53,6 +55,7 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle)
The tooltip fades in and will automatically fade out. See `displayDuration`.
*/
+NS_SWIFT_NAME(FBTooltipView)
@interface FBSDKTooltipView : UIView
/**
@@ -71,12 +74,12 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle)
/**
Gets or sets the message.
*/
-@property (nonatomic, copy) NSString *message;
+@property (nonatomic, copy, nullable) NSString *message;
/**
Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently).
*/
-@property (nonatomic, copy) NSString *tagline;
+@property (nonatomic, copy, nullable) NSString *tagline;
/**
Designated initializer.
@@ -94,7 +97,9 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle)
@see FBSDKLoginTooltipView
*/
-- (instancetype)initWithTagline:(NSString *)tagline message:(NSString *)message colorStyle:(FBSDKTooltipColorStyle)colorStyle;
+- (instancetype)initWithTagline:(nullable NSString *)tagline
+ message:(nullable NSString *)message
+ colorStyle:(FBSDKTooltipColorStyle)colorStyle;
/**
Show tooltip at the top or at the bottom of given view.
@@ -122,7 +127,10 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle)
@param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or
down (message bubble is above the arrow).
*/
-- (void)presentInView:(UIView *)view withArrowPosition:(CGPoint)arrowPosition direction:(FBSDKTooltipViewArrowDirection)arrowDirection;
+- (void)presentInView:(UIView *)view
+ withArrowPosition:(CGPoint)arrowPosition
+ direction:(FBSDKTooltipViewArrowDirection)arrowDirection
+NS_SWIFT_NAME(present(in:arrowPosition:direction:));
/**
Remove tooltip manually.
@@ -134,3 +142,5 @@ typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle)
- (void)dismiss;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKLoginKit.framework/Info.plist b/src/ios/FBSDKLoginKit.framework/Info.plist
index 3f63b05ce..e3466d17f 100644
Binary files a/src/ios/FBSDKLoginKit.framework/Info.plist and b/src/ios/FBSDKLoginKit.framework/Info.plist differ
diff --git a/src/ios/FBSDKShareKit.framework/FBSDKShareKit b/src/ios/FBSDKShareKit.framework/FBSDKShareKit
index 30f8e07d0..33a5b79f1 100644
Binary files a/src/ios/FBSDKShareKit.framework/FBSDKShareKit and b/src/ios/FBSDKShareKit.framework/FBSDKShareKit differ
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupAddDialog.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupAddDialog.h
deleted file mode 100644
index f20eb2e6b..000000000
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupAddDialog.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
-
-#import
-
-@protocol FBSDKAppGroupAddDialogDelegate;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-DEPRECATED_MSG_ATTRIBUTE("App and game groups are being deprecated")
-@interface FBSDKAppGroupAddDialog : NSObject
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-+ (instancetype)showWithContent:(FBSDKAppGroupContent *)content
- delegate:(id)delegate
-DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-@property (nonatomic, weak) id delegate
-DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-@property (nonatomic, copy) FBSDKAppGroupContent *content
-DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (BOOL)canShow DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (BOOL)show DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (BOOL)validateWithError:(NSError *__autoreleasing *)errorRef
-DEPRECATED_ATTRIBUTE;
-
-@end
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-DEPRECATED_MSG_ATTRIBUTE("App and game groups are being deprecated")
-@protocol FBSDKAppGroupAddDialogDelegate
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (void)appGroupAddDialog:(FBSDKAppGroupAddDialog *)appGroupAddDialog didCompleteWithResults:(NSDictionary *)results DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (void)appGroupAddDialog:(FBSDKAppGroupAddDialog *)appGroupAddDialog didFailWithError:(NSError *)error DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (void)appGroupAddDialogDidCancel:(FBSDKAppGroupAddDialog *)appGroupAddDialog DEPRECATED_ATTRIBUTE;
-
-@end
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h
index 9b0e0fe67..1c9143b22 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupContent.h
@@ -20,6 +20,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy)
Specifies the privacy of a group.
@@ -30,16 +32,18 @@ typedef NS_ENUM(NSUInteger, FBSDKAppGroupPrivacy)
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);
+FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(FBSDKAppGroupPrivacy privacy)
+NS_REFINED_FOR_SWIFT;
/**
A model for creating an app group.
*/
+NS_SWIFT_NAME(AppGroupContent)
@interface FBSDKAppGroupContent : NSObject
/**
@@ -65,3 +69,5 @@ FOUNDATION_EXPORT NSString *NSStringFromFBSDKAppGroupPrivacy(FBSDKAppGroupPrivac
- (BOOL)isEqualToAppGroupContent:(FBSDKAppGroupContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupJoinDialog.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupJoinDialog.h
deleted file mode 100644
index 60e8d9950..000000000
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppGroupJoinDialog.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
-
-@protocol FBSDKAppGroupJoinDialogDelegate;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-DEPRECATED_MSG_ATTRIBUTE("App and game groups are being deprecated")
-@interface FBSDKAppGroupJoinDialog : NSObject
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-+ (instancetype)showWithGroupID:(NSString *)groupID
- delegate:(id)delegate DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information. */
-@property (nonatomic, weak) id delegate DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information. */
-@property (nonatomic, copy) NSString *groupID DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (BOOL)canShow DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (BOOL)show DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (BOOL)validateWithError:(NSError *__autoreleasing *)errorRef DEPRECATED_ATTRIBUTE;
-
-@end
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-DEPRECATED_MSG_ATTRIBUTE("App and game groups are being deprecated")
-@protocol FBSDKAppGroupJoinDialogDelegate
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (void)appGroupJoinDialog:(FBSDKAppGroupJoinDialog *)appGroupJoinDialog didCompleteWithResults:(NSDictionary *)results DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (void)appGroupJoinDialog:(FBSDKAppGroupJoinDialog *)appGroupJoinDialog didFailWithError:(NSError *)error DEPRECATED_ATTRIBUTE;
-
-/**
-
-@warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
- */
-- (void)appGroupJoinDialogDidCancel:(FBSDKAppGroupJoinDialog *)appGroupJoinDialog DEPRECATED_ATTRIBUTE;
-
-@end
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h
index 565598377..14bd9f782 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteContent.h
@@ -21,6 +21,8 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
NS_ENUM(NSUInteger, FBSDKAppInviteDestination)
Specifies the privacy of a group.
@@ -31,11 +33,12 @@ typedef NS_ENUM(NSUInteger, FBSDKAppInviteDestination)
FBSDKAppInviteDestinationFacebook = 0,
/** Deliver to Messenger. */
FBSDKAppInviteDestinationMessenger,
-};
+} NS_SWIFT_NAME(AppInviteDestination);
/**
A model for app invite.
*/
+NS_SWIFT_NAME(AppInviteContent)
@interface FBSDKAppInviteContent : NSObject
/**
@@ -44,7 +47,7 @@ typedef NS_ENUM(NSUInteger, FBSDKAppInviteDestination)
This is optional. If you don't include it a fallback image will be used.
*/
-@property (nonatomic, copy) NSURL *appInvitePreviewImageURL;
+@property (nonatomic, copy, nullable) NSURL *appInvitePreviewImageURL;
/**
An app link target that will be used as a target when the user accept the invite.
@@ -54,13 +57,6 @@ typedef NS_ENUM(NSUInteger, FBSDKAppInviteDestination)
*/
@property (nonatomic, copy) NSURL *appLinkURL;
-/**
-
-@warning Use `appInvitePreviewImageURL` instead.
- */
-@property (nonatomic, copy) NSURL *previewImageURL
-DEPRECATED_MSG_ATTRIBUTE("use appInvitePreviewImageURL instead");
-
/**
Promotional code to be displayed while sending and receiving the invite.
@@ -68,7 +64,7 @@ DEPRECATED_MSG_ATTRIBUTE("use appInvitePreviewImageURL instead");
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 *promotionCode;
+@property (nonatomic, copy, nullable) NSString *promotionCode;
/**
Promotional text to be displayed while sending and receiving the invite.
@@ -77,7 +73,7 @@ DEPRECATED_MSG_ATTRIBUTE("use appInvitePreviewImageURL instead");
This is optional. This can be between 0 and 80 characters long and can contain
alphanumeric and spaces only.
*/
-@property (nonatomic, copy) NSString *promotionText;
+@property (nonatomic, copy, nullable) NSString *promotionText;
/**
Destination for the app invite.
@@ -85,7 +81,7 @@ DEPRECATED_MSG_ATTRIBUTE("use appInvitePreviewImageURL instead");
This is optional and for declaring destination of the invite.
*/
-@property FBSDKAppInviteDestination destination;
+@property (nonatomic, assign) FBSDKAppInviteDestination destination;
/**
Compares the receiver to another app invite content.
@@ -95,3 +91,5 @@ DEPRECATED_MSG_ATTRIBUTE("use appInvitePreviewImageURL instead");
- (BOOL)isEqualToAppInviteContent:(FBSDKAppInviteContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteDialog.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteDialog.h
deleted file mode 100644
index 0af279038..000000000
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKAppInviteDialog.h
+++ /dev/null
@@ -1,118 +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
-
-@protocol FBSDKAppInviteDialogDelegate;
-
-/**
- A dialog for sending App Invites.
- */
-@interface FBSDKAppInviteDialog : NSObject
-
-/**
- Convenience method to show a FBSDKAppInviteDialog
- @param viewController A UIViewController to present the dialog from.
- @param content The content for the app invite.
- @param delegate The receiver's delegate.
- @warning This method is deprecated.
- */
-+ (instancetype)showFromViewController:(UIViewController *)viewController
- withContent:(FBSDKAppInviteContent *)content
- delegate:(id)delegate
-DEPRECATED_MSG_ATTRIBUTE("App Invites no longer supported");
-
-
-/**
-
- @warning use showFromViewController:withContent:delegate: instead
- */
-+ (instancetype)showWithContent:(FBSDKAppInviteContent *)content delegate:(id)delegate
-DEPRECATED_MSG_ATTRIBUTE("use showFromViewController:withContent:delegate: 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 receiver's delegate or nil if it doesn't have a delegate.
- */
-@property (nonatomic, weak) id delegate;
-
-/**
- The content for app invite.
- */
-@property (nonatomic, copy) FBSDKAppInviteContent *content;
-
-/**
- A Boolean value that indicates whether the receiver can initiate an app invite.
-
- 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 show the dialog, otherwise NO.
- */
-@property (nonatomic, readonly) BOOL canShow;
-
-/**
- Begins the app invite 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 FBSDKAppInviteDialog.
-
- The delegate is notified with the results of the app invite 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 an app invite and cancellation.
- */
-@protocol FBSDKAppInviteDialogDelegate
-
-/**
- Sent to the delegate when the app invite completes without error.
- @param appInviteDialog The FBSDKAppInviteDialog that completed.
- @param results The results from the dialog. This may be nil or empty.
- */
-- (void)appInviteDialog:(FBSDKAppInviteDialog *)appInviteDialog didCompleteWithResults:(NSDictionary *)results;
-
-/**
- Sent to the delegate when the app invite encounters an error.
- @param appInviteDialog The FBSDKAppInviteDialog that completed.
- @param error The error.
- */
-- (void)appInviteDialog:(FBSDKAppInviteDialog *)appInviteDialog didFailWithError:(NSError *)error;
-
-@end
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectArguments.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectArguments.h
index 6306f47fe..6c8b8505f 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectArguments.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectArguments.h
@@ -20,10 +20,13 @@
#import
+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
/**
@@ -31,27 +34,31 @@
@param string The argument
@param key The key for the argument
*/
-- (void)setString:(NSString *)string forKey:(NSString *)key;
+- (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
*/
-- (NSString *)stringForKey:(NSString *)key;
+- (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:(NSArray *)array forKey:(NSString *)key;
+- (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
*/
-- (NSArray *)arrayForKey:(NSString *)key;
+- (nullable NSArray *)arrayForKey:(NSString *)key;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectTextures.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectTextures.h
index 9639b5094..dded7468c 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectTextures.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKCameraEffectTextures.h
@@ -20,10 +20,13 @@
#import
+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
/**
@@ -31,13 +34,16 @@
@param image The UIImage for the texture
@param key The key for the texture
*/
-- (void)setImage:(UIImage *)image forKey:(NSString *)key;
+- (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
*/
-- (UIImage *)imageForKey:(NSString *)key;
+- (nullable UIImage *)imageForKey:(NSString *)key;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h
index 059120768..80972ede0 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestContent.h
@@ -21,6 +21,8 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
NS_ENUM(NSUInteger, FBSDKGameRequestActionType)
Additional context about the nature of the request.
@@ -35,7 +37,7 @@ typedef NS_ENUM(NSUInteger, FBSDKGameRequestActionType)
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)
@@ -49,11 +51,12 @@ typedef NS_ENUM(NSUInteger, FBSDKGameRequestFilter)
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
/**
@@ -77,7 +80,7 @@ typedef NS_ENUM(NSUInteger, FBSDKGameRequestFilter)
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) NSString *data;
+@property (nonatomic, copy, nullable) NSString *data;
/**
This controls the set of friends someone sees if a multi-friend selector is shown.
@@ -110,7 +113,7 @@ typedef NS_ENUM(NSUInteger, FBSDKGameRequestFilter)
This is equivalent to the "to" parameter when using the web game request dialog.
*/
-@property (nonatomic, copy) NSArray *recipients;
+@property (nonatomic, copy) NSArray *recipients;
/**
An array of user IDs that will be included in the dialog as the first suggested friends.
@@ -118,25 +121,13 @@ typedef NS_ENUM(NSUInteger, FBSDKGameRequestFilter)
This is equivalent to the "suggestions" parameter when using the web game request dialog.
*/
-@property (nonatomic, copy) NSArray *recipientSuggestions;
-
-/**
-
-@warning Use `recipientSuggestions` instead.
-*/
-@property (nonatomic, copy) NSArray *suggestions
-DEPRECATED_MSG_ATTRIBUTE("use recipientSuggestions instead");
+@property (nonatomic, copy) NSArray *recipientSuggestions;
/**
The title for the dialog.
*/
@property (nonatomic, copy) NSString *title;
-/**
-
-@warning Use `recipients` instead.
- */
-@property (nonatomic, copy) NSArray *to
-DEPRECATED_MSG_ATTRIBUTE("use recipients instead");
-
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h
index d40300732..05a590b0f 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKGameRequestDialog.h
@@ -20,24 +20,42 @@
#import
+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 a game request with content and a 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:(id)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) id delegate;
+@property (nonatomic, weak, nullable) id delegate;
/**
The content for game request.
@@ -47,7 +65,7 @@
/**
Specifies whether frictionless requests are enabled.
*/
-@property (nonatomic, assign) BOOL frictionlessRequestsEnabled;
+@property (nonatomic, assign, getter=isFrictionlessRequestsEnabled) BOOL frictionlessRequestsEnabled;
/**
A Boolean value that indicates whether the receiver can initiate a game request.
@@ -83,6 +101,7 @@
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
/**
@@ -90,7 +109,7 @@
@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;
+- (void)gameRequestDialog:(FBSDKGameRequestDialog *)gameRequestDialog didCompleteWithResults:(NSDictionary *)results;
/**
Sent to the delegate when the game request encounters an error.
@@ -106,3 +125,5 @@
- (void)gameRequestDialogDidCancel:(FBSDKGameRequestDialog *)gameRequestDialog;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKHashtag.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKHashtag.h
index 7c9c52925..4c640b4c4 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKHashtag.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKHashtag.h
@@ -20,9 +20,12 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
Represents a single hashtag that can be used with the share dialog.
*/
+NS_SWIFT_NAME(Hashtag)
@interface FBSDKHashtag : NSObject
/**
@@ -30,7 +33,8 @@
`stringRepresentation` property.
@param hashtagString The hashtag string.
*/
-+ (instancetype)hashtagWithString:(NSString *)hashtagString;
++ (instancetype)hashtagWithString:(NSString *)hashtagString
+NS_SWIFT_NAME(init(_:));
/**
The hashtag string.
@@ -59,3 +63,5 @@
- (BOOL)isEqualToHashtag:(FBSDKHashtag *)hashtag;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeButton.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeButton.h
deleted file mode 100644
index dcfc9f6cf..000000000
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeButton.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
-
-#import
-
-#import
-#import
-
-/**
- Warning: This class is deprecated.
- A button to like an object.
-
- Tapping the receiver will invoke an API call to the Facebook app through a fast-app-switch that allows
- the object to be liked. Upon return to the calling app, the view will update with the new state. If the
- currentAccessToken has "publish_actions" permission and the object is an Open Graph object, then the like can happen
- seamlessly without the fast-app-switch.
- */
-DEPRECATED_MSG_ATTRIBUTE("This is no longer available")
-@interface FBSDKLikeButton : FBSDKButton
-
-/**
- If YES, a sound is played when the receiver is toggled.
-
- @default YES
- */
-@property (nonatomic, assign, getter = isSoundEnabled) BOOL soundEnabled;
-
-@end
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeControl.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeControl.h
deleted file mode 100644
index 0bf9f8712..000000000
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeControl.h
+++ /dev/null
@@ -1,142 +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
-
-/**
- NS_ENUM (NSUInteger, FBSDKLikeControlAuxiliaryPosition)
-
- Specifies the position of the auxiliary view relative to the like button.
- */
-typedef NS_ENUM(NSUInteger, FBSDKLikeControlAuxiliaryPosition)
-{
- /** The auxiliary view is inline with the like button. */
- FBSDKLikeControlAuxiliaryPositionInline,
- /** The auxiliary view is above the like button. */
- FBSDKLikeControlAuxiliaryPositionTop,
- /** The auxiliary view is below the like button. */
- FBSDKLikeControlAuxiliaryPositionBottom,
-};
-
-/**
- Converts an FBSDKLikeControlAuxiliaryPosition to an NSString.
- */
-FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeControlAuxiliaryPosition(FBSDKLikeControlAuxiliaryPosition auxiliaryPosition);
-
-/**
- NS_ENUM(NSUInteger, FBSDKLikeControlHorizontalAlignment)
-
- Specifies the horizontal alignment for FBSDKLikeControlStyleStandard with
- FBSDKLikeControlAuxiliaryPositionTop or FBSDKLikeControlAuxiliaryPositionBottom.
- */
-typedef NS_ENUM(NSUInteger, FBSDKLikeControlHorizontalAlignment)
-{
- /** The subviews are left aligned. */
- FBSDKLikeControlHorizontalAlignmentLeft,
- /** The subviews are center aligned. */
- FBSDKLikeControlHorizontalAlignmentCenter,
- /** The subviews are right aligned. */
- FBSDKLikeControlHorizontalAlignmentRight,
-};
-
-/**
- Converts an FBSDKLikeControlHorizontalAlignment to an NSString.
- */
-FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeControlHorizontalAlignment(FBSDKLikeControlHorizontalAlignment horizontalAlignment);
-
-/**
- NS_ENUM (NSUInteger, FBSDKLikeControlStyle)
-
- Specifies the style of a like control.
- */
-typedef NS_ENUM(NSUInteger, FBSDKLikeControlStyle)
-{
- /** Displays the button and the social sentence. */
- FBSDKLikeControlStyleStandard = 0,
- /** Displays the button and a box that contains the like count. */
- FBSDKLikeControlStyleBoxCount,
-};
-
-/**
- Converts an FBSDKLikeControlStyle to an NSString.
- */
-FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeControlStyle(FBSDKLikeControlStyle style);
-
-/**
- Warning: This class is deprecated.
- UI control to like an object in the Facebook graph.
-
-
- Taps on the like button within this control will invoke an API call to the Facebook app through a
- fast-app-switch that allows the user to like the object. Upon return to the calling app, the view will update
- with the new state and send actions for the UIControlEventValueChanged event.
- */
-DEPRECATED_MSG_ATTRIBUTE("This is no longer available")
-@interface FBSDKLikeControl : UIControl
-
-/**
- The foreground color to use for the content of the receiver.
- */
-@property (nonatomic, strong) UIColor *foregroundColor;
-
-/**
- The position for the auxiliary view for the receiver.
-
-
- @see FBSDKLikeControlAuxiliaryPosition
- */
-@property (nonatomic, assign) FBSDKLikeControlAuxiliaryPosition likeControlAuxiliaryPosition;
-
-/**
- The text alignment of the social sentence.
-
-
- This value is only valid for FBSDKLikeControlStyleStandard with
- FBSDKLikeControlAuxiliaryPositionTop|Bottom.
- */
-@property (nonatomic, assign) FBSDKLikeControlHorizontalAlignment likeControlHorizontalAlignment;
-
-/**
- The style to use for the receiver.
-
-
- @see FBSDKLikeControlStyle
- */
-@property (nonatomic, assign) FBSDKLikeControlStyle likeControlStyle;
-
-/**
- The preferred maximum width (in points) for autolayout.
-
-
- This property affects the size of the receiver when layout constraints are applied to it. During layout,
- if the text extends beyond the width specified by this property, the additional text is flowed to one or more new
- lines, thereby increasing the height of the receiver.
- */
-@property (nonatomic, assign) CGFloat preferredMaxLayoutWidth;
-
-/**
- If YES, a sound is played when the receiver is toggled.
-
- @default YES
- */
-@property (nonatomic, assign, getter = isSoundEnabled) BOOL soundEnabled;
-
-@end
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h
index ce7b8f67f..b52ff04b9 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKLikeObjectType.h
@@ -18,6 +18,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
NS_ENUM (NSUInteger, FBSDKLikeObjectType)
Specifies the type of object referenced by the objectID for likes.
@@ -30,9 +32,12 @@ typedef NS_ENUM(NSUInteger, FBSDKLikeObjectType)
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);
+FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeObjectType(FBSDKLikeObjectType objectType)
+NS_REFINED_FOR_SWIFT;
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLiking.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKLiking.h
index 57fbd22a7..86f6d562a 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKLiking.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKLiking.h
@@ -18,6 +18,10 @@
#import
+#import "FBSDKLikeObjectType.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
/**
The common interface for components that initiate liking.
@@ -25,6 +29,7 @@
@see FBSDKLikeControl
*/
+NS_SWIFT_NAME(Liking)
@protocol FBSDKLiking
/**
@@ -32,7 +37,7 @@
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.
+ Open Graph object. The objects may be public objects, like pages, or objects that are defined by your application.
*/
@property (nonatomic, copy) NSString *objectID;
@@ -47,3 +52,5 @@
@property (nonatomic, assign) FBSDKLikeObjectType objectType;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h
index 1604f80e8..515bf4605 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKMessageDialog.h
@@ -20,6 +20,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A dialog for sharing content through Messenger.
@@ -35,13 +37,27 @@
- FBSDKShareVideoContent
- 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:(id)delegate;
++ (instancetype)showWithContent:(id)content
+ delegate:(nullable id)delegate
+NS_SWIFT_UNAVAILABLE("Use init(content:delegate:).show() instead");
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSendButton.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSendButton.h
index 8dc40ac8b..d7a5ebd46 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSendButton.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSendButton.h
@@ -22,12 +22,17 @@
#import
+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
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareAPI.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareAPI.h
index 01ae3e85f..0fd038bfc 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareAPI.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareAPI.h
@@ -23,6 +23,8 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A utility class for sharing through the graph API. Using this class requires an access token that
has been granted the "publish_actions" permission.
@@ -31,19 +33,35 @@
If you want to use FBSDKShareAPI in a background thread, you must manage the run loop
yourself.
*/
+NS_SWIFT_NAME(ShareAPI)
@interface FBSDKShareAPI : NSObject
+- (instancetype)init NS_DESIGNATED_INITIALIZER
+NS_SWIFT_UNAVAILABLE("Use init(content:delegate:) instead");
++ (instancetype)new NS_UNAVAILABLE;
+
/**
Convenience method to build up a share API with content and a delegate.
@param content The content to be shared.
@param delegate The receiver's delegate.
*/
-+ (instancetype)shareWithContent:(id)content delegate:(id)delegate;
++ (instancetype)apiWithContent:(id)content
+ delegate:(nullable id)delegate
+NS_SWIFT_NAME(init(content:delegate:));
+
+/**
+ Convenience method to build up and share a share API with content and a delegate.
+ @param content The content to be shared.
+ @param delegate The receiver's delegate.
+ */
++ (instancetype)shareWithContent:(id)content
+ delegate:(nullable id)delegate
+NS_SWIFT_UNAVAILABLE("Use init(content:delegate:).share() instead");
/**
The message the person has provided through the custom dialog that will accompany the share content.
*/
-@property (nonatomic, copy) NSString *message;
+@property (nonatomic, copy, nullable) NSString *message;
/**
The graph node to which content should be shared.
@@ -57,7 +75,7 @@
Defaults to [FBSDKAccessToken currentAccessToken]. Setting this to nil will revert the access token to
[FBSDKAccessToken currentAccessToken].
*/
-@property (nonatomic, strong) FBSDKAccessToken *accessToken;
+@property (nonatomic, strong, nullable) FBSDKAccessToken *accessToken;
/**
A Boolean value that indicates whether the receiver can send the share.
@@ -92,3 +110,5 @@
- (BOOL)share;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareButton.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareButton.h
index c2565db37..2c1614ac6 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareButton.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareButton.h
@@ -22,12 +22,17 @@
#import
+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
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareCameraEffectContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareCameraEffectContent.h
index 1309c8df6..5386133b7 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareCameraEffectContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareCameraEffectContent.h
@@ -23,9 +23,12 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A model for content to share with a Facebook camera effect.
*/
+NS_SWIFT_NAME(ShareCameraEffectContent)
@interface FBSDKShareCameraEffectContent : NSObject
/**
@@ -51,3 +54,5 @@
- (BOOL)isEqualToShareCameraEffectContent:(FBSDKShareCameraEffectContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h
index 547a48439..c27b80cce 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareConstants.h
@@ -18,6 +18,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
/**
@@ -25,7 +27,8 @@
Error codes from the SDK in the range 200-299 are reserved for this domain.
*/
-FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain;
+FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain
+NS_SWIFT_NAME(ShareErrorDomain);
#else
@@ -34,7 +37,8 @@ FOUNDATION_EXPORT NSErrorDomain const FBSDKShareErrorDomain;
Error codes from the SDK in the range 200-299 are reserved for this domain.
*/
-FOUNDATION_EXPORT NSString *const FBSDKShareErrorDomain;
+FOUNDATION_EXPORT NSString *const FBSDKShareErrorDomain
+NS_SWIFT_NAME(ShareErrorDomain);
#endif
@@ -71,15 +75,6 @@ typedef NS_ERROR_ENUM(FBSDKShareErrorDomain, FBSDKShareError)
@The error code for unknown errors.
*/
FBSDKShareErrorUnknown,
-};
+} NS_SWIFT_NAME(ShareError);
-/**
- Deprecated
- */
-typedef NS_ENUM(NSInteger, FBSDKShareErrorCode)
-{
- FBSDKShareReservedErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKShareErrorReserved instead") = 200,
- FBSDKShareOpenGraphErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKShareErrorOpenGraph instead"),
- FBSDKShareDialogNotAvailableErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKShareErrorDialogNotAvailable instead"),
- FBSDKShareUnknownErrorCode DEPRECATED_MSG_ATTRIBUTE("use FBSDKShareErrorUnknown instead"),
-} DEPRECATED_MSG_ATTRIBUTE("use FBSDKShareError instead");
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h
index 18c4d3ea2..c80134417 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialog.h
@@ -22,20 +22,35 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A dialog for sharing content on Facebook.
*/
+NS_SWIFT_NAME(ShareDialog)
@interface FBSDKShareDialog : NSObject
/**
- Convenience method to show an FBSDKShareDialog with a fromViewController, content and a delegate.
+ 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:(id)delegate;
+ delegate:(nullable id)delegate
+NS_SWIFT_UNAVAILABLE("Use init(fromViewController:content:delegate:).show() instead");
/**
A UIViewController to present the dialog from.
@@ -52,3 +67,5 @@
@property (nonatomic, assign) FBSDKShareDialogMode mode;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h
index f7bc21347..00e7f8f17 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareDialogMode.h
@@ -18,6 +18,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
NS_ENUM(NSUInteger, FBSDKShareDialogMode)
Modes for the FBSDKShareDialog.
@@ -55,9 +57,12 @@ typedef NS_ENUM(NSUInteger, FBSDKShareDialogMode)
@Displays the feed dialog in a UIWebView within the app.
*/
FBSDKShareDialogModeFeedWeb,
-};
+} NS_SWIFT_NAME(ShareDialog.Mode);
/**
Converts an FBSDKShareDialogMode to an NSString.
*/
-FOUNDATION_EXPORT NSString *NSStringFromFBSDKShareDialogMode(FBSDKShareDialogMode dialogMode);
+FOUNDATION_EXPORT NSString *NSStringFromFBSDKShareDialogMode(FBSDKShareDialogMode dialogMode)
+NS_REFINED_FOR_SWIFT;
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareKit.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareKit.h
index 30e36aa4c..5224d17f2 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareKit.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareKit.h
@@ -40,15 +40,11 @@
#import
#if !TARGET_OS_TV
-#import
#import
-#import
#import
-#import
#import
#import
-#import
-#import
+#import
#import
#import
#import
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h
index 0a283775c..5b7ba5f24 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h
@@ -20,53 +20,21 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A model for status and link content to be shared.
*/
+NS_SWIFT_NAME(ShareLinkContent)
@interface FBSDKShareLinkContent : NSObject
-/**
- The description of the link.
-
- If not specified, this field is automatically populated by information scraped from the contentURL,
- typically the title of the page. This value may be discarded for specially handled links (ex: iTunes URLs).
- @return The description of the link
-
- @deprecated `contentDescription` is deprecated from Graph API 2.9.
- For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations.
- */
-@property (nonatomic, readonly) NSString *contentDescription
- DEPRECATED_MSG_ATTRIBUTE("`contentDescription` is deprecated from Graph API 2.9");
-
-/**
- The title to display for this link.
-
- This value may be discarded for specially handled links (ex: iTunes URLs).
- @return The link title
-
- @deprecated `contentTitle` is deprecated from Graph API 2.9.
- For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations
- */
-@property (nonatomic, readonly) NSString *contentTitle
- DEPRECATED_MSG_ATTRIBUTE("`contentTitle` is deprecated from Graph API 2.9");
-
-/**
- The URL of a picture to attach to this content.
- @return The network URL of an image
-
- @deprecated `imageURL` is deprecated from Graph API 2.9.
- For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations
- */
-@property (nonatomic, readonly) NSURL *imageURL
- DEPRECATED_MSG_ATTRIBUTE("`imageURL` is deprecated from Graph API 2.9");
-
/**
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) NSString *quote;
+@property (nonatomic, copy, nullable) NSString *quote;
/**
Compares the receiver to another link content.
@@ -76,3 +44,5 @@
- (BOOL)isEqualToShareLinkContent:(FBSDKShareLinkContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h
index ab9d895d5..684a504a6 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMediaContent.h
@@ -20,16 +20,27 @@
#import
+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;
+@property (nonatomic, copy) NSArray> *media;
/**
Compares the receiver to another media content.
@@ -39,3 +50,5 @@
- (BOOL)isEqualToShareMediaContent:(FBSDKShareMediaContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h
index 8b18d07c5..9f1f52eaf 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h
@@ -20,9 +20,12 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A base interface for Messenger share action buttons.
*/
+NS_SWIFT_NAME(ShareMessengerActionButton)
@protocol FBSDKShareMessengerActionButton
/**
@@ -32,3 +35,5 @@
@property (nonatomic, copy) NSString *title;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateContent.h
index ffc1b7f9f..2fafbe299 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateContent.h
@@ -20,12 +20,14 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
@class FBSDKShareMessengerGenericTemplateElement;
typedef NS_ENUM(NSUInteger, FBSDKShareMessengerGenericTemplateImageAspectRatio) {
FBSDKShareMessengerGenericTemplateImageAspectRatioHorizontal = 0,
FBSDKShareMessengerGenericTemplateImageAspectRatioSquare
-};
+} NS_SWIFT_NAME(ShareMessengerGenericTemplateImageAspectRatio);
/**
A model for sharing a generic template element to Messenger. This wrapper element allows
@@ -33,6 +35,7 @@ typedef NS_ENUM(NSUInteger, FBSDKShareMessengerGenericTemplateImageAspectRatio)
See https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic
for more details.
*/
+NS_SWIFT_NAME(ShareMessengerGenericTemplateContent)
@interface FBSDKShareMessengerGenericTemplateContent : NSObject
/**
@@ -53,3 +56,5 @@ typedef NS_ENUM(NSUInteger, FBSDKShareMessengerGenericTemplateImageAspectRatio)
@property (nonatomic, copy) FBSDKShareMessengerGenericTemplateElement *element;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateElement.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateElement.h
index d70dd9631..c1ae53a4b 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateElement.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerGenericTemplateElement.h
@@ -21,11 +21,14 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A model for sharing a generic template element to Messenger. This allows specifying title, subtitle,
image, default action, and any other buttons. Title is required. See
https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic for more details.
*/
+NS_SWIFT_NAME(ShareMessengerGenericTemplateElement)
@interface FBSDKShareMessengerGenericTemplateElement : NSObject
/**
@@ -36,21 +39,23 @@
/**
The rendered subtitle for the shared generic template element. Optional.
*/
-@property (nonatomic, copy) NSString *subtitle;
+@property (nonatomic, copy, nullable) NSString *subtitle;
/**
The image url that will be downloaded and rendered at the top of the generic template. Optional.
*/
-@property (nonatomic, copy) NSURL *imageURL;
+@property (nonatomic, copy, nullable) NSURL *imageURL;
/**
The default action executed when this shared generic tempate is tapped. Title for this button is ignored. Optional.
*/
-@property (nonatomic, copy) id defaultAction;
+@property (nonatomic, copy, nullable) id defaultAction;
/**
This specifies what action button to show below the generic template. Optional.
*/
-@property (nonatomic, copy) id button;
+@property (nonatomic, copy, nullable) id button;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerMediaTemplateContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerMediaTemplateContent.h
index 142702d06..7b529e033 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerMediaTemplateContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerMediaTemplateContent.h
@@ -21,17 +21,23 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
typedef NS_ENUM(NSUInteger, FBSDKShareMessengerMediaTemplateMediaType) {
FBSDKShareMessengerMediaTemplateMediaTypeImage = 0,
FBSDKShareMessengerMediaTemplateMediaTypeVideo
-};
+} NS_SWIFT_NAME(ShareMessengerMediaTemplateMediaType);
/**
A model for sharing media template content. See
https://developers.facebook.com/docs/messenger-platform/send-messages/template/media for details.
*/
+NS_SWIFT_NAME(ShareMessengerMediaTemplateContent)
@interface FBSDKShareMessengerMediaTemplateContent : NSObject
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
/**
The media type (image or video) for this content. This must match the media type specified in the
attachmentID/mediaURL to avoid an error when sharing. Defaults to image.
@@ -41,19 +47,19 @@ typedef NS_ENUM(NSUInteger, FBSDKShareMessengerMediaTemplateMediaType) {
/**
The attachmentID of the item to share. Optional, but either attachmentID or mediaURL must be specified.
*/
-@property (nonatomic, copy, readonly) NSString *attachmentID;
+@property (nonatomic, copy, readonly, nullable) NSString *attachmentID;
/**
The Facebook url for this piece of media. External urls will not work; this must be a Facebook url.
See https://developers.facebook.com/docs/messenger-platform/send-messages/template/media for details.
Optional, but either attachmentID or mediaURL must be specified.
*/
-@property (nonatomic, copy, readonly) NSURL *mediaURL;
+@property (nonatomic, copy, readonly, nullable) NSURL *mediaURL;
/**
This specifies what action button to show below the media. Optional.
*/
-@property (nonatomic, copy) id button;
+@property (nonatomic, copy, nullable) id button;
/**
Custom initializer to create media template share with attachment id.
@@ -67,3 +73,5 @@ typedef NS_ENUM(NSUInteger, FBSDKShareMessengerMediaTemplateMediaType) {
- (instancetype)initWithMediaURL:(NSURL *)mediaURL;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerOpenGraphMusicTemplateContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerOpenGraphMusicTemplateContent.h
index f68f51c4d..818536cb0 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerOpenGraphMusicTemplateContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerOpenGraphMusicTemplateContent.h
@@ -21,11 +21,14 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
This share content allows sharing a bubble that plays songs with Open Graph music.
See https://developers.facebook.com/docs/messenger-platform/send-messages/template/open-graph
for details. Passing property pageID is required for this type of share.
*/
+NS_SWIFT_NAME(ShareMessengerOpenGraphMusicTemplateContent)
@interface FBSDKShareMessengerOpenGraphMusicTemplateContent : NSObject
/**
@@ -36,6 +39,8 @@
/**
This specifies what action button to show below the open graph music bubble. Optional.
*/
-@property (nonatomic, copy) id button;
+@property (nonatomic, copy, nullable) id button;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerURLActionButton.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerURLActionButton.h
index 79feadd16..2f0ac9352 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerURLActionButton.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareMessengerURLActionButton.h
@@ -20,15 +20,18 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
typedef NS_ENUM(NSUInteger, FBSDKShareMessengerURLActionButtonWebviewHeightRatio) {
FBSDKShareMessengerURLActionButtonWebviewHeightRatioFull = 0,
FBSDKShareMessengerURLActionButtonWebviewHeightRatioTall,
FBSDKShareMessengerURLActionButtonWebviewHeightRatioCompact
-};
+} NS_SWIFT_NAME(ShareMessengerURLActionButton.WebviewHeightRatio);
/**
A model for a Messenger share URL action button.
*/
+NS_SWIFT_NAME(ShareMessengerURLActionButton)
@interface FBSDKShareMessengerURLActionButton : NSObject
/**
@@ -51,7 +54,7 @@ typedef NS_ENUM(NSUInteger, FBSDKShareMessengerURLActionButtonWebviewHeightRatio
Messenger Extensions. If this is not defined, the url will be used as a fallback. Optional, but ignored
unless isMessengerExtensionURL == YES.
*/
-@property (nonatomic, copy) NSURL *fallbackURL;
+@property (nonatomic, copy, nullable) NSURL *fallbackURL;
/**
This controls whether we want to hide the share button in the webview or not. It is useful to hide the share
@@ -60,3 +63,5 @@ typedef NS_ENUM(NSUInteger, FBSDKShareMessengerURLActionButtonWebviewHeightRatio
@property (nonatomic, assign) BOOL shouldHideWebviewShareButton;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphAction.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphAction.h
index 83e888315..c6facf0be 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphAction.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphAction.h
@@ -23,13 +23,26 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
An Open Graph Action for sharing.
The property keys MUST have namespaces specified on them, such as `og:image`.
*/
+NS_SWIFT_NAME(ShareOpenGraphAction)
@interface FBSDKShareOpenGraphAction : FBSDKShareOpenGraphValueContainer
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+/**
+ Designated initializer to build a new action and set the object for the specified key.
+ @param actionType The action type of the receiver
+ */
+- (instancetype)initWithActionType:(NSString *)actionType
+NS_SWIFT_NAME(init(type:));
+
/**
Convenience method to build a new action and set the object for the specified key.
@param actionType The action type of the receiver
@@ -68,3 +81,5 @@
- (BOOL)isEqualToShareOpenGraphAction:(FBSDKShareOpenGraphAction *)action;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphContent.h
index faed0ba44..f83915e2e 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphContent.h
@@ -21,9 +21,12 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A model for Open Graph content to be shared.
*/
+NS_SWIFT_NAME(ShareOpenGraphContent)
@interface FBSDKShareOpenGraphContent : NSObject
/**
@@ -36,7 +39,6 @@
Property name that points to the primary Open Graph Object in the action.
The value that this action points to will be use for rendering the preview for the share.
- @return The property name for the Open Graph Object in the action
*/
@property (nonatomic, copy) NSString *previewPropertyName;
@@ -48,3 +50,5 @@
- (BOOL)isEqualToShareOpenGraphContent:(FBSDKShareOpenGraphContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphObject.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphObject.h
index ef34e2805..47f0ef311 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphObject.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphObject.h
@@ -22,6 +22,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
An Open Graph Object for sharing.
@@ -41,13 +43,14 @@
@"fitness:metrics:location:longitude": @"2.17403",
}];
*/
+NS_SWIFT_NAME(ShareOpenGraphObject)
@interface FBSDKShareOpenGraphObject : FBSDKShareOpenGraphValueContainer
/**
Convenience method to build a new action and set the object for the specified key.
@param properties Properties for the Open Graph object, which will be parsed into the proper models
*/
-+ (instancetype)objectWithProperties:(NSDictionary *)properties;
++ (instancetype)objectWithProperties:(NSDictionary *)properties;
/**
Compares the receiver to another Open Graph Object.
@@ -57,3 +60,5 @@
- (BOOL)isEqualToShareOpenGraphObject:(FBSDKShareOpenGraphObject *)object;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphValueContainer.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphValueContainer.h
index 59b16994c..3ed2f51e1 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphValueContainer.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareOpenGraphValueContainer.h
@@ -18,74 +18,106 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
@class FBSDKShareOpenGraphObject;
@class FBSDKSharePhoto;
+/**
+ Enumeration Block
+ */
+typedef void (^FBSDKEnumerationBlock)(NSString *key, id object, BOOL *stop)
+NS_SWIFT_NAME(EnumerationBlock)
+NS_SWIFT_UNAVAILABLE("");
+
/**
Protocol defining operations on open graph actions and objects.
The property keys MUST have namespaces specified on them, such as `og:image`.
*/
+NS_SWIFT_NAME(ShareOpenGraphValueContaining)
@protocol FBSDKShareOpenGraphValueContaining
+/**
+ Returns a dictionary of all the objects that lets you access each key/object in the receiver.
+ */
+@property (nonatomic, readonly, strong) NSDictionary *allProperties;
+
+/**
+ Returns an enumerator object that lets you access each key in the receiver.
+ @return An enumerator object that lets you access each key in the receiver
+ */
+@property (nonatomic, readonly, strong) NSEnumerator *keyEnumerator
+NS_SWIFT_UNAVAILABLE("");
+
+/**
+ Returns an enumerator object that lets you access each value in the receiver.
+ @return An enumerator object that lets you access each value in the receiver
+ */
+@property (nonatomic, readonly, strong) NSEnumerator *objectEnumerator
+NS_SWIFT_UNAVAILABLE("");
+
/**
Gets an NSArray out of the receiver.
@param key The key for the value
@return The NSArray value or nil
*/
-- (NSArray *)arrayForKey:(NSString *)key;
+- (nullable NSArray *)arrayForKey:(NSString *)key;
/**
Applies a given block object to the entries of the receiver.
@param block A block object to operate on entries in the receiver
*/
-- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(NSString *key, id object, BOOL *stop))block;
+- (void)enumerateKeysAndObjectsUsingBlock:(FBSDKEnumerationBlock)block
+NS_SWIFT_UNAVAILABLE("");
/**
- Returns an enumerator object that lets you access each key in the receiver.
- @return An enumerator object that lets you access each key in the receiver
+ Gets an NSNumber out of the receiver.
+ @param key The key for the value
+ @return The NSNumber value or nil
*/
-- (NSEnumerator *)keyEnumerator;
+- (nullable NSNumber *)numberForKey:(NSString *)key;
/**
- Gets an NSNumber out of the receiver.
+ Gets an NSString out of the receiver.
@param key The key for the value
- @return The NSNumber value or nil
+ @return The NSString value or nil
*/
-- (NSNumber *)numberForKey:(NSString *)key;
+- (nullable NSString *)stringForKey:(NSString *)key;
/**
- Returns an enumerator object that lets you access each value in the receiver.
- @return An enumerator object that lets you access each value in the receiver
+ Gets an NSURL out of the receiver.
+ @param key The key for the value
+ @return The NSURL value or nil
*/
-- (NSEnumerator *)objectEnumerator;
+- (nullable NSURL *)URLForKey:(NSString *)key;
/**
Gets an FBSDKShareOpenGraphObject out of the receiver.
@param key The key for the value
@return The FBSDKShareOpenGraphObject value or nil
*/
-- (FBSDKShareOpenGraphObject *)objectForKey:(NSString *)key;
+- (nullable FBSDKShareOpenGraphObject *)objectForKey:(NSString *)key;
/**
Enables subscript access to the values in the receiver.
@param key The key for the value
@return The value
*/
-- (id)objectForKeyedSubscript:(NSString *)key;
+- (nullable id)objectForKeyedSubscript:(NSString *)key;
/**
Parses properties out of a dictionary into the receiver.
@param properties The properties to parse.
*/
-- (void)parseProperties:(NSDictionary *)properties;
+- (void)parseProperties:(NSDictionary *)properties;
/**
Gets an FBSDKSharePhoto out of the receiver.
@param key The key for the value
@return The FBSDKSharePhoto value or nil
*/
-- (FBSDKSharePhoto *)photoForKey:(NSString *)key;
+- (nullable FBSDKSharePhoto *)photoForKey:(NSString *)key;
/**
Removes a value from the receiver for the specified key.
@@ -101,62 +133,57 @@
@param array The NSArray value
@param key The key for the value
*/
-- (void)setArray:(NSArray *)array forKey:(NSString *)key;
+- (void)setArray:(nullable NSArray *)array forKey:(NSString *)key
+NS_SWIFT_NAME(set(_:forKey:));
/**
Sets an NSNumber on the receiver.
@param number The NSNumber value
@param key The key for the value
*/
-- (void)setNumber:(NSNumber *)number forKey:(NSString *)key;
+- (void)setNumber:(nullable NSNumber *)number forKey:(NSString *)key
+NS_SWIFT_NAME(set(_:forKey:));
/**
Sets an FBSDKShareOpenGraphObject on the receiver.
@param object The FBSDKShareOpenGraphObject value
@param key The key for the value
*/
-- (void)setObject:(FBSDKShareOpenGraphObject *)object forKey:(NSString *)key;
+- (void)setObject:(nullable FBSDKShareOpenGraphObject *)object forKey:(NSString *)key
+NS_SWIFT_NAME(set(_:forKey:));
/**
Sets an FBSDKSharePhoto on the receiver.
@param photo The FBSDKSharePhoto value
@param key The key for the value
*/
-- (void)setPhoto:(FBSDKSharePhoto *)photo forKey:(NSString *)key;
+- (void)setPhoto:(nullable FBSDKSharePhoto *)photo forKey:(NSString *)key
+NS_SWIFT_NAME(set(_:forKey:));
/**
Sets an NSString on the receiver.
@param string The NSString value
@param key The key for the value
*/
-- (void)setString:(NSString *)string forKey:(NSString *)key;
+- (void)setString:(nullable NSString *)string forKey:(NSString *)key
+NS_SWIFT_NAME(set(_:forKey:));
/**
Sets an NSURL on the receiver.
@param URL The NSURL value
@param key The key for the value
*/
-- (void)setURL:(NSURL *)URL forKey:(NSString *)key;
-
-/**
- Gets an NSString out of the receiver.
- @param key The key for the value
- @return The NSString value or nil
- */
-- (NSString *)stringForKey:(NSString *)key;
-
-/**
- Gets an NSURL out of the receiver.
- @param key The key for the value
- @return The NSURL value or nil
- */
-- (NSURL *)URLForKey:(NSString *)key;
+- (void)setURL:(nullable NSURL *)URL forKey:(NSString *)key
+NS_SWIFT_NAME(set(_:forKey:));
@end
/**
A base class to container Open Graph values.
*/
+NS_SWIFT_NAME(ShareOpenGraphValueContainer)
@interface FBSDKShareOpenGraphValueContainer : NSObject
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h
index 7f8c2e419..0cd272c9a 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhoto.h
@@ -19,14 +19,18 @@
#import
#import
+#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
@class PHAsset;
/**
A photo for sharing.
*/
-@interface FBSDKSharePhoto : NSObject
+NS_SWIFT_NAME(SharePhoto)
+@interface FBSDKSharePhoto : NSObject
/**
Convenience method to build a new photo object with an image.
@@ -60,19 +64,19 @@
If the photo is resident in memory, this method supplies the data.
@return UIImage representation of the photo
*/
-@property (nonatomic, strong) UIImage *image;
+@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) NSURL *imageURL;
+@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) PHAsset *photoAsset;
+@property (nonatomic, copy, nullable) PHAsset *photoAsset;
/**
Specifies whether the photo represented by the receiver was generated by the user or by the application.
@@ -80,6 +84,13 @@
*/
@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
@@ -87,12 +98,7 @@
*/
- (BOOL)isEqualToSharePhoto:(FBSDKSharePhoto *)photo;
-/**
- 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) NSString *caption;
-
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h
index 427c31572..fbb3e6052 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharePhotoContent.h
@@ -20,16 +20,21 @@
#import
+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;
+@property (nonatomic, copy) NSArray *photos;
/**
Compares the receiver to another photo content.
@@ -39,3 +44,5 @@
- (BOOL)isEqualToSharePhotoContent:(FBSDKSharePhotoContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h
index 09c13d1cf..4ceb32afb 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideo.h
@@ -20,15 +20,19 @@
#import
#import
+#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
@class FBSDKSharePhoto;
@class PHAsset;
/**
A video for sharing.
*/
-@interface FBSDKShareVideo : NSObject
+NS_SWIFT_NAME(ShareVideo)
+@interface FBSDKShareVideo : NSObject
/**
Convenience method to build a new video object from raw data.
@@ -73,25 +77,25 @@
The raw video data.
- Returns: The video data.
*/
-@property (nonatomic, strong) NSData *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) PHAsset *videoAsset;
+@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) NSURL *videoURL;
+@property (nonatomic, copy, nullable) NSURL *videoURL;
/**
The photo that represents the video.
@return The photo
*/
-@property (nonatomic, copy) FBSDKSharePhoto *previewPhoto;
+@property (nonatomic, copy, nullable) FBSDKSharePhoto *previewPhoto;
/**
Compares the receiver to another video.
@@ -107,3 +111,5 @@
@property (nonatomic, copy, readonly) NSURL *videoURL;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h
index 0f4fd3749..80c222e7a 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKShareVideoContent.h
@@ -22,18 +22,14 @@
#import
#import
+NS_ASSUME_NONNULL_BEGIN
+
/**
A model for video content to be shared.
*/
+NS_SWIFT_NAME(ShareVideoContent)
@interface FBSDKShareVideoContent : NSObject
-/**
- The photo that represents the video.
- @return The photo
- */
-@property (nonatomic, copy) FBSDKSharePhoto *previewPhoto
-DEPRECATED_MSG_ATTRIBUTE("Use `video.previewPhoto`");
-
/**
The video to be shared.
@return The video
@@ -48,3 +44,5 @@ DEPRECATED_MSG_ATTRIBUTE("Use `video.previewPhoto`");
- (BOOL)isEqualToShareVideoContent:(FBSDKShareVideoContent *)content;
@end
+
+NS_ASSUME_NONNULL_END
diff --git a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharing.h b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharing.h
index 9e4ff6b1c..c95c67490 100644
--- a/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharing.h
+++ b/src/ios/FBSDKShareKit.framework/Headers/FBSDKSharing.h
@@ -20,6 +20,8 @@
#import
+NS_ASSUME_NONNULL_BEGIN
+
@protocol FBSDKSharingDelegate;
/**
@@ -31,6 +33,7 @@
@see FBSDKShareAPI
*/
+NS_SWIFT_NAME(Sharing)
@protocol FBSDKSharing