Permalink
Browse files

Facebook iOS SDK 3.7.1

Summary:
    Bug fixes. See https://developers.facebook.com/ios/change-log-3.x/

Reviewed By: jacl

Test Plan: Release Testing.
  • Loading branch information...
1 parent 121e884 commit 99af010959325c6e26816623fc844cecef5f84db @chrisp-fb chrisp-fb committed Aug 22, 2013
Showing with 6 additions and 27 deletions.
  1. +1 −1 scripts/build_distribution.sh
  2. +1 −1 scripts/build_documentation.sh
  3. +2 −24 src/FBAppBridgeTypeToJSONConverter.m
  4. +1 −0 src/FBAppCall.m
  5. +1 −1 src/FacebookSDK.h
@@ -87,7 +87,7 @@ $PACKAGEMAKER \
--target 10.5 \
--version $FB_SDK_VERSION \
--out $FB_SDK_UNSIGNED_PKG \
- --title 'Facebook SDK 3.7 for iOS' \
+ --title 'Facebook SDK 3.7.1 for iOS' \
|| die "PackageMaker reported error"
progress_message "Signing package."
@@ -45,7 +45,7 @@ rm -rf $DOCSET
hash $APPLEDOC &>/dev/null
if [ "$?" -eq "0" ]; then
- APPLEDOC_DOCSET_NAME="Facebook SDK 3.7 for iOS"
+ APPLEDOC_DOCSET_NAME="Facebook SDK 3.7.1 for iOS"
$APPLEDOC --project-name "$APPLEDOC_DOCSET_NAME" \
--project-company "Facebook" \
--company-id "com.facebook" \
@@ -53,7 +53,6 @@
};
static NSString *const FBAppBridgeTypeIdentifier = @"com.facebook.Facebook.FBAppBridgeType";
-static const NSUInteger PasteboardThreshold = 5120;
@implementation FBAppBridgeTypeToJSONConverter
@@ -144,29 +143,8 @@ - (NSArray *)convertedArrayFromArray:(NSArray *)array convertingToJSON:(BOOL)con
- (NSMutableDictionary *)jsonFromData:(NSData *)data tag:(NSString *)tag {
NSMutableDictionary *json = [NSMutableDictionary dictionary];
- NSString *jsonReadyValue = nil;
-
- // If the data is large, put it in a UIPasteboard
- if (data.length > PasteboardThreshold) {
- NSString *uniqueSuffix = [[FBUtility newUUIDString] autorelease];
- NSString *pasteboardName = [FacebookSDKDomain stringByAppendingString:uniqueSuffix];
- UIPasteboard *board = [UIPasteboard pasteboardWithName:pasteboardName create:YES];
- if (board) {
- [board setPersistent:YES];
- [board setData:data forPasteboardType:FBAppBridgeTypeIdentifier];
-
- jsonReadyValue = board.name;
- [self.createdPasteboardNames addObject:board.name];
-
- json[FBAppBridgeTypesMetadata.isPasteboard] = [NSNumber numberWithBool:YES];
- }
- }
-
- // If a UIPasteboard was not (or could not be) used, put the data directly in the URL.
- if (!jsonReadyValue) {
- jsonReadyValue = FBEncodeBase64(data);
- json[FBAppBridgeTypesMetadata.isBase64] = [NSNumber numberWithBool:YES];
- }
+ NSString *jsonReadyValue = FBEncodeBase64(data);
+ json[FBAppBridgeTypesMetadata.isBase64] = [NSNumber numberWithBool:YES];
json[FBAppBridgeTypesMetadata.tag] = tag ?: @"";
json[FBAppBridgeTypesMetadata.jsonReadyValue] = jsonReadyValue ?: @"";
View
@@ -395,6 +395,7 @@ + (void)openDeferredAppLink:(FBAppLinkFallbackHandler)fallbackHandler {
dispatch_async(dispatch_get_main_queue(), ^{
fallbackHandler(nil);
});
+ return;
}
NSMutableDictionary<FBGraphObject> *deferredAppLinkParameters = [FBGraphObject graphObject];
View
@@ -141,5 +141,5 @@
*/
-#define FB_IOS_SDK_VERSION_STRING @"3.7.0"
+#define FB_IOS_SDK_VERSION_STRING @"3.7.1"

0 comments on commit 99af010

Please sign in to comment.