Skip to content

Commit

Permalink
Update ios sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaplatogo committed Apr 24, 2024
1 parent 399e9a0 commit 77d0ec8
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 85 deletions.
47 changes: 45 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
<a name="4.1.0"></a>

# [4.1.0](https://github.com/MaximBelov/cordova-plugin-fbsdk/releases/tag/v4.1.0) (2024-04-23)

## Features

* Updated the Facebook SDK to 17.0.0 for Android
* Updated the Facebook SDK to 17.0.0 for iOS
* Updated the Facebook JavaScript SDK used by the browser platform to v19.0

<a name="4.0.4"></a>
# [4.0.4](https://github.com/MaximBelov/cordova-plugin-fbsdk/releases/tag/v4.0.4) (2023-03-28)

## Features

* Updated the Facebook SDK to 16.0.1 for Android
* Updated the Facebook SDK to 16.0.1 for iOS
* Updated the Facebook JavaScript SDK used by the browser platform to v16.0

<a name="4.0.3"></a>
# [4.0.3](https://github.com/MaximBelov/cordova-plugin-fbsdk/releases/tag/v4.0.3) (2023-03-28)
## Bug fix

* iOS: Prefixing swizzling logic to avoid conflicts
* Android 11: sharing dialog cannot be opened successfully.

<a name="4.0.2"></a>
# [4.0.2](https://github.com/MaximBelov/cordova-plugin-fbsdk/releases/tag/v4.0.2) (2022-10-12)

## Features

* Android fix error INSTALL_FAILED_CONFLICTING_PROVIDER

<a name="4.0.1"></a>
# [4.0.1](https://github.com/MaximBelov/cordova-plugin-fbsdk/releases/tag/v4.0.1) (2022-09-07)

## Features

* Updated the Facebook SDK to 14.1.1 for Android
* Updated the Facebook SDK to 14.1.0 for iOS
* Updated the Facebook JavaScript SDK used by the browser platform to v14.0
* Update plugin id cordova-plugin-fbsdk

<a name="4.0.0"></a>
# [4.0.0](https://github.com/cordova-plugin-facebook-connect/cordova-plugin-facebook-connect/releases/tag/v4.0.0) (TBD)
# [4.0.0](https://github.com/MaximBelov/cordova-plugin-facebook-connect/releases/tag/v4.0.0) (2022-09-06)

## Breaking Changes

Expand Down Expand Up @@ -206,4 +249,4 @@ v1.0.0 is the initial release of the plugin, created as a fork of the now-deprec
* Fixed an issue that previously caused a loop when logging into Facebook on iOS
* Removed all references to Open Graph Stories, which were [deprecated by Facebook in 2019](https://developers.facebook.com/docs/sharing/opengraph)
* Updated plugin.xml to only run after_prepare hook on the browser platform
* Updated browser after_prepare hook to get preferences including `APP_ID` and the new `FACEBOOK_BROWSER_SDK_VERSION` from package.json
* Updated browser after_prepare hook to get preferences including `APP_ID` and the new `FACEBOOK_BROWSER_SDK_VERSION` from package.json
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ These are just guidelines, not rules, use your best judgement and feel free to p
Before creating a Github issue make sure you...

- Check the [Troubleshooting Guide](./docs/TROUBLESHOOTING.md) for well known issues.
- Search the [issues list](https://github.com/cordova-plugin-facebook-connect/cordova-plugin-facebook-connect/issues) for existing closed or still open issues
- Search the [issues list](https://github.com/MaximBelov/cordova-plugin-fbsdk/issues) for existing closed or still open issues
- Create a Github issue

#### Creating an Issue
Expand All @@ -29,4 +29,4 @@ Can you solve the problem yourself? If so see the next section on Pull Requests
- Include screenshots and animated GIFs in your pull request whenever possible.
- Try to follow the [JavaScript](https://github.com/Wizcorp/javascript-styleguide/blob/master/README.md), [Objective-C](http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml) or [Java](https://google-styleguide.googlecode.com/svn/trunk/javaguide.html) style guides. Although these are just guides, please at least support continuety (that means **using 4 spaces please**).
- **Send your pull request to the develop branch.**
- If you can, provide sample testing code.
- If you can, provide sample testing code.
8 changes: 5 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<preference name="FACEBOOK_HYBRID_APP_EVENTS" default="false" />
<preference name="FACEBOOK_ADVERTISER_ID_COLLECTION" default="true" />
<preference name="FACEBOOK_ANDROID_SDK_VERSION" default="16.0.1"/>
<preference name="FACEBOOK_IOS_SDK_VERSION" default="11.1.0"/>
<preference name="FACEBOOK_BROWSER_SDK_VERSION" default="v12.0" />
<preference name="FACEBOOK_IOS_SDK_VERSION" default="17.0.0"/>

<engines>
<engine name="cordova-android" version=">=9.0.0" />
Expand Down Expand Up @@ -101,6 +101,7 @@
<param name="ios-package" value="FacebookConnectPlugin"/>
<param name="onload" value="true" />
</feature>
<preference name="deployment-target" value="12.0" />
<plugin name="FacebookConnectPlugin" value="FacebookConnectPlugin"/>
<access origin="https://m.facebook.com" />
<access origin="https://graph.facebook.com" />
Expand Down Expand Up @@ -193,12 +194,13 @@
<!-- Facebook SDK -->
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="FBSDKCoreKit" spec="$FACEBOOK_IOS_SDK_VERSION"/>
<pod name="FBSDKLoginKit" spec="$FACEBOOK_IOS_SDK_VERSION"/>
<pod name="FBSDKShareKit" spec="$FACEBOOK_IOS_SDK_VERSION"/>
<pod name="FBSDKGamingServicesKit" spec="$FACEBOOK_IOS_SDK_VERSION"/>
</pods>
</podspec>

Expand All @@ -223,7 +225,7 @@
<access origin="https://*.fbcdn.net" />
<access origin="https://*.akamaihd.net" />
</config-file>

<hook type="after_prepare" src="scripts/browser/after_prepare.js" />
</platform>
</plugin>
5 changes: 1 addition & 4 deletions src/ios/FacebookConnectPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import <FBSDKShareKit/FBSDKShareKit.h>
#import <FBSDKCoreKit/FBSDKAppEventsUtility.h>
#import <AdSupport/ASIdentifierManager.h>

#import <FBSDKGamingServicesKit/FBSDKGamingServicesKit-Swift.h>
#import <Cordova/CDV.h>
#import "AppDelegate.h"

@interface FacebookConnectPlugin : CDVPlugin <FBSDKSharingDelegate, FBSDKGameRequestDialogDelegate>
- (void)getAdvertiserId:(CDVInvokedUrlCommand *)command;
- (void)getApplicationId:(CDVInvokedUrlCommand *)command;
- (void)setApplicationId:(CDVInvokedUrlCommand *)command;
- (void)getClientToken:(CDVInvokedUrlCommand *)command;
Expand Down
Loading

0 comments on commit 77d0ec8

Please sign in to comment.