Skip to content

Commit 970a938

Browse files
author
dirkheikoop
authored
Merge pull request SnapInteractive#1 from dirkheikoop/update_ios_sdk
Updated Facebook iOS SDK to v.4.27.1
2 parents 0f2b695 + 73735f9 commit 970a938

File tree

20 files changed

+169
-14
lines changed

20 files changed

+169
-14
lines changed

src/ios/Bolts.framework/Bolts

10 KB
Binary file not shown.

src/ios/Bolts.framework/Info.plist

2 Bytes
Binary file not shown.
170 KB
Binary file not shown.

src/ios/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ FBSDK_EXTERN NSString *const FBSDKAppEventNameViewedContent;
9797
of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants.
9898
*/
9999

100+
/**
101+
* Parameter key used to specify data for the one or more pieces of content being logged about.
102+
* Data should be a JSON encoded string.
103+
* Example:
104+
* "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]"
105+
*/
106+
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContent;
107+
100108
/** Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. */
101109
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContentID;
102110

src/ios/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
- Parameter annotation: The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:].
5151
5252
- Returns: YES if the url was intended for the Facebook SDK, NO if not.
53-
*/
53+
*/
5454
- (BOOL)application:(UIApplication *)application
5555
openURL:(NSURL *)url
5656
sourceApplication:(NSString *)sourceApplication
5757
annotation:(id)annotation;
5858

59-
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_3
59+
#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_0
6060
/**
6161
Call this method from the [UIApplicationDelegate application:openURL:options:] method
6262
of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction

src/ios/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@
4444
#import <FBSDKCoreKit/FBSDKDeviceViewControllerBase.h>
4545
#endif
4646

47-
#define FBSDK_VERSION_STRING @"4.22.1"
48-
#define FBSDK_TARGET_PLATFORM_VERSION @"v2.9"
47+
#define FBSDK_VERSION_STRING @"4.27.1"
48+
#define FBSDK_TARGET_PLATFORM_VERSION @"v2.10"
2 Bytes
Binary file not shown.
26.8 KB
Binary file not shown.

src/ios/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior)
110110
- Parameter result: The results of the login
111111
- Parameter error: The error (if any) from the login
112112
*/
113-
- (void) loginButton:(FBSDKLoginButton *)loginButton
113+
- (void)loginButton:(FBSDKLoginButton *)loginButton
114114
didCompleteWithResult:(FBSDKLoginManagerLoginResult *)result
115115
error:(NSError *)error;
116116

2 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
2+
//
3+
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4+
// copy, modify, and distribute this software in source code or binary form for use
5+
// in connection with the web services and APIs provided by Facebook.
6+
//
7+
// As with any software that integrates with the Facebook platform, your use of
8+
// this software is subject to the Facebook Developer Principles and Policies
9+
// [http://developers.facebook.com/policy/]. This copyright notice shall be
10+
// included in all copies or substantial portions of the software.
11+
//
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14+
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15+
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16+
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
19+
#import <Foundation/Foundation.h>
20+
21+
#import <FBSDKCoreKit/FBSDKCopying.h>
22+
23+
/**
24+
* A container of arguments for a camera effect.
25+
* An argument is a NSString identified by a NSString key.
26+
*/
27+
@interface FBSDKCameraEffectArguments : NSObject <FBSDKCopying, NSSecureCoding>
28+
29+
/**
30+
Sets a string argument in the container.
31+
- Parameter string: The argument
32+
- Parameter key: The key for the argument
33+
*/
34+
- (void)setString:(NSString *)string forKey:(NSString *)key;
35+
36+
/**
37+
Gets a string argument from the container.
38+
- Parameter key: The key for the argument
39+
- Returns: The string value or nil
40+
*/
41+
- (NSString *)stringForKey:(NSString *)key;
42+
43+
/**
44+
Sets a string array argument in the container.
45+
- Parameter array: The array argument
46+
- Parameter key: The key for the argument
47+
*/
48+
- (void)setArray:(NSArray<NSString *> *)array forKey:(NSString *)key;
49+
50+
/**
51+
Gets an array argument from the container.
52+
- Parameter key: The key for the argument
53+
- Returns: The array argument
54+
*/
55+
- (NSArray *)arrayForKey:(NSString *)key;
56+
57+
@end
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
2+
//
3+
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4+
// copy, modify, and distribute this software in source code or binary form for use
5+
// in connection with the web services and APIs provided by Facebook.
6+
//
7+
// As with any software that integrates with the Facebook platform, your use of
8+
// this software is subject to the Facebook Developer Principles and Policies
9+
// [http://developers.facebook.com/policy/]. This copyright notice shall be
10+
// included in all copies or substantial portions of the software.
11+
//
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14+
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15+
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16+
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
19+
#import <UIKit/UIKit.h>
20+
21+
#import <FBSDKCoreKit/FBSDKCopying.h>
22+
23+
/**
24+
* A container of textures for a camera effect.
25+
* A texture for a camera effect is an UIImages identified by a NSString key.
26+
*/
27+
@interface FBSDKCameraEffectTextures : NSObject <FBSDKCopying, NSSecureCoding>
28+
29+
/**
30+
Sets the image for a texture key.
31+
- Parameter image: The UIImage for the texture
32+
- Parameter name: The key for the texture
33+
*/
34+
- (void)setImage:(UIImage *)image forKey:(NSString *)key;
35+
36+
/**
37+
Gets the image for a texture key.
38+
- Parameter name: The key for the texture
39+
- Returns: The texture UIImage or nil
40+
*/
41+
- (UIImage *)imageForKey:(NSString *)key;
42+
43+
@end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
2+
//
3+
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4+
// copy, modify, and distribute this software in source code or binary form for use
5+
// in connection with the web services and APIs provided by Facebook.
6+
//
7+
// As with any software that integrates with the Facebook platform, your use of
8+
// this software is subject to the Facebook Developer Principles and Policies
9+
// [http://developers.facebook.com/policy/]. This copyright notice shall be
10+
// included in all copies or substantial portions of the software.
11+
//
12+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14+
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15+
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16+
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17+
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18+
19+
#import <Foundation/Foundation.h>
20+
21+
#import <FBSDKShareKit/FBSDKCameraEffectArguments.h>
22+
#import <FBSDKShareKit/FBSDKCameraEffectTextures.h>
23+
#import <FBSDKShareKit/FBSDKSharingContent.h>
24+
25+
/**
26+
A model for content to share with a Facebook camera effect.
27+
*/
28+
@interface FBSDKShareCameraEffectContent : NSObject <FBSDKSharingContent>
29+
30+
/**
31+
ID of the camera effect to use.
32+
*/
33+
@property (nonatomic, copy) NSString *effectID;
34+
35+
/**
36+
Arguments for the effect.
37+
*/
38+
@property (nonatomic, copy) FBSDKCameraEffectArguments *effectArguments;
39+
40+
/**
41+
Textures for the effect.
42+
*/
43+
@property (nonatomic, copy) FBSDKCameraEffectTextures *effectTextures;
44+
45+
/**
46+
Compares the receiver to another camera effect content.
47+
- Parameter content: The other content
48+
- Returns: YES if the receiver's values are equal to the other content's values; otherwise NO
49+
*/
50+
- (BOOL)isEqualToShareCameraEffectContent:(FBSDKShareCameraEffectContent *)content;
51+
52+
@end

src/ios/FBSDKShareKit.framework/Headers/FBSDKShareKit.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#import <FBSDKShareKit/FBSDKLikeObjectType.h>
4646
#import <FBSDKShareKit/FBSDKMessageDialog.h>
4747
#import <FBSDKShareKit/FBSDKShareButton.h>
48+
#import <FBSDKShareKit/FBSDKShareCameraEffectContent.h>
4849
#import <FBSDKShareKit/FBSDKShareDialog.h>
4950
#import <FBSDKShareKit/FBSDKShareDialogMode.h>
5051
#import <FBSDKShareKit/FBSDKShareMediaContent.h>

src/ios/FBSDKShareKit.framework/Headers/FBSDKShareLinkContent.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
@deprecated `contentDescription` is deprecated from Graph API 2.9.
3636
For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations.
3737
*/
38-
@property (nonatomic, copy) NSString *contentDescription
38+
@property (nonatomic, readonly) NSString *contentDescription
3939
DEPRECATED_MSG_ATTRIBUTE("`contentDescription` is deprecated from Graph API 2.9");
4040

4141
/**
@@ -47,7 +47,7 @@
4747
@deprecated `contentTitle` is deprecated from Graph API 2.9.
4848
For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations
4949
*/
50-
@property (nonatomic, copy) NSString *contentTitle
50+
@property (nonatomic, readonly) NSString *contentTitle
5151
DEPRECATED_MSG_ATTRIBUTE("`contentTitle` is deprecated from Graph API 2.9");
5252

5353
/**
@@ -57,7 +57,7 @@
5757
@deprecated `imageURL` is deprecated from Graph API 2.9.
5858
For more information, see https://developers.facebook.com/docs/apps/changelog#v2_9_deprecations
5959
*/
60-
@property (nonatomic, copy) NSURL *imageURL
60+
@property (nonatomic, readonly) NSURL *imageURL
6161
DEPRECATED_MSG_ATTRIBUTE("`imageURL` is deprecated from Graph API 2.9");
6262

6363
/**
2 Bytes
Binary file not shown.

src/ios/FacebookConnectPlugin.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,6 @@ - (void) showDialog:(CDVInvokedUrlCommand*)command
272272
// Create native params
273273
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
274274
content.contentURL = [NSURL URLWithString:[params objectForKey:@"link"]];
275-
content.contentTitle = [params objectForKey:@"caption"];
276-
content.imageURL = [NSURL URLWithString:[params objectForKey:@"picture"]];
277-
content.contentDescription = [params objectForKey:@"description"];
278275

279276
self.dialogCallbackId = command.callbackId;
280277
[FBSDKMessageDialog showWithContent:content delegate:self];
@@ -284,9 +281,6 @@ - (void) showDialog:(CDVInvokedUrlCommand*)command
284281
// Create native params
285282
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
286283
content.contentURL = [NSURL URLWithString:params[@"href"]];
287-
content.contentTitle = params[@"caption"];
288-
content.imageURL = [NSURL URLWithString:params[@"picture"]];
289-
content.contentDescription = params[@"description"];
290284
content.hashtag = [FBSDKHashtag hashtagWithString:[params objectForKey:@"hashtag"]];
291285
content.quote = params[@"quote"];
292286

0 commit comments

Comments
 (0)