Skip to content

Commit dc01828

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (142.0.20250701050249)
1 parent 4a77bac commit dc01828

File tree

5 files changed

+106
-15
lines changed

5 files changed

+106
-15
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 = "810a5d18c8a2bb9450daa1b39dd3f6e9d15c6a18a8dd0d6ba4a148e3dfc2e0a9"
5-
let version = "142.0.20250628050320"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.142.20250628050320/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "2a2b5f3ff987878d309f0fb665554c574e39bc08ecb451fdfa398f704f2e598a"
5+
let version = "142.0.20250701050249"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.142.20250701050249/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "20c10baf55ffc51929fb3f18335761b238a2b1def6758d87e99610c8fcddeb3e"
10-
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.142.20250628050320/artifacts/public/build/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "ed86287321b37432282b4d67495ac9a1ef7a96f1fe61124dcfc1075c0dfe5f32"
10+
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.142.20250701050249/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: 2025, month: 6, day: 28, hour: 5, minute: 12, second: 36))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2025, month: 7, day: 1, hour: 5, minute: 13, second: 5))
2727
}
2828

2929
enum NimbusEvents {

swift-source/all/Generated/logins.swift

Lines changed: 98 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,22 @@ fileprivate final class UniffiHandleMap<T>: @unchecked Sendable {
397397
// Public interface members begin here.
398398

399399

400+
#if swift(>=5.8)
401+
@_documentation(visibility: private)
402+
#endif
403+
fileprivate struct FfiConverterUInt64: FfiConverterPrimitive {
404+
typealias FfiType = UInt64
405+
typealias SwiftType = UInt64
406+
407+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> UInt64 {
408+
return try lift(readInt(&buf))
409+
}
410+
411+
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
412+
writeInt(&buf, lower(value))
413+
}
414+
}
415+
400416
#if swift(>=5.8)
401417
@_documentation(visibility: private)
402418
#endif
@@ -911,7 +927,7 @@ public protocol LoginStoreProtocol: AnyObject {
911927
* NB: This function was created to unblock iOS logins users who are unable to sync logins and should not be used
912928
* outside of this use case.
913929
*/
914-
func deleteUndecryptableRecordsForRemoteReplacement() throws
930+
func deleteUndecryptableRecordsForRemoteReplacement() throws -> LoginsDeletionMetrics
915931

916932
func findLoginToUpdate(look: LoginEntry) throws -> Login?
917933

@@ -941,7 +957,7 @@ public protocol LoginStoreProtocol: AnyObject {
941957

942958
func setCheckpoint(checkpoint: String) throws
943959

944-
func shutdown() throws
960+
func shutdown()
945961

946962
func touch(id: String) throws
947963

@@ -1108,10 +1124,11 @@ open func deleteMany(ids: [String])throws -> [Bool] {
11081124
* NB: This function was created to unblock iOS logins users who are unable to sync logins and should not be used
11091125
* outside of this use case.
11101126
*/
1111-
open func deleteUndecryptableRecordsForRemoteReplacement()throws {try rustCallWithError(FfiConverterTypeLoginsApiError_lift) {
1127+
open func deleteUndecryptableRecordsForRemoteReplacement()throws -> LoginsDeletionMetrics {
1128+
return try FfiConverterTypeLoginsDeletionMetrics_lift(try rustCallWithError(FfiConverterTypeLoginsApiError_lift) {
11121129
uniffi_logins_fn_method_loginstore_delete_undecryptable_records_for_remote_replacement(self.uniffiClonePointer(),$0
11131130
)
1114-
}
1131+
})
11151132
}
11161133

11171134
open func findLoginToUpdate(look: LoginEntry)throws -> Login? {
@@ -1198,7 +1215,7 @@ open func setCheckpoint(checkpoint: String)throws {try rustCallWithError(FfiCo
11981215
}
11991216
}
12001217

1201-
open func shutdown()throws {try rustCallWithError(FfiConverterTypeLoginsApiError_lift) {
1218+
open func shutdown() {try! rustCall() {
12021219
uniffi_logins_fn_method_loginstore_shutdown(self.uniffiClonePointer(),$0
12031220
)
12041221
}
@@ -1969,6 +1986,80 @@ public func FfiConverterTypeLoginMeta_lower(_ value: LoginMeta) -> RustBuffer {
19691986
return FfiConverterTypeLoginMeta.lower(value)
19701987
}
19711988

1989+
1990+
/**
1991+
* Metrics tracking deletion of logins that cannot be decrypted, see `delete_undecryptable_records_for_remote_replacement`
1992+
* for more details
1993+
*/
1994+
public struct LoginsDeletionMetrics {
1995+
public var localDeleted: UInt64
1996+
public var mirrorDeleted: UInt64
1997+
1998+
// Default memberwise initializers are never public by default, so we
1999+
// declare one manually.
2000+
public init(localDeleted: UInt64, mirrorDeleted: UInt64) {
2001+
self.localDeleted = localDeleted
2002+
self.mirrorDeleted = mirrorDeleted
2003+
}
2004+
}
2005+
2006+
#if compiler(>=6)
2007+
extension LoginsDeletionMetrics: Sendable {}
2008+
#endif
2009+
2010+
2011+
extension LoginsDeletionMetrics: Equatable, Hashable {
2012+
public static func ==(lhs: LoginsDeletionMetrics, rhs: LoginsDeletionMetrics) -> Bool {
2013+
if lhs.localDeleted != rhs.localDeleted {
2014+
return false
2015+
}
2016+
if lhs.mirrorDeleted != rhs.mirrorDeleted {
2017+
return false
2018+
}
2019+
return true
2020+
}
2021+
2022+
public func hash(into hasher: inout Hasher) {
2023+
hasher.combine(localDeleted)
2024+
hasher.combine(mirrorDeleted)
2025+
}
2026+
}
2027+
2028+
2029+
2030+
#if swift(>=5.8)
2031+
@_documentation(visibility: private)
2032+
#endif
2033+
public struct FfiConverterTypeLoginsDeletionMetrics: FfiConverterRustBuffer {
2034+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> LoginsDeletionMetrics {
2035+
return
2036+
try LoginsDeletionMetrics(
2037+
localDeleted: FfiConverterUInt64.read(from: &buf),
2038+
mirrorDeleted: FfiConverterUInt64.read(from: &buf)
2039+
)
2040+
}
2041+
2042+
public static func write(_ value: LoginsDeletionMetrics, into buf: inout [UInt8]) {
2043+
FfiConverterUInt64.write(value.localDeleted, into: &buf)
2044+
FfiConverterUInt64.write(value.mirrorDeleted, into: &buf)
2045+
}
2046+
}
2047+
2048+
2049+
#if swift(>=5.8)
2050+
@_documentation(visibility: private)
2051+
#endif
2052+
public func FfiConverterTypeLoginsDeletionMetrics_lift(_ buf: RustBuffer) throws -> LoginsDeletionMetrics {
2053+
return try FfiConverterTypeLoginsDeletionMetrics.lift(buf)
2054+
}
2055+
2056+
#if swift(>=5.8)
2057+
@_documentation(visibility: private)
2058+
#endif
2059+
public func FfiConverterTypeLoginsDeletionMetrics_lower(_ value: LoginsDeletionMetrics) -> RustBuffer {
2060+
return FfiConverterTypeLoginsDeletionMetrics.lower(value)
2061+
}
2062+
19722063
// Note that we don't yet support `indirect` for enums.
19732064
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
19742065
/**
@@ -2673,7 +2764,7 @@ private let initializationResult: InitializationResult = {
26732764
if (uniffi_logins_checksum_method_loginstore_delete_many() != 14564) {
26742765
return InitializationResult.apiChecksumMismatch
26752766
}
2676-
if (uniffi_logins_checksum_method_loginstore_delete_undecryptable_records_for_remote_replacement() != 23503) {
2767+
if (uniffi_logins_checksum_method_loginstore_delete_undecryptable_records_for_remote_replacement() != 50136) {
26772768
return InitializationResult.apiChecksumMismatch
26782769
}
26792770
if (uniffi_logins_checksum_method_loginstore_find_login_to_update() != 62416) {
@@ -2709,7 +2800,7 @@ private let initializationResult: InitializationResult = {
27092800
if (uniffi_logins_checksum_method_loginstore_set_checkpoint() != 62504) {
27102801
return InitializationResult.apiChecksumMismatch
27112802
}
2712-
if (uniffi_logins_checksum_method_loginstore_shutdown() != 24418) {
2803+
if (uniffi_logins_checksum_method_loginstore_shutdown() != 40399) {
27132804
return InitializationResult.apiChecksumMismatch
27142805
}
27152806
if (uniffi_logins_checksum_method_loginstore_touch() != 37362) {

swift-source/all/Generated/loginsFFI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ RustBuffer uniffi_logins_fn_method_loginstore_delete_many(void*_Nonnull ptr, Rus
401401
#endif
402402
#ifndef UNIFFI_FFIDEF_UNIFFI_LOGINS_FN_METHOD_LOGINSTORE_DELETE_UNDECRYPTABLE_RECORDS_FOR_REMOTE_REPLACEMENT
403403
#define UNIFFI_FFIDEF_UNIFFI_LOGINS_FN_METHOD_LOGINSTORE_DELETE_UNDECRYPTABLE_RECORDS_FOR_REMOTE_REPLACEMENT
404-
void uniffi_logins_fn_method_loginstore_delete_undecryptable_records_for_remote_replacement(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
404+
RustBuffer uniffi_logins_fn_method_loginstore_delete_undecryptable_records_for_remote_replacement(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
405405
);
406406
#endif
407407
#ifndef UNIFFI_FFIDEF_UNIFFI_LOGINS_FN_METHOD_LOGINSTORE_FIND_LOGIN_TO_UPDATE

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: 2025, month: 6, day: 28, hour: 5, minute: 12, second: 39))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2025, month: 7, day: 1, hour: 5, minute: 13, second: 8))
2727
}
2828

2929
enum NimbusEvents {

0 commit comments

Comments
 (0)