Skip to content

Commit

Permalink
6.5.20
Browse files Browse the repository at this point in the history
6.5.20
  • Loading branch information
ShaharAF committed Jan 30, 2022
2 parents 023e2c9 + b84990a commit 00619b6
Show file tree
Hide file tree
Showing 14 changed files with 494 additions and 280 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 6.5.20
Release date: *2022-January-30*

- React Native > Update native SDK to v6.5.2
- React Native > show the ATT in didBecomeActive of the plugin's sample app
- React Native > Android > userEmails defaults to None
- React Native > iOS > Deeplink not working when app is in killed state and restorationHandler is nil
- React Native > Android & iOS DeepLinkResult inconsistencies
- React Native > add typescript declarations

## 6.4.40
Release date: *2021-December-12*

Expand Down
9 changes: 6 additions & 3 deletions Docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ appsFlyer.setHost('foo', 'bar.appsflyer.com', res => console.log(res));

##### <a id="setUserEmails"> **`setUserEmails(options, success, error)`**

Set the user emails and encrypt them.
Set the user emails and encrypt them.<br>
**Note:** Android platform supports only 0 (none) and 3 (SHA256) emailsCryptType. iOS platform support all (0-3) emailsCryptType.<br>
When unsupported emailsCryptType is passed, the SDK will use the default (none).

| parameter | type | description |
| ---------- |----------|------------------ |
Expand All @@ -395,15 +397,16 @@ Set the user emails and encrypt them.

| option | type | description |
| -------------- | ---- |------------- |
| emailsCryptType | int | none - 0 (default), SHA1 - 1, MD5 - 2, SHA256 - 3 |
| emailsCryptType | int | **iOS**: none - 0 (default), SHA1 - 1, MD5 - 2, SHA256 - 3<br>**Android**: none - 0 (default), SHA256 - 3|
| emails | array | comma separated list of emails |


*Example:*

```javascript
const options = {
emailsCryptType: 2,
// In this case iOS platform will encrypt emails usind MD5 and android with SHA256. If you want both platform to encrypt with the same method, just write 0 or 3.
emailsCryptType: Platform.OS === 'ios' ? 2 : 3,
emails: ['user1@gmail.com', 'user2@gmail.com'],
};

Expand Down
31 changes: 31 additions & 0 deletions Docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Manual installation
- [iOS](#manual-installation-ios)
- [Android](#manual-installation-android)
- Add strict-mode for App-kids

## <a id="Installation-with-autolinking"> Installation (with [autolinking](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md))

Expand Down Expand Up @@ -140,3 +141,33 @@ So `getPackages()` should look like:
}
```

## Add strict-mode for App-kids
Starting from version **6.1.10** iOS SDK comes in two variants: **Strict** mode and **Regular** mode. Please read more [here](https://dev.appsflyer.com/hc/docs/install-ios-sdk#strict-mode-sdk)<br>

***Change to Strict mode***<br>
After you installed the AppsFlyer plugin, add `$RNAppsFlyerStrictMode=true` in the project's Podfile:
```
//MyRNApp/ios/Podfile
...
use_frameworks!
$RNAppsFlyerStrictMode=true
# Pods for MyRNApp
...
```
In the `ios` folder of your `root` project Run `pod install`

***Change to Regular mode***<br>
Remove `$RNAppsFlyerStrictMode=true` from the project's Podfile or set it to `false`:
```
//MyRNApp/ios/Podfile
...
use_frameworks!
$RNAppsFlyerStrictMode=false //OR remove this line
# Pods for MyRNApp
...
```
In the `ios` folder of your `root` project Run `pod install`

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

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

- Android AppsFlyer SDK **v6.4.3**
- iOS AppsFlyer SDK **v6.4.4**
- Android AppsFlyer SDK **v6.5.2**
- iOS AppsFlyer SDK **v6.5.2**

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

Expand Down
Loading

0 comments on commit 00619b6

Please sign in to comment.