react-native-appsflyer
Advanced tools
Comparing version 6.13.0 to 6.13.1-rc1
import appsFlyer from '../index'; | ||
import { RNAppsFlyer } from '../node_modules/react-native/Libraries/BatchedBridge/NativeModules'; | ||
import { NativeEventEmitter } from 'react-native'; | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
@@ -243,2 +245,22 @@ describe("Test appsFlyer API's", () => { | ||
}); | ||
test('plugin version between platforms should match', () => { | ||
const RNJavaFile = fs.readFileSync( | ||
path.resolve(__dirname, '../android/src/main/java/com/appsflyer/reactnative/RNAppsFlyerConstants.java'), | ||
'utf-8' | ||
); | ||
const RNObjCFile = fs.readFileSync( | ||
path.resolve(__dirname, '../ios/RNAppsFlyer.h'), | ||
'utf-8' | ||
); | ||
const pluginVersionJavaRegex = /final\s+static\s+String\s+PLUGIN_VERSION\s+=\s+"([\d.]+)";/; | ||
const pluginVersionObjCRegex = /static\s+NSString\s+\*const\s+kAppsFlyerPluginVersion\s+=\s+@"([\d.]+)";/; | ||
const versionAndroid = RNJavaFile.match(pluginVersionJavaRegex)[1]; | ||
const versionIos = RNObjCFile.match(pluginVersionObjCRegex)[1]; | ||
expect(versionAndroid).toEqual(versionIos); | ||
}); | ||
}); | ||
@@ -326,2 +348,2 @@ | ||
}); | ||
}); | ||
}); |
@@ -461,3 +461,3 @@ --- | ||
Set the user emails and encrypt them. | ||
**Note:** Android platform supports only 0 (none) and 3 (SHA256) emailsCryptType. iOS platform support all (0-3) emailsCryptType. | ||
**Note:** Android and iOS platforms supports only 0 (none) and 3 (SHA256) emailsCryptType. | ||
When unsupported emailsCryptType is passed, the SDK will use the default (none). | ||
@@ -469,8 +469,8 @@ | ||
| success | function | success callback | | ||
| error | function | error callback | | ||
| error | function | error callback | | ||
| option | type | description | | ||
| option | type | description | | ||
| -------------- | ---- |------------- | | ||
| emailsCryptType | int | **iOS**: none - 0 (default), SHA1 - 1, MD5 - 2, SHA256 - 3<br>**Android**: none - 0 (default), SHA256 - 3| | ||
| emailsCryptType | int | none - 0 (default), SHA256 - 3 | | ||
| emails | array | comma separated list of emails | | ||
@@ -477,0 +477,0 @@ |
@@ -118,7 +118,11 @@ /** | ||
export const AppsFlyerConsent: { | ||
forGDPRUser: (hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean) => void; | ||
forNonGDPRUser: () => void; | ||
forGDPRUser: (hasConsentForDataUsage: boolean, hasConsentForAdsPersonalization: boolean) => AppsFlyerConsentType; | ||
forNonGDPRUser: () => AppsFlyerConsentType; | ||
} | ||
export type AppsFlyerConsentType = typeof AppsFlyerConsent; | ||
export interface AppsFlyerConsentType { | ||
isUserSubjectToGDPR: boolean; | ||
hasConsentForDataUsage?: boolean; | ||
hasConsentForAdsPersonalization?: boolean; | ||
} | ||
@@ -125,0 +129,0 @@ const appsFlyer: { |
{ | ||
"name": "react-native-appsflyer", | ||
"version": "6.13.0", | ||
"version": "6.13.1-rc1", | ||
"description": "React Native Appsflyer plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
340698
1176
1
2