@procivis/react-native-one-core 1.26999.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 +71 -40
- package/android/build.gradle +46 -10
- 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 +10 -6
- package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +13 -5
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +251 -79
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCorePackage.kt +3 -4
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +13 -1
- package/android/src/main/java/ch/procivis/one/core/Util.kt +42 -10
- 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 +10 -8
- package/dist/index.js +31 -25
- package/dist/src/cache.d.ts +8 -0
- package/dist/src/cache.js +9 -0
- package/dist/src/config.d.ts +39 -6
- package/dist/src/config.js +19 -0
- package/dist/src/core.d.ts +24 -8
- package/dist/src/core.js +68 -0
- package/dist/src/credential.d.ts +15 -1
- package/dist/src/credential.js +5 -0
- package/dist/src/credentialSchema.d.ts +5 -2
- package/dist/src/credentialSchema.js +2 -0
- package/dist/src/did.d.ts +9 -5
- package/dist/src/error.d.ts +10 -17
- package/dist/src/error.js +5 -14
- package/dist/src/history.d.ts +19 -5
- package/dist/src/history.js +10 -2
- package/dist/src/key.d.ts +3 -0
- package/dist/src/organisation.d.ts +8 -0
- package/dist/src/organisation.js +1 -0
- package/dist/src/proof.d.ts +29 -2
- package/dist/src/proof.js +13 -0
- package/dist/src/proofSchema.d.ts +2 -0
- package/dist/src/trust.d.ts +85 -19
- package/dist/src/trust.js +28 -7
- package/dist/src/ubiqu.d.ts +49 -0
- package/dist/src/ubiqu.js +69 -0
- package/ios/Deserialize.swift +203 -24
- package/ios/EventEmitter.swift +79 -0
- package/ios/ProcivisOneCoreModule.m +74 -6
- package/ios/ProcivisOneCoreModule.swift +312 -88
- 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 +105 -28
- 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 +21 -24
- package/package.json +4 -3
- package/react-native-one-core.podspec +4 -5
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import UIKit
|
|
2
|
+
import UBQKit
|
|
3
|
+
|
|
4
|
+
@objc
|
|
5
|
+
public class RSEPinPad: UIView {
|
|
6
|
+
|
|
7
|
+
static let sharedPinPad: UBQPinPad = {
|
|
8
|
+
let pinPad = UBQPinPad(biometricsButtonShown: false)
|
|
9
|
+
fixSubviews(view: pinPad)
|
|
10
|
+
return pinPad
|
|
11
|
+
}()
|
|
12
|
+
|
|
13
|
+
override init(frame: CGRect) {
|
|
14
|
+
super.init(frame: frame)
|
|
15
|
+
let pinPad = RSEPinPad.self.sharedPinPad
|
|
16
|
+
self.addSubview(pinPad)
|
|
17
|
+
pinPad.frame = self.bounds
|
|
18
|
+
pinPad.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
|
19
|
+
pinPad.translatesAutoresizingMaskIntoConstraints = true
|
|
20
|
+
pinPad.listener = self
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
required init?(coder: NSCoder) {
|
|
24
|
+
fatalError("init(coder:) has not been implemented")
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public override func layoutSubviews() {
|
|
28
|
+
super.layoutSubviews()
|
|
29
|
+
RSEPinPad.fixSubviews(view: self)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public static func fixSubviews(view: UIView) {
|
|
33
|
+
view.subviews.forEach { subview in
|
|
34
|
+
if subview.isKind(of: UIStackView.self), let stackview = subview as? UIStackView {
|
|
35
|
+
stackview.backgroundColor = .white
|
|
36
|
+
stackview.layer.borderColor = .none
|
|
37
|
+
}
|
|
38
|
+
if subview.isKind(of: UIButton.self) {
|
|
39
|
+
var constraintsToRemove: [NSLayoutConstraint] = []
|
|
40
|
+
view.constraints.forEach { constraint in
|
|
41
|
+
if constraint.firstAttribute == .width || constraint.firstAttribute == .height {
|
|
42
|
+
constraintsToRemove.append(constraint)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
view.removeConstraints(constraintsToRemove)
|
|
46
|
+
subview.autoresizingMask = []
|
|
47
|
+
subview.translatesAutoresizingMaskIntoConstraints = false
|
|
48
|
+
subview.removeConstraints(subview.constraints)
|
|
49
|
+
subview.widthAnchor.constraint(equalToConstant: 72).isActive = true
|
|
50
|
+
subview.heightAnchor.constraint(equalToConstant: 72).isActive = true
|
|
51
|
+
subview.layer.cornerRadius = 36
|
|
52
|
+
subview.backgroundColor = .systemGray5
|
|
53
|
+
} else if subview.isKind(of: UILabel.self), let label = subview as? UILabel {
|
|
54
|
+
label.textColor = .black
|
|
55
|
+
label.highlightedTextColor = .black
|
|
56
|
+
label.tintColor = .black
|
|
57
|
+
} else {
|
|
58
|
+
subview.backgroundColor = .clear
|
|
59
|
+
subview.layer.borderColor = .none
|
|
60
|
+
subview.layer.borderWidth = 0
|
|
61
|
+
subview.tintColor = .black
|
|
62
|
+
}
|
|
63
|
+
fixSubviews(view: subview)
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
extension RSEPinPad: UBQPinPadReporting {
|
|
69
|
+
|
|
70
|
+
public func amountOfDigitsDidChange(newAmount: Int) {
|
|
71
|
+
ProcivisOneCoreEventEmitter.shared.sendDigitsEnteredEvent(amount: newAmount)
|
|
72
|
+
RSEPinPad.fixSubviews(view: RSEPinPad.sharedPinPad)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import UIKit
|
|
2
|
+
|
|
3
|
+
@objc
|
|
4
|
+
public class RSEPinPad: UIView {
|
|
5
|
+
|
|
6
|
+
static let sharedPinPad: UBQPinPad = {
|
|
7
|
+
fatalError("sharedPinPad() has not been implemented")
|
|
8
|
+
}()
|
|
9
|
+
|
|
10
|
+
override init(frame: CGRect) {
|
|
11
|
+
fatalError("init(frame:) has not been implemented")
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
required init?(coder: NSCoder) {
|
|
15
|
+
fatalError("init(coder:) has not been implemented")
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
public static func fixSubviews(view: UIView) {
|
|
19
|
+
fatalError("fixSubviews(view:) has not been implemented")
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#import <React/RCTComponent.h>
|
|
2
|
+
#import <React/RCTViewManager.h>
|
|
3
|
+
#import <UBQKit/UBQKit.h>
|
|
4
|
+
#import "react_native_one_core-Swift.h"
|
|
5
|
+
|
|
6
|
+
@interface RSEPinPadManager : RCTViewManager
|
|
7
|
+
@end
|
|
8
|
+
|
|
9
|
+
@implementation RSEPinPadManager
|
|
10
|
+
|
|
11
|
+
RCT_EXPORT_MODULE(RCTProcivisRSEPinPad)
|
|
12
|
+
|
|
13
|
+
- (UIView *)view
|
|
14
|
+
{
|
|
15
|
+
RSEPinPad *pinPad = [RSEPinPad new];
|
|
16
|
+
return pinPad;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@end
|
package/ios/Serialize.swift
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
import Foundation
|
|
9
|
+
import ProcivisOneCore
|
|
9
10
|
|
|
10
11
|
// Enum values serialization
|
|
11
12
|
func serializeEnumValue<T>(value: T) -> String {
|
|
@@ -51,13 +52,15 @@ func serialize(version: VersionBindingDto) -> NSDictionary {
|
|
|
51
52
|
func serialize(config: ConfigBindingDto) -> NSDictionary {
|
|
52
53
|
return [
|
|
53
54
|
"format": config.format,
|
|
54
|
-
"
|
|
55
|
+
"issuanceProtocol": config.issuanceProtocol,
|
|
56
|
+
"verificationProtocol": config.verificationProtocol,
|
|
55
57
|
"transport": config.transport,
|
|
56
58
|
"revocation": config.revocation,
|
|
57
59
|
"did": config.did,
|
|
58
60
|
"datatype": config.datatype,
|
|
59
61
|
"keyAlgorithm": config.keyAlgorithm,
|
|
60
62
|
"keyStorage": config.keyStorage,
|
|
63
|
+
"trustManagement": config.trustManagement,
|
|
61
64
|
"cacheEntities": config.cacheEntities,
|
|
62
65
|
]
|
|
63
66
|
}
|
|
@@ -70,6 +73,8 @@ func serialize(credentialSchemaType: CredentialSchemaTypeBindingEnum) -> String
|
|
|
70
73
|
return "FALLBACK_SCHEMA2024";
|
|
71
74
|
case .mdoc:
|
|
72
75
|
return "MDOC";
|
|
76
|
+
case .sdJwtVc:
|
|
77
|
+
return "SD_JWT_VC";
|
|
73
78
|
case let .other(value):
|
|
74
79
|
return value;
|
|
75
80
|
}
|
|
@@ -193,6 +198,7 @@ func serialize(credentialListItem: CredentialListItemBindingDto) -> NSDictionary
|
|
|
193
198
|
"state": serializeEnumValue(value: credentialListItem.state),
|
|
194
199
|
"schema": serialize(credentialSchema: credentialListItem.schema),
|
|
195
200
|
"role": serializeEnumValue(value: credentialListItem.role),
|
|
201
|
+
"exchange": credentialListItem.exchange,
|
|
196
202
|
]
|
|
197
203
|
result.addOpt("revocationDate", credentialListItem.revocationDate)
|
|
198
204
|
result.addOpt("issuerDid", credentialListItem.issuerDid)
|
|
@@ -210,9 +216,11 @@ func serialize(credentialDetail: CredentialDetailBindingDto) -> NSDictionary {
|
|
|
210
216
|
"claims": credentialDetail.claims.map { serialize(claim: $0) },
|
|
211
217
|
"schema": serialize(credentialSchema: credentialDetail.schema),
|
|
212
218
|
"role": serializeEnumValue(value: credentialDetail.role),
|
|
219
|
+
"exchange": credentialDetail.exchange,
|
|
213
220
|
]
|
|
214
221
|
result.addOpt("revocationDate", credentialDetail.revocationDate)
|
|
215
|
-
result.addOpt("issuerDid", credentialDetail.issuerDid)
|
|
222
|
+
result.addOpt("issuerDid", opt(credentialDetail.issuerDid, {issuerDid in serialize(didListItem: issuerDid)}))
|
|
223
|
+
result.addOpt("holderDid", opt(credentialDetail.holderDid, {holderDid in serialize(didListItem: holderDid)}))
|
|
216
224
|
result.addOpt("redirectUri", credentialDetail.redirectUri)
|
|
217
225
|
result.addOpt("lvvcIssuanceDate", credentialDetail.lvvcIssuanceDate)
|
|
218
226
|
result.addOpt("suspendEndDate", credentialDetail.suspendEndDate)
|
|
@@ -270,12 +278,11 @@ func serialize(proofListItem: ProofListItemBindingDto) -> NSDictionary {
|
|
|
270
278
|
"transport": proofListItem.transport,
|
|
271
279
|
"state": serializeEnumValue(value: proofListItem.state),
|
|
272
280
|
]
|
|
273
|
-
|
|
274
281
|
result.addOpt("requestedDate", proofListItem.requestedDate)
|
|
275
282
|
result.addOpt("completedDate", proofListItem.completedDate)
|
|
276
283
|
result.addOpt("schema", opt(proofListItem.schema, {proofSchema in serialize(proofSchemaListItem: proofSchema) }))
|
|
277
284
|
result.addOpt("verifierDid", proofListItem.verifierDid)
|
|
278
|
-
|
|
285
|
+
result.addOpt("retainUntilDate", proofListItem.retainUntilDate)
|
|
279
286
|
return result as NSDictionary
|
|
280
287
|
}
|
|
281
288
|
|
|
@@ -287,18 +294,25 @@ func serialize(proposeProofResponse: ProposeProofResponseBindingDto) -> NSDictio
|
|
|
287
294
|
]
|
|
288
295
|
}
|
|
289
296
|
|
|
290
|
-
func serialize(
|
|
297
|
+
func serialize(proofResponse: ProofResponseBindingDto) -> NSDictionary {
|
|
291
298
|
var result: [String: Any] = [
|
|
292
|
-
"id":
|
|
293
|
-
"createdDate":
|
|
294
|
-
"lastModified":
|
|
295
|
-
"proofInputs":
|
|
296
|
-
"state": serializeEnumValue(value:
|
|
297
|
-
"
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
result.addOpt("
|
|
299
|
+
"id": proofResponse.id,
|
|
300
|
+
"createdDate": proofResponse.createdDate,
|
|
301
|
+
"lastModified": proofResponse.lastModified,
|
|
302
|
+
"proofInputs": proofResponse.proofInputs.map { serialize(proofInput: $0) },
|
|
303
|
+
"state": serializeEnumValue(value: proofResponse.state),
|
|
304
|
+
"role": serializeEnumValue(value: proofResponse.role),
|
|
305
|
+
"exchange": proofResponse.exchange,
|
|
306
|
+
"transport": proofResponse.transport,
|
|
307
|
+
]
|
|
308
|
+
result.addOpt("proofSchema", opt(proofResponse.proofSchema, {proofSchema in serialize(proofSchemaListItem: proofSchema) }))
|
|
309
|
+
result.addOpt("verifierDid", opt(proofResponse.verifierDid, {verifierDid in serialize(didListItem: verifierDid)}))
|
|
310
|
+
result.addOpt("holderDid", opt(proofResponse.holderDid, {holderDid in serialize(didListItem: holderDid)}))
|
|
311
|
+
result.addOpt("redirectUri", proofResponse.redirectUri)
|
|
312
|
+
result.addOpt("retainUntilDate", proofResponse.retainUntilDate)
|
|
313
|
+
result.addOpt("requestedDate", proofResponse.requestedDate)
|
|
314
|
+
result.addOpt("completedDate", proofResponse.completedDate)
|
|
315
|
+
result.addOpt("claimsRemovedAt", proofResponse.claimsRemovedAt)
|
|
302
316
|
return result as NSDictionary
|
|
303
317
|
}
|
|
304
318
|
|
|
@@ -378,6 +392,7 @@ func serialize(proofRequestClaimValue: ProofRequestClaimValueBindingDto) -> Any
|
|
|
378
392
|
func serialize(proofClaimSchema: ProofClaimSchemaBindingDto) -> NSDictionary {
|
|
379
393
|
return [
|
|
380
394
|
"id": proofClaimSchema.id,
|
|
395
|
+
"requested": proofClaimSchema.requested,
|
|
381
396
|
"required": proofClaimSchema.required,
|
|
382
397
|
"key": proofClaimSchema.key,
|
|
383
398
|
"dataType": proofClaimSchema.dataType,
|
|
@@ -462,8 +477,10 @@ func serialize(historyListItem: HistoryListItemBindingDto) -> NSDictionary {
|
|
|
462
477
|
"action": serializeEnumValue(value: historyListItem.action),
|
|
463
478
|
"entityType": serializeEnumValue(value: historyListItem.entityType),
|
|
464
479
|
"organisationId": historyListItem.organisationId,
|
|
480
|
+
"name": historyListItem.name,
|
|
465
481
|
]
|
|
466
482
|
result.addOpt("entityId", historyListItem.entityId)
|
|
483
|
+
result.addOpt("target", historyListItem.target)
|
|
467
484
|
result.addOpt("metadata", opt(historyListItem.metadata, {data in serialize(historyMetadata: data)}))
|
|
468
485
|
return result as NSDictionary
|
|
469
486
|
}
|
|
@@ -472,9 +489,18 @@ func serialize(historyMetadata: HistoryMetadataBinding) -> NSDictionary {
|
|
|
472
489
|
switch (historyMetadata) {
|
|
473
490
|
case let .unexportableEntities(value):
|
|
474
491
|
return serialize(unexportableEntities: value);
|
|
492
|
+
case let .errorMetadata(value):
|
|
493
|
+
return serialize(historyErrorMetadata: value);
|
|
475
494
|
}
|
|
476
495
|
}
|
|
477
496
|
|
|
497
|
+
func serialize(historyErrorMetadata: HistoryErrorMetadataBindingDto) -> NSDictionary {
|
|
498
|
+
return [
|
|
499
|
+
"errorCode": historyErrorMetadata.errorCode,
|
|
500
|
+
"message": historyErrorMetadata.message,
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
|
|
478
504
|
func serialize(keyListItem: KeyListItemBindingDto) -> NSDictionary {
|
|
479
505
|
return [
|
|
480
506
|
"id": keyListItem.id,
|
|
@@ -529,12 +555,16 @@ func serialize(importBackupMetadata: MetadataBindingDto) -> NSDictionary {
|
|
|
529
555
|
|
|
530
556
|
func serialize(invitationResponse: HandleInvitationResponseBindingEnum) -> NSDictionary {
|
|
531
557
|
switch (invitationResponse) {
|
|
532
|
-
case let .credentialIssuance(interactionId, credentialIds):
|
|
533
|
-
|
|
558
|
+
case let .credentialIssuance(interactionId, credentialIds, txCode):
|
|
559
|
+
var result: [String: Any] = [
|
|
534
560
|
"interactionId": interactionId,
|
|
535
561
|
"credentialIds": credentialIds
|
|
536
562
|
];
|
|
537
563
|
|
|
564
|
+
result.addOpt("txCode", opt(txCode, { serialize(txCode: $0) }));
|
|
565
|
+
|
|
566
|
+
return result as NSDictionary;
|
|
567
|
+
|
|
538
568
|
case let .proofRequest(interactionId, proofId):
|
|
539
569
|
return [
|
|
540
570
|
"interactionId": interactionId,
|
|
@@ -543,6 +573,14 @@ func serialize(invitationResponse: HandleInvitationResponseBindingEnum) -> NSDic
|
|
|
543
573
|
}
|
|
544
574
|
}
|
|
545
575
|
|
|
576
|
+
func serialize(txCode: OpenId4vciTxCodeBindingDto) -> NSDictionary {
|
|
577
|
+
var result: [String: Any] = [:];
|
|
578
|
+
result.addOpt("inputMode", opt(txCode.inputMode, serializeEnumValue));
|
|
579
|
+
result.addOpt("length", txCode.length);
|
|
580
|
+
result.addOpt("description", txCode.description);
|
|
581
|
+
return result as NSDictionary;
|
|
582
|
+
}
|
|
583
|
+
|
|
546
584
|
func serialize(shareProofResponse: ShareProofResponseBindingDto) -> NSDictionary {
|
|
547
585
|
return [
|
|
548
586
|
"url": shareProofResponse.url,
|
|
@@ -568,18 +606,15 @@ func serialize(resolveJsonLdContextResponse: ResolveJsonLdContextResponseBinding
|
|
|
568
606
|
}
|
|
569
607
|
|
|
570
608
|
func serialize(trustAnchor: GetTrustAnchorResponseBindingDto) -> NSDictionary {
|
|
571
|
-
|
|
609
|
+
return [
|
|
572
610
|
"id": trustAnchor.id,
|
|
573
611
|
"createdDate": trustAnchor.createdDate,
|
|
574
612
|
"lastModified": trustAnchor.lastModified,
|
|
575
613
|
"name": trustAnchor.name,
|
|
576
614
|
"type": trustAnchor.type,
|
|
577
|
-
"
|
|
578
|
-
"
|
|
615
|
+
"isPublisher": trustAnchor.isPublisher,
|
|
616
|
+
"publisherReference": trustAnchor.publisherReference,
|
|
579
617
|
]
|
|
580
|
-
result.addOpt("publisherReference", trustAnchor.publisherReference)
|
|
581
|
-
result.addOpt("priority", trustAnchor.priority)
|
|
582
|
-
return result as NSDictionary
|
|
583
618
|
}
|
|
584
619
|
|
|
585
620
|
func serialize(trustAnchorList: TrustAnchorsListBindingDto) -> NSDictionary {
|
|
@@ -590,18 +625,60 @@ func serialize(trustAnchorList: TrustAnchorsListBindingDto) -> NSDictionary {
|
|
|
590
625
|
]
|
|
591
626
|
}
|
|
592
627
|
|
|
628
|
+
func serialize(trustEntityList: TrustEntitiesListBindingDto) -> NSDictionary {
|
|
629
|
+
return [
|
|
630
|
+
"totalItems": trustEntityList.totalItems,
|
|
631
|
+
"totalPages": trustEntityList.totalPages,
|
|
632
|
+
"values": trustEntityList.values.map { serialize(trustEntityListItem: $0) },
|
|
633
|
+
]
|
|
634
|
+
}
|
|
635
|
+
|
|
593
636
|
func serialize(trustAnchorListItem: TrustAnchorsListItemResponseBindingDto) -> NSDictionary {
|
|
594
|
-
|
|
637
|
+
return [
|
|
595
638
|
"id": trustAnchorListItem.id,
|
|
596
639
|
"createdDate": trustAnchorListItem.createdDate,
|
|
597
640
|
"lastModified": trustAnchorListItem.lastModified,
|
|
598
641
|
"name": trustAnchorListItem.name,
|
|
599
642
|
"type": trustAnchorListItem.type,
|
|
600
|
-
"
|
|
601
|
-
"
|
|
643
|
+
"isPublisher": trustAnchorListItem.isPublisher,
|
|
644
|
+
"publisherReference": trustAnchorListItem.publisherReference,
|
|
602
645
|
"entities": trustAnchorListItem.entities,
|
|
603
646
|
]
|
|
604
|
-
|
|
605
|
-
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
func serialize(trustEntity: GetTrustEntityResponseBindingDto) -> NSDictionary {
|
|
650
|
+
var result: [String: Any] = [
|
|
651
|
+
"id": trustEntity.id,
|
|
652
|
+
"createdDate": trustEntity.createdDate,
|
|
653
|
+
"lastModified": trustEntity.lastModified,
|
|
654
|
+
"name": trustEntity.name,
|
|
655
|
+
"role": serializeEnumValue(value: trustEntity.role),
|
|
656
|
+
"trustAnchor": serialize(trustAnchor: trustEntity.trustAnchor),
|
|
657
|
+
"did": serialize(didListItem: trustEntity.did),
|
|
658
|
+
"state": serializeEnumValue(value: trustEntity.state),
|
|
659
|
+
]
|
|
660
|
+
result.addOpt("organisationId", trustEntity.organisationId)
|
|
661
|
+
result.addOpt("logo", trustEntity.logo)
|
|
662
|
+
result.addOpt("website", trustEntity.website)
|
|
663
|
+
result.addOpt("termsUrl", trustEntity.termsUrl)
|
|
664
|
+
result.addOpt("privacyUrl", trustEntity.privacyUrl)
|
|
665
|
+
return result as NSDictionary
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
func serialize(trustEntityListItem: TrustEntitiesListItemResponseBindingDto) -> NSDictionary {
|
|
669
|
+
var result: [String: Any] = [
|
|
670
|
+
"id": trustEntityListItem.id,
|
|
671
|
+
"createdDate": trustEntityListItem.createdDate,
|
|
672
|
+
"lastModified": trustEntityListItem.lastModified,
|
|
673
|
+
"name": trustEntityListItem.name,
|
|
674
|
+
"role": serializeEnumValue(value: trustEntityListItem.role),
|
|
675
|
+
"trustAnchor": serialize(trustAnchor: trustEntityListItem.trustAnchor),
|
|
676
|
+
"did": serialize(didListItem: trustEntityListItem.did),
|
|
677
|
+
"state": serializeEnumValue(value: trustEntityListItem.state),
|
|
678
|
+
]
|
|
679
|
+
result.addOpt("logo", trustEntityListItem.logo)
|
|
680
|
+
result.addOpt("website", trustEntityListItem.website)
|
|
681
|
+
result.addOpt("termsUrl", trustEntityListItem.termsUrl)
|
|
682
|
+
result.addOpt("privacyUrl", trustEntityListItem.privacyUrl)
|
|
606
683
|
return result as NSDictionary
|
|
607
684
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>UBQKit.framework/UBQKit</string>
|
|
10
|
+
<key>LibraryIdentifier</key>
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
|
+
<key>LibraryPath</key>
|
|
13
|
+
<string>UBQKit.framework</string>
|
|
14
|
+
<key>SupportedArchitectures</key>
|
|
15
|
+
<array>
|
|
16
|
+
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
18
|
+
</array>
|
|
19
|
+
<key>SupportedPlatform</key>
|
|
20
|
+
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
23
|
+
</dict>
|
|
24
|
+
<dict>
|
|
25
|
+
<key>BinaryPath</key>
|
|
26
|
+
<string>UBQKit.framework/UBQKit</string>
|
|
27
|
+
<key>LibraryIdentifier</key>
|
|
28
|
+
<string>ios-arm64</string>
|
|
29
|
+
<key>LibraryPath</key>
|
|
30
|
+
<string>UBQKit.framework</string>
|
|
31
|
+
<key>SupportedArchitectures</key>
|
|
32
|
+
<array>
|
|
33
|
+
<string>arm64</string>
|
|
34
|
+
</array>
|
|
35
|
+
<key>SupportedPlatform</key>
|
|
36
|
+
<string>ios</string>
|
|
37
|
+
</dict>
|
|
38
|
+
</array>
|
|
39
|
+
<key>CFBundlePackageType</key>
|
|
40
|
+
<string>XFWK</string>
|
|
41
|
+
<key>XCFrameworkFormatVersion</key>
|
|
42
|
+
<string>1.0</string>
|
|
43
|
+
</dict>
|
|
44
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// AFCompatibilityMacros.h
|
|
2
|
+
// Copyright (c) 2011–2016 Alamofire Software Foundation ( http://alamofire.org/ )
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
// in the Software without restriction, including without limitation the rights
|
|
7
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in
|
|
12
|
+
// all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
// THE SOFTWARE.
|
|
21
|
+
|
|
22
|
+
#ifndef AFCompatibilityMacros_h
|
|
23
|
+
#define AFCompatibilityMacros_h
|
|
24
|
+
|
|
25
|
+
#ifdef API_UNAVAILABLE
|
|
26
|
+
#define AF_API_UNAVAILABLE(x) API_UNAVAILABLE(x)
|
|
27
|
+
#else
|
|
28
|
+
#define AF_API_UNAVAILABLE(x)
|
|
29
|
+
#endif // API_UNAVAILABLE
|
|
30
|
+
|
|
31
|
+
#if __has_warning("-Wunguarded-availability-new")
|
|
32
|
+
#define AF_CAN_USE_AT_AVAILABLE 1
|
|
33
|
+
#else
|
|
34
|
+
#define AF_CAN_USE_AT_AVAILABLE 0
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
#endif /* AFCompatibilityMacros_h */
|