diff --git a/README.md b/README.md index 158dabf..23d8155 100644 --- a/README.md +++ b/README.md @@ -70,14 +70,16 @@ You need to implemented the SecureUnlockDelegate protocol. ```swift extension MyClass: SecureUnlockDelegate { - func secureUnlockSuccess(online: Bool) { + func secureUnlockSuccess(online: Bool, duration: TimeInterval) { // Callback when unlock succeeds. // Online parameter indicates if it was an online or offline unlock. + // Duration parameter tells how long the unlock took } - func secureUnlockFailure(error: SecureT2UError) { - // Login id callback. - // If you only support 1 login you can ignore the organization property and simply return the login id for the logged in user. Otherwise you must find the login id for the given organization. + func secureUnlockFailure(error: SecureT2UError, duration: TimeInterval) { + // Unlock failed + // Note that if because of needsDeviceOwnerVerification you should prompt user to unlock phone or setup passcode. + // Duration parameter tells how long the unlock took } func secureUnlockLoginIDForOrganization(_ organization: Int?) -> Int? { diff --git a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Headers/SecureUnlock-Swift.h b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Headers/SecureUnlock-Swift.h index 5f23fc9..38229e6 100644 --- a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Headers/SecureUnlock-Swift.h +++ b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Headers/SecureUnlock-Swift.h @@ -236,6 +236,7 @@ SWIFT_CLASS("_TtC12SecureUnlock13BeaconManager") + @interface NSNotification (SWIFT_EXTENSION(SecureUnlock)) SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSNotificationName _Nonnull BeaconManagerDidEnterRegionNotification;) + (NSNotificationName _Nonnull)BeaconManagerDidEnterRegionNotification SWIFT_WARN_UNUSED_RESULT; @@ -250,10 +251,10 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) SecureUnlock + (SecureUnlockManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; - (void)start; - (void)stop; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end - @class CBPeripheralManager; @class CBATTRequest; @class CBService; diff --git a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftdoc b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftdoc index 3b7d1de..e5d3096 100644 Binary files a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftdoc and b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface index a61f225..55afa34 100644 --- a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface +++ b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface @@ -13,7 +13,6 @@ import _Concurrency public enum SecureT2UError : Swift.Error { case invalidTransition case invalidData - case failedToGenerateRandomData case failedToEncrypt case failedToDecrypt case scramFetchError @@ -23,6 +22,7 @@ public enum SecureT2UError : Swift.Error { case needsDeviceOwnerVerification case unexpectedCommand case missingDelegate + case offsetReadOutOfBounds public static func == (a: SecureUnlock.SecureT2UError, b: SecureUnlock.SecureT2UError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { @@ -78,7 +78,7 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didRangeBeacons beacons: [CoreLocation.CLBeacon], in region: CoreLocation.CLBeaconRegion) @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, rangingBeaconsDidFailFor region: CoreLocation.CLBeaconRegion, withError error: Swift.Error) } -@objc @_inheritsConvenienceInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { +@objc @_hasMissingDesignatedInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { @objc public static let shared: SecureUnlock.SecureUnlockManager weak final public var delegate: SecureUnlock.SecureUnlockDelegate? { get @@ -86,7 +86,6 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { } @objc final public func start() @objc final public func stop() - @objc override dynamic public init() @objc deinit } extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDelegate { @@ -98,8 +97,8 @@ extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDe @objc final public func peripheralManager(_ peripheral: CoreBluetooth.CBPeripheralManager, willRestoreState dict: [Swift.String : Any]) } public protocol SecureUnlockDelegate : AnyObject { - func secureUnlockSuccess(online: Swift.Bool) - func secureUnlockFailure(error: SecureUnlock.SecureT2UError) + func secureUnlockSuccess(online: Swift.Bool, duration: Foundation.TimeInterval) + func secureUnlockFailure(error: SecureUnlock.SecureT2UError, duration: Foundation.TimeInterval) func secureUnlockLoginIDForOrganization(_ organization: Swift.Int?) -> Swift.Int? func secureUnlockPhoneKeyForLogin(_ login: Swift.Int) -> Swift.String? func secureUnlockFetchCertificate(login: Swift.Int, reader: Swift.Int, online: Swift.Bool, completion: @escaping (Swift.Result) -> Swift.Void) diff --git a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc index 3b7d1de..e5d3096 100644 Binary files a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc and b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc differ diff --git a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface index a61f225..55afa34 100644 --- a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface +++ b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface @@ -13,7 +13,6 @@ import _Concurrency public enum SecureT2UError : Swift.Error { case invalidTransition case invalidData - case failedToGenerateRandomData case failedToEncrypt case failedToDecrypt case scramFetchError @@ -23,6 +22,7 @@ public enum SecureT2UError : Swift.Error { case needsDeviceOwnerVerification case unexpectedCommand case missingDelegate + case offsetReadOutOfBounds public static func == (a: SecureUnlock.SecureT2UError, b: SecureUnlock.SecureT2UError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { @@ -78,7 +78,7 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didRangeBeacons beacons: [CoreLocation.CLBeacon], in region: CoreLocation.CLBeaconRegion) @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, rangingBeaconsDidFailFor region: CoreLocation.CLBeaconRegion, withError error: Swift.Error) } -@objc @_inheritsConvenienceInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { +@objc @_hasMissingDesignatedInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { @objc public static let shared: SecureUnlock.SecureUnlockManager weak final public var delegate: SecureUnlock.SecureUnlockDelegate? { get @@ -86,7 +86,6 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { } @objc final public func start() @objc final public func stop() - @objc override dynamic public init() @objc deinit } extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDelegate { @@ -98,8 +97,8 @@ extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDe @objc final public func peripheralManager(_ peripheral: CoreBluetooth.CBPeripheralManager, willRestoreState dict: [Swift.String : Any]) } public protocol SecureUnlockDelegate : AnyObject { - func secureUnlockSuccess(online: Swift.Bool) - func secureUnlockFailure(error: SecureUnlock.SecureT2UError) + func secureUnlockSuccess(online: Swift.Bool, duration: Foundation.TimeInterval) + func secureUnlockFailure(error: SecureUnlock.SecureT2UError, duration: Foundation.TimeInterval) func secureUnlockLoginIDForOrganization(_ organization: Swift.Int?) -> Swift.Int? func secureUnlockPhoneKeyForLogin(_ login: Swift.Int) -> Swift.String? func secureUnlockFetchCertificate(login: Swift.Int, reader: Swift.Int, online: Swift.Bool, completion: @escaping (Swift.Result) -> Swift.Void) diff --git a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/SecureUnlock b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/SecureUnlock index 4b1b014..c69f9a3 100755 Binary files a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/SecureUnlock and b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/SecureUnlock differ diff --git a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/_CodeSignature/CodeResources b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/_CodeSignature/CodeResources index 9c2de11..c42d8b7 100644 --- a/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/_CodeSignature/CodeResources +++ b/SecureUnlock.xcframework/ios-arm64/SecureUnlock.framework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Headers/SecureUnlock-Swift.h - qMG2cOmoiYlZfL33M/jli0gFAKY= + ttCRSzfA3fqrvrKZwOSpzNFLTc8= Headers/SecureUnlock.h @@ -18,27 +18,27 @@ Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftdoc - y1a3EbmoptQFB5i31QwNVSID2J4= + ZU8axXF0hJaT3riFwlRCqF2RAwE= Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface - /+1JxyV8T0vnI714hPNUwTodVYM= + J8unAW11pjMn55aK5qIb/9YQSrc= Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftmodule - nsA5aLrO7khmDpgixyxoL2RuQyI= + h9tH9CdzQlquQAU60NbpZn67Jkw= Modules/SecureUnlock.swiftmodule/arm64.swiftdoc - y1a3EbmoptQFB5i31QwNVSID2J4= + ZU8axXF0hJaT3riFwlRCqF2RAwE= Modules/SecureUnlock.swiftmodule/arm64.swiftinterface - /+1JxyV8T0vnI714hPNUwTodVYM= + J8unAW11pjMn55aK5qIb/9YQSrc= Modules/SecureUnlock.swiftmodule/arm64.swiftmodule - nsA5aLrO7khmDpgixyxoL2RuQyI= + h9tH9CdzQlquQAU60NbpZn67Jkw= Modules/module.modulemap @@ -51,7 +51,7 @@ hash2 - VqxA+lCxrHbwP6G/36kOEqOxxerfKVzEe5fg8CaeBPI= + 7iHTuqTd4i3ci7GfOyfK/JFPBmQQviehdCJt7eRGGAo= Headers/SecureUnlock.h @@ -65,42 +65,42 @@ hash2 - 97kYQlnHPH4iZwILJ5CQwc/rvkzsZqENVwL1bRGHvpU= + 1qpisK/6iPvPceQ/hAhyitvpj2Xq0WkyQMbvVA+lu1o= Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface hash2 - HsjRsLK0Qc9jtfWUZ2sLoybvj1f3GTN2w9N9uH3CiIs= + UesWgmYkcjCEn2zC3U3mkrIQk3CiApaSbPmP5DKkllw= Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftmodule hash2 - cIdbNLx4kqG/6DBC0jzYQnCC7ld4WI81Ct27K8v+bY4= + CPP3hCV+6m9uozO3uXD0V7BTWKm8cgmvUzlQHG/ZhGA= Modules/SecureUnlock.swiftmodule/arm64.swiftdoc hash2 - 97kYQlnHPH4iZwILJ5CQwc/rvkzsZqENVwL1bRGHvpU= + 1qpisK/6iPvPceQ/hAhyitvpj2Xq0WkyQMbvVA+lu1o= Modules/SecureUnlock.swiftmodule/arm64.swiftinterface hash2 - HsjRsLK0Qc9jtfWUZ2sLoybvj1f3GTN2w9N9uH3CiIs= + UesWgmYkcjCEn2zC3U3mkrIQk3CiApaSbPmP5DKkllw= Modules/SecureUnlock.swiftmodule/arm64.swiftmodule hash2 - cIdbNLx4kqG/6DBC0jzYQnCC7ld4WI81Ct27K8v+bY4= + CPP3hCV+6m9uozO3uXD0V7BTWKm8cgmvUzlQHG/ZhGA= Modules/module.modulemap diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Headers/SecureUnlock-Swift.h b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Headers/SecureUnlock-Swift.h index 9ba5fc5..535d8f2 100644 --- a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Headers/SecureUnlock-Swift.h +++ b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Headers/SecureUnlock-Swift.h @@ -238,6 +238,7 @@ SWIFT_CLASS("_TtC12SecureUnlock13BeaconManager") + @interface NSNotification (SWIFT_EXTENSION(SecureUnlock)) SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSNotificationName _Nonnull BeaconManagerDidEnterRegionNotification;) + (NSNotificationName _Nonnull)BeaconManagerDidEnterRegionNotification SWIFT_WARN_UNUSED_RESULT; @@ -252,10 +253,10 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) SecureUnlock + (SecureUnlockManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; - (void)start; - (void)stop; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end - @class CBPeripheralManager; @class CBATTRequest; @class CBService; @@ -515,6 +516,7 @@ SWIFT_CLASS("_TtC12SecureUnlock13BeaconManager") + @interface NSNotification (SWIFT_EXTENSION(SecureUnlock)) SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSNotificationName _Nonnull BeaconManagerDidEnterRegionNotification;) + (NSNotificationName _Nonnull)BeaconManagerDidEnterRegionNotification SWIFT_WARN_UNUSED_RESULT; @@ -529,10 +531,10 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) SecureUnlock + (SecureUnlockManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; - (void)start; - (void)stop; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end - @class CBPeripheralManager; @class CBATTRequest; @class CBService; diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftdoc index f4eae93..e6a1570 100644 Binary files a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftinterface index b7e9c45..c4c31c9 100644 --- a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -13,7 +13,6 @@ import _Concurrency public enum SecureT2UError : Swift.Error { case invalidTransition case invalidData - case failedToGenerateRandomData case failedToEncrypt case failedToDecrypt case scramFetchError @@ -23,6 +22,7 @@ public enum SecureT2UError : Swift.Error { case needsDeviceOwnerVerification case unexpectedCommand case missingDelegate + case offsetReadOutOfBounds public static func == (a: SecureUnlock.SecureT2UError, b: SecureUnlock.SecureT2UError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { @@ -78,7 +78,7 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didRangeBeacons beacons: [CoreLocation.CLBeacon], in region: CoreLocation.CLBeaconRegion) @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, rangingBeaconsDidFailFor region: CoreLocation.CLBeaconRegion, withError error: Swift.Error) } -@objc @_inheritsConvenienceInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { +@objc @_hasMissingDesignatedInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { @objc public static let shared: SecureUnlock.SecureUnlockManager weak final public var delegate: SecureUnlock.SecureUnlockDelegate? { get @@ -86,7 +86,6 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { } @objc final public func start() @objc final public func stop() - @objc override dynamic public init() @objc deinit } extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDelegate { @@ -98,8 +97,8 @@ extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDe @objc final public func peripheralManager(_ peripheral: CoreBluetooth.CBPeripheralManager, willRestoreState dict: [Swift.String : Any]) } public protocol SecureUnlockDelegate : AnyObject { - func secureUnlockSuccess(online: Swift.Bool) - func secureUnlockFailure(error: SecureUnlock.SecureT2UError) + func secureUnlockSuccess(online: Swift.Bool, duration: Foundation.TimeInterval) + func secureUnlockFailure(error: SecureUnlock.SecureT2UError, duration: Foundation.TimeInterval) func secureUnlockLoginIDForOrganization(_ organization: Swift.Int?) -> Swift.Int? func secureUnlockPhoneKeyForLogin(_ login: Swift.Int) -> Swift.String? func secureUnlockFetchCertificate(login: Swift.Int, reader: Swift.Int, online: Swift.Bool, completion: @escaping (Swift.Result) -> Swift.Void) diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc index f4eae93..e6a1570 100644 Binary files a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc and b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftdoc differ diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface index b7e9c45..c4c31c9 100644 --- a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface +++ b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/arm64.swiftinterface @@ -13,7 +13,6 @@ import _Concurrency public enum SecureT2UError : Swift.Error { case invalidTransition case invalidData - case failedToGenerateRandomData case failedToEncrypt case failedToDecrypt case scramFetchError @@ -23,6 +22,7 @@ public enum SecureT2UError : Swift.Error { case needsDeviceOwnerVerification case unexpectedCommand case missingDelegate + case offsetReadOutOfBounds public static func == (a: SecureUnlock.SecureT2UError, b: SecureUnlock.SecureT2UError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { @@ -78,7 +78,7 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didRangeBeacons beacons: [CoreLocation.CLBeacon], in region: CoreLocation.CLBeaconRegion) @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, rangingBeaconsDidFailFor region: CoreLocation.CLBeaconRegion, withError error: Swift.Error) } -@objc @_inheritsConvenienceInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { +@objc @_hasMissingDesignatedInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { @objc public static let shared: SecureUnlock.SecureUnlockManager weak final public var delegate: SecureUnlock.SecureUnlockDelegate? { get @@ -86,7 +86,6 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { } @objc final public func start() @objc final public func stop() - @objc override dynamic public init() @objc deinit } extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDelegate { @@ -98,8 +97,8 @@ extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDe @objc final public func peripheralManager(_ peripheral: CoreBluetooth.CBPeripheralManager, willRestoreState dict: [Swift.String : Any]) } public protocol SecureUnlockDelegate : AnyObject { - func secureUnlockSuccess(online: Swift.Bool) - func secureUnlockFailure(error: SecureUnlock.SecureT2UError) + func secureUnlockSuccess(online: Swift.Bool, duration: Foundation.TimeInterval) + func secureUnlockFailure(error: SecureUnlock.SecureT2UError, duration: Foundation.TimeInterval) func secureUnlockLoginIDForOrganization(_ organization: Swift.Int?) -> Swift.Int? func secureUnlockPhoneKeyForLogin(_ login: Swift.Int) -> Swift.String? func secureUnlockFetchCertificate(login: Swift.Int, reader: Swift.Int, online: Swift.Bool, completion: @escaping (Swift.Result) -> Swift.Void) diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index 94eaa33..f09c966 100644 Binary files a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index 59fa5a9..b3cf57d 100644 --- a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -13,7 +13,6 @@ import _Concurrency public enum SecureT2UError : Swift.Error { case invalidTransition case invalidData - case failedToGenerateRandomData case failedToEncrypt case failedToDecrypt case scramFetchError @@ -23,6 +22,7 @@ public enum SecureT2UError : Swift.Error { case needsDeviceOwnerVerification case unexpectedCommand case missingDelegate + case offsetReadOutOfBounds public static func == (a: SecureUnlock.SecureT2UError, b: SecureUnlock.SecureT2UError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { @@ -78,7 +78,7 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didRangeBeacons beacons: [CoreLocation.CLBeacon], in region: CoreLocation.CLBeaconRegion) @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, rangingBeaconsDidFailFor region: CoreLocation.CLBeaconRegion, withError error: Swift.Error) } -@objc @_inheritsConvenienceInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { +@objc @_hasMissingDesignatedInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { @objc public static let shared: SecureUnlock.SecureUnlockManager weak final public var delegate: SecureUnlock.SecureUnlockDelegate? { get @@ -86,7 +86,6 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { } @objc final public func start() @objc final public func stop() - @objc override dynamic public init() @objc deinit } extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDelegate { @@ -98,8 +97,8 @@ extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDe @objc final public func peripheralManager(_ peripheral: CoreBluetooth.CBPeripheralManager, willRestoreState dict: [Swift.String : Any]) } public protocol SecureUnlockDelegate : AnyObject { - func secureUnlockSuccess(online: Swift.Bool) - func secureUnlockFailure(error: SecureUnlock.SecureT2UError) + func secureUnlockSuccess(online: Swift.Bool, duration: Foundation.TimeInterval) + func secureUnlockFailure(error: SecureUnlock.SecureT2UError, duration: Foundation.TimeInterval) func secureUnlockLoginIDForOrganization(_ organization: Swift.Int?) -> Swift.Int? func secureUnlockPhoneKeyForLogin(_ login: Swift.Int) -> Swift.String? func secureUnlockFetchCertificate(login: Swift.Int, reader: Swift.Int, online: Swift.Bool, completion: @escaping (Swift.Result) -> Swift.Void) diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftdoc b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftdoc index 94eaa33..f09c966 100644 Binary files a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftdoc and b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftdoc differ diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftinterface b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftinterface index 59fa5a9..b3cf57d 100644 --- a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftinterface +++ b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/Modules/SecureUnlock.swiftmodule/x86_64.swiftinterface @@ -13,7 +13,6 @@ import _Concurrency public enum SecureT2UError : Swift.Error { case invalidTransition case invalidData - case failedToGenerateRandomData case failedToEncrypt case failedToDecrypt case scramFetchError @@ -23,6 +22,7 @@ public enum SecureT2UError : Swift.Error { case needsDeviceOwnerVerification case unexpectedCommand case missingDelegate + case offsetReadOutOfBounds public static func == (a: SecureUnlock.SecureT2UError, b: SecureUnlock.SecureT2UError) -> Swift.Bool public func hash(into hasher: inout Swift.Hasher) public var hashValue: Swift.Int { @@ -78,7 +78,7 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didRangeBeacons beacons: [CoreLocation.CLBeacon], in region: CoreLocation.CLBeaconRegion) @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, rangingBeaconsDidFailFor region: CoreLocation.CLBeaconRegion, withError error: Swift.Error) } -@objc @_inheritsConvenienceInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { +@objc @_hasMissingDesignatedInitializers final public class SecureUnlockManager : ObjectiveC.NSObject { @objc public static let shared: SecureUnlock.SecureUnlockManager weak final public var delegate: SecureUnlock.SecureUnlockDelegate? { get @@ -86,7 +86,6 @@ extension SecureUnlock.BeaconManager : CoreLocation.CLLocationManagerDelegate { } @objc final public func start() @objc final public func stop() - @objc override dynamic public init() @objc deinit } extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDelegate { @@ -98,8 +97,8 @@ extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDe @objc final public func peripheralManager(_ peripheral: CoreBluetooth.CBPeripheralManager, willRestoreState dict: [Swift.String : Any]) } public protocol SecureUnlockDelegate : AnyObject { - func secureUnlockSuccess(online: Swift.Bool) - func secureUnlockFailure(error: SecureUnlock.SecureT2UError) + func secureUnlockSuccess(online: Swift.Bool, duration: Foundation.TimeInterval) + func secureUnlockFailure(error: SecureUnlock.SecureT2UError, duration: Foundation.TimeInterval) func secureUnlockLoginIDForOrganization(_ organization: Swift.Int?) -> Swift.Int? func secureUnlockPhoneKeyForLogin(_ login: Swift.Int) -> Swift.String? func secureUnlockFetchCertificate(login: Swift.Int, reader: Swift.Int, online: Swift.Bool, completion: @escaping (Swift.Result) -> Swift.Void) diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/SecureUnlock b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/SecureUnlock index d4608aa..7ed0b65 100755 Binary files a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/SecureUnlock and b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/SecureUnlock differ diff --git a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/_CodeSignature/CodeResources b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/_CodeSignature/CodeResources index a22b035..cf7a4c9 100644 --- a/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/_CodeSignature/CodeResources +++ b/SecureUnlock.xcframework/ios-arm64_x86_64-simulator/SecureUnlock.framework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Headers/SecureUnlock-Swift.h - W0gMxwRGYtFVxgEROj5CEL7iF88= + ipKlu+3/LTZePlhpaCeBaKnwYYk= Headers/SecureUnlock.h @@ -18,51 +18,51 @@ Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftdoc - qEDQUw7rky9+nFOi63EpEGfcPms= + p91EPcG52czdaM70vXkyfXKR2Xs= Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftinterface - hE/BNA1kqgCORYG6k4TIa7WHrK8= + YHkoIPtPq2G+UY/VlNhPuCZ4Xec= Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftmodule - w9PWR7vBCJMSqEp5Nw8M8DpHTPo= + 2/UnlnmlyNRJ4DOVreQeMYnP3wE= Modules/SecureUnlock.swiftmodule/arm64.swiftdoc - qEDQUw7rky9+nFOi63EpEGfcPms= + p91EPcG52czdaM70vXkyfXKR2Xs= Modules/SecureUnlock.swiftmodule/arm64.swiftinterface - hE/BNA1kqgCORYG6k4TIa7WHrK8= + YHkoIPtPq2G+UY/VlNhPuCZ4Xec= Modules/SecureUnlock.swiftmodule/arm64.swiftmodule - w9PWR7vBCJMSqEp5Nw8M8DpHTPo= + 2/UnlnmlyNRJ4DOVreQeMYnP3wE= Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - IKJZXbjkg0M2esxT/udiEJ3hcBQ= + Yg3WECoye+PF67EDzRW0NrpeuHc= Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - euFRLdHsNrxcXCmly9j4wKLOQqM= + ZKrD3mVP8dL2ow38m+00RiGQ1yQ= Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - vRLqa96pDe0KBXjWwPUjvQixusg= + uWc0u2GHITESPiwLjdQBZZ2pGH8= Modules/SecureUnlock.swiftmodule/x86_64.swiftdoc - IKJZXbjkg0M2esxT/udiEJ3hcBQ= + Yg3WECoye+PF67EDzRW0NrpeuHc= Modules/SecureUnlock.swiftmodule/x86_64.swiftinterface - euFRLdHsNrxcXCmly9j4wKLOQqM= + ZKrD3mVP8dL2ow38m+00RiGQ1yQ= Modules/SecureUnlock.swiftmodule/x86_64.swiftmodule - vRLqa96pDe0KBXjWwPUjvQixusg= + uWc0u2GHITESPiwLjdQBZZ2pGH8= Modules/module.modulemap @@ -75,7 +75,7 @@ hash2 - +zKpo85HGbk+WUJ1OtbmeWtyfRxeAARLysnnIZj40Lg= + rL7V845EfP68QG4VBO+5eK9+M+Idtd9YztXKUuN624w= Headers/SecureUnlock.h @@ -89,84 +89,84 @@ hash2 - nrrPQcS9Oyv6QdOZ3WyQb7puOcliBTGAvocEGqOeXN8= + mVGTNXaO1YM9PFWiO6pZrbTgSemfqWO0RF5cOaG1Qf0= Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftinterface hash2 - ksMdvsCTtBqbZpwYh/oDqhej4vVYgyv4mLn2S887otk= + DfPIgv18Kc+rDuF9I/46dx4HogoqiiFLhShJgxpiWkI= Modules/SecureUnlock.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - 8yBvBhpbHs3eFwpMwT2lBrwsaNVNWG5SxbOIMLMfEGk= + OKS6GfNu5L3GKDRlj0ZM6LVkxjpKS89VzBFmrwAxNNQ= Modules/SecureUnlock.swiftmodule/arm64.swiftdoc hash2 - nrrPQcS9Oyv6QdOZ3WyQb7puOcliBTGAvocEGqOeXN8= + mVGTNXaO1YM9PFWiO6pZrbTgSemfqWO0RF5cOaG1Qf0= Modules/SecureUnlock.swiftmodule/arm64.swiftinterface hash2 - ksMdvsCTtBqbZpwYh/oDqhej4vVYgyv4mLn2S887otk= + DfPIgv18Kc+rDuF9I/46dx4HogoqiiFLhShJgxpiWkI= Modules/SecureUnlock.swiftmodule/arm64.swiftmodule hash2 - 8yBvBhpbHs3eFwpMwT2lBrwsaNVNWG5SxbOIMLMfEGk= + OKS6GfNu5L3GKDRlj0ZM6LVkxjpKS89VzBFmrwAxNNQ= Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash2 - UOBz/4JR1sd+RDhhju++rRmqy4Lf5G4xFTyu8qZTxu0= + Bxgth5vGtFLf5I1F3bbs9jOiM9yzDG3K3ysuwO5Ve1E= Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftinterface hash2 - CQqpsJtUIzK8Qtqw7eApggqmzQX/jfL+McGlDEZQBFQ= + w6Zp913RGTB4ZN+z/B5/rKKIw8+F4/wYLMjCrIVxX/k= Modules/SecureUnlock.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - XNaUHSN2CYEqLi/x/uxXpQnWrcEmfVJoezBjqIcljJE= + 1lNbquF3Z0LSTwyuAptpB3KdJLgHZoV2M7oso5P6IwI= Modules/SecureUnlock.swiftmodule/x86_64.swiftdoc hash2 - UOBz/4JR1sd+RDhhju++rRmqy4Lf5G4xFTyu8qZTxu0= + Bxgth5vGtFLf5I1F3bbs9jOiM9yzDG3K3ysuwO5Ve1E= Modules/SecureUnlock.swiftmodule/x86_64.swiftinterface hash2 - CQqpsJtUIzK8Qtqw7eApggqmzQX/jfL+McGlDEZQBFQ= + w6Zp913RGTB4ZN+z/B5/rKKIw8+F4/wYLMjCrIVxX/k= Modules/SecureUnlock.swiftmodule/x86_64.swiftmodule hash2 - XNaUHSN2CYEqLi/x/uxXpQnWrcEmfVJoezBjqIcljJE= + 1lNbquF3Z0LSTwyuAptpB3KdJLgHZoV2M7oso5P6IwI= Modules/module.modulemap