Skip to content

Commit

Permalink
Merge pull request #42 from hansemannn/TIMOB-20283
Browse files Browse the repository at this point in the history
[TIMOB-20283] Fix iOS 8 crash, bump iOS to 5.0.1
  • Loading branch information
hansemannn committed Jan 30, 2016
2 parents 5634b18 + dffce41 commit 5a08cc1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion ios/Classes/FacebookModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ -(BOOL)handleRelaunch
launchOptions = [appDelegate launchOptions];
NSString *urlString = [launchOptions objectForKey:@"url"];
NSString *sourceApplication = [launchOptions objectForKey:@"source"];
NSString *annotation = [launchOptions objectForKey:UIApplicationOpenURLOptionsAnnotationKey];
NSString *annotation;

if ([TiUtils isIOS9OrGreater]) {
annotation = [launchOptions objectForKey:UIApplicationOpenURLOptionsAnnotationKey];
} else {
annotation = nil;
}

if (urlString != nil) {
FBSDKAccessToken *token = [FBSDKAccessToken currentAccessToken];
NSSet* failed = token.declinedPermissions;
Expand Down
2 changes: 1 addition & 1 deletion ios/Facebook_Prefix.pch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
#endif
4 changes: 2 additions & 2 deletions ios/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 5.0.0
version: 5.0.1
apiversion: 2
description: Allows facebook integration for Titanium apps
author: Mark Mokryn and Ng Chee Kiat
license: Apache License Version 2.0
copyright: Copyright (c) 2009-2015 by Appcelerator, Inc.
copyright: Copyright (c) 2009-2016 by Appcelerator, Inc.

# these should not be edited
name: Facebook
Expand Down
2 changes: 1 addition & 1 deletion ios/module.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

//
// How to add a Framework (example)
FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/facebook/5.0.0/platform "~/Library/Application Support/Titanium/modules/iphone/facebook/5.0.0/platform"
FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/facebook/5.0.1/platform "~/Library/Application Support/Titanium/modules/iphone/facebook/5.0.1/platform"
OTHER_LDFLAGS=$(inherited) -framework Social -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FBSDKShareKit
//
// OTHER_LDFLAGS=$(inherited) -framework Foo
Expand Down

0 comments on commit 5a08cc1

Please sign in to comment.