Skip to content

Commit 36415b0

Browse files
committed
Merge branch 'master' into development
2 parents fb27417 + ab7adf9 commit 36415b0

File tree

12 files changed

+117
-87
lines changed

12 files changed

+117
-87
lines changed

.github/workflows/build-apps-workflow.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,27 @@ on:
55

66
jobs:
77
Build-RN-android:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- name: install react-native-appsflyer on an Android app
12-
run: |
13-
cd demos/appsflyer-react-native-app
14-
yarn install
15-
yarn add ../../ --save
16-
- name: Build apk
17-
run: |
18-
cd demos/appsflyer-react-native-app/android
19-
chmod +x ./gradlew
20-
./gradlew assembleRelease
21-
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v2
14+
with:
15+
java-version: '17'
16+
distribution: 'adopt'
17+
18+
- name: install react-native-appsflyer on an Android app
19+
run: |
20+
cd demos/appsflyer-react-native-app
21+
yarn install
22+
yarn add ../../ --save
23+
24+
- name: Build apk
25+
run: |
26+
cd demos/appsflyer-react-native-app/android
27+
chmod +x ./gradlew
28+
./gradlew assembleRelease
2229
# Build-RN-ios:
2330
# runs-on: macos-latest
2431
# steps:

.github/workflows/responseToSupportIssue.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,5 @@ jobs:
1919
issue-number: ${{ github.event.issue.number }}
2020
body: |
2121
👋 Hi @${{ github.event.issue.user.login }} and Thank you for reaching out to us.
22-
In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com.
23-
When submitting the ticket, please specify:
24-
- ✅ your AppsFlyer sign-up (account) email
25-
- ✅ app ID
26-
- ✅ production steps
27-
- ✅ logs
28-
- ✅ code snippets
29-
- ✅ and any additional relevant information.
22+
You can contact AppsFlyer support through the Customer Assistant Chatbot for assistance with troubleshooting issues or product guidance.
23+
To do so, please follow [this article](https://support.appsflyer.com/hc/en-us/articles/23583984402193-Using-the-Customer-Assistant-Chatbot).
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9].[0-9]+.[0-9]+')
4-
android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9].[0-9]+.[0-9]+')
5-
sed -i -e -r "s/Android AppsFlyer SDK \*\*v[0-9].[0-9]+.[0-9]+\*\*/Android AppsFlyer SDK \*\*v$android_sdk_version\*\*/g" README.md
6-
sed -i -e -r "s/iOS AppsFlyer SDK \*\*v[0-9].[0-9]+.[0-9]+\*\*/iOS AppsFlyer SDK \*\*v$ios_sdk_version\*\*/g" README.md
3+
ios_sdk_version=$(cat react-native-appsflyer.podspec | grep '\'AppsFlyerFramework\' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
4+
android_sdk_version=$(cat android/build.gradle | grep 'com.appsflyer:af-android-sdk' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
5+
sed -i -r "s/Android AppsFlyer SDK \*\*v[0-9]+\.[0-9]+\.[0-9]+\*\*/Android AppsFlyer SDK \*\*v$android_sdk_version\*\*/g" README.md
6+
sed -i -r "s/iOS AppsFlyer SDK \*\*v[0-9]+\.[0-9]+\.[0-9]+\*\*/iOS AppsFlyer SDK \*\*v$ios_sdk_version\*\*/g" README.md

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 6.15.1
2+
Release date: *2024-09-15*
3+
4+
- React Native >> Update Plugin to v6.15.1
5+
- React native plugin >> UDL failed deferred deep linking
6+
17
## 6.14.3
28
Release date: *2024-04-28*
39

Docs/RN_API.md

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,53 @@ hidden: false
99
## APIs
1010

1111
The list of available methods for this plugin is described below.
12+
- [APIs](#apis)
1213
- [Android and iOS APIs](#android-and-ios-apis)
13-
- [initSDK](#initsdk)
14-
- [startSdk](#startsdk)
15-
- [logEvent](#logevent)
16-
- [setCustomerUserId](#setcustomeruserid)
17-
- [stop](#stop)
18-
- [setAppInviteOneLinkID](#setappinviteonelinkid)
19-
- [setAdditionalData](#setadditionaldata)
20-
- [setResolveDeepLinkURLs](#setresolvedeeplinkurls)
21-
- [setOneLinkCustomDomain](#setonelinkcustomdomain)
22-
- [setCurrencyCode](#setcurrencycode)
23-
- [logLocation](#loglocation)
24-
- [anonymizeUser](#anonymizeuser)
25-
- [getAppsFlyerUID](#getappsflyeruid)
26-
- [setHost](#sethost)
27-
- [setUserEmails](#setuseremails)
28-
- [generateInviteLink](#generateinvitelink)
29-
- [setSharingFilterForAllPartners](#setsharingfilterforallpartners) *Deprecated*
30-
- [setSharingFilter](#setsharingfilter) *Deprecated*
31-
- [setSharingFilterForPartners](#setsharingfilterforpartners)
32-
- [validateAndLogInAppPurchase](#validateandloginapppurchase)
33-
- [updateServerUninstallToken](#updateserveruninstalltoken)
34-
- [sendPushNotificationData](#sendpushnotificationdata)
35-
- [addPushNotificationDeepLinkPath](#addpushnotificationdeeplinkpath)
36-
- [appendParametersToDeepLinkingURL](#appendparameterstodeeplinkingurl)
37-
- [disableAdvertisingIdentifier](#disableAdvertisingIdentifier)
38-
- [enableTCFDataCollection](#enableTCFDataCollection)
39-
- [setConsentData](#setConsentData)
40-
- [logAdRevenue](#logAdRevenue)
14+
- [initSdk](#initsdk)
15+
- [startSdk](#startsdk)
16+
- [logEvent](#logevent)
17+
- [setCustomerUserId](#setcustomeruserid)
18+
- [stop](#stop)
19+
- [setAppInviteOneLinkID](#setappinviteonelinkid)
20+
- [setAdditionalData](#setadditionaldata)
21+
- [setResolveDeepLinkURLs](#setresolvedeeplinkurls)
22+
- [setOneLinkCustomDomains](#setonelinkcustomdomains)
23+
- [setCurrencyCode](#setcurrencycode)
24+
- [logLocation](#loglocation)
25+
- [anonymizeUser](#anonymizeuser)
26+
- [getAppsFlyerUID](#getappsflyeruid)
27+
- [setHost](#sethost)
28+
- [setUserEmails](#setuseremails)
29+
- [generateInviteLink](#generateinvitelink)
30+
- [setSharingFilterForAllPartners](#setsharingfilterforallpartners)
31+
- [setSharingFilter](#setsharingfilter)
32+
- [setSharingFilterForPartners](#setsharingfilterforpartners)
33+
- [validateAndLogInAppPurchase](#validateandloginapppurchase)
34+
- [updateServerUninstallToken](#updateserveruninstalltoken)
35+
- [sendPushNotificationData](#sendpushnotificationdata)
36+
- [addPushNotificationDeepLinkPath](#addpushnotificationdeeplinkpath)
37+
- [appendParametersToDeepLinkingURL](#appendparameterstodeeplinkingurl)
38+
- [disableAdvertisingIdentifier](#disableadvertisingidentifier)
39+
- [enableTCFDataCollection](#enabletcfdatacollection)
40+
- [setConsentData](#setconsentdata)
41+
- [logAdRevenue](#logadrevenue)
4142
- [Android Only APIs](#android-only-apis)
42-
- [setCollectAndroidID](#setcollectandroidid)
43-
- [setCollectIMEI](#setcollectimei)
44-
- [setDisableNetworkData](#setdisablenetworkdata)
45-
- [performOnDeepLinking](#performondeeplinking)
43+
- [setCollectAndroidID](#setcollectandroidid)
44+
- [setCollectIMEI](#setcollectimei)
45+
- [setDisableNetworkData `setDisableNetworkData(disable)`](#setdisablenetworkdata-setdisablenetworkdatadisable)
46+
- [performOnDeepLinking](#performondeeplinking)
4647
- [iOS Only APIs](#ios-only-apis)
47-
- [disableCollectASA](#disablecollectasa)
48-
- [setUseReceiptValidationSandbox](#setusereceiptvalidationsandbox)
49-
- [disableSKAD](#disableskad)
50-
- [setCurrentDeviceLanguage](#setcurrentdevicelanguage)
51-
- [disableIDFVCollection](#disableidfvcollection)
48+
- [disableCollectASA](#disablecollectasa)
49+
- [disableIDFVCollection](#disableidfvcollection)
50+
- [setUseReceiptValidationSandbox](#setusereceiptvalidationsandbox)
51+
- [disableSKAD](#disableskad)
52+
- [setCurrentDeviceLanguage](#setcurrentdevicelanguage)
5253
- [AppsFlyerConversionData](#appsflyerconversiondata)
53-
- [onInstallConversionData](#oninstallconversiondata)
54-
- [onInstallConversionFailure](#oninstallconversionfailure)
55-
- [onAppOpenAttribution](#onappopenattribution)
56-
- [onAttributionFailure](#onattributionfailure)
57-
- [onDeepLink](#ondeeplink)
54+
- [onInstallConversionData](#oninstallconversiondata)
55+
- [onInstallConversionFailure](#oninstallconversionfailure)
56+
- [onAppOpenAttribution](#onappopenattribution)
57+
- [onAttributionFailure](#onattributionfailure)
58+
- [onDeepLink](#ondeeplink)
5859
---
5960

6061
## Android and iOS APIs
@@ -109,7 +110,7 @@ appsFlyer.initSdk(
109110
```
110111
---
111112

112-
#### startSdk
113+
### startSdk
113114
`startSdk()`
114115

115116
In version 6.9.1 of the react-native-appslfyer SDK we added the option of splitting between the initialization stage and start stage. All you need to do is add the property manualStart: true to the init object, and later call appsFlyer.startSdk() whenever you decide. If this property is set to false or doesn’t exist, the sdk will start after calling `appsFlyer.initSdk(...)`.
@@ -147,7 +148,7 @@ appsFlyer.initSdk(
147148
```
148149
---
149150

150-
#### logEvent
151+
### logEvent
151152
`logEvent(eventName, eventValues, success, error)`
152153

153154
In-App Events provide insight on what is happening in your app. It is recommended to take the time and define the events you want to measure to allow you to measure ROI (Return on Investment) and LTV (Lifetime Value).
@@ -798,20 +799,18 @@ let GDPRUser = AppsFlyerConsent.forGDPRUser(true, false);
798799
appsFlyer.setConsentData(nonGDPRUser /**or**/ GDPRUser);
799800
```
800801

801-
### logAdRevenue - Since 6.15.1
802+
### logAdRevenue
802803
`logAdRevenue(data: AFAdRevenueData): void`
803804

804805
Use this method to log your ad revenue.</br>
805806
By attributing ad revenue, app owners gain the complete view of user LTV and campaign ROI.
806807
Ad revenue is generated by displaying ads on rewarded videos, offer walls, interstitials, and banners in an app.
807808

808-
#### Parameters
809-
810809
| Param | Type |
811810
| -------------- | ---------------------------------------------------------- |
812811
| **`data`** | `AFAdRevenueData` |
813812

814-
#### Usage Example for React Native:
813+
*Example:*
815814

816815
```javascript
817816
const adRevenueData = {

Docs/RN_ExpoDeepLinkIntegration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
2323

2424
1. In order to use AppsFlyer's deeplinks you need to configure intent filters/scheme/associatedDomains as described in [Expo's guide](https://docs.expo.dev/guides/linking/#universal-links-on-ios).
2525

26-
2. **For Android apps:** You need to add `setIntent()` inside the `onNewIntent` method like described [here](RN_DeepLinkIntegrate.md#android-deeplink-setup). This plugin is NOT adding this code out the box, so you need to implement it **manually or with [custom config plugin](https://docs.expo.dev/modules/config-plugin-and-native-module-tutorial/#4-creating-a-new-config-plugin)**
26+
2. **For Android apps:** You need to add `setIntent()` inside the `onNewIntent` method like described [here](https://dev.appsflyer.com/hc/docs/rn_deeplinkintegrate#android-deeplink-setup). This plugin is NOT adding this code out the box, so you need to implement it **manually or with [custom config plugin](https://docs.expo.dev/modules/config-plugin-and-native-module-tutorial/#4-creating-a-new-config-plugin)**
2727

2828
## Full app.json example
2929

Docs/RN_UnifiedDeepLink.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ order: 9
66
hidden: false
77
---
88

9+
> 📘 **UDL privacy protection**
10+
>
11+
> For new users, the UDL method only returns parameters relevant to deferred deep linking: `deep_link_value` and `deep_link_sub1` to `deep_link_sub10`. If you try to get any other parameters (`media_source`, `campaign`, `af_sub1-5`, etc.), they return `null`.
12+
913
### UDL flow
1014

1115
1. The SDK is triggered by:

Docs/RN_UserInvite.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ The link that is generated for the user invite will use this OneLink ID as the b
1919
| oneLinkID | string | oneLinkID |
2020
| callback | function | success callback |
2121

22-
22+
> 📘 Note
23+
>
24+
> - Make sure to call `setAppInviteOneLinkID()` **before** calling `start`.
25+
> - The OneLink template must be assigned to the app.
26+
2327
##### 2. `generateInviteLink(parameters, success, error)`
2428
A complete list of supported parameters is available [here](https://support.appsflyer.com/hc/en-us/articles/115004480866-User-Invite-Tracking). Custom parameters can be passed using a userParams{} nested object, as in the example above.
2529

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
1313
### <a id="plugin-build-for"> This plugin is built for
1414

15-
- Android AppsFlyer SDK **v6.13.0**
16-
- iOS AppsFlyer SDK **v6.13.1**
15+
- Android AppsFlyer SDK **v6.15.1**
16+
- iOS AppsFlyer SDK **v6.15.1**
17+
- Tested with React-Native **v0.62.0** (older versions might be supported)
1718

1819
## <a id="breaking-changes"> ❗❗ Breaking changes when updating to v6.x.x❗❗
1920

@@ -46,24 +47,28 @@ And removed the following ones:
4647

4748
If you have used 1 of the removed APIs, please check the integration guide for the updated instructions.
4849

49-
---
50+
---
51+
52+
## 🚀 Getting Started
5053

51-
## 🚀 Getting Started
5254
- [Installation](/Docs/RN_Installation.md)
53-
- [***Expo*** Installation](/Docs/RN_ExpoInstallation.md)
55+
- [**_Expo_** Installation](/Docs/RN_ExpoInstallation.md)
5456
- [Integration](/Docs/RN_Integration.md)
5557
- [Test integration](/Docs/RN_Testing.md)
5658
- [In-app events](/Docs/RN_InAppEvents.md)
5759
- [Uninstall measurement](/Docs/RN_UninstallMeasurement.md)
5860
- [Send consent for DMA compliance](/Docs/RN_CMP.md)
59-
## 🔗 Deep Linking
61+
62+
## 🔗 Deep Linking
63+
6064
- [Integration](/Docs/RN_DeepLinkIntegrate.md)
61-
- [***Expo*** Integration](/Docs/RN_ExpoDeepLinkIntegration.md)
65+
- [**_Expo_** Integration](/Docs/RN_ExpoDeepLinkIntegration.md)
6266
- [Unified Deep Link (UDL)](/Docs/RN_UnifiedDeepLink.md)
6367
- [User Invite](/Docs/RN_UserInvite.md)
68+
6469
## 🧪 Sample Apps
70+
6571
- [React-Native Sample App](/demos/appsflyer-react-native-app)
6672
- [🆕 Expo Sample App](https://github.com/AppsFlyerSDK/appsflyer-expo-sample-app)
6773

6874
### [API reference](/Docs/RN_API.md)
69-

demos/appsflyer-react-native-app/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13-
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
13+
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
1414

1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit

0 commit comments

Comments
 (0)