@procivis/react-native-one-core 1.33398.0 → 1.41710.0
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/README.md +8 -26
- package/android/build.gradle +27 -3
- package/android/build.gradle_opensource +121 -0
- package/android/libs/core-reactnative-compatible-2025.0305.1.aar +0 -0
- package/android/src/main/AndroidManifest.xml +5 -2
- package/android/src/main/java/ch/procivis/one/core/Deserialize.kt +5 -5
- package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +3 -2
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +99 -12
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +3 -4
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +6 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadRunner.kt +123 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt +23 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadViewManager.kt_opensource +20 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/PinPadWrapper.kt +396 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/RegistrationManager.kt +59 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/TokenManager.kt +48 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt +256 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/UbiquKeyStorage.kt_opensource +51 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/Util.kt +74 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityRequest.kt +9 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/CreateIdentityResponse.kt +9 -0
- package/android/src/main/java/ch/procivis/one/core/ubiqu/dataformats/RegisterRSEResponse.kt +10 -0
- package/core-sdk.json +6 -6
- package/dist/index.d.ts +7 -0
- package/dist/index.js +10 -4
- package/dist/src/cache.d.ts +0 -4
- package/dist/src/cache.js +0 -5
- package/dist/src/config.d.ts +11 -3
- package/dist/src/core.d.ts +8 -4
- package/dist/src/core.js +67 -0
- package/dist/src/credential.d.ts +1 -0
- package/dist/src/credentialSchema.d.ts +5 -2
- package/dist/src/credentialSchema.js +2 -0
- package/dist/src/history.d.ts +19 -4
- package/dist/src/history.js +10 -1
- package/dist/src/organisation.d.ts +8 -0
- package/dist/src/organisation.js +1 -0
- package/dist/src/proof.d.ts +19 -4
- package/dist/src/proof.js +13 -5
- package/dist/src/trust.d.ts +1 -1
- package/dist/src/ubiqu.d.ts +49 -0
- package/dist/src/ubiqu.js +69 -0
- package/ios/Deserialize.swift +57 -19
- package/ios/EventEmitter.swift +79 -0
- package/ios/ProcivisOneCoreModule.m +30 -4
- package/ios/ProcivisOneCoreModule.swift +141 -14
- package/ios/ProcivisRNOneCore.xcodeproj/project.pbxproj +28 -26
- package/ios/RSEKeyStorage.swift +587 -0
- package/ios/RSEKeyStorage.swift_opensource +49 -0
- package/ios/RSEPinPad.swift +74 -0
- package/ios/RSEPinPad.swift_opensource +21 -0
- package/ios/RSEPinPadManager.m +19 -0
- package/ios/Serialize.swift +40 -20
- package/ios/UBQKit.xcframework/Info.plist +44 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Assets.car +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFNetworking.h +41 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Constants.h +222 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ErrorDomains.h +68 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ProtocolBase.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/Settings.h +120 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit-Swift.h +761 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQKit.h +56 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Headers/UBQPacket.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Info.plist +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.abi.json +89006 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.private.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/Modules/module.modulemap +11 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/UBQKit +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/_CodeSignature/CodeResources +597 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/certs +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/checksums +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/pinning_pub +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/static +0 -0
- package/ios/UBQKit.xcframework/ios-arm64/UBQKit.framework/stream +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Assets.car +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFCompatibilityMacros.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFHTTPSessionManager.h +304 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworkReachabilityManager.h +216 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFNetworking.h +41 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFPlainTextRequestSerializer.h +16 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFSecurityPolicy.h +156 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLRequestSerialization.h +479 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLResponseSerialization.h +310 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/AFURLSessionManager.h +501 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/CardRequestProtocol.h +72 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Constants.h +222 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DeviceBindProtocol.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/DomainSecurityModule.h +43 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ErrorDomains.h +68 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/FreeAssetProtocol.h +40 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/GDataXMLNode.h +214 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSDictionary+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSFileManager+Utilities.h +20 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSString+Utilities.h +23 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/NSURL+Utilities.h +12 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ProtocolBase.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/ResetPinProtocol.h +45 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/Settings.h +120 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequest.h +58 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBaseProcessor.h +37 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestBindProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestNullProcessor.h +28 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestResetPinProcessor.h +35 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUnlockProcessor.h +31 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQCardRequestUseProcessor.h +34 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit-Swift.h +1522 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQKit.h +56 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Headers/UBQPacket.h +38 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Info.plist +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.abi.json +89006 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +89006 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/UBQKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1099 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/Modules/module.modulemap +11 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/UBQKit +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/_CodeSignature/CodeResources +652 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/certs +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/checksums +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/pinning_pub +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/static +0 -0
- package/ios/UBQKit.xcframework/ios-arm64_x86_64-simulator/UBQKit.framework/stream +0 -0
- package/ios/Util.swift +1 -0
- package/package.json +5 -4
- package/react-native-one-core.podspec +4 -5
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import React
|
|
3
|
+
import ProcivisOneCore
|
|
4
|
+
|
|
5
|
+
@objc(ProcivisOneCoreEventEmitter)
|
|
6
|
+
class ProcivisOneCoreEventEmitter: NSObject {
|
|
7
|
+
|
|
8
|
+
enum EventName: String, CaseIterable {
|
|
9
|
+
|
|
10
|
+
case rseShowPin = "RSE_SHOW_PIN"
|
|
11
|
+
case rseHidePin = "RSE_HIDE_PIN"
|
|
12
|
+
case rsePinStageChanged = "RSE_PIN_STAGE"
|
|
13
|
+
case rseDigitsEntered = "RSE_DIGITS_ENTERED"
|
|
14
|
+
case rseIncorrectPin = "RSE_INCORRECT_PIN"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
enum PinFlowType: String {
|
|
18
|
+
|
|
19
|
+
case subscribe = "SUBSCRIBE"
|
|
20
|
+
case transaction = "TRANSACTION"
|
|
21
|
+
case addBiometrics = "ADD_BIOMETRICS"
|
|
22
|
+
case changePin = "CHANGE_PIN"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
enum PinFlowStage: String {
|
|
26
|
+
|
|
27
|
+
case checkCurrentPin = "CHECK_CURRENT_PIN"
|
|
28
|
+
case newFirstPin = "NEW_FIRST_PIN"
|
|
29
|
+
case newSecondPin = "NEW_SECOND_PIN"
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static let shared: ProcivisOneCoreEventEmitter = {
|
|
33
|
+
return ProcivisOneCoreEventEmitter()
|
|
34
|
+
}()
|
|
35
|
+
weak var eventEmitter: RCTEventEmitter?
|
|
36
|
+
|
|
37
|
+
static var supportedEvents: [String] {
|
|
38
|
+
return EventName.allCases.map(\.rawValue)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static var hasListeners: Bool = false
|
|
42
|
+
|
|
43
|
+
func sendShowPinEvent(flowType: PinFlowType, stage: PinFlowStage) throws {
|
|
44
|
+
guard ProcivisOneCoreEventEmitter.hasListeners else {
|
|
45
|
+
throw NativeKeyStorageError.Unknown(reason: "No UI listener")
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
self.sendEvent(with: .rseShowPin, body: [
|
|
49
|
+
"flowType": flowType.rawValue,
|
|
50
|
+
"stage": stage.rawValue,
|
|
51
|
+
])
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
func sendHidePinEvent() {
|
|
55
|
+
self.sendEvent(with: .rseHidePin, body: nil)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
func sendPinStageChangeEvent(stage: PinFlowStage) {
|
|
59
|
+
self.sendEvent(with: .rsePinStageChanged, body: [
|
|
60
|
+
"stage": stage.rawValue,
|
|
61
|
+
])
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
func sendDigitsEnteredEvent(amount: Int) {
|
|
65
|
+
self.sendEvent(with: .rseDigitsEntered, body: [
|
|
66
|
+
"digitsEntered": amount,
|
|
67
|
+
])
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
func sendIncorrectPinEvent(attemptsLeft: Int) {
|
|
71
|
+
self.sendEvent(with: .rseIncorrectPin, body: [
|
|
72
|
+
"attemptsLeft": attemptsLeft,
|
|
73
|
+
])
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private func sendEvent(with name: EventName!, body: Any!) {
|
|
77
|
+
self.eventEmitter?.sendEvent(withName: name.rawValue, body: body)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -6,14 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
#import <Foundation/Foundation.h>
|
|
8
8
|
#import <React/RCTBridgeModule.h>
|
|
9
|
+
#import <React/RCTEventEmitter.h>
|
|
9
10
|
|
|
10
|
-
@interface RCT_EXTERN_MODULE(ProcivisOneCoreModule,
|
|
11
|
+
@interface RCT_EXTERN_MODULE(ProcivisOneCoreModule, RCTEventEmitter)
|
|
11
12
|
|
|
12
13
|
+ (BOOL)requiresMainQueueSetup
|
|
13
14
|
{
|
|
14
15
|
return NO;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
RCT_EXTERN_METHOD(supportedEvents)
|
|
19
|
+
|
|
17
20
|
RCT_EXTERN_METHOD(initialize:(NSString *)configJson
|
|
18
21
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
19
22
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -24,7 +27,11 @@ RCT_EXTERN_METHOD(getVersion:(RCTPromiseResolveBlock)resolve
|
|
|
24
27
|
RCT_EXTERN_METHOD(getConfig:(RCTPromiseResolveBlock)resolve
|
|
25
28
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
26
29
|
|
|
27
|
-
RCT_EXTERN_METHOD(createOrganisation:(
|
|
30
|
+
RCT_EXTERN_METHOD(createOrganisation:(NSDictionary *)request
|
|
31
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
32
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
33
|
+
|
|
34
|
+
RCT_EXTERN_METHOD(upsertOrganisation:(NSDictionary *)request
|
|
28
35
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
29
36
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
30
37
|
|
|
@@ -158,7 +165,7 @@ RCT_EXTERN_METHOD(getProofs:(NSDictionary *)query
|
|
|
158
165
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
159
166
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
160
167
|
|
|
161
|
-
RCT_EXTERN_METHOD(
|
|
168
|
+
RCT_EXTERN_METHOD(deleteProof:(NSString *)proofId
|
|
162
169
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
163
170
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
164
171
|
|
|
@@ -168,7 +175,7 @@ RCT_EXTERN_METHOD(proposeProof:(NSString *)exchange
|
|
|
168
175
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
169
176
|
|
|
170
177
|
RCT_EXTERN_METHOD(checkRevocation:(NSArray *)credentialIds
|
|
171
|
-
|
|
178
|
+
forceRefresh:(BOOL *)forceRefresh
|
|
172
179
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
173
180
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
174
181
|
|
|
@@ -255,4 +262,23 @@ RCT_EXTERN_METHOD(deleteCache:(NSArray *)types
|
|
|
255
262
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
256
263
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
257
264
|
|
|
265
|
+
RCT_EXTERN_METHOD(changeRSEPin:(RCTPromiseResolveBlock)resolve
|
|
266
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
267
|
+
|
|
268
|
+
RCT_EXTERN_METHOD(areRSEBiometricsSupported:(RCTPromiseResolveBlock)resolve
|
|
269
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
270
|
+
|
|
271
|
+
RCT_EXTERN_METHOD(areRSEBiometricsEnabled:(RCTPromiseResolveBlock)resolve
|
|
272
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
273
|
+
|
|
274
|
+
RCT_EXTERN_METHOD(setRSEBiometrics:(BOOL *)enabled
|
|
275
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
276
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
277
|
+
|
|
278
|
+
RCT_EXTERN_METHOD(resetRSE:(RCTPromiseResolveBlock)resolve
|
|
279
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
280
|
+
|
|
281
|
+
RCT_EXTERN_METHOD(resetRSEPinFlow:(RCTPromiseResolveBlock)resolve
|
|
282
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
283
|
+
|
|
258
284
|
@end
|
|
@@ -5,17 +5,21 @@
|
|
|
5
5
|
//
|
|
6
6
|
|
|
7
7
|
import Foundation
|
|
8
|
+
import React
|
|
9
|
+
import ProcivisOneCore
|
|
8
10
|
|
|
9
11
|
@objc(ProcivisOneCoreModule)
|
|
10
|
-
class ProcivisOneCoreModule:
|
|
11
|
-
private static let TAG = "ProcivisOneCoreModule"
|
|
12
|
-
private var core: OneCoreBindingProtocol? = nil
|
|
12
|
+
class ProcivisOneCoreModule: RCTEventEmitter {
|
|
13
|
+
private static let TAG = "ProcivisOneCoreModule"
|
|
14
|
+
private var core: OneCoreBindingProtocol? = nil
|
|
15
|
+
private var rseKeyStorage: NativeKeyStorage? = nil
|
|
13
16
|
|
|
14
17
|
@objc(initialize:resolver:rejecter:)
|
|
15
18
|
func initialize(
|
|
16
19
|
configJson: String,
|
|
17
20
|
resolve: @escaping RCTPromiseResolveBlock,
|
|
18
21
|
reject: @escaping RCTPromiseRejectBlock) {
|
|
22
|
+
ProcivisOneCoreEventEmitter.shared.eventEmitter = self
|
|
19
23
|
syncCall(resolve, reject) {
|
|
20
24
|
guard let dataDirPath = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true).first else {
|
|
21
25
|
throw BindingError.ErrorResponse(data: ErrorResponseBindingDto(code: "BR_0000", message: "invalid DataDir", cause: nil))
|
|
@@ -28,7 +32,10 @@ class ProcivisOneCoreModule: NSObject {
|
|
|
28
32
|
throw BindingError.ErrorResponse(data: ErrorResponseBindingDto(code: "BR_0183", message: "core already initialized", cause: nil))
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
if (RSEKeyStorage.available) {
|
|
36
|
+
rseKeyStorage = RSEKeyStorage()
|
|
37
|
+
}
|
|
38
|
+
self.core = try initializeCore(configJson: configJson, dataDirPath: dataDirPath, nativeSecureElement: SecureEnclaveKeyStorage(), remoteSecureElement: rseKeyStorage, bleCentral: IOSBLECentral(), blePeripheral: IOSBLEPeripheral());
|
|
32
39
|
return nil as NSDictionary?;
|
|
33
40
|
}
|
|
34
41
|
}
|
|
@@ -62,11 +69,22 @@ class ProcivisOneCoreModule: NSObject {
|
|
|
62
69
|
|
|
63
70
|
@objc(createOrganisation:resolver:rejecter:)
|
|
64
71
|
func createOrganisation(
|
|
65
|
-
|
|
72
|
+
request: NSDictionary,
|
|
73
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
74
|
+
reject: @escaping RCTPromiseRejectBlock) {
|
|
75
|
+
asyncCall(resolve, reject) {
|
|
76
|
+
return try await self.getCore().createOrganisation(request: deserializeCreateOrganisationRequest(request: request));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@objc(upsertOrganisation:resolver:rejecter:)
|
|
81
|
+
func upsertOrganisation(
|
|
82
|
+
request: NSDictionary,
|
|
66
83
|
resolve: @escaping RCTPromiseResolveBlock,
|
|
67
84
|
reject: @escaping RCTPromiseRejectBlock) {
|
|
68
85
|
asyncCall(resolve, reject) {
|
|
69
|
-
|
|
86
|
+
try await self.getCore().upsertOrganisation(request: deserializeUpsertOrganisationRequest(request: request));
|
|
87
|
+
return nil as NSDictionary?;
|
|
70
88
|
}
|
|
71
89
|
}
|
|
72
90
|
|
|
@@ -405,7 +423,7 @@ class ProcivisOneCoreModule: NSObject {
|
|
|
405
423
|
reject: @escaping RCTPromiseRejectBlock) {
|
|
406
424
|
asyncCall(resolve, reject) {
|
|
407
425
|
let result = try await self.getCore().getProof(proofId: proofId);
|
|
408
|
-
return serialize(
|
|
426
|
+
return serialize(proofResponse: result)
|
|
409
427
|
}
|
|
410
428
|
}
|
|
411
429
|
|
|
@@ -421,13 +439,14 @@ class ProcivisOneCoreModule: NSObject {
|
|
|
421
439
|
}
|
|
422
440
|
}
|
|
423
441
|
|
|
424
|
-
@objc(
|
|
425
|
-
func
|
|
442
|
+
@objc(deleteProof:resolver:rejecter:)
|
|
443
|
+
func deleteProof(
|
|
426
444
|
proofId: String,
|
|
427
445
|
resolve: @escaping RCTPromiseResolveBlock,
|
|
428
446
|
reject: @escaping RCTPromiseRejectBlock) {
|
|
429
447
|
asyncCall(resolve, reject) {
|
|
430
|
-
|
|
448
|
+
try await self.getCore().deleteProof(proofId: proofId)
|
|
449
|
+
return nil as NSDictionary?;
|
|
431
450
|
}
|
|
432
451
|
}
|
|
433
452
|
|
|
@@ -443,16 +462,15 @@ class ProcivisOneCoreModule: NSObject {
|
|
|
443
462
|
}
|
|
444
463
|
}
|
|
445
464
|
|
|
446
|
-
@objc(checkRevocation:
|
|
465
|
+
@objc(checkRevocation:forceRefresh:resolver:rejecter:)
|
|
447
466
|
func checkRevocation(
|
|
448
467
|
credentialIds: NSArray,
|
|
449
|
-
|
|
468
|
+
forceRefresh: Bool,
|
|
450
469
|
resolve: @escaping RCTPromiseResolveBlock,
|
|
451
470
|
reject: @escaping RCTPromiseRejectBlock) {
|
|
452
471
|
asyncCall(resolve, reject) {
|
|
453
472
|
let ids = try deserializeIds(credentialIds);
|
|
454
|
-
let
|
|
455
|
-
let result = try await self.getCore().checkRevocation(credentialIds: ids, bypassCache: bypass);
|
|
473
|
+
let result = try await self.getCore().checkRevocation(credentialIds: ids, forceRefresh: forceRefresh);
|
|
456
474
|
return result.map {
|
|
457
475
|
serialize(credentialRevocationCheckResponse: $0)
|
|
458
476
|
}
|
|
@@ -691,7 +709,116 @@ class ProcivisOneCoreModule: NSObject {
|
|
|
691
709
|
asyncCall(resolve, reject) {
|
|
692
710
|
try await self.getCore().uninitialize(deleteData: deleteData);
|
|
693
711
|
self.core = nil
|
|
712
|
+
if deleteData, let rseKeyStorage = self.rseKeyStorage as? RSEKeyStorage {
|
|
713
|
+
try await rseKeyStorage.delete()
|
|
714
|
+
}
|
|
715
|
+
return nil as NSDictionary?;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// MARK: Ubiqu specific methods
|
|
720
|
+
|
|
721
|
+
@objc(changeRSEPin:rejecter:)
|
|
722
|
+
func changeRSEPin(
|
|
723
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
724
|
+
reject: @escaping RCTPromiseRejectBlock) {
|
|
725
|
+
asyncCall(resolve, reject) {
|
|
726
|
+
guard let rseKeyStorage = self.rseKeyStorage as? RSEKeyStorage else {
|
|
727
|
+
throw BindingError.ErrorResponse(data: ErrorResponseBindingDto(code: "BR_0184", message: "ubiqu not initialized", cause: nil))
|
|
728
|
+
}
|
|
729
|
+
try await rseKeyStorage.changePin()
|
|
730
|
+
return nil as NSDictionary?;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
@objc(areRSEBiometricsSupported:rejecter:)
|
|
735
|
+
func areRSEBiometricsSupported(
|
|
736
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
737
|
+
reject: @escaping RCTPromiseRejectBlock) {
|
|
738
|
+
asyncCall(resolve, reject) {
|
|
739
|
+
guard let rseKeyStorage = self.rseKeyStorage as? RSEKeyStorage else {
|
|
740
|
+
throw BindingError.ErrorResponse(data: ErrorResponseBindingDto(code: "BR_0184", message: "ubiqu not initialized", cause: nil))
|
|
741
|
+
}
|
|
742
|
+
return rseKeyStorage.areBiometricsSupported
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
@objc(areRSEBiometricsEnabled:rejecter:)
|
|
747
|
+
func areRSEBiometricsEnabled(
|
|
748
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
749
|
+
reject: @escaping RCTPromiseRejectBlock) {
|
|
750
|
+
asyncCall(resolve, reject) {
|
|
751
|
+
guard let rseKeyStorage = self.rseKeyStorage as? RSEKeyStorage else {
|
|
752
|
+
throw BindingError.ErrorResponse(data: ErrorResponseBindingDto(code: "BR_0184", message: "ubiqu not initialized", cause: nil))
|
|
753
|
+
}
|
|
754
|
+
return rseKeyStorage.areBiometricsEnabled
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
@objc(setRSEBiometrics:resolver:rejecter:)
|
|
759
|
+
func setRSEBiometrics(
|
|
760
|
+
enabled: Bool,
|
|
761
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
762
|
+
reject: @escaping RCTPromiseRejectBlock) {
|
|
763
|
+
asyncCall(resolve, reject) {
|
|
764
|
+
guard let rseKeyStorage = self.rseKeyStorage as? RSEKeyStorage else {
|
|
765
|
+
throw BindingError.ErrorResponse(data: ErrorResponseBindingDto(code: "BR_0184", message: "ubiqu not initialized", cause: nil))
|
|
766
|
+
}
|
|
767
|
+
if (enabled) {
|
|
768
|
+
try await rseKeyStorage.enableBiometrics()
|
|
769
|
+
} else {
|
|
770
|
+
try rseKeyStorage.disableBiometrics()
|
|
771
|
+
}
|
|
772
|
+
return nil as NSDictionary?;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
@objc(resetRSE:rejecter:)
|
|
777
|
+
func resetRSE(
|
|
778
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
779
|
+
reject: @escaping RCTPromiseRejectBlock) {
|
|
780
|
+
asyncCall(resolve, reject) {
|
|
781
|
+
if let rseKeyStorage = self.rseKeyStorage as? RSEKeyStorage {
|
|
782
|
+
try await rseKeyStorage.delete()
|
|
783
|
+
}
|
|
784
|
+
return nil as NSDictionary?;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
@objc(resetRSEPinFlow:rejecter:)
|
|
789
|
+
func resetRSEPinFlow(
|
|
790
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
791
|
+
reject: @escaping RCTPromiseRejectBlock) {
|
|
792
|
+
asyncCall(resolve, reject) {
|
|
793
|
+
guard let rseKeyStorage = self.rseKeyStorage as? RSEKeyStorage else {
|
|
794
|
+
throw BindingError.ErrorResponse(data: ErrorResponseBindingDto(code: "BR_0184", message: "ubiqu not initialized", cause: nil))
|
|
795
|
+
}
|
|
796
|
+
try await rseKeyStorage.resetPinFlow()
|
|
694
797
|
return nil as NSDictionary?;
|
|
695
798
|
}
|
|
696
799
|
}
|
|
697
800
|
}
|
|
801
|
+
|
|
802
|
+
// MARK: RCTEventEmitter
|
|
803
|
+
|
|
804
|
+
extension ProcivisOneCoreModule {
|
|
805
|
+
|
|
806
|
+
override func supportedEvents() -> [String]! {
|
|
807
|
+
return ProcivisOneCoreEventEmitter.supportedEvents
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
override func startObserving() {
|
|
811
|
+
ProcivisOneCoreEventEmitter.hasListeners = true
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
override func stopObserving() {
|
|
815
|
+
ProcivisOneCoreEventEmitter.hasListeners = false
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
override func sendEvent(withName name: String!, body: Any!) {
|
|
819
|
+
guard ProcivisOneCoreEventEmitter.hasListeners else {
|
|
820
|
+
return
|
|
821
|
+
}
|
|
822
|
+
super.sendEvent(withName: name, body: body)
|
|
823
|
+
}
|
|
824
|
+
}
|
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
1522CCF12D5C909D002AC200 /* EventEmitter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1522CCF02D5C9095002AC200 /* EventEmitter.swift */; };
|
|
11
|
+
15260DE82D561D4300797D80 /* UBQKit.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15260DE72D561D4300797D80 /* UBQKit.xcframework */; };
|
|
12
|
+
15260DEA2D561D6900797D80 /* RSEKeyStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15260DE92D561D6900797D80 /* RSEKeyStorage.swift */; };
|
|
13
|
+
15260DEC2D561D8900797D80 /* RSEPinPadManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 15260DEB2D561D7F00797D80 /* RSEPinPadManager.m */; };
|
|
14
|
+
15260DF02D56203600797D80 /* RSEPinPad.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15260DEF2D56203000797D80 /* RSEPinPad.swift */; };
|
|
15
|
+
339DE1322A4EB16400F68DE2 /* ProcivisOneCoreFFI.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 339DE1312A4EB16300F68DE2 /* ProcivisOneCoreFFI.xcframework */; };
|
|
16
|
+
339DE1322A4EB16400F68DE2 /* ProcivisOneCore.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 339DE1312A4EB16300F68DE2 /* ProcivisOneCore.xcframework */; };
|
|
12
17
|
339E6C092A7265970085D7EE /* Util.swift in Sources */ = {isa = PBXBuildFile; fileRef = 339E6C082A7265970085D7EE /* Util.swift */; };
|
|
13
18
|
33A474252A86532B00C94287 /* Serialize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33A474242A86532B00C94287 /* Serialize.swift */; };
|
|
14
19
|
33AFE82E2ADD59F000137FCD /* Deserialize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33AFE82D2ADD59F000137FCD /* Deserialize.swift */; };
|
|
15
|
-
33CB57402C3E6ED400A303BB /* IOSBLEModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CB573D2C3E6ED400A303BB /* IOSBLEModels.swift */; };
|
|
16
|
-
33CB57412C3E6ED400A303BB /* IOSBLEPeripheral.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CB573E2C3E6ED400A303BB /* IOSBLEPeripheral.swift */; };
|
|
17
|
-
33CB57422C3E6ED400A303BB /* IOSBLECentral.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CB573F2C3E6ED400A303BB /* IOSBLECentral.swift */; };
|
|
18
|
-
33CB57442C3E6EE600A303BB /* SecureEnclaveKeyStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CB57432C3E6EE600A303BB /* SecureEnclaveKeyStorage.swift */; };
|
|
19
20
|
33F2711B292F97400090E4DB /* ProcivisOneCoreModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 33F27119292F97400090E4DB /* ProcivisOneCoreModule.m */; };
|
|
20
21
|
33F2711C292F97400090E4DB /* ProcivisOneCoreModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33F2711A292F97400090E4DB /* ProcivisOneCoreModule.swift */; };
|
|
21
22
|
/* End PBXBuildFile section */
|
|
@@ -34,16 +35,16 @@
|
|
|
34
35
|
|
|
35
36
|
/* Begin PBXFileReference section */
|
|
36
37
|
134814201AA4EA6300B7C361 /* libProcivisRNOneCore.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libProcivisRNOneCore.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
38
|
+
1522CCF02D5C9095002AC200 /* EventEmitter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventEmitter.swift; sourceTree = "<group>"; };
|
|
39
|
+
15260DE72D561D4300797D80 /* UBQKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = UBQKit.xcframework; sourceTree = "<group>"; };
|
|
40
|
+
15260DE92D561D6900797D80 /* RSEKeyStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RSEKeyStorage.swift; sourceTree = "<group>"; };
|
|
41
|
+
15260DEB2D561D7F00797D80 /* RSEPinPadManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RSEPinPadManager.m; sourceTree = "<group>"; };
|
|
42
|
+
15260DEF2D56203000797D80 /* RSEPinPad.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RSEPinPad.swift; sourceTree = "<group>"; };
|
|
37
43
|
1542F7E72832BE9B005D3C06 /* react-native-one-core-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "react-native-one-core-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
38
|
-
339DE1312A4EB16300F68DE2 /*
|
|
39
|
-
339DE1332A4EB17E00F68DE2 /* one_core.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = one_core.swift; sourceTree = "<group>"; };
|
|
44
|
+
339DE1312A4EB16300F68DE2 /* ProcivisOneCore.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = ProcivisOneCore.xcframework; sourceTree = "<group>"; };
|
|
40
45
|
339E6C082A7265970085D7EE /* Util.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Util.swift; sourceTree = "<group>"; };
|
|
41
46
|
33A474242A86532B00C94287 /* Serialize.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Serialize.swift; sourceTree = "<group>"; };
|
|
42
47
|
33AFE82D2ADD59F000137FCD /* Deserialize.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Deserialize.swift; sourceTree = "<group>"; };
|
|
43
|
-
33CB573D2C3E6ED400A303BB /* IOSBLEModels.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IOSBLEModels.swift; sourceTree = "<group>"; };
|
|
44
|
-
33CB573E2C3E6ED400A303BB /* IOSBLEPeripheral.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IOSBLEPeripheral.swift; sourceTree = "<group>"; };
|
|
45
|
-
33CB573F2C3E6ED400A303BB /* IOSBLECentral.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IOSBLECentral.swift; sourceTree = "<group>"; };
|
|
46
|
-
33CB57432C3E6EE600A303BB /* SecureEnclaveKeyStorage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecureEnclaveKeyStorage.swift; sourceTree = "<group>"; };
|
|
47
48
|
33F27119292F97400090E4DB /* ProcivisOneCoreModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProcivisOneCoreModule.m; sourceTree = "<group>"; };
|
|
48
49
|
33F2711A292F97400090E4DB /* ProcivisOneCoreModule.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ProcivisOneCoreModule.swift; sourceTree = "<group>"; };
|
|
49
50
|
/* End PBXFileReference section */
|
|
@@ -53,7 +54,9 @@
|
|
|
53
54
|
isa = PBXFrameworksBuildPhase;
|
|
54
55
|
buildActionMask = 2147483647;
|
|
55
56
|
files = (
|
|
56
|
-
339DE1322A4EB16400F68DE2 /*
|
|
57
|
+
339DE1322A4EB16400F68DE2 /* ProcivisOneCoreFFI.xcframework in Frameworks */,
|
|
58
|
+
15260DE82D561D4300797D80 /* UBQKit.xcframework in Frameworks */,
|
|
59
|
+
339DE1322A4EB16400F68DE2 /* ProcivisOneCore.xcframework in Frameworks */,
|
|
57
60
|
);
|
|
58
61
|
runOnlyForDeploymentPostprocessing = 0;
|
|
59
62
|
};
|
|
@@ -71,16 +74,16 @@
|
|
|
71
74
|
58B511D21A9E6C8500147676 = {
|
|
72
75
|
isa = PBXGroup;
|
|
73
76
|
children = (
|
|
77
|
+
1522CCF02D5C9095002AC200 /* EventEmitter.swift */,
|
|
78
|
+
15260DEF2D56203000797D80 /* RSEPinPad.swift */,
|
|
79
|
+
15260DEB2D561D7F00797D80 /* RSEPinPadManager.m */,
|
|
80
|
+
15260DE92D561D6900797D80 /* RSEKeyStorage.swift */,
|
|
81
|
+
15260DE72D561D4300797D80 /* UBQKit.xcframework */,
|
|
74
82
|
33F27119292F97400090E4DB /* ProcivisOneCoreModule.m */,
|
|
75
|
-
339DE1312A4EB16300F68DE2 /*
|
|
76
|
-
339DE1332A4EB17E00F68DE2 /* one_core.swift */,
|
|
83
|
+
339DE1312A4EB16300F68DE2 /* ProcivisOneCore.xcframework */,
|
|
77
84
|
33F2711A292F97400090E4DB /* ProcivisOneCoreModule.swift */,
|
|
78
85
|
339E6C082A7265970085D7EE /* Util.swift */,
|
|
79
86
|
33AFE82D2ADD59F000137FCD /* Deserialize.swift */,
|
|
80
|
-
33CB573F2C3E6ED400A303BB /* IOSBLECentral.swift */,
|
|
81
|
-
33CB573D2C3E6ED400A303BB /* IOSBLEModels.swift */,
|
|
82
|
-
33CB573E2C3E6ED400A303BB /* IOSBLEPeripheral.swift */,
|
|
83
|
-
33CB57432C3E6EE600A303BB /* SecureEnclaveKeyStorage.swift */,
|
|
84
87
|
33A474242A86532B00C94287 /* Serialize.swift */,
|
|
85
88
|
1542F7E72832BE9B005D3C06 /* react-native-one-core-Bridging-Header.h */,
|
|
86
89
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
@@ -145,16 +148,15 @@
|
|
|
145
148
|
isa = PBXSourcesBuildPhase;
|
|
146
149
|
buildActionMask = 2147483647;
|
|
147
150
|
files = (
|
|
151
|
+
15260DEC2D561D8900797D80 /* RSEPinPadManager.m in Sources */,
|
|
148
152
|
33F2711C292F97400090E4DB /* ProcivisOneCoreModule.swift in Sources */,
|
|
149
153
|
33F2711B292F97400090E4DB /* ProcivisOneCoreModule.m in Sources */,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
15260DEA2D561D6900797D80 /* RSEKeyStorage.swift in Sources */,
|
|
155
|
+
1522CCF12D5C909D002AC200 /* EventEmitter.swift in Sources */,
|
|
156
|
+
15260DF02D56203600797D80 /* RSEPinPad.swift in Sources */,
|
|
153
157
|
33AFE82E2ADD59F000137FCD /* Deserialize.swift in Sources */,
|
|
154
158
|
339E6C092A7265970085D7EE /* Util.swift in Sources */,
|
|
155
159
|
33A474252A86532B00C94287 /* Serialize.swift in Sources */,
|
|
156
|
-
33CB57402C3E6ED400A303BB /* IOSBLEModels.swift in Sources */,
|
|
157
|
-
33CB57442C3E6EE600A303BB /* SecureEnclaveKeyStorage.swift in Sources */,
|
|
158
160
|
);
|
|
159
161
|
runOnlyForDeploymentPostprocessing = 0;
|
|
160
162
|
};
|
|
@@ -261,7 +263,7 @@
|
|
|
261
263
|
OTHER_LDFLAGS = "-ObjC";
|
|
262
264
|
PRODUCT_NAME = ProcivisRNOneCore;
|
|
263
265
|
SKIP_INSTALL = YES;
|
|
264
|
-
SWIFT_OBJC_BRIDGING_HEADER = "react-native-
|
|
266
|
+
SWIFT_OBJC_BRIDGING_HEADER = "react-native-one-core-Bridging-Header.h";
|
|
265
267
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
266
268
|
SWIFT_VERSION = 5.0;
|
|
267
269
|
};
|
|
@@ -286,7 +288,7 @@
|
|
|
286
288
|
OTHER_LDFLAGS = "-ObjC";
|
|
287
289
|
PRODUCT_NAME = ProcivisRNOneCore;
|
|
288
290
|
SKIP_INSTALL = YES;
|
|
289
|
-
SWIFT_OBJC_BRIDGING_HEADER = "react-native-
|
|
291
|
+
SWIFT_OBJC_BRIDGING_HEADER = "react-native-one-core-Bridging-Header.h";
|
|
290
292
|
SWIFT_VERSION = 5.0;
|
|
291
293
|
};
|
|
292
294
|
name = Release;
|