Skip to content

Commit

Permalink
Merge pull request #191 from AppsFlyerSDK/dev/RD-72646/uptadeSdkToV6.4.4
Browse files Browse the repository at this point in the history
update SDK to iOS 6.4.4 and Android 6.4.3
  • Loading branch information
pazlavi authored Dec 13, 2021
2 parents 3f17fc8 + 6b7ea40 commit 68a028f
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ You can read more [here](https://support.appsflyer.com/hc/en-us/articles/2070320

### <a id="plugin-build-for"> This plugin is built for

- iOS AppsFlyerSDK **v6.4.0**
- Android AppsFlyerSDK **v6.4.0**
- iOS AppsFlyerSDK **v6.4.4**
- Android AppsFlyerSDK **v6.4.3**

### <a id="breakingChanges"> ❗v6 Breaking Changes

Expand Down
10 changes: 10 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# Release Notes
### 6.4.4
Release date: *2021-Dec-14*

**Overview and Highlights:**

- Cordova >> Android >> setUserEmails with no encryption available
- Cordova >> Add setPartnerData API
- Cordova >> Update iOS SDK to v6.4.4
- Cordova >> Update Android SDK to v6.4.3

### 6.4.0
Release date: *2021-Sep-14*

Expand Down
19 changes: 18 additions & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ The list of available methods for this plugin is described below.
| [`disableSKAD`](#disableSKAD) | `(boolean disableSkad)` | disable or enable SKAD |
| [`setCurrentDeviceLanguage`](#setCurrentDeviceLanguage) | `(string language)` | Set the language of the device. |
| [`setAdditionalData`](#setAdditionalData) | `(Object additionalData)` | Allows you to add custom data to events sent from the SDK. |
| [`setPartnerData`](#setPartnerData) | `(partnerId, data)` | Allows sending custom data for partner integration purposes. |



---
Expand Down Expand Up @@ -680,7 +682,7 @@ appsFlyer.setCurrentDeviceLanguage('en');
| `language` | `string` | Set the language of the device. |

---
##### <a id="setAdditionalData"> **`setAdditionalData(language): void`**
##### <a id="setAdditionalData"> **`setAdditionalData(additionalData): void`**
The setAdditionalData API allows you to add custom data to events sent from the SDK.<br>
Typically it is used to integrate on the SDK level with several external partner platforms.

Expand All @@ -697,6 +699,21 @@ appsFlyer.setAdditionalData({"aa":"cc",
| ----------- |-----------------------------|--------------|
| `additionalData` | `Object` | Set the language of the device. |

---
##### <a id="setPartnerData"> **`setPartnerData(partnerId, data): void`**
Allows sending custom data for partner integration purposes.

*Example:*

```javascript
appsFlyer.setPartnerData("af_int", {apps: "Flyer", cuid: "123abc"});
```

| parameter | type | description |
| ----------- |-----------------------------|--------------|
| `partnerId` | `String` | ID of the partner (usually suffixed with "_int"). |
| `data` | `Object` | Customer data, depends on the integration configuration with the specific partner. |

---
### <a id="deep-linking-tracking"> Deep linking Tracking

Expand Down
20 changes: 10 additions & 10 deletions docs/Guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ window.plugins.appsFlyer.initSdk(options, onSuccess, onError);

## <a id="ios14"> Set plugin for IOS 14

1. Add ```#import <AppTrackingTransparency/AppTrackingTransparency.h>``` in your ```AppDelegate.m``` file<br>
2. Add the ATT pop-up for IDFA collection. your ```AppDelegate.m``` should look like this:
1. Add ```#import <AppTrackingTransparency/AppTrackingTransparency.h>``` in your ```Classes/MainViewController.m``` file<br>
2. Add the ATT pop-up for IDFA collection. your ```MainViewController.m``` should look like this:


```javascript
-(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
self.viewController = [[MainViewController alloc] init];
if (@available(iOS 14, *)) {
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
//If you want to do something with the pop-up
}];
- (void)viewDidLoad {
[super viewDidLoad];
[self.launchView setAlpha:1];

if @available(iOS 14, *) {
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
NSLog(@"Status: %lu", (unsigned long)status);
}];
}
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
```

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-appsflyer-sdk",
"version": "6.4.0",
"version": "6.4.4",
"description": "Cordova AppsFlyer SDK Plugin",
"cordova": {
"id": "cordova-plugin-appsflyer-sdk",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<config>
</config>
<pods use-frameworks="true">
<pod name="AppsFlyerFramework" spec="6.4.0"/>
<pod name="AppsFlyerFramework" spec="6.4.4"/>
</pods>
</podspec>
</platform>
Expand Down
2 changes: 1 addition & 1 deletion src/android/cordovaAF.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ repositories {

dependencies {
implementation 'com.android.installreferrer:installreferrer:2.1'
implementation 'com.appsflyer:af-android-sdk:6.4.0@aar'
implementation 'com.appsflyer:af-android-sdk:6.4.3@aar'
implementation 'com.android.support:support-annotations:28.0.0'
}

0 comments on commit 68a028f

Please sign in to comment.