Skip to content

Commit 3422c82

Browse files
6.4.0
Releases/6.x.x/6.4.x/6.4.0
2 parents 715d73e + 8ac8f6c commit 3422c82

File tree

12 files changed

+115
-87
lines changed

12 files changed

+115
-87
lines changed

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
## 6.4.0
2+
- Android SDK 6.4.0
3+
- iOS SDK 6.4.0
4+
- new setSharingFilterForPartners api
5+
16
## 6.3.50
27
- iOS SDK 6.3.5
38
- `setCurrentDeviceLanguage` api for iOS
49

510
## 6.3.20
611
### *Bug*
7-
- RN Android >> Exception in UDL callback parsing
12+
- RN Android >> Exception in UDL callback parsing
813
### *Technical Story*
914
- React Native > update native sdk to 6.3.2
1015
- React Native > add Strict flag to Podfile
@@ -138,7 +143,7 @@ _APIs removed:_
138143

139144
## 5.4.40
140145
- Android SDK v5.4.3
141-
- iOS SDK v5.4.4
146+
- iOS SDK v5.4.4
142147
- Install Referrer v1.1.2
143148

144149
_New APIs:_
@@ -172,11 +177,11 @@ Downgrade installReferrer to 1.0 due to bug in installReferrer 1.1
172177

173178

174179
## 5.1.2
175-
Add support for iOS for updateServerUninstallToken api
180+
Add support for iOS for updateServerUninstallToken api
176181

177182

178183
## 5.1.1
179-
Added setDeviceTrackingDisabled api
184+
Added setDeviceTrackingDisabled api
180185

181186

182187
## 5.1.0
@@ -207,33 +212,33 @@ See - https://github.com/AppsFlyerSDK/react-native-appsflyer/pull/112
207212
Updated Android AppsFlyer SDK to 4.10.2
208213
Updated iOS AppsFlyer SDK to 4.10.4
209214

210-
Changes and fixes:
215+
Changes and fixes:
211216
- Update for iOS 13 push token retrieval needed for Uninstall Measurement
212217
- replaced NativeAppEventEmitter with NativeEventEmitter - https://github.com/AppsFlyerSDK/react-native-appsflyer/issues/105
213218

214219

215220
## 1.4.4
216221

217-
Changes and fixes:
222+
Changes and fixes:
218223

219224
- added setCurrencyCode API
220225
- fixed is_first_launch issue
221226

222227

223228
## 1.4.3
224229

225-
Changes and fixes:
230+
Changes and fixes:
226231

227232
- fixed getCurrentActivity - https://github.com/AppsFlyerSDK/react-native-appsflyer/issues/82
228233
- fixed generateInviteLink - https://github.com/AppsFlyerSDK/react-native-appsflyer/issues/78
229234

230235

231236
## 1.4.2
232237

233-
Added User Invite Tracking
238+
Added User Invite Tracking
234239
Added Cross-Promotion Tracking
235240

236-
Changes and fixes:
241+
Changes and fixes:
237242

238243
- added `setAppInviteOneLinkID` API
239244
- added `generateInviteLink` API
@@ -249,7 +254,7 @@ Release date: Feb 20, 2018
249254
Release type: Major / **Minor** / Hotfix
250255
Release scope: Public
251256

252-
Changes and fixes:
257+
Changes and fixes:
253258

254259
- added `setAdditionalData` API
255260

@@ -262,9 +267,7 @@ Release date: Feb 18, 2018
262267
Release type: Major / **Minor** / Hotfix
263268
Release scope: Public
264269

265-
Changes and fixes:
270+
Changes and fixes:
266271

267272
- Separated callbacks for `onAppOpenAttribution` and `getConversionData`.
268273
- [[#53](https://github.com/AppsFlyerSDK/react-native-appsflyer/issues/53)] onInstallConversionData doesn't return onAppOpenAttribution when mounting
269-
270-

Docs/API.md

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22

33
- [initSdk](#initSdk)
44
- [appId](#appId)
5-
- [onInstallConversionData](#onInstallConversionData)
6-
- [onAppOpenAttribution](#onAppOpenAttribution)
5+
- [onInstallConversionData](#onInstallConversionData)
6+
- [onAppOpenAttribution](#onAppOpenAttribution)
77
- [logEvent](#logEvent)
8-
- [setCustomerUserId](#setCustomerUserId)
9-
- [getAppsFlyerUID](#getAppsFlyerUID)
10-
- [stop](#stop)
11-
- [logLocation](#logLocation)
12-
- [setUserEmails](#setUserEmails)
8+
- [setCustomerUserId](#setCustomerUserId)
9+
- [getAppsFlyerUID](#getAppsFlyerUID)
10+
- [stop](#stop)
11+
- [logLocation](#logLocation)
12+
- [setUserEmails](#setUserEmails)
1313
- [setAdditionalData](#setAdditionalData)
14-
- [updateServerUninstallToken](#updateServerUninstallToken)
15-
- [setCollectIMEI](#setCollectIMEI)
16-
- [setCollectAndroidID](#setCollectAndroidID)
17-
- [setAppInviteOneLinkID](#setAppInviteOneLinkID)
18-
- [generateInviteLink](#generateInviteLink)
19-
- [logCrossPromotionImpression](#logCrossPromotionImpression)
20-
- [logCrossPromotionAndOpenStore](#logCrossPromotionAndOpenStore)
21-
- [setCurrencyCode](#setCurrencyCode)
14+
- [updateServerUninstallToken](#updateServerUninstallToken)
15+
- [setCollectIMEI](#setCollectIMEI)
16+
- [setCollectAndroidID](#setCollectAndroidID)
17+
- [setAppInviteOneLinkID](#setAppInviteOneLinkID)
18+
- [generateInviteLink](#generateInviteLink)
19+
- [logCrossPromotionImpression](#logCrossPromotionImpression)
20+
- [logCrossPromotionAndOpenStore](#logCrossPromotionAndOpenStore)
21+
- [setCurrencyCode](#setCurrencyCode)
2222
- [anonymizeUser](#anonymizeUser)
2323
- [setOneLinkCustomDomains](#setOneLinkCustomDomains)
2424
- [setResolveDeepLinkURLs](#setResolveDeepLinkURLs)
2525
- [performOnAppAttribution](#performOnAppAttribution)
26-
- [setSharingFilterForAllPartners](#setSharingFilterForAllPartners)
27-
- [setSharingFilter](#setSharingFilter)
26+
- [setSharingFilterForAllPartners](#setSharingFilterForAllPartners) Deprecated!
27+
- [setSharingFilter](#setSharingFilter) Deprecated!
2828
- [disableCollectASA](#disableCollectASA)
2929
- [disableAdvertisingIdentifier](#disableAdvertisingIdentifier)
3030
- [validateAndLogInAppPurchase](#validateAndLogInAppPurchase)
@@ -33,6 +33,7 @@
3333
- [addPushNotificationDeepLinkPath](#addPushNotificationDeepLinkPath)
3434
- [disableSKAD](#disableSKAD)
3535
- [setCurrentDeviceLanguage](#setCurrentDeviceLanguage)
36+
- [setSharingFilterForPartners](#setSharingFilterForPartners)
3637

3738
---
3839

@@ -366,7 +367,7 @@ appsFlyer.setUserEmails(
366367
367368
##### <a id="setAdditionalData"> **`setAdditionalData(additionalData, callback)`**
368369
369-
The setAdditionalData API is required to integrate on the SDK level with several external partner platforms, including Segment, Adobe and Urban Airship. Use this API only if the integration article of the platform specifically states setAdditionalData API is needed.
370+
The setAdditionalData API is required to integrate on the SDK level with several external partner platforms, including Segment, Adobe and Urban Airship. Use this API only if the integration article of the platform specifically states setAdditionalData API is needed.
370371
371372
| parameter | type | description |
372373
| ---------- |----------|------------------ |
@@ -392,11 +393,11 @@ appsFlyer.setAdditionalData(
392393
---
393394
394395
##### <a id="updateServerUninstallToken"> **`updateServerUninstallToken(token, callback)`**
395-
396+
396397
(Android only)
397398
398399
Manually pass the Firebase / GCM Device Token for Uninstall measurement.
399-
400+
400401
| parameter | type | description |
401402
| ---------- |----------|------------------ |
402403
| token | string | FCM Token |
@@ -414,7 +415,7 @@ appsFlyer.updateServerUninstallToken('token', (res) => {
414415
---
415416
416417
##### <a id="setCollectIMEI"> **`setCollectIMEI(isCollect, callback)`**
417-
418+
418419
❗(Android only)
419420
420421
Opt-out of collection of IMEI.<br/>
@@ -440,7 +441,7 @@ appsFlyer.setCollectIMEI(false, (res) => {
440441
---
441442
442443
##### <a id="setCollectAndroidID"> **`setCollectAndroidID(isCollect, callback)`**
443-
444+
444445
❗(Android only)
445446
446447
Opt-out of collection of Android ID.<br/>
@@ -466,7 +467,7 @@ appsFlyer.setCollectAndroidID(true, (res) => {
466467
---
467468
468469
##### <a id="setAppInviteOneLinkID"> **`setAppInviteOneLinkID(oneLinkID, callback)`**
469-
470+
470471
Set the OneLink ID that should be used for User-Invite-API.<br/>
471472
The link that is generated for the user invite will use this OneLink ID as the base link ID.
472473
@@ -625,7 +626,7 @@ appsFlyer.anonymizeUser(true, () => {});
625626
Set Onelink custom/branded domains<br/>
626627
Use this API during the SDK Initialization to indicate branded domains.<br/>
627628
For more information please refer to the [documentation](https://support.appsflyer.com/hc/en-us/articles/360002329137-Implementing-Branded-Links)
628-
629+
629630
| parameter | type | description |
630631
| ---------- |----------|------------------ |
631632
| domains | array | Comma separated array of branded domains |
@@ -690,7 +691,7 @@ appsFlyer.performOnAppAttribution(url, res => console.log(res) , err => console.
690691
```
691692
---
692693
##### <a id="setSharingFilterForAllPartners"> **`setSharingFilterForAllPartners()`**
693-
694+
##### Deprecated! Start from version 6.4.0 please use [setSharingFilterForPartners](#setSharingFilterForPartners)
694695
Used by advertisers to exclude **all** networks/integrated partners from getting data. Learn more [here](https://support.appsflyer.com/hc/en-us/articles/207032126#additional-apis-exclude-partners-from-getting-data)
695696
696697
*Example:*
@@ -700,7 +701,7 @@ appsFlyer.setSharingFilterForAllPartners()
700701
```
701702
---
702703
##### <a id="setSharingFilter"> **`setSharingFilter(partners, sucessC, errorC)`**
703-
704+
##### Deprecated! Start from version 6.4.0 please use [setSharingFilterForPartners](#setSharingFilterForPartners)
704705
Used by advertisers to exclude **specified** networks/integrated partners from getting data. Learn more [here](https://support.appsflyer.com/hc/en-us/articles/207032126#additional-apis-exclude-partners-from-getting-data)
705706
706707
| parameter | type | description |
@@ -722,7 +723,7 @@ appsFlyer.setSharingFilterForAllPartners(partners,
722723
---
723724
724725
##### <a id="disableCollectASA"> **`disableCollectASA(shouldDisable)`**
725-
726+
726727
❗(iOS only)
727728
728729
Disables Apple Search Ads collecting
@@ -896,3 +897,24 @@ if (Platform.OS == 'ios') {
896897
appsFlyer.setCurrentDeviceLanguage("EN");
897898
}
898899
```
900+
---
901+
##### <a id="setSharingFilterForPartners"> **`setSharingFilterForPartners(partners)`**
902+
903+
Used by advertisers to exclude networks/integrated partners from getting data.
904+
905+
906+
| parameter | type | description |
907+
| ---------- |----------|------------------ |
908+
| partners | array | Comma separated array of partners that need to be excluded |
909+
910+
*Example:*
911+
912+
```javascript
913+
appsFlyer.setSharingFilterForPartners([]); // Reset list (default)
914+
appsFlyer.setSharingFilterForPartners(null); // Reset list (default)
915+
appsFlyer.setSharingFilterForPartners(['facebook_int']); // Single partner
916+
appsFlyer.setSharingFilterForPartners(['facebook_int', 'googleadwords_int']); // Multiple partners
917+
appsFlyer.setSharingFilterForPartners(['all']); // All partners
918+
appsFlyer.setSharingFilterForPartners(['googleadwords_int', 'all']); // All partners
919+
```
920+
---

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
*When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.*
99

10-
[![npm version](https://badge.fury.io/js/react-native-appsflyer.svg)](https://badge.fury.io/js/react-native-appsflyer)
11-
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
10+
[![npm version](https://badge.fury.io/js/react-native-appsflyer.svg)](https://badge.fury.io/js/react-native-appsflyer)
11+
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
1212
[![Downloads](https://img.shields.io/npm/dm/react-native-appsflyer.svg)](https://www.npmjs.com/package/react-native-appsflyer)
1313
## Table of content
1414

@@ -17,12 +17,12 @@
1717
- [Add or Remove Strict mode for App-kids](#appKids)
1818
- [Initializing the SDK](#init-sdk)
1919
- [Guides](#guides)
20-
- [API](#api)
21-
20+
- [API](#api)
21+
2222
### <a id="plugin-build-for"> This plugin is built for
2323

24-
- iOS AppsFlyerSDK **v6.3.5**
25-
- Android AppsFlyerSDK **v6.3.2**
24+
- iOS AppsFlyerSDK **v6.4.0**
25+
- Android AppsFlyerSDK **v6.4.0**
2626

2727
## <a id="breaking-changes"> ❗ Breaking Changes
2828

@@ -53,7 +53,7 @@ If you have used 1 of the removed APIs, please check the integration guide for t
5353

5454
## <a id="installation"> 📲 Adding the SDK to your project
5555

56-
**Production** version from npm:
56+
**Production** version from npm:
5757
```
5858
$ npm install react-native-appsflyer --save
5959
```
@@ -152,6 +152,5 @@ Great installation and setup guides can be viewed [here](/Docs/Guides.md).
152152

153153

154154
## <a id="api"> 📑 API
155-
156-
See the full [API](/Docs/API.md) available for this plugin.
157155

156+
See the full [API](/Docs/API.md) available for this plugin.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ repositories {
5555
dependencies {
5656
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
5757
implementation "com.android.installreferrer:installreferrer:${safeExtGet('installReferrerVersion', '2.1')}"
58-
implementation "com.appsflyer:af-android-sdk:${safeExtGet('appsflyerVersion', '6.3.2')}"
58+
implementation "com.appsflyer:af-android-sdk:${safeExtGet('appsflyerVersion', '6.4.0')}"
5959
}

android/src/main/java/com/appsflyer/reactnative/RNAppsFlyerModule.java

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -601,25 +601,17 @@ public void performOnAppAttribution(String urlString, Callback successCallback,
601601
}
602602

603603
@ReactMethod
604-
public void setSharingFilterForAllPartners() {
605-
AppsFlyerLib.getInstance().setSharingFilterForAllPartners();
606-
}
607-
608-
@ReactMethod
609-
public void setSharingFilter(ReadableArray partnersArray, Callback successCallback, Callback errorCallback) {
610-
if (partnersArray.size() <= 0) {
611-
errorCallback.invoke(EMPTY_OR_CORRUPTED_LIST);
612-
return;
613-
}
614-
// ArrayList<Object> partnersList = partnersArray.toArrayList();
604+
public void setSharingFilterForPartners(ReadableArray partnersArray) {
615605
List<Object> partnersList = RNUtil.toList(partnersArray);
616-
try {
617-
String[] partners = partnersList.toArray(new String[partnersList.size()]);
618-
AppsFlyerLib.getInstance().setSharingFilter(partners);
619-
successCallback.invoke(SUCCESS);
620-
} catch (Exception e) {
621-
e.printStackTrace();
622-
errorCallback.invoke(EMPTY_OR_CORRUPTED_LIST);
606+
if(partnersList == null) {
607+
AppsFlyerLib.getInstance().setSharingFilterForPartners(null);
608+
} else{
609+
try {
610+
String[] partners = partnersList.toArray(new String[partnersList.size()]);
611+
AppsFlyerLib.getInstance().setSharingFilterForPartners(partners);
612+
} catch (Exception e) {
613+
e.printStackTrace();
614+
}
623615
}
624616
}
625617

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ declare module "react-native-appsflyer" {
9292
setHost(hostPrefix: string, hostName: string, success: SuccessCB): void
9393
addPushNotificationDeepLinkPath(path: string[], successC: SuccessCB, errorC: ErrorCB): void
9494
disableAdvertisingIdentifier(isDisable: boolean): void
95+
setSharingFilterForPartners(partners: string[]): void
9596

9697
/**
9798
* For iOS Only

0 commit comments

Comments
 (0)