Skip to content

Commit

Permalink
Updated to 0.4.0 version of framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaoj committed Apr 20, 2022
1 parent f16fa67 commit ee05f82
Show file tree
Hide file tree
Showing 22 changed files with 102 additions and 482 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ extension MyClass: SecureUnlockDelegate {
// Duration parameter tells how long the unlock took
}

func secureUnlockClientID() -> Int {
// Request your client id on [email protected] and return it here
}

func secureUnlockLoginIDForOrganization(_ organization: Int?) -> Int? {
// 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.
Expand Down
10 changes: 5 additions & 5 deletions SecureUnlock.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SecureUnlock.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>SecureUnlock.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
#ifndef SECUREUNLOCK_SWIFT_H
#define SECUREUNLOCK_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -184,6 +184,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
// swift-module-flags: -target arm64-apple-ios12.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name SecureUnlock
import CommonCrypto
import CoreBluetooth
Expand All @@ -12,7 +12,10 @@ import Swift
import _Concurrency
public enum SecureT2UError : Swift.Error {
case invalidTransition
case invalidData
case orgInvalidPayload
case missingLogin
case readerProofInvalidPayload
case certificateInvalidPayload
case failedToEncrypt
case failedToDecrypt
case scramFetchError
Expand All @@ -23,6 +26,7 @@ public enum SecureT2UError : Swift.Error {
case unexpectedCommand
case missingDelegate
case offsetReadOutOfBounds
case unrecognizedEvent
public static func == (a: SecureUnlock.SecureT2UError, b: SecureUnlock.SecureT2UError) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
Expand All @@ -45,6 +49,13 @@ public struct SecureUnlockLogger {
public static var info: ((_ message: Swift.String, _ file: Swift.String, _ function: Swift.String) -> Swift.Void)?
public static var error: ((_ message: Swift.String, _ file: Swift.String, _ function: Swift.String) -> Swift.Void)?
}
public struct Login {
public var id: Swift.Int
public var token: Swift.String
public var key: Swift.String
public var certificate: Swift.String
public init(id: Swift.Int, token: Swift.String, key: Swift.String, certificate: Swift.String)
}
public struct BeaconLock : Swift.Identifiable, Swift.Equatable, Swift.Codable {
public var id: Swift.Int
public var oneTimePassword: Swift.Int
Expand Down Expand Up @@ -104,9 +115,8 @@ extension SecureUnlock.SecureUnlockManager : CoreBluetooth.CBPeripheralManagerDe
public protocol SecureUnlockDelegate : AnyObject {
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.String, SecureUnlock.SecureT2UError>) -> Swift.Void)
func secureUnlockClientID() -> Swift.Int
func secureUnlockLoginForOrganization(_ organization: Swift.Int?) -> SecureUnlock.Login?
}
extension SecureUnlock.SecureT2UError : Swift.Equatable {}
extension SecureUnlock.SecureT2UError : Swift.Hashable {}
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,27 @@
<dict>
<key>Headers/SecureUnlock-Swift.h</key>
<data>
Os+OvOn79NQhl1FWY1VzXRtLUV0=
bfpkxC2RD7NWpOdcbGqEfVKUdw4=
</data>
<key>Headers/SecureUnlock.h</key>
<data>
WPUVhBNjR9E9bZJOu3snxg5tL9o=
</data>
<key>Info.plist</key>
<data>
llWGYazZwlfilP2y2GMsYHvfRfo=
7oQ049KWH8nlpvVHXGdksUKG9hI=
</data>
<key>Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftdoc</key>
<data>
Hafng9KRopwxj8nb05yeYt7yzpI=
jyyrDWNN7vKsQv1AtsNoyI6vTIw=
</data>
<key>Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface</key>
<data>
OO8yUx7JtpIABilXMof3g8WfpKU=
ZZD0c+CZHzj0HUDmXqrQOjDP4LE=
</data>
<key>Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftmodule</key>
<data>
MPNYDSQUX+mKytPZR2szhjcWN3k=
</data>
<key>Modules/SecureUnlock.swiftmodule/arm64.swiftdoc</key>
<data>
Hafng9KRopwxj8nb05yeYt7yzpI=
</data>
<key>Modules/SecureUnlock.swiftmodule/arm64.swiftinterface</key>
<data>
OO8yUx7JtpIABilXMof3g8WfpKU=
</data>
<key>Modules/SecureUnlock.swiftmodule/arm64.swiftmodule</key>
<data>
MPNYDSQUX+mKytPZR2szhjcWN3k=
060VFR5j5Yblghy86Yae2LsmI4A=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand All @@ -51,7 +39,7 @@
<dict>
<key>hash2</key>
<data>
35brDVsLvbwX02qfhdBm9C0Isp7boel/4fsRGlKrurk=
/5T4uh1GT/gPF4fxXjeUi5tkZ2sWX3FSpQqMHMPkdjY=
</data>
</dict>
<key>Headers/SecureUnlock.h</key>
Expand All @@ -65,42 +53,21 @@
<dict>
<key>hash2</key>
<data>
RmZMsBn6myS7EsKMrbiVff4DlOzXfVGZ/ydtN5VvRPw=
qu8uX8p1Q2mlPfIIINbXcQJlVtIfTNeLqzE1Ei4b6LA=
</data>
</dict>
<key>Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
brM6TNxbM6l0LaP2yp5rA2Nb6Fr4Niwgb3XABI4h43Y=
oZXGber/aGvgsJk3Mv23yi4ijIQCTD8W2G9JJGfLudQ=
</data>
</dict>
<key>Modules/SecureUnlock.swiftmodule/arm64-apple-ios.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
xHLlHenifWNl90UMqmTizi3JIee9XTCizStdshwqu3Y=
</data>
</dict>
<key>Modules/SecureUnlock.swiftmodule/arm64.swiftdoc</key>
<dict>
<key>hash2</key>
<data>
RmZMsBn6myS7EsKMrbiVff4DlOzXfVGZ/ydtN5VvRPw=
</data>
</dict>
<key>Modules/SecureUnlock.swiftmodule/arm64.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
brM6TNxbM6l0LaP2yp5rA2Nb6Fr4Niwgb3XABI4h43Y=
</data>
</dict>
<key>Modules/SecureUnlock.swiftmodule/arm64.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
xHLlHenifWNl90UMqmTizi3JIee9XTCizStdshwqu3Y=
PkJcTYFYrEAx7jmk46/lKFFddPGjex5WmBgyJ9GlPOU=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
#ifndef SECUREUNLOCK_SWIFT_H
#define SECUREUNLOCK_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -186,6 +186,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
Expand Down Expand Up @@ -280,7 +287,7 @@ SWIFT_AVAILABILITY(ios,introduced=13.0)
#endif

#elif defined(__x86_64__) && __x86_64__
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
#ifndef SECUREUNLOCK_SWIFT_H
#define SECUREUNLOCK_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -466,6 +473,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
# define SWIFT_EXTERN extern "C"
# else
# define SWIFT_EXTERN extern
# endif
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit ee05f82

Please sign in to comment.