@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,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,7 +52,8 @@ 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,
|
|
@@ -71,6 +73,8 @@ func serialize(credentialSchemaType: CredentialSchemaTypeBindingEnum) -> String
|
|
|
71
73
|
return "FALLBACK_SCHEMA2024";
|
|
72
74
|
case .mdoc:
|
|
73
75
|
return "MDOC";
|
|
76
|
+
case .sdJwtVc:
|
|
77
|
+
return "SD_JWT_VC";
|
|
74
78
|
case let .other(value):
|
|
75
79
|
return value;
|
|
76
80
|
}
|
|
@@ -194,6 +198,7 @@ func serialize(credentialListItem: CredentialListItemBindingDto) -> NSDictionary
|
|
|
194
198
|
"state": serializeEnumValue(value: credentialListItem.state),
|
|
195
199
|
"schema": serialize(credentialSchema: credentialListItem.schema),
|
|
196
200
|
"role": serializeEnumValue(value: credentialListItem.role),
|
|
201
|
+
"exchange": credentialListItem.exchange,
|
|
197
202
|
]
|
|
198
203
|
result.addOpt("revocationDate", credentialListItem.revocationDate)
|
|
199
204
|
result.addOpt("issuerDid", credentialListItem.issuerDid)
|
|
@@ -211,6 +216,7 @@ func serialize(credentialDetail: CredentialDetailBindingDto) -> NSDictionary {
|
|
|
211
216
|
"claims": credentialDetail.claims.map { serialize(claim: $0) },
|
|
212
217
|
"schema": serialize(credentialSchema: credentialDetail.schema),
|
|
213
218
|
"role": serializeEnumValue(value: credentialDetail.role),
|
|
219
|
+
"exchange": credentialDetail.exchange,
|
|
214
220
|
]
|
|
215
221
|
result.addOpt("revocationDate", credentialDetail.revocationDate)
|
|
216
222
|
result.addOpt("issuerDid", opt(credentialDetail.issuerDid, {issuerDid in serialize(didListItem: issuerDid)}))
|
|
@@ -272,12 +278,11 @@ func serialize(proofListItem: ProofListItemBindingDto) -> NSDictionary {
|
|
|
272
278
|
"transport": proofListItem.transport,
|
|
273
279
|
"state": serializeEnumValue(value: proofListItem.state),
|
|
274
280
|
]
|
|
275
|
-
|
|
276
281
|
result.addOpt("requestedDate", proofListItem.requestedDate)
|
|
277
282
|
result.addOpt("completedDate", proofListItem.completedDate)
|
|
278
283
|
result.addOpt("schema", opt(proofListItem.schema, {proofSchema in serialize(proofSchemaListItem: proofSchema) }))
|
|
279
284
|
result.addOpt("verifierDid", proofListItem.verifierDid)
|
|
280
|
-
|
|
285
|
+
result.addOpt("retainUntilDate", proofListItem.retainUntilDate)
|
|
281
286
|
return result as NSDictionary
|
|
282
287
|
}
|
|
283
288
|
|
|
@@ -289,19 +294,25 @@ func serialize(proposeProofResponse: ProposeProofResponseBindingDto) -> NSDictio
|
|
|
289
294
|
]
|
|
290
295
|
}
|
|
291
296
|
|
|
292
|
-
func serialize(
|
|
297
|
+
func serialize(proofResponse: ProofResponseBindingDto) -> NSDictionary {
|
|
293
298
|
var result: [String: Any] = [
|
|
294
|
-
"id":
|
|
295
|
-
"createdDate":
|
|
296
|
-
"lastModified":
|
|
297
|
-
"proofInputs":
|
|
298
|
-
"state": serializeEnumValue(value:
|
|
299
|
-
"
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
result.addOpt("
|
|
304
|
-
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)
|
|
305
316
|
return result as NSDictionary
|
|
306
317
|
}
|
|
307
318
|
|
|
@@ -466,8 +477,10 @@ func serialize(historyListItem: HistoryListItemBindingDto) -> NSDictionary {
|
|
|
466
477
|
"action": serializeEnumValue(value: historyListItem.action),
|
|
467
478
|
"entityType": serializeEnumValue(value: historyListItem.entityType),
|
|
468
479
|
"organisationId": historyListItem.organisationId,
|
|
480
|
+
"name": historyListItem.name,
|
|
469
481
|
]
|
|
470
482
|
result.addOpt("entityId", historyListItem.entityId)
|
|
483
|
+
result.addOpt("target", historyListItem.target)
|
|
471
484
|
result.addOpt("metadata", opt(historyListItem.metadata, {data in serialize(historyMetadata: data)}))
|
|
472
485
|
return result as NSDictionary
|
|
473
486
|
}
|
|
@@ -476,9 +489,18 @@ func serialize(historyMetadata: HistoryMetadataBinding) -> NSDictionary {
|
|
|
476
489
|
switch (historyMetadata) {
|
|
477
490
|
case let .unexportableEntities(value):
|
|
478
491
|
return serialize(unexportableEntities: value);
|
|
492
|
+
case let .errorMetadata(value):
|
|
493
|
+
return serialize(historyErrorMetadata: value);
|
|
479
494
|
}
|
|
480
495
|
}
|
|
481
496
|
|
|
497
|
+
func serialize(historyErrorMetadata: HistoryErrorMetadataBindingDto) -> NSDictionary {
|
|
498
|
+
return [
|
|
499
|
+
"errorCode": historyErrorMetadata.errorCode,
|
|
500
|
+
"message": historyErrorMetadata.message,
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
|
|
482
504
|
func serialize(keyListItem: KeyListItemBindingDto) -> NSDictionary {
|
|
483
505
|
return [
|
|
484
506
|
"id": keyListItem.id,
|
|
@@ -539,8 +561,8 @@ func serialize(invitationResponse: HandleInvitationResponseBindingEnum) -> NSDic
|
|
|
539
561
|
"credentialIds": credentialIds
|
|
540
562
|
];
|
|
541
563
|
|
|
542
|
-
result.addOpt("txCode", opt(txCode, { serialize(txCode: $0) }));
|
|
543
|
-
|
|
564
|
+
result.addOpt("txCode", opt(txCode, { serialize(txCode: $0) }));
|
|
565
|
+
|
|
544
566
|
return result as NSDictionary;
|
|
545
567
|
|
|
546
568
|
case let .proofRequest(interactionId, proofId):
|
|
@@ -553,11 +575,9 @@ func serialize(invitationResponse: HandleInvitationResponseBindingEnum) -> NSDic
|
|
|
553
575
|
|
|
554
576
|
func serialize(txCode: OpenId4vciTxCodeBindingDto) -> NSDictionary {
|
|
555
577
|
var result: [String: Any] = [:];
|
|
556
|
-
|
|
557
578
|
result.addOpt("inputMode", opt(txCode.inputMode, serializeEnumValue));
|
|
558
579
|
result.addOpt("length", txCode.length);
|
|
559
580
|
result.addOpt("description", txCode.description);
|
|
560
|
-
|
|
561
581
|
return result as NSDictionary;
|
|
562
582
|
}
|
|
563
583
|
|
|
@@ -629,7 +649,6 @@ func serialize(trustAnchorListItem: TrustAnchorsListItemResponseBindingDto) -> N
|
|
|
629
649
|
func serialize(trustEntity: GetTrustEntityResponseBindingDto) -> NSDictionary {
|
|
630
650
|
var result: [String: Any] = [
|
|
631
651
|
"id": trustEntity.id,
|
|
632
|
-
"organisationId": trustEntity.organisationId,
|
|
633
652
|
"createdDate": trustEntity.createdDate,
|
|
634
653
|
"lastModified": trustEntity.lastModified,
|
|
635
654
|
"name": trustEntity.name,
|
|
@@ -638,6 +657,7 @@ func serialize(trustEntity: GetTrustEntityResponseBindingDto) -> NSDictionary {
|
|
|
638
657
|
"did": serialize(didListItem: trustEntity.did),
|
|
639
658
|
"state": serializeEnumValue(value: trustEntity.state),
|
|
640
659
|
]
|
|
660
|
+
result.addOpt("organisationId", trustEntity.organisationId)
|
|
641
661
|
result.addOpt("logo", trustEntity.logo)
|
|
642
662
|
result.addOpt("website", trustEntity.website)
|
|
643
663
|
result.addOpt("termsUrl", trustEntity.termsUrl)
|
|
@@ -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 */
|