Skip to content

Commit fc60e9e

Browse files
committed
- migrate forwardLogUpdate to swift
1 parent aed9c6d commit fc60e9e

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

mParticle-Apple-SDK/mParticle.m

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,7 @@ - (void)forwardLogInstall {
189189
}
190190

191191
- (void)forwardLogUpdate {
192-
[executor executeOnMain: ^{
193-
[self.kitContainer forwardSDKCall:_cmd
194-
event:nil
195-
parameters:nil
196-
messageType:MPMessageTypeUnknown
197-
userInfo:nil
198-
];
199-
}];
192+
[innerMparticle forwardLogUpdate];
200193
}
201194

202195
#pragma mark - Public accessors and methods

mParticle-Apple-SDK/mParticle.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,14 @@ class MParticleSwift: NSObject {
6666
userInfo: nil)
6767
})
6868
}
69+
70+
func forwardLogUpdate() {
71+
executor.execute(onMain: {
72+
self.kitContainer.forwardSDKCall(#selector(self.forwardLogUpdate),
73+
event: nil,
74+
parameters: nil,
75+
messageType: .unknown,
76+
userInfo: nil)
77+
})
78+
}
6979
}

0 commit comments

Comments
 (0)