Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
merge: release v3.2.0 and Facebook SDK v4.38.1
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Nov 21, 2018
2 parents e0fa179 + bb749c0 commit 6dadb88
Show file tree
Hide file tree
Showing 56 changed files with 606 additions and 1,005 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<a name="3.2.0"></a>
# [3.2.0](https://github.com/jeduan/cordova-plugin-facebook4/releases/tag/v3.2.0)

## Features

* **iOS:** Update Facebook iOS SDK v4.38.1 ([#725](https://github.com/jeduan/cordova-plugin-facebook4/issues/725) | [Facebook iOS SDK changelog](https://developers.facebook.com/docs/ios/change-log-4x) | Released: 1st November 2018)
* **Android:** Set per default usage of Facebook Android SDK v4.38.1 ([#725](https://github.com/jeduan/cordova-plugin-facebook4/issues/725) | [Facebook Android SDK changelog](https://developers.facebook.com/docs/android/change-log-4x) | Released: 1st November 2018)

<a name="3.1.0"></a>
# [3.1.0](https://github.com/jeduan/cordova-plugin-facebook4/releases/tag/v3.1.0)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-facebook4",
"version": "3.1.0",
"version": "3.2.0",
"description": "Cordova Facebook SDK 4 Plugin",
"cordova": {
"id": "cordova-plugin-facebook4",
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-facebook4"
version="3.1.0">
version="3.2.0">

<name>Facebook Connect</name>

Expand All @@ -19,7 +19,7 @@

<preference name="APP_ID" />
<preference name="APP_NAME" />
<preference name="FACEBOOK_ANDROID_SDK_VERSION" default="4.37.0"/>
<preference name="FACEBOOK_ANDROID_SDK_VERSION" default="4.38.1"/>

<engines>
<!-- Requires > 3.5.0 because of the custom Framework tag for iOS [CB-6698] -->
Expand Down
Binary file modified src/ios/Bolts.framework/Bolts
Binary file not shown.
Binary file modified src/ios/Bolts.framework/Info.plist
Binary file not shown.
Binary file modified src/ios/FBSDKCoreKit.framework/FBSDKCoreKit
Binary file not shown.
26 changes: 20 additions & 6 deletions src/ios/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

#import <FBSDKCoreKit/FBSDKCopying.h>
#import <FBSDKCoreKit/FBSDKGraphRequestConnection.h>
#import <FBSDKCoreKit/FBSDKMacros.h>

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0

/**
Notification indicating that the `currentAccessToken` has changed.
Expand All @@ -29,7 +30,20 @@
`FBSDKAccessTokenChangeOldKey` and
`FBSDKAccessTokenChangeNewKey`.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenDidChangeNotification;
FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification;

#else

/**
Notification indicating that the `currentAccessToken` has changed.
the userInfo dictionary of the notification will contain keys
`FBSDKAccessTokenChangeOldKey` and
`FBSDKAccessTokenChangeNewKey`.
*/
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeNotification;

#endif

/**
A key in the notification's userInfo that will be set
Expand All @@ -44,27 +58,27 @@ FBSDK_EXTERN NSString *const FBSDKAccessTokenDidChangeNotification;
of an access token, this key will also exist since the access token
is moving from a null state (no user) to a non-null state (user).
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenDidChangeUserID;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserID;

/*
key in notification's userInfo object for getting the old token.
If there was no old token, the key will not be present.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenChangeOldKey;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey;

/*
key in notification's userInfo object for getting the new token.
If there is no new token, the key will not be present.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenChangeNewKey;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey;

/*
A key in the notification's userInfo that will be set
if and only if the token has expired.
*/
FBSDK_EXTERN NSString *const FBSDKAccessTokenDidExpire;
FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpire;


/**
Expand Down
131 changes: 78 additions & 53 deletions src/ios/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,23 @@

#import <FBSDKCoreKit/FBSDKGraphRequestConnection.h>

#import "FBSDKMacros.h"

@class FBSDKAccessToken;
@class FBSDKGraphRequest;

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0

/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */
FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification;

#else

/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */
FBSDK_EXTERN NSString *const FBSDKAppEventsLoggingResultNotification;
FOUNDATION_EXPORT NSString *const FBSDKAppEventsLoggingResultNotification;

#endif

/** optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` */
FBSDK_EXTERN NSString *const FBSDKAppEventsOverrideAppIDBundleKey;
FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey;

/**
Expand Down Expand Up @@ -100,70 +107,70 @@ typedef NS_ENUM(NSUInteger, FBSDKProductCondition)
*/

/** Log this event when the user has achieved a level in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAchievedLevel;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAchievedLevel;

/** Log this event when the user has entered their payment info. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAddedPaymentInfo;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAddedPaymentInfo;

/** Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAddedToCart;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAddedToCart;

/** Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAddedToWishlist;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAddedToWishlist;

/** Log this event when a user has completed registration with the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameCompletedRegistration;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameCompletedRegistration;

/** Log this event when the user has completed a tutorial in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameCompletedTutorial;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameCompletedTutorial;

/** Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameInitiatedCheckout;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameInitiatedCheckout;

/** Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameRated;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameRated;

/** Log this event when a user has performed a search within the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSearched;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSearched;

/** Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSpentCredits;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSpentCredits;

/** Log this event when the user has unlocked an achievement in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameUnlockedAchievement;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameUnlockedAchievement;

/** Log this event when a user has viewed a form of content in the app. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameViewedContent;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameViewedContent;

/** A telephone/SMS, email, chat or other type of contact between a customer and your business. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameContact;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameContact;

/** The customization of products through a configuration tool or other application your business owns. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameCustomizeProduct;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameCustomizeProduct;

/** The donation of funds to your organization or cause. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameDonate;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameDonate;

/** When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). */
FBSDK_EXTERN NSString *const FBSDKAppEventNameFindLocation;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFindLocation;

/** The booking of an appointment to visit one of your locations. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSchedule;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSchedule;

/** The start of a free trial of a product or service you offer (example: trial subscription). */
FBSDK_EXTERN NSString *const FBSDKAppEventNameStartTrial;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameStartTrial;

/** The submission of an application for a product, service or program you offer (example: credit card, educational program or job).. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSubmitApplication;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSubmitApplication;

/** The start of a paid subscription for a product or service you offer. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameSubscribe;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameSubscribe;

/** Log this event when the user views an ad. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAdImpression;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAdImpression;

/** Log this event when the user clicks an ad. */
FBSDK_EXTERN NSString *const FBSDKAppEventNameAdClick;
FOUNDATION_EXPORT NSString *const FBSDKAppEventNameAdClick;

/**
@methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family
Expand All @@ -176,60 +183,60 @@ FBSDK_EXTERN NSString *const FBSDKAppEventNameAdClick;
* Example:
* "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]"
*/
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContent;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameContent;

/** 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. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContentID;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameContentID;

/** Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameContentType;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameContentType;

/** Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is <http://en.wikipedia.org/wiki/ISO_4217>. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameCurrency;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameCurrency;

/** Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameDescription;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameDescription;

/** Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameLevel;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameLevel;

/** Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameMaxRatingValue;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameMaxRatingValue;

/** Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameNumItems;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameNumItems;

/** Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNamePaymentInfoAvailable;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNamePaymentInfoAvailable;

/** Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameRegistrationMethod;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameRegistrationMethod;

/** Parameter key used to specify the string provided by the user for a search operation. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameSearchString;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameSearchString;

/** Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameSuccess;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameSuccess;

/*
@methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family
of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants.
*/

/** Yes-valued parameter value to be used with parameter keys that need a Yes/No value */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterValueYes;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterValueYes;

/** No-valued parameter value to be used with parameter keys that need a Yes/No value */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterValueNo;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterValueNo;

/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression
* or FBSDKAppEventNameAdClick event.
* E.g. "banner", "interstitial", "rewarded_video", "native" */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameAdType;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameAdType;

/** Parameter key used to specify the unique ID for all events within a subscription
* in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */
FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterNameOrderID;

/**
Expand Down Expand Up @@ -530,7 +537,7 @@ FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
+ (void)activateApp;

/*
* Push Notifications Registration
* Push Notifications Registration and Uninstall Tracking
*/

/**
Expand Down Expand Up @@ -677,16 +684,16 @@ FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
@param zip user's zip
@param country user's country
*/
+ (void)setUserEmail:(nullable NSString *)email
firstName:(nullable NSString *)firstName
lastName:(nullable NSString *)lastName
phone:(nullable NSString *)phone
dateOfBirth:(nullable NSString *)dateOfBirth
gender:(nullable NSString *)gender
city:(nullable NSString *)city
state:(nullable NSString *)state
zip:(nullable NSString *)zip
country:(nullable NSString *)country;
+ (void)setUserEmail:(NSString *)email
firstName:(NSString *)firstName
lastName:(NSString *)lastName
phone:(NSString *)phone
dateOfBirth:(NSString *)dateOfBirth
gender:(NSString *)gender
city:(NSString *)city
state:(NSString *)state
zip:(NSString *)zip
country:(NSString *)country;
/*
Returns the set user data else nil
*/
Expand Down Expand Up @@ -719,4 +726,22 @@ FBSDK_EXTERN NSString *const FBSDKAppEventParameterNameOrderID;
+ (void)augmentHybridWKWebView:(WKWebView *)webView;
#endif

/*
* Unity helper functions
*/

/**
Set if the Unity is already initialized
@param isUnityInit whether Unity is initialized.
*/
+ (void)setIsUnityInit:(BOOL)isUnityInit;

/*
Send event binding to Unity
*/
+ (void)sendEventBindingsToUnity;

@end
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ typedef void (^FBSDKDeferredAppInviteHandler)(NSURL *url);
@warning This method is no longer available and will always return NO.
*/
+ (BOOL)fetchDeferredAppInvite:(FBSDKDeferredAppInviteHandler)handler
__attribute__((deprecated("This method is no longer available.")));;
DEPRECATED_MSG_ATTRIBUTE("This method is no longer available.");

/*
Call this method to fetch promotion code from the url, if it's present. This function
Expand Down

0 comments on commit 6dadb88

Please sign in to comment.