@@ -107,7 +107,7 @@ public class AmplitudeSession: EventPlugin, iOSLifecycle {
107107 if adjustedProps == nil {
108108 adjustedProps = try ? JSON ( [ " name " : screenName] )
109109 } else {
110- adjustedProps? . setValue ( screenName, forKeyPath: KeyPath ( " name " ) )
110+ adjustedProps? . setValue ( screenName, forKeyPath: JSONKeyPath ( " name " ) )
111111 }
112112 screenEvent. properties = adjustedProps
113113 workingEvent = screenEvent as? T
@@ -132,7 +132,7 @@ public class AmplitudeSession: EventPlugin, iOSLifecycle {
132132 // if it's amp specific stuff, disable all the integrations except for amp.
133133 if eventName. contains ( Constants . ampPrefix) || eventName == Constants . ampSessionStartEvent || eventName == Constants . ampSessionEndEvent {
134134 var integrations = disableAllIntegrations ( integrations: trackEvent. integrations)
135- integrations? . setValue ( [ " session_id " : eventSessionID] , forKeyPath: KeyPath ( key) )
135+ integrations? . setValue ( [ " session_id " : eventSessionID] , forKeyPath: JSONKeyPath ( key) )
136136 trackEvent. integrations = integrations
137137 }
138138
@@ -186,7 +186,7 @@ extension AmplitudeSession {
186186 var result = integrations
187187 if let keys = integrations? . dictionaryValue? . keys {
188188 for key in keys {
189- result? . setValue ( false , forKeyPath: KeyPath ( key) )
189+ result? . setValue ( false , forKeyPath: JSONKeyPath ( key) )
190190 }
191191 }
192192 return result
0 commit comments