react-native-firework-sdk 1.3.1-beta.4 → 1.3.1-beta.5

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.
@@ -36,7 +36,11 @@ class FireworkSDKModule: RCTEventEmitter, FireworkVideoSDKDelegate {
36
36
  #if DEBUG
37
37
  let formatter = DateFormatter()
38
38
  formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
39
- sendEvent(withName: FWEventName.LogMessage.rawValue, body: ["message": "[iOS] Call initializeSDK \(formatter.string(from: Date()))"])
39
+
40
+ let message = "[iOS] Call initializeSDK \(formatter.string(from: Date()))"
41
+ print("[react-native-firework-sdk] [swift] \(message)")
42
+
43
+ sendEvent(withName: FWEventName.LogMessage.rawValue, body: ["message": message])
40
44
  #endif
41
45
 
42
46
  DispatchQueue.main.async {
@@ -114,7 +118,11 @@ class FireworkSDKModule: RCTEventEmitter, FireworkVideoSDKDelegate {
114
118
  #if DEBUG
115
119
  let formatter = DateFormatter()
116
120
  formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
117
- sendEvent(withName: FWEventName.LogMessage.rawValue, body: ["message": "[iOS] Send SDK initialization successful event \(formatter.string(from: Date()))"])
121
+
122
+ let message = "[iOS] Send SDK initialization successful event \(formatter.string(from: Date()))"
123
+ print("[react-native-firework-sdk] [swift] \(message)")
124
+
125
+ sendEvent(withName: FWEventName.LogMessage.rawValue, body: ["message": message])
118
126
  #endif
119
127
 
120
128
  sendEvent(withName: FWEventName.SDKInit.rawValue, body: [:])
@@ -124,6 +132,10 @@ class FireworkSDKModule: RCTEventEmitter, FireworkVideoSDKDelegate {
124
132
  #if DEBUG
125
133
  let formatter = DateFormatter()
126
134
  formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
135
+
136
+ let message = "[iOS] Send SDK initialization failure event \(formatter.string(from: Date()))"
137
+ print("[react-native-firework-sdk] [swift] \(message)")
138
+
127
139
  sendEvent(withName: FWEventName.LogMessage.rawValue, body: ["message": "[iOS] Send SDK initialization failure event \(formatter.string(from: Date()))"])
128
140
  #endif
129
141
 
@@ -71,8 +71,11 @@ class ShoppingModule: RCTEventEmitter, FireworkVideoShoppingDelegate, CartViewCo
71
71
  #if DEBUG
72
72
  let formatter = DateFormatter()
73
73
  formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
74
+ let message1 = "[iOS] Call updateVideoProducts 1 \(formatter.string(from: Date()))"
75
+ print("[react-native-firework-sdk] [swift] \(message1)")
76
+
74
77
  sendEvent(withName: FWEventName.LogMessage.rawValue, body: [
75
- "message": "[iOS] Call updateVideoProducts 1 \(formatter.string(from: Date()))"
78
+ "message": message1
76
79
  ])
77
80
  #endif
78
81
 
@@ -83,8 +86,11 @@ class ShoppingModule: RCTEventEmitter, FireworkVideoShoppingDelegate, CartViewCo
83
86
  productHydratingMap.removeValue(forKey: Int(truncating: cbId))
84
87
 
85
88
  #if DEBUG
89
+ let message2 = "[iOS] Call updateVideoProducts 2 \(formatter.string(from: Date()))"
90
+ print("[react-native-firework-sdk] [swift] \(message2)")
91
+
86
92
  sendEvent(withName: FWEventName.LogMessage.rawValue, body: [
87
- "message": "[iOS] Call updateVideoProducts 2 \(formatter.string(from: Date()))"
93
+ "message": message2
88
94
  ])
89
95
  #endif
90
96
 
@@ -96,8 +102,11 @@ class ShoppingModule: RCTEventEmitter, FireworkVideoShoppingDelegate, CartViewCo
96
102
  let productIds = rProducts.map({ product in
97
103
  return product.productId
98
104
  }).joined(separator: ",")
105
+ let message3 = "[iOS] Call updateVideoProducts 3 productIds: \(productIds) \(formatter.string(from: Date()))"
106
+ print("[react-native-firework-sdk] [swift] \(message3)")
107
+
99
108
  sendEvent(withName: FWEventName.LogMessage.rawValue, body: [
100
- "message": "[iOS] Call updateVideoProducts 3 productIds: \(productIds) \(formatter.string(from: Date()))"
109
+ "message": message3
101
110
  ])
102
111
  #endif
103
112
 
@@ -185,9 +194,13 @@ class ShoppingModule: RCTEventEmitter, FireworkVideoShoppingDelegate, CartViewCo
185
194
  #if DEBUG
186
195
  let formatter = DateFormatter()
187
196
  formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
197
+
198
+ let message = "[iOS] Send UpdateProductDetails event productIds: \(products) and videoId: \(video.videoID) \(formatter.string(from: Date()))"
199
+ print("[react-native-firework-sdk] [swift] \(message)")
200
+
188
201
  sendEvent(
189
202
  withName: FWEventName.LogMessage.rawValue,
190
- body: ["message": "[iOS] Send UpdateProductDetails event productIds: \(products) and videoId: \(video.videoID) \(formatter.string(from: Date()))"])
203
+ body: ["message": message])
191
204
  #endif
192
205
 
193
206
  sendEvent(withName: ShoppingEventName.UpdateProductDetails.rawValue, body: ["productIds": products, "callbackId": callbackId])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-firework-sdk",
3
- "version": "1.3.1-beta.4",
3
+ "version": "1.3.1-beta.5",
4
4
  "description": "Firework React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",