New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-adjust

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-adjust - npm Package Compare versions

Comparing version 4.14.0 to 4.15.0

19

CHANGELOG.md

@@ -0,1 +1,18 @@

### Version 4.15.0 (10th October 2018)
#### Added
- Added `setCallbackId` method on `AdjustEvent` object for users to set custom ID on event object which will later be reported in event success/failure callbacks.
- Added `callbackId` field to event tracking success callback object.
- Added `callbackId` field to event tracking failure callback object.
#### Changed
- Updated Android SDK and build tools to 26 (thanks to @hamidhadi).
- Marked `setReadMobileEquipmentIdentity` method of `AdjustConfig` object as deprecated.
- SDK will now fire attribution request each time upon session tracking finished in case it lacks attribution info.
#### Native SDKs
- [iOS@v4.15.0][ios_sdk_v4.15.0]
- [Android@v4.15.0][android_sdk_v4.15.0]
---
### Version 4.14.0 (4th July 2018)

@@ -232,2 +249,3 @@ #### Added

[ios_sdk_v4.14.1]: https://github.com/adjust/ios_sdk/tree/v4.14.1
[ios_sdk_v4.15.0]: https://github.com/adjust/ios_sdk/tree/v4.15.0

@@ -246,1 +264,2 @@ [android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4

[android_sdk_v4.14.0]: https://github.com/adjust/android_sdk/tree/v4.14.0
[android_sdk_v4.15.0]: https://github.com/adjust/android_sdk/tree/v4.15.0

133

index.js

@@ -18,2 +18,4 @@ 'use strict';

// Adjust //
var Adjust = {};

@@ -145,5 +147,9 @@

// Adjust methods used for SDK testing only. //
// Do NOT use any of those in production code. //
// Do NOT use any of these in production code. //
// =========================================== //
Adjust.teardown = function() {
Adjust.teardown = function(testParam) {
if (testParam === null || testParam === undefined || testParam !== 'test') {
return;
}
Adjust.componentWillUnmount();

@@ -157,60 +163,30 @@ module_adjust.teardown();

Adjust.onResume = function() {
Adjust.onResume = function(testParam) {
if (testParam === null || testParam === undefined || testParam !== 'test') {
return;
}
module_adjust.onResume();
};
Adjust.onPause = function() {
Adjust.onPause = function(testParam) {
if (testParam === null || testParam === undefined || testParam !== 'test') {
return;
}
module_adjust.onPause();
};
// =========================================== //
var AdjustEvent = function (eventToken) {
this.eventToken = eventToken;
this.revenue = null;
this.currency = null;
this.transactionId = null;
this.callbackParameters = {};
this.partnerParameters = {};
// AdjustConfig //
this.setRevenue = function(revenue, currency) {
this.revenue = revenue;
this.currency = currency;
};
this.addCallbackParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
this.callbackParameters[key] = value;
};
this.addPartnerParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
this.partnerParameters[key] = value;
};
this.setTransactionId = function(transactionId) {
this.transactionId = transactionId;
};
};
var AdjustConfig = function(appToken, environment) {
this.sdkPrefix = "react_native4.15.0";
this.appToken = appToken;
this.environment = environment;
this.sdkPrefix = "react_native4.14.0";
this.logLevel = null;
this.eventBufferingEnabled = null;
this.shouldLaunchDeeplink = null;
this.sendInBackground = null;
this.delayStart = null;
this.userAgent = null;
this.isDeviceKnown = null;
this.defaultTracker = null;
this.secretId = null;

@@ -221,3 +197,2 @@ this.info1 = null;

this.info4 = null;
// Android only

@@ -228,18 +203,17 @@ this.processName = null;

AdjustConfig.EnvironmentSandbox = "sandbox";
AdjustConfig.EnvironmentProduction = "production";
AdjustConfig.LogLevelVerbose = "VERBOSE";
AdjustConfig.LogLevelDebug = "DEBUG";
AdjustConfig.LogLevelInfo = "INFO";
AdjustConfig.LogLevelWarn = "WARN";
AdjustConfig.LogLevelError = "ERROR";
AdjustConfig.LogLevelAssert = "ASSERT";
AdjustConfig.LogLevelSuppress = "SUPPRESS";
AdjustConfig.AttributionSubscription = null;
AdjustConfig.EventTrackingSucceededSubscription = null;
AdjustConfig.EventTrackingFailedSubscription = null;
AdjustConfig.EnvironmentSandbox = "sandbox";
AdjustConfig.EnvironmentProduction = "production";
AdjustConfig.LogLevelVerbose = "VERBOSE";
AdjustConfig.LogLevelDebug = "DEBUG";
AdjustConfig.LogLevelInfo = "INFO";
AdjustConfig.LogLevelWarn = "WARN";
AdjustConfig.LogLevelError = "ERROR";
AdjustConfig.LogLevelAssert = "ASSERT";
AdjustConfig.LogLevelSuppress = "SUPPRESS";
AdjustConfig.AttributionSubscription = null;
AdjustConfig.EventTrackingSucceededSubscription = null;
AdjustConfig.EventTrackingFailedSubscription = null;
AdjustConfig.SessionTrackingSucceededSubscription = null;
AdjustConfig.SessionTrackingFailedSubscription = null;
AdjustConfig.DeferredDeeplinkSubscription = null;
AdjustConfig.SessionTrackingFailedSubscription = null;
AdjustConfig.DeferredDeeplinkSubscription = null;

@@ -297,3 +271,3 @@ AdjustConfig.prototype.setEventBufferingEnabled = function(isEnabled) {

AdjustConfig.prototype.setReadMobileEquipmentIdentity = function(readMobileEquipmentIdentity) {
this.readMobileEquipmentIdentity = readMobileEquipmentIdentity;
// this.readMobileEquipmentIdentity = readMobileEquipmentIdentity;
};

@@ -359,2 +333,43 @@

// AdjustEvent //
var AdjustEvent = function (eventToken) {
this.eventToken = eventToken;
this.revenue = null;
this.currency = null;
this.transactionId = null;
this.callbackId = null;
this.callbackParameters = {};
this.partnerParameters = {};
this.setRevenue = function(revenue, currency) {
if (revenue != null) {
this.revenue = revenue.toString();
this.currency = currency;
}
};
this.addCallbackParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
this.callbackParameters[key] = value;
};
this.addPartnerParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
this.partnerParameters[key] = value;
};
this.setTransactionId = function(transactionId) {
this.transactionId = transactionId;
};
this.setCallbackId = function(callbackId) {
this.callbackId = callbackId;
};
};
module.exports = { Adjust, AdjustEvent, AdjustConfig }
{
"name": "react-native-adjust",
"description": "Adjust React Native SDK",
"version": "4.14.0",
"version": "4.15.0",
"main": "index.js",

@@ -6,0 +6,0 @@ "author": "adjust GmbH",

@@ -27,2 +27,3 @@ ## Summary

* [Partner parameters](#partner-parameters)
* [Callback identifier](#callback-id)
* [Session parameters](#session-parameters)

@@ -388,2 +389,14 @@ * [Session callback parameters](#session-callback-parameters)

### <a id="callback-id"></a>Callback identifier
You can also add custom string identifier to each event you want to track. This identifier will later be reported in event success and/or event failure callbacks to enable you to keep track on which event was successfully tracked or not. You can set this identifier by calling the `setCallbackId` method on your `AdjustEvent` instance:
```js
var adjustEvent = new AdjustEvent("abc123");
adjustEvent.setCallbackId("Your-Custom-Id");
Adjust.trackEvent(adjustEvent);
```
### <a id="session-parameters"></a>Session parameters

@@ -516,2 +529,3 @@

console.log(eventSuccess.eventToken);
console.log(eventSuccess.callbackId);
console.log(eventSuccess.adid);

@@ -535,2 +549,3 @@ console.log(eventSuccess.jsonResponse);

console.log(eventSuccess.eventToken);
console.log(eventSuccess.callbackId);
console.log(eventSuccess.adid);

@@ -589,2 +604,3 @@ console.log(eventSuccess.willRetry);

- `var eventToken` the event token, if the package tracked was an event.
- `var callbackId` the custom defined callback ID set on event object.

@@ -591,0 +607,0 @@ And both event and session failed objects also contain:

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

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

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

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

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