Skip to content

Commit cadf075

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (127.0.20240510050250)
1 parent 7797407 commit cadf075

File tree

5 files changed

+103
-7
lines changed

5 files changed

+103
-7
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 = "224ef92a42f3e38f5886b0f01df8554b1e0fe183f6dcc0f5b46a11fa98048683"
5-
let version = "127.0.20240509050254"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.127.20240509050254/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "0beca475e38cc547e49fe4c6ac77f03bf6c3289d27bc9479b37a8db953643fe6"
5+
let version = "127.0.20240510050250"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.127.20240510050250/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "9179e821de8c98c8736fedab63dc38f12019c172a73bada9e6b3ff2a50ededbb"
10-
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.127.20240509050254/artifacts/public/build/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "339e0ec09374b8a9f2888abdf682c2d995708dcfb68803277bce40b790accfd9"
10+
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.127.20240510050250/artifacts/public/build/FocusRustComponents.xcframework.zip"
1111
let package = Package(
1212
name: "MozillaRustComponentsSwift",
1313
platforms: [.iOS(.v14)],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: 9, hour: 5, minute: 21, second: 31))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 10, hour: 5, minute: 18, second: 25))
2727
}
2828

2929
enum NimbusEvents {

swift-source/all/Generated/tabs.swift

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,8 @@ public func FfiConverterTypeTabsBridgedEngine_lower(_ value: TabsBridgedEngine)
636636
}
637637

638638
public protocol TabsStoreProtocol: AnyObject {
639+
func addPendingRemoteTabClosure(tabsRequestedClosed: [TabsRequestedClose])
640+
639641
func bridgedEngine() -> TabsBridgedEngine
640642

641643
func getAll() -> [ClientRemoteTabs]
@@ -693,6 +695,12 @@ open class TabsStore:
693695
try! rustCall { uniffi_tabs_fn_free_tabsstore(pointer, $0) }
694696
}
695697

698+
open func addPendingRemoteTabClosure(tabsRequestedClosed: [TabsRequestedClose]) { try! rustCall {
699+
uniffi_tabs_fn_method_tabsstore_add_pending_remote_tab_closure(self.uniffiClonePointer(),
700+
FfiConverterSequenceTypeTabsRequestedClose.lower(tabsRequestedClosed), $0)
701+
}
702+
}
703+
696704
open func bridgedEngine() -> TabsBridgedEngine {
697705
return try! FfiConverterTypeTabsBridgedEngine.lift(try! rustCall {
698706
uniffi_tabs_fn_method_tabsstore_bridged_engine(self.uniffiClonePointer(), $0)
@@ -907,6 +915,58 @@ public func FfiConverterTypeRemoteTabRecord_lower(_ value: RemoteTabRecord) -> R
907915
return FfiConverterTypeRemoteTabRecord.lower(value)
908916
}
909917

918+
public struct TabsRequestedClose {
919+
public var clientId: String
920+
public var urls: [String]
921+
922+
// Default memberwise initializers are never public by default, so we
923+
// declare one manually.
924+
public init(clientId: String, urls: [String]) {
925+
self.clientId = clientId
926+
self.urls = urls
927+
}
928+
}
929+
930+
extension TabsRequestedClose: Equatable, Hashable {
931+
public static func == (lhs: TabsRequestedClose, rhs: TabsRequestedClose) -> Bool {
932+
if lhs.clientId != rhs.clientId {
933+
return false
934+
}
935+
if lhs.urls != rhs.urls {
936+
return false
937+
}
938+
return true
939+
}
940+
941+
public func hash(into hasher: inout Hasher) {
942+
hasher.combine(clientId)
943+
hasher.combine(urls)
944+
}
945+
}
946+
947+
public struct FfiConverterTypeTabsRequestedClose: FfiConverterRustBuffer {
948+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> TabsRequestedClose {
949+
return
950+
try TabsRequestedClose(
951+
clientId: FfiConverterString.read(from: &buf),
952+
urls: FfiConverterSequenceString.read(from: &buf)
953+
)
954+
}
955+
956+
public static func write(_ value: TabsRequestedClose, into buf: inout [UInt8]) {
957+
FfiConverterString.write(value.clientId, into: &buf)
958+
FfiConverterSequenceString.write(value.urls, into: &buf)
959+
}
960+
}
961+
962+
public func FfiConverterTypeTabsRequestedClose_lift(_ buf: RustBuffer) throws -> TabsRequestedClose {
963+
return try FfiConverterTypeTabsRequestedClose.lift(buf)
964+
}
965+
966+
public func FfiConverterTypeTabsRequestedClose_lower(_ value: TabsRequestedClose) -> RustBuffer {
967+
return FfiConverterTypeTabsRequestedClose.lower(value)
968+
}
969+
910970
public enum TabsApiError {
911971
case SyncError(reason: String
912972
)
@@ -1044,6 +1104,28 @@ private struct FfiConverterSequenceTypeRemoteTabRecord: FfiConverterRustBuffer {
10441104
}
10451105
}
10461106

1107+
private struct FfiConverterSequenceTypeTabsRequestedClose: FfiConverterRustBuffer {
1108+
typealias SwiftType = [TabsRequestedClose]
1109+
1110+
public static func write(_ value: [TabsRequestedClose], into buf: inout [UInt8]) {
1111+
let len = Int32(value.count)
1112+
writeInt(&buf, len)
1113+
for item in value {
1114+
FfiConverterTypeTabsRequestedClose.write(item, into: &buf)
1115+
}
1116+
}
1117+
1118+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> [TabsRequestedClose] {
1119+
let len: Int32 = try readInt(&buf)
1120+
var seq = [TabsRequestedClose]()
1121+
seq.reserveCapacity(Int(len))
1122+
for _ in 0 ..< len {
1123+
try seq.append(FfiConverterTypeTabsRequestedClose.read(from: &buf))
1124+
}
1125+
return seq
1126+
}
1127+
}
1128+
10471129
private struct FfiConverterSequenceTypeTabsGuid: FfiConverterRustBuffer {
10481130
typealias SwiftType = [TabsGuid]
10491131

@@ -1152,6 +1234,9 @@ private var initializationResult: InitializationResult {
11521234
if uniffi_tabs_checksum_method_tabsbridgedengine_wipe() != 21505 {
11531235
return InitializationResult.apiChecksumMismatch
11541236
}
1237+
if uniffi_tabs_checksum_method_tabsstore_add_pending_remote_tab_closure() != 37789 {
1238+
return InitializationResult.apiChecksumMismatch
1239+
}
11551240
if uniffi_tabs_checksum_method_tabsstore_bridged_engine() != 43478 {
11561241
return InitializationResult.apiChecksumMismatch
11571242
}

swift-source/all/Generated/tabsFFI.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ void uniffi_tabs_fn_free_tabsstore(void*_Nonnull ptr, RustCallStatus *_Nonnull o
341341
void*_Nonnull uniffi_tabs_fn_constructor_tabsstore_new(RustBuffer path, RustCallStatus *_Nonnull out_status
342342
);
343343
#endif
344+
#ifndef UNIFFI_FFIDEF_UNIFFI_TABS_FN_METHOD_TABSSTORE_ADD_PENDING_REMOTE_TAB_CLOSURE
345+
#define UNIFFI_FFIDEF_UNIFFI_TABS_FN_METHOD_TABSSTORE_ADD_PENDING_REMOTE_TAB_CLOSURE
346+
void uniffi_tabs_fn_method_tabsstore_add_pending_remote_tab_closure(void*_Nonnull ptr, RustBuffer tabs_requested_closed, RustCallStatus *_Nonnull out_status
347+
);
348+
#endif
344349
#ifndef UNIFFI_FFIDEF_UNIFFI_TABS_FN_METHOD_TABSSTORE_BRIDGED_ENGINE
345350
#define UNIFFI_FFIDEF_UNIFFI_TABS_FN_METHOD_TABSSTORE_BRIDGED_ENGINE
346351
void*_Nonnull uniffi_tabs_fn_method_tabsstore_bridged_engine(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
@@ -717,6 +722,12 @@ uint16_t uniffi_tabs_checksum_method_tabsbridgedengine_sync_started(void
717722
#define UNIFFI_FFIDEF_UNIFFI_TABS_CHECKSUM_METHOD_TABSBRIDGEDENGINE_WIPE
718723
uint16_t uniffi_tabs_checksum_method_tabsbridgedengine_wipe(void
719724

725+
);
726+
#endif
727+
#ifndef UNIFFI_FFIDEF_UNIFFI_TABS_CHECKSUM_METHOD_TABSSTORE_ADD_PENDING_REMOTE_TAB_CLOSURE
728+
#define UNIFFI_FFIDEF_UNIFFI_TABS_CHECKSUM_METHOD_TABSSTORE_ADD_PENDING_REMOTE_TAB_CLOSURE
729+
uint16_t uniffi_tabs_checksum_method_tabsstore_add_pending_remote_tab_closure(void
730+
720731
);
721732
#endif
722733
#ifndef UNIFFI_FFIDEF_UNIFFI_TABS_CHECKSUM_METHOD_TABSSTORE_BRIDGED_ENGINE

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: 9, hour: 5, minute: 21, second: 33))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 10, hour: 5, minute: 18, second: 27))
2727
}
2828

2929
enum NimbusEvents {

0 commit comments

Comments
 (0)