You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-moengage

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-moengage - npm Package Compare versions

Comparing version

to
11.0.0

src/models/MoEAnalyticsConfig.ts

@@ -0,1 +1,9 @@

# 07-08-2024
## 11.0.0
- iOS
- BugFix: Resolved the issue of tracking User Attribute TRUE/FALSE as 0/1.
- Pinned plugin dependency version
- MoEngage-iOS-SDK version updated to `9.18.1`.
# 31-07-2024

@@ -2,0 +10,0 @@

2

package.json
{
"name": "react-native-moengage",
"version": "10.3.0",
"version": "11.0.0",
"description": "MoEngage is a mobile marketing automation company. This react-native SDK helps you track events, trigger smart notifications and in-apps, provides a drop-in Inbox Controller for notifications.",

@@ -5,0 +5,0 @@ "main": "src/index.ts",

@@ -59,2 +59,3 @@ import { NativeEventEmitter, Platform } from "react-native";

import { MoEngageNudgePosition } from "../src/models/MoEngageNudgePosition";
import MoEAnalyticsConfig from "../src/models/MoEAnalyticsConfig";
import { MoESupportedAttributes } from "./models/MoESupportedAttributes";

@@ -164,9 +165,3 @@

MoEngageGlobalCache.updateInitConfig(initConfig);
let payload: string = "";
if (Platform.OS == PLATFORM_ANDROID) {
payload = getInitConfigJson(appId, initConfig);
} else if (Platform.OS == PLATFORM_IOS) {
payload = getAppIdJson(appId);
}
let payload: string = getInitConfigJson(appId, initConfig);
MoEngageLogger.verbose("Initializing the MoEngage Plugin");

@@ -751,4 +746,5 @@ MoEReactBridge.initialize(payload);

MoEngageNudgePosition,
MoEAnalyticsConfig
};
export default ReactMoE;
import MoEngageLogConfig from "./MoEngageLogConfig";
import MoEPushConfig from "./MoEPushConfig";
import MoEAnalyticsConfig from "./MoEAnalyticsConfig"
/**
* Config class for MoEngage SDK
* Note: This Config is only for Android platform and is a no-operation method for other plaforms.
*/

@@ -14,2 +14,4 @@ export default class MoEInitConfig {

analyticsConfig = MoEAnalyticsConfig.defaultConfig();
/**

@@ -20,8 +22,11 @@ * Create an instance of {@link MoEInitConfig}

* @param logConfig instance of {@link MoEngageLogConfig}
* @param analyticsConfig instance of {@link MoEAnalyticsConfig}
*/
constructor(pushConfig: MoEPushConfig = MoEPushConfig.defaultConfig(),
logConfig: MoEngageLogConfig = MoEngageLogConfig.defaultConfig()
logConfig: MoEngageLogConfig = MoEngageLogConfig.defaultConfig(),
analyticsConfig: MoEAnalyticsConfig = MoEAnalyticsConfig.defaultConfig()
) {
this.pushConfig = pushConfig;
this.logConfig = logConfig;
this.analyticsConfig = analyticsConfig;
}

@@ -35,5 +40,6 @@

MoEPushConfig.defaultConfig(),
MoEngageLogConfig.defaultConfig()
MoEngageLogConfig.defaultConfig(),
MoEAnalyticsConfig.defaultConfig()
);
}
}

@@ -269,2 +269,5 @@ import MoEClickData from "../models/MoEClickData";

shouldDeliverCallbackOnForegroundClick: initConfig.pushConfig.shouldDeliverCallbackOnForegroundClick
},
analyticsConfig: {
shouldTrackUserAttributeBooleanAsNumber: initConfig.analyticsConfig.shouldTrackUserAttributeBoolAsNumber
}

@@ -271,0 +274,0 @@ }

Sorry, the diff of this file is not supported yet