Skip to content

Commit 53ecc52

Browse files
Firefox Sync Engineeringlinabutler
authored andcommitted
Nightly auto-update (127.0.1)
1 parent 5bfe57d commit 53ecc52

File tree

5 files changed

+98
-14
lines changed

5 files changed

+98
-14
lines changed

Package.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// swift-tools-version:5.4
22
import PackageDescription
33

4-
let checksum = "36e6140abe7094ca7e07cd2e3dbea8d15870333eaf96bfb6756a3d43ceda273b"
5-
let version = "127.0.0"
6-
let url = "https://archive.mozilla.org/pub/app-services/releases/127.0/MozillaRustComponents.xcframework.zip"
4+
let checksum = "dfc9af0094f5c8159bb6df8cdfb6ebae38a364f7dba6b85d532e482167f3abb2"
5+
let version = "127.0.1"
6+
let url = "https://archive.mozilla.org/pub/app-services/releases/127.0.1/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "5ccfcea7f88dcf374e1b19ae7f966d662eb7c9b582e5e2c68b86e4293f8bd86e"
10-
let focusUrl = "https://archive.mozilla.org/pub/app-services/releases/127.0/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "1281cc31892cdaa3ebb244898a0818de759be2d6e37ffcf5bd780dfe895af2a3"
10+
let focusUrl = "https://archive.mozilla.org/pub/app-services/releases/127.0.1/FocusRustComponents.xcframework.zip"
1111
let package = Package(
1212
name: "MozillaRustComponentsSwift",
1313
platforms: [.iOS(.v14)],

swift-source/all/Generated/Metrics/Metrics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -*- mode: Swift -*-
22

3-
// AUTOGENERATED BY glean_parser v14.1.1. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v14.1.2. DO NOT EDIT. DO NOT COMMIT.
44

55
#if canImport(Foundation)
66
import Foundation
@@ -23,7 +23,7 @@ extension GleanMetrics {
2323
// Intentionally left private, no external user can instantiate a new global object.
2424
}
2525

26-
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 13, hour: 13, minute: 55, second: 29))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 30, hour: 12, minute: 11, second: 22))
2727
}
2828

2929
enum NimbusEvents {

swift-source/all/Generated/suggest.swift

Lines changed: 88 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ public protocol SuggestStoreProtocol : AnyObject {
521521

522522
func ingest(constraints: SuggestIngestionConstraints) throws
523523

524-
func interrupt()
524+
func interrupt(kind: InterruptKind?)
525525

526526
func query(query: SuggestionQuery) throws -> [Suggestion]
527527

@@ -617,8 +617,9 @@ open func ingest(constraints: SuggestIngestionConstraints)throws {try rustCallW
617617
}
618618
}
619619

620-
open func interrupt() {try! rustCall() {
621-
uniffi_suggest_fn_method_suggeststore_interrupt(self.uniffiClonePointer(),$0
620+
open func interrupt(kind: InterruptKind? = nil) {try! rustCall() {
621+
uniffi_suggest_fn_method_suggeststore_interrupt(self.uniffiClonePointer(),
622+
FfiConverterOptionTypeInterruptKind.lower(kind),$0
622623
)
623624
}
624625
}
@@ -1003,6 +1004,68 @@ public func FfiConverterTypeSuggestionQuery_lower(_ value: SuggestionQuery) -> R
10031004
return FfiConverterTypeSuggestionQuery.lower(value)
10041005
}
10051006

1007+
// Note that we don't yet support `indirect` for enums.
1008+
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
1009+
1010+
public enum InterruptKind {
1011+
1012+
case read
1013+
case write
1014+
case readWrite
1015+
}
1016+
1017+
1018+
public struct FfiConverterTypeInterruptKind: FfiConverterRustBuffer {
1019+
typealias SwiftType = InterruptKind
1020+
1021+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> InterruptKind {
1022+
let variant: Int32 = try readInt(&buf)
1023+
switch variant {
1024+
1025+
case 1: return .read
1026+
1027+
case 2: return .write
1028+
1029+
case 3: return .readWrite
1030+
1031+
default: throw UniffiInternalError.unexpectedEnumCase
1032+
}
1033+
}
1034+
1035+
public static func write(_ value: InterruptKind, into buf: inout [UInt8]) {
1036+
switch value {
1037+
1038+
1039+
case .read:
1040+
writeInt(&buf, Int32(1))
1041+
1042+
1043+
case .write:
1044+
writeInt(&buf, Int32(2))
1045+
1046+
1047+
case .readWrite:
1048+
writeInt(&buf, Int32(3))
1049+
1050+
}
1051+
}
1052+
}
1053+
1054+
1055+
public func FfiConverterTypeInterruptKind_lift(_ buf: RustBuffer) throws -> InterruptKind {
1056+
return try FfiConverterTypeInterruptKind.lift(buf)
1057+
}
1058+
1059+
public func FfiConverterTypeInterruptKind_lower(_ value: InterruptKind) -> RustBuffer {
1060+
return FfiConverterTypeInterruptKind.lower(value)
1061+
}
1062+
1063+
1064+
1065+
extension InterruptKind: Equatable, Hashable {}
1066+
1067+
1068+
10061069

10071070
public enum SuggestApiError {
10081071

@@ -1435,6 +1498,27 @@ fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
14351498
}
14361499
}
14371500

1501+
fileprivate struct FfiConverterOptionTypeInterruptKind: FfiConverterRustBuffer {
1502+
typealias SwiftType = InterruptKind?
1503+
1504+
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
1505+
guard let value = value else {
1506+
writeInt(&buf, Int8(0))
1507+
return
1508+
}
1509+
writeInt(&buf, Int8(1))
1510+
FfiConverterTypeInterruptKind.write(value, into: &buf)
1511+
}
1512+
1513+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
1514+
switch try readInt(&buf) as Int8 {
1515+
case 0: return nil
1516+
case 1: return try FfiConverterTypeInterruptKind.read(from: &buf)
1517+
default: throw UniffiInternalError.unexpectedOptionalTag
1518+
}
1519+
}
1520+
}
1521+
14381522
fileprivate struct FfiConverterOptionTypeSuggestProviderConfig: FfiConverterRustBuffer {
14391523
typealias SwiftType = SuggestProviderConfig?
14401524

@@ -1633,7 +1717,7 @@ private var initializationResult: InitializationResult {
16331717
if (uniffi_suggest_checksum_method_suggeststore_ingest() != 4478) {
16341718
return InitializationResult.apiChecksumMismatch
16351719
}
1636-
if (uniffi_suggest_checksum_method_suggeststore_interrupt() != 11751) {
1720+
if (uniffi_suggest_checksum_method_suggeststore_interrupt() != 17785) {
16371721
return InitializationResult.apiChecksumMismatch
16381722
}
16391723
if (uniffi_suggest_checksum_method_suggeststore_query() != 12875) {

swift-source/all/Generated/suggestFFI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void uniffi_suggest_fn_method_suggeststore_ingest(void*_Nonnull ptr, RustBuffer
298298
#endif
299299
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTORE_INTERRUPT
300300
#define UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTORE_INTERRUPT
301-
void uniffi_suggest_fn_method_suggeststore_interrupt(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
301+
void uniffi_suggest_fn_method_suggeststore_interrupt(void*_Nonnull ptr, RustBuffer kind, RustCallStatus *_Nonnull out_status
302302
);
303303
#endif
304304
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTORE_QUERY

swift-source/focus/Generated/Metrics/Metrics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -*- mode: Swift -*-
22

3-
// AUTOGENERATED BY glean_parser v14.1.1. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v14.1.2. DO NOT EDIT. DO NOT COMMIT.
44

55
#if canImport(Foundation)
66
import Foundation
@@ -23,7 +23,7 @@ extension GleanMetrics {
2323
// Intentionally left private, no external user can instantiate a new global object.
2424
}
2525

26-
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 13, hour: 13, minute: 55, second: 32))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 30, hour: 12, minute: 11, second: 24))
2727
}
2828

2929
enum NimbusEvents {

0 commit comments

Comments
 (0)