Allow locked iPhone Git actions (#51)
This commit is contained in:
@@ -6519,6 +6519,30 @@ fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.8)
|
||||
@_documentation(visibility: private)
|
||||
#endif
|
||||
fileprivate struct FfiConverterOptionTypeMobileAuthentication: FfiConverterRustBuffer {
|
||||
typealias SwiftType = MobileAuthentication?
|
||||
|
||||
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
|
||||
guard let value = value else {
|
||||
writeInt(&buf, Int8(0))
|
||||
return
|
||||
}
|
||||
writeInt(&buf, Int8(1))
|
||||
FfiConverterTypeMobileAuthentication.write(value, into: &buf)
|
||||
}
|
||||
|
||||
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
|
||||
switch try readInt(&buf) as Int8 {
|
||||
case 0: return nil
|
||||
case 1: return try FfiConverterTypeMobileAuthentication.read(from: &buf)
|
||||
default: throw UniffiInternalError.unexpectedOptionalTag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.8)
|
||||
@_documentation(visibility: private)
|
||||
#endif
|
||||
@@ -7020,11 +7044,11 @@ public func mobileAuthentication()throws -> MobileAuthentication {
|
||||
)
|
||||
})
|
||||
}
|
||||
public func mobileHomeOperation(authentication: MobileAuthentication) -> MobileHomeOperation {
|
||||
public func mobileHomeOperation(authentication: MobileAuthentication?) -> MobileHomeOperation {
|
||||
return try! FfiConverterTypeMobileHomeOperation_lift(try! rustCall() {
|
||||
uniffiCallStatus in
|
||||
uniffi_ironstorage_apple_fn_func_mobile_home_operation(
|
||||
FfiConverterTypeMobileAuthentication_lower(authentication),uniffiCallStatus
|
||||
FfiConverterOptionTypeMobileAuthentication.lower(authentication),uniffiCallStatus
|
||||
)
|
||||
})
|
||||
}
|
||||
@@ -7125,7 +7149,7 @@ private let initializationResult: InitializationResult = {
|
||||
if (uniffi_ironstorage_apple_checksum_func_mobile_authentication() != 38258) {
|
||||
return InitializationResult.apiChecksumMismatch
|
||||
}
|
||||
if (uniffi_ironstorage_apple_checksum_func_mobile_home_operation() != 64540) {
|
||||
if (uniffi_ironstorage_apple_checksum_func_mobile_home_operation() != 26980) {
|
||||
return InitializationResult.apiChecksumMismatch
|
||||
}
|
||||
if (uniffi_ironstorage_apple_checksum_func_mobile_key_transfer() != 57389) {
|
||||
|
||||
@@ -561,7 +561,7 @@ uint64_t uniffi_ironstorage_apple_fn_func_mobile_authentication(RustCallStatus *
|
||||
#endif
|
||||
#ifndef UNIFFI_FFIDEF_UNIFFI_IRONSTORAGE_APPLE_FN_FUNC_MOBILE_HOME_OPERATION
|
||||
#define UNIFFI_FFIDEF_UNIFFI_IRONSTORAGE_APPLE_FN_FUNC_MOBILE_HOME_OPERATION
|
||||
uint64_t uniffi_ironstorage_apple_fn_func_mobile_home_operation(uint64_t authentication, RustCallStatus *_Nonnull out_status
|
||||
uint64_t uniffi_ironstorage_apple_fn_func_mobile_home_operation(RustBuffer authentication, RustCallStatus *_Nonnull out_status
|
||||
);
|
||||
#endif
|
||||
#ifndef UNIFFI_FFIDEF_UNIFFI_IRONSTORAGE_APPLE_FN_FUNC_MOBILE_KEY_TRANSFER
|
||||
|
||||
@@ -592,10 +592,6 @@ private final class ShellViewController: UITableViewController, MobileTabRoot {
|
||||
guard homePage == nil, homeTask == nil, !isHomeWorking else { return }
|
||||
homeGeneration += 1
|
||||
let current = homeGeneration
|
||||
guard let authentication else {
|
||||
showHomeFailure(.unavailable)
|
||||
return
|
||||
}
|
||||
let operation = mobileHomeOperation(authentication: authentication)
|
||||
homeOperation = operation
|
||||
isHomeWorking = true
|
||||
@@ -621,10 +617,6 @@ private final class ShellViewController: UITableViewController, MobileTabRoot {
|
||||
|
||||
private func runHome(_ request: HomeRequest) {
|
||||
guard page.state == .ready, shellTab == .home, !isHomeWorking else { return }
|
||||
guard let authentication else {
|
||||
showHomeFailure(.unavailable)
|
||||
return
|
||||
}
|
||||
cancelHomeWork()
|
||||
homeGeneration += 1
|
||||
let current = homeGeneration
|
||||
@@ -5421,12 +5413,6 @@ private struct HomeFailure: Error, Sendable {
|
||||
detail: "IronStorage could not load the storage-provided Home page."
|
||||
)
|
||||
|
||||
static let unavailable = HomeFailure(
|
||||
kind: .configuration,
|
||||
title: "Home Is Unavailable",
|
||||
detail: "Complete password-store setup before using Git actions."
|
||||
)
|
||||
|
||||
private init(kind: MobileHomeErrorKind, title: String, detail: String) {
|
||||
self.kind = kind
|
||||
self.title = title
|
||||
|
||||
Reference in New Issue
Block a user