@oscilar/react-native-oscilar-module 3.0.4 → 3.0.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.
- package/OscilarModule.podspec +1 -1
- package/ios/OscilarModule.mm +3 -0
- package/ios/OscilarModule.swift +15 -0
- package/package.json +1 -1
package/OscilarModule.podspec
CHANGED
package/ios/OscilarModule.mm
CHANGED
|
@@ -36,6 +36,9 @@ RCT_EXTERN_METHOD(generateTransactionIDWithFlowTypeAndUserInfo:(NSString*)flowTy
|
|
|
36
36
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
37
37
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
38
38
|
|
|
39
|
+
RCT_EXTERN_METHOD(getIntegrationHealthInfo:(RCTPromiseResolveBlock)resolve
|
|
40
|
+
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
41
|
+
|
|
39
42
|
+ (BOOL)requiresMainQueueSetup
|
|
40
43
|
{
|
|
41
44
|
return NO;
|
package/ios/OscilarModule.swift
CHANGED
|
@@ -172,4 +172,19 @@ class OscilarModule: NSObject {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
@objc(getIntegrationHealthInfo:withRejecter:)
|
|
176
|
+
func getIntegrationHealthInfo(
|
|
177
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
178
|
+
reject: @escaping RCTPromiseRejectBlock
|
|
179
|
+
) -> Void {
|
|
180
|
+
Task {
|
|
181
|
+
do {
|
|
182
|
+
let info = try await Oscilar.shared.getIntegrationHealthInfo()
|
|
183
|
+
resolve(info)
|
|
184
|
+
} catch {
|
|
185
|
+
reject(nil, nil, error)
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
175
190
|
}
|