Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-appsflyer

Package Overview
Dependencies
Maintainers
3
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-appsflyer - npm Package Compare versions

Comparing version 6.13.0 to 6.13.1-rc1

24

__tests__/index.test.js
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 @@

});
});
});

8

Docs/RN_API.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc