react-native-netmera 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/RNNetmera.podspec CHANGED
@@ -19,7 +19,7 @@ NETMERA is a Mobile Application Engagement Platform. We offer a series of develo
19
19
  s.source_files = "ios/**/*.{h,m,mm,swift}"
20
20
  s.public_header_files = "ios/RNNetmera.h"
21
21
 
22
- netmera_version = '4.19.0'
22
+ netmera_version = '4.19.1'
23
23
 
24
24
  s.dependency "NetmeraAnalytic", netmera_version
25
25
  s.dependency "NetmeraAnalyticAutotracking", netmera_version
@@ -17,7 +17,7 @@ object RNNetmera {
17
17
  private fun setNetmeraHeaders() {
18
18
  val headerValues = ContentValues().apply {
19
19
  put("X-netmera-framework", "react")
20
- put("X-netmera-frameworkV", "2.0.0")
20
+ put("X-netmera-frameworkV", "2.0.1")
21
21
  }
22
22
  Netmera.setNetmeraHeaders(headerValues)
23
23
  }
@@ -97,7 +97,7 @@ public class RNNetmera: NSObject {
97
97
  private static func setNetmeraHeaders() {
98
98
  Netmera.setAdditionalRequestHeaders([
99
99
  "X-netmera-framework": "react",
100
- "X-netmera-frameworkV": "2.0.0"
100
+ "X-netmera-frameworkV": "2.0.1"
101
101
  ])
102
102
  }
103
103
 
@@ -37,7 +37,7 @@ class RNNetmeraPushObject {
37
37
  if let pushId = push.pushId { data["pushId"] = pushId }
38
38
  if let pushInstanceId = push.pushInstanceId { data["pushInstanceId"] = pushInstanceId }
39
39
  if let category = push.category { data["category"] = category }
40
- if let customJson = push.params { data["customJson"] = customJson }
40
+ if let customJson = push.customParameters { data["customJson"] = customJson }
41
41
  if let externalId = push.externalId { data["externalId"] = externalId }
42
42
  if let categories = push.categoryIds { data["categories"] = categories }
43
43
  if let sd = push.sendDate { data["sendDate"] = formatDate(sd) }
@@ -80,7 +80,7 @@ class RNNetmeraPushObject {
80
80
  if let id = actionItem.id { dict["id"] = id }
81
81
  if let title = actionItem.title { dict["title"] = title }
82
82
  if let act = actionItem.action { dict["act"] = mapPushAction(act) }
83
- dict["prms"] = actionItem.params ?? [:]
83
+ dict["prms"] = actionItem.customParameters ?? [:]
84
84
  return dict
85
85
  }
86
86
  if let jsonData = try? JSONSerialization.data(withJSONObject: mapped, options: []) {
@@ -104,7 +104,7 @@ class RNNetmeraPushObject {
104
104
  guard let action else { return nil }
105
105
  var dict: [String: Any] = [:]
106
106
  if let id = action.id { dict["id"] = id }
107
- if let prms = action.params { dict["prms"] = prms }
107
+ if let prms = action.customParameters { dict["prms"] = prms }
108
108
  if let pushAction = action.action { dict["act"] = mapPushAction(pushAction) }
109
109
  if let ia = action as? NetmeraPushInteractiveAction, let title = ia.title {
110
110
  dict["title"] = title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-netmera",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Netmera React Native SDK",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/module/index.js",