Implement iPhone password search

This commit is contained in:
2026-08-11 21:43:25 +02:00
parent 358ba7d46d
commit a748744425
8 changed files with 397 additions and 10 deletions

View File

@@ -5290,6 +5290,7 @@ public enum MobileTab: Equatable, Hashable {
case home
case passwords
case search
case totp
case preferences
@@ -5317,9 +5318,11 @@ public struct FfiConverterTypeMobileTab: FfiConverterRustBuffer {
case 2: return .passwords
case 3: return .totp
case 3: return .search
case 4: return .preferences
case 4: return .totp
case 5: return .preferences
default: throw UniffiInternalError.unexpectedEnumCase
}
@@ -5337,13 +5340,17 @@ public struct FfiConverterTypeMobileTab: FfiConverterRustBuffer {
writeInt(&buf, Int32(2))
case .totp:
case .search:
writeInt(&buf, Int32(3))
case .preferences:
case .totp:
writeInt(&buf, Int32(4))
case .preferences:
writeInt(&buf, Int32(5))
}
}
}
@@ -5914,6 +5921,14 @@ public func mobilePasswordPage(path: String?)throws -> MobilePasswordPage {
)
})
}
public func mobilePasswordSearch(query: String)throws -> MobilePasswordPage {
return try FfiConverterTypeMobilePasswordPage_lift(try rustCallWithError(FfiConverterTypeMobilePasswordFfiError_lift) {
uniffiCallStatus in
uniffi_ironstorage_apple_fn_func_mobile_password_search(
FfiConverterString.lower(query),uniffiCallStatus
)
})
}
public func mobileShell() -> MobileShell {
return try! FfiConverterTypeMobileShell_lift(try! rustCall() {
uniffiCallStatus in
@@ -5982,6 +5997,9 @@ private let initializationResult: InitializationResult = {
if (uniffi_ironstorage_apple_checksum_func_mobile_password_page() != 64312) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_ironstorage_apple_checksum_func_mobile_password_search() != 23429) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_ironstorage_apple_checksum_func_mobile_shell() != 42687) {
return InitializationResult.apiChecksumMismatch
}