Skip to content

Commit

Permalink
feat(ios): Upgrade to Facebook iOS SDK 11.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsenyYankovsky authored and mikehardy committed Nov 9, 2021
1 parent 1696ced commit 609c56f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
7 changes: 0 additions & 7 deletions ios/RCTFBSDK/core/RCTFBSDKAppEvents.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,6 @@ - (dispatch_queue_t)methodQueue
}
}

RCT_EXPORT_METHOD(updateUserProperties:(NSDictionary *)parameters)
{
parameters = RCTDictionaryWithoutNullValues(parameters);

[FBSDKAppEvents updateUserProperties:parameters handler:nil];
}

RCT_EXPORT_METHOD(setUserData:(NSDictionary *)userData)
{
userData = RCTDictionaryWithoutNullValues(userData);
Expand Down
2 changes: 1 addition & 1 deletion ios/RCTFBSDK/core/RCTFBSDKSettings.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (dispatch_queue_t)methodQueue

RCT_EXPORT_METHOD(initializeSDK)
{
[FBSDKApplicationDelegate initializeSDK:nil];
[FBSDKApplicationDelegate.sharedInstance initializeSDK];
}

RCT_EXPORT_METHOD(setAppID:(NSString *)appID)
Expand Down
6 changes: 3 additions & 3 deletions react-native-fbsdk-next.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ Pod::Spec.new do |s|
s.dependency 'React-Core'

s.subspec 'Core' do |ss|
ss.dependency 'FBSDKCoreKit', '~> 9.3'
ss.dependency 'FBSDKCoreKit', '~> 11.2.1'
ss.source_files = 'ios/RCTFBSDK/core/*.{h,m}'
end

s.subspec 'Login' do |ss|
ss.dependency 'FBSDKLoginKit', '~> 9.3'
ss.dependency 'FBSDKLoginKit', '~> 11.2.1'
ss.source_files = 'ios/RCTFBSDK/login/*.{h,m}'
end

s.subspec 'Share' do |ss|
ss.dependency 'FBSDKShareKit', '~> 9.3'
ss.dependency 'FBSDKShareKit', '~> 11.2.1'
ss.source_files = 'ios/RCTFBSDK/share/*.{h,m}'
end
end
3 changes: 3 additions & 0 deletions src/FBAppEventsLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ module.exports = {
* setUserID. You must call setUserID before making this call.
*/
updateUserProperties(parameters: Params) {
if (Platform.OS === 'ios') {
return;
}
AppEventsLogger.updateUserProperties(parameters);
},

Expand Down

0 comments on commit 609c56f

Please sign in to comment.