You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letcallbackName=trygetOptionalString(named:"callbackName", from: arguments, message:"HeapBridgeSupport.trackInteraction received an invalid callback name and will not complete the bridged method call.")
letidentity=trygetRequiredString(named:"identity", from: arguments, message:"HeapBridgeSupport.identify received an invalid identity and will not complete the bridged method call.")
HeapLogger.shared.debug("HeapBridgeSupport.\(methodName) received an event without an interaction type and will not complete the bridged method call.")
303
+
throwInvocationError.invalidParameters
304
+
}
305
+
306
+
iflet builtinName = rawValue as?String{
307
+
switch builtinName {
308
+
case"unspecified":return.unspecified
309
+
case"click":return.click
310
+
case"touch":return.touch
311
+
case"change":return.change
312
+
case"submit":return.submit
313
+
default:
314
+
HeapLogger.shared.debug("HeapBridgeSupport.\(methodName) received an an unknown interaction type, \(builtinName), and will not complete the bridged method call.")
315
+
throwInvocationError.invalidParameters
316
+
}
317
+
}
318
+
319
+
iflet rawDictionary = rawValue as?[String:Any]{
320
+
iflet name =rawDictionary["custom"]as?String{
321
+
return.custom(name)
322
+
}
323
+
324
+
iflet value =rawDictionary["builtin"]as?Int{
325
+
return.builtin(value)
326
+
}
327
+
}
328
+
329
+
HeapLogger.shared.debug("HeapBridgeSupport.\(methodName) received an an invalid interaction type and will not complete the bridged method call.")
expect(event.interaction.kind).to(equal(interaction), description:"The event does not match expected Kind")
121
-
expect(event.interaction.nodes).to(equal(nodes), description:"The event does not match expected Nodes")
120
+
expect(file: file, line: line,event.interaction.kind).to(equal(interaction), description:"The event does not match expected Kind")
121
+
expect(file: file, line: line,event.interaction.nodes).to(equal(nodes), description:"The event does not match expected Nodes")
122
122
iflet callbackName = callbackName {
123
-
expect(event.interaction.callbackName).to(equal(callbackName), description:"The event does not match expected callbackName")
123
+
expect(file: file, line: line,event.interaction.callbackName).to(equal(callbackName), description:"The event does not match expected callbackName")
124
124
}else{
125
-
expect(event.interaction.hasCallbackName).to(beFalse(), description:"The event flag hasCallbackName for callbackName is mismatched, expected false flag for nil value")
125
+
expect(file: file, line: line,event.interaction.hasCallbackName).to(beFalse(), description:"The event flag hasCallbackName for callbackName is mismatched, expected false flag for nil value")
126
126
}
127
127
128
128
expect(file: file, line: line, hasPageviewInfo).to(beTrue(), description:"The event must have pageview info")
0 commit comments