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.
|
|
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.
|
|
20
|
+
put("X-netmera-frameworkV", "2.0.1")
|
|
21
21
|
}
|
|
22
22
|
Netmera.setNetmeraHeaders(headerValues)
|
|
23
23
|
}
|
package/ios/RNNetmera.swift
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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
|