Skip to content

Commit 74de743

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (141.0.20250618050303)
1 parent b8517d6 commit 74de743

File tree

9 files changed

+140
-16
lines changed

9 files changed

+140
-16
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 = "ed33c39ec6aa1d22eadee7b2edfced4fba061595c1fee5cfbc987aac553e5bd6"
5-
let version = "141.0.20250617050355"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.141.20250617050355/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "50d69185230c0eacb3d858038a2f1b7d164f35ea1521efe36aeca1e21fd7886a"
5+
let version = "141.0.20250618050303"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.141.20250618050303/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "3ffca6961f28e58fe3ac7a540e7a2bcde5b9c80dc99f09d327d25d6783a905a7"
10-
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.141.20250617050355/artifacts/public/build/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "9ce548360292997d6c9515f90b10002821be8f20eeabbbd5bc12552f28cf80c8"
10+
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.141.20250618050303/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: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -*- mode: Swift -*-
22

3-
// AUTOGENERATED BY glean_parser v17.1.0. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v17.2.0. 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: 2025, month: 6, day: 17, hour: 5, minute: 18, second: 6))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2025, month: 6, day: 18, hour: 5, minute: 12, second: 16))
2727
}
2828

2929
enum NimbusEvents {
@@ -1122,6 +1122,51 @@ extension GleanMetrics {
11221122

11231123
}
11241124

1125+
enum SyncSettings {
1126+
struct SaveExtra: EventExtras {
1127+
var disabledEngines: String?
1128+
var enabledEngines: String?
1129+
1130+
func toExtraRecord() -> [String: String] {
1131+
var record = [String: String]()
1132+
1133+
if let disabledEngines = self.disabledEngines {
1134+
record["disabled_engines"] = String(disabledEngines)
1135+
}
1136+
if let enabledEngines = self.enabledEngines {
1137+
record["enabled_engines"] = String(enabledEngines)
1138+
}
1139+
1140+
return record
1141+
}
1142+
}
1143+
1144+
/// Records when the user opens the choose sync settings menu.
1145+
static let openMenu = EventMetricType<NoExtras>( // generated from sync_settings.open_menu
1146+
CommonMetricData(
1147+
category: "sync_settings",
1148+
name: "open_menu",
1149+
sendInPings: ["events"],
1150+
lifetime: .ping,
1151+
disabled: false
1152+
)
1153+
, []
1154+
)
1155+
1156+
/// Records when the user makes sync settings changes.
1157+
static let save = EventMetricType<SaveExtra>( // generated from sync_settings.save
1158+
CommonMetricData(
1159+
category: "sync_settings",
1160+
name: "save",
1161+
sendInPings: ["events"],
1162+
lifetime: .ping,
1163+
disabled: false
1164+
)
1165+
, ["disabled_engines", "enabled_engines"]
1166+
)
1167+
1168+
}
1169+
11251170
enum SyncV2 {
11261171
private static let failureReasonLabel = StringMetricType( // generated from sync_v2.failure_reason
11271172
CommonMetricData(

swift-source/all/Generated/autofill.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,14 @@ public protocol StoreProtocol: AnyObject {
501501

502502
func registerWithSyncManager()
503503

504+
/**
505+
* Run maintenance on the DB
506+
*
507+
* This is intended to be run during idle time and will take steps / to clean up / shrink the
508+
* database.
509+
*/
510+
func runMaintenance() throws
511+
504512
func scrubEncryptedData() throws
505513

506514
func touchAddress(guid: String) throws
@@ -635,6 +643,18 @@ open func registerWithSyncManager() {try! rustCall() {
635643
uniffi_autofill_fn_method_store_register_with_sync_manager(self.uniffiClonePointer(),$0
636644
)
637645
}
646+
}
647+
648+
/**
649+
* Run maintenance on the DB
650+
*
651+
* This is intended to be run during idle time and will take steps / to clean up / shrink the
652+
* database.
653+
*/
654+
open func runMaintenance()throws {try rustCallWithError(FfiConverterTypeAutofillApiError_lift) {
655+
uniffi_autofill_fn_method_store_run_maintenance(self.uniffiClonePointer(),$0
656+
)
657+
}
638658
}
639659

640660
open func scrubEncryptedData()throws {try rustCallWithError(FfiConverterTypeAutofillApiError_lift) {
@@ -1558,6 +1578,9 @@ private let initializationResult: InitializationResult = {
15581578
if (uniffi_autofill_checksum_method_store_register_with_sync_manager() != 24273) {
15591579
return InitializationResult.apiChecksumMismatch
15601580
}
1581+
if (uniffi_autofill_checksum_method_store_run_maintenance() != 51990) {
1582+
return InitializationResult.apiChecksumMismatch
1583+
}
15611584
if (uniffi_autofill_checksum_method_store_scrub_encrypted_data() != 8431) {
15621585
return InitializationResult.apiChecksumMismatch
15631586
}

swift-source/all/Generated/autofillFFI.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ RustBuffer uniffi_autofill_fn_method_store_get_credit_card(void*_Nonnull ptr, Ru
311311
void uniffi_autofill_fn_method_store_register_with_sync_manager(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
312312
);
313313
#endif
314+
#ifndef UNIFFI_FFIDEF_UNIFFI_AUTOFILL_FN_METHOD_STORE_RUN_MAINTENANCE
315+
#define UNIFFI_FFIDEF_UNIFFI_AUTOFILL_FN_METHOD_STORE_RUN_MAINTENANCE
316+
void uniffi_autofill_fn_method_store_run_maintenance(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
317+
);
318+
#endif
314319
#ifndef UNIFFI_FFIDEF_UNIFFI_AUTOFILL_FN_METHOD_STORE_SCRUB_ENCRYPTED_DATA
315320
#define UNIFFI_FFIDEF_UNIFFI_AUTOFILL_FN_METHOD_STORE_SCRUB_ENCRYPTED_DATA
316321
void uniffi_autofill_fn_method_store_scrub_encrypted_data(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
@@ -702,6 +707,12 @@ uint16_t uniffi_autofill_checksum_method_store_get_credit_card(void
702707
#define UNIFFI_FFIDEF_UNIFFI_AUTOFILL_CHECKSUM_METHOD_STORE_REGISTER_WITH_SYNC_MANAGER
703708
uint16_t uniffi_autofill_checksum_method_store_register_with_sync_manager(void
704709

710+
);
711+
#endif
712+
#ifndef UNIFFI_FFIDEF_UNIFFI_AUTOFILL_CHECKSUM_METHOD_STORE_RUN_MAINTENANCE
713+
#define UNIFFI_FFIDEF_UNIFFI_AUTOFILL_CHECKSUM_METHOD_STORE_RUN_MAINTENANCE
714+
uint16_t uniffi_autofill_checksum_method_store_run_maintenance(void
715+
705716
);
706717
#endif
707718
#ifndef UNIFFI_FFIDEF_UNIFFI_AUTOFILL_CHECKSUM_METHOD_STORE_SCRUB_ENCRYPTED_DATA

swift-source/all/Generated/logins.swift

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,14 @@ public protocol LoginStoreProtocol: AnyObject {
925925

926926
func reset() throws
927927

928+
/**
929+
* Run maintenance on the DB
930+
*
931+
* This is intended to be run during idle time and will take steps / to clean up / shrink the
932+
* database.
933+
*/
934+
func runMaintenance() throws
935+
928936
func setCheckpoint(checkpoint: String) throws
929937

930938
func touch(id: String) throws
@@ -1138,6 +1146,18 @@ open func reset()throws {try rustCallWithError(FfiConverterTypeLoginsApiError_
11381146
uniffi_logins_fn_method_loginstore_reset(self.uniffiClonePointer(),$0
11391147
)
11401148
}
1149+
}
1150+
1151+
/**
1152+
* Run maintenance on the DB
1153+
*
1154+
* This is intended to be run during idle time and will take steps / to clean up / shrink the
1155+
* database.
1156+
*/
1157+
open func runMaintenance()throws {try rustCallWithError(FfiConverterTypeLoginsApiError_lift) {
1158+
uniffi_logins_fn_method_loginstore_run_maintenance(self.uniffiClonePointer(),$0
1159+
)
1160+
}
11411161
}
11421162

11431163
open func setCheckpoint(checkpoint: String)throws {try rustCallWithError(FfiConverterTypeLoginsApiError_lift) {
@@ -2636,6 +2656,9 @@ private let initializationResult: InitializationResult = {
26362656
if (uniffi_logins_checksum_method_loginstore_reset() != 63814) {
26372657
return InitializationResult.apiChecksumMismatch
26382658
}
2659+
if (uniffi_logins_checksum_method_loginstore_run_maintenance() != 64480) {
2660+
return InitializationResult.apiChecksumMismatch
2661+
}
26392662
if (uniffi_logins_checksum_method_loginstore_set_checkpoint() != 62504) {
26402663
return InitializationResult.apiChecksumMismatch
26412664
}

swift-source/all/Generated/loginsFFI.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,11 @@ void uniffi_logins_fn_method_loginstore_register_with_sync_manager(void*_Nonnull
434434
void uniffi_logins_fn_method_loginstore_reset(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
435435
);
436436
#endif
437+
#ifndef UNIFFI_FFIDEF_UNIFFI_LOGINS_FN_METHOD_LOGINSTORE_RUN_MAINTENANCE
438+
#define UNIFFI_FFIDEF_UNIFFI_LOGINS_FN_METHOD_LOGINSTORE_RUN_MAINTENANCE
439+
void uniffi_logins_fn_method_loginstore_run_maintenance(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
440+
);
441+
#endif
437442
#ifndef UNIFFI_FFIDEF_UNIFFI_LOGINS_FN_METHOD_LOGINSTORE_SET_CHECKPOINT
438443
#define UNIFFI_FFIDEF_UNIFFI_LOGINS_FN_METHOD_LOGINSTORE_SET_CHECKPOINT
439444
void uniffi_logins_fn_method_loginstore_set_checkpoint(void*_Nonnull ptr, RustBuffer checkpoint, RustCallStatus *_Nonnull out_status
@@ -949,6 +954,12 @@ uint16_t uniffi_logins_checksum_method_loginstore_register_with_sync_manager(voi
949954
#define UNIFFI_FFIDEF_UNIFFI_LOGINS_CHECKSUM_METHOD_LOGINSTORE_RESET
950955
uint16_t uniffi_logins_checksum_method_loginstore_reset(void
951956

957+
);
958+
#endif
959+
#ifndef UNIFFI_FFIDEF_UNIFFI_LOGINS_CHECKSUM_METHOD_LOGINSTORE_RUN_MAINTENANCE
960+
#define UNIFFI_FFIDEF_UNIFFI_LOGINS_CHECKSUM_METHOD_LOGINSTORE_RUN_MAINTENANCE
961+
uint16_t uniffi_logins_checksum_method_loginstore_run_maintenance(void
962+
952963
);
953964
#endif
954965
#ifndef UNIFFI_FFIDEF_UNIFFI_LOGINS_CHECKSUM_METHOD_LOGINSTORE_SET_CHECKPOINT

swift-source/all/Generated/search.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,8 @@ public protocol SearchEngineSelectorProtocol: AnyObject {
521521
* - `service`: The remote settings service instance for the application.
522522
* - `options`: The remote settings options to be passed to the client(s).
523523
* - `apply_engine_overrides`: Whether or not to apply overrides from
524-
* `search-config-v2-overrides` to the selected
525-
* engines. Should be false unless the application
526-
* supports the click URL feature.
524+
* `search-config-v2-overrides` to the selected engines. Should be false unless the
525+
* application supports the click URL feature.
527526
*/
528527
func useRemoteSettingsServer(service: RemoteSettingsService, applyEngineOverrides: Bool)
529528

@@ -642,9 +641,8 @@ open func setSearchConfig(configuration: String)throws {try rustCallWithError(
642641
* - `service`: The remote settings service instance for the application.
643642
* - `options`: The remote settings options to be passed to the client(s).
644643
* - `apply_engine_overrides`: Whether or not to apply overrides from
645-
* `search-config-v2-overrides` to the selected
646-
* engines. Should be false unless the application
647-
* supports the click URL feature.
644+
* `search-config-v2-overrides` to the selected engines. Should be false unless the
645+
* application supports the click URL feature.
648646
*/
649647
open func useRemoteSettingsServer(service: RemoteSettingsService, applyEngineOverrides: Bool) {try! rustCall() {
650648
uniffi_search_fn_method_searchengineselector_use_remote_settings_server(self.uniffiClonePointer(),
@@ -2578,7 +2576,7 @@ private let initializationResult: InitializationResult = {
25782576
if (uniffi_search_checksum_method_searchengineselector_set_search_config() != 35713) {
25792577
return InitializationResult.apiChecksumMismatch
25802578
}
2581-
if (uniffi_search_checksum_method_searchengineselector_use_remote_settings_server() != 14364) {
2579+
if (uniffi_search_checksum_method_searchengineselector_use_remote_settings_server() != 47504) {
25822580
return InitializationResult.apiChecksumMismatch
25832581
}
25842582
if (uniffi_search_checksum_constructor_searchengineselector_new() != 2296) {

swift-source/all/SyncManager/SyncManagerComponent.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
import Foundation
6+
import Glean
67

78
open class SyncManagerComponent {
89
private var api: SyncManager
@@ -29,4 +30,16 @@ open class SyncManagerComponent {
2930
try processSyncTelemetry(syncTelemetry: telemetry)
3031
}
3132
}
33+
34+
public static func reportOpenSyncSettingsMenuTelemetry() {
35+
GleanMetrics.SyncSettings.openMenu.record()
36+
}
37+
38+
public static func reportSaveSyncSettingsTelemetry(enabledEngines: [String], disabledEngines: [String]) {
39+
let enabledList = enabledEngines.isEmpty ? nil : enabledEngines.joined(separator: ",")
40+
let disabledList = disabledEngines.isEmpty ? nil : disabledEngines.joined(separator: ",")
41+
let extras = GleanMetrics.SyncSettings.SaveExtra(disabledEngines: disabledList, enabledEngines: enabledList)
42+
43+
GleanMetrics.SyncSettings.save.record(extras)
44+
}
3245
}

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 v17.1.0. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v17.2.0. 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: 2025, month: 6, day: 17, hour: 5, minute: 18, second: 8))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2025, month: 6, day: 18, hour: 5, minute: 12, second: 19))
2727
}
2828

2929
enum NimbusEvents {

0 commit comments

Comments
 (0)