Skip to content

Commit c87b0c4

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (133.0.20241021163120)
1 parent e25f7d4 commit c87b0c4

File tree

7 files changed

+82
-18
lines changed

7 files changed

+82
-18
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 = "67bfd4e2d7ae778e9b5347ad49b0971e91a9c5c470df846e29caf89a2f0efbd2"
5-
let version = "133.0.20241021135422"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241021135422/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "73a997bca9498a01f911cb481ec632705a40584eea333b033777a265bd48cc0a"
5+
let version = "133.0.20241021163120"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241021163120/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "e6f8ea55cd1c93d47087c931206e2bdecea076b680088f023fe6d3dce8981f24"
10-
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241021135422/artifacts/public/build/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "fc17b48450c60f66fe9d854124f9eb6491394e27eb4b282460df0cb6debac6e4"
10+
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241021163120/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: 10, day: 21, hour: 14, minute: 20, second: 9))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 10, day: 21, hour: 16, minute: 56, second: 24))
2727
}
2828

2929
enum NimbusEvents {

swift-source/all/Generated/nimbus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3273,7 +3273,7 @@ private var initializationResult: InitializationResult = {
32733273
if (uniffi_nimbus_checksum_method_recordedcontext_to_json() != 530) {
32743274
return InitializationResult.apiChecksumMismatch
32753275
}
3276-
if (uniffi_nimbus_checksum_constructor_nimbusclient_new() != 54745) {
3276+
if (uniffi_nimbus_checksum_constructor_nimbusclient_new() != 8866) {
32773277
return InitializationResult.apiChecksumMismatch
32783278
}
32793279
if (uniffi_nimbus_checksum_method_metricshandler_record_enrollment_statuses() != 22229) {

swift-source/all/Generated/remote_settings.swift

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@ public func FfiConverterTypeRemoteSettings_lower(_ value: RemoteSettings) -> Uns
647647
}
648648

649649

650+
/**
651+
* Attachment metadata that can be optionally attached to a [Record]. The [location] should
652+
* included in calls to [Client::get_attachment].
653+
*/
650654
public struct Attachment {
651655
public var filename: String
652656
public var mimetype: String
@@ -737,6 +741,14 @@ public func FfiConverterTypeAttachment_lower(_ value: Attachment) -> RustBuffer
737741
}
738742

739743

744+
/**
745+
* Custom configuration for the client.
746+
* Currently includes the following:
747+
* - `server`: The Remote Settings server to use. If not specified, defaults to the production server (`RemoteSettingsServer::Prod`).
748+
* - `server_url`: An optional custom Remote Settings server URL. Deprecated; please use `server` instead.
749+
* - `bucket_name`: The optional name of the bucket containing the collection on the server. If not specified, the standard bucket will be used.
750+
* - `collection_name`: The name of the collection for the settings server.
751+
*/
740752
public struct RemoteSettingsConfig {
741753
public var collectionName: String
742754
public var bucketName: String?
@@ -819,6 +831,10 @@ public func FfiConverterTypeRemoteSettingsConfig_lower(_ value: RemoteSettingsCo
819831
}
820832

821833

834+
/**
835+
* A parsed Remote Settings record. Records can contain arbitrary fields, so clients
836+
* are required to further extract expected values from the [fields] member.
837+
*/
822838
public struct RemoteSettingsRecord {
823839
public var id: String
824840
public var lastModified: UInt64
@@ -909,6 +925,10 @@ public func FfiConverterTypeRemoteSettingsRecord_lower(_ value: RemoteSettingsRe
909925
}
910926

911927

928+
/**
929+
* Data structure representing the top-level response from the Remote Settings.
930+
* [last_modified] will be extracted from the etag header of the response.
931+
*/
912932
public struct RemoteSettingsResponse {
913933
public var records: [RemoteSettingsRecord]
914934
public var lastModified: UInt64
@@ -975,12 +995,21 @@ public func FfiConverterTypeRemoteSettingsResponse_lower(_ value: RemoteSettings
975995
}
976996

977997

998+
/**
999+
* Public error class, this is what we return to consumers
1000+
*/
9781001
public enum RemoteSettingsError {
9791002

9801003

9811004

1005+
/**
1006+
* Network error while making a remote settings request
1007+
*/
9821008
case Network(reason: String
9831009
)
1010+
/**
1011+
* The server has asked the client to backoff.
1012+
*/
9841013
case Backoff(seconds: UInt64
9851014
)
9861015
case Other(reason: String
@@ -1051,6 +1080,9 @@ extension RemoteSettingsError: Foundation.LocalizedError {
10511080

10521081
// Note that we don't yet support `indirect` for enums.
10531082
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
1083+
/**
1084+
* The Remote Settings server that the client should use.
1085+
*/
10541086

10551087
public enum RemoteSettingsServer {
10561088

@@ -1285,16 +1317,16 @@ private var initializationResult: InitializationResult = {
12851317
if bindings_contract_version != scaffolding_contract_version {
12861318
return InitializationResult.contractVersionMismatch
12871319
}
1288-
if (uniffi_remote_settings_checksum_method_remotesettings_download_attachment_to_path() != 45318) {
1320+
if (uniffi_remote_settings_checksum_method_remotesettings_download_attachment_to_path() != 34938) {
12891321
return InitializationResult.apiChecksumMismatch
12901322
}
1291-
if (uniffi_remote_settings_checksum_method_remotesettings_get_records() != 14513) {
1323+
if (uniffi_remote_settings_checksum_method_remotesettings_get_records() != 41444) {
12921324
return InitializationResult.apiChecksumMismatch
12931325
}
1294-
if (uniffi_remote_settings_checksum_method_remotesettings_get_records_since() != 31407) {
1326+
if (uniffi_remote_settings_checksum_method_remotesettings_get_records_since() != 58960) {
12951327
return InitializationResult.apiChecksumMismatch
12961328
}
1297-
if (uniffi_remote_settings_checksum_constructor_remotesettings_new() != 54895) {
1329+
if (uniffi_remote_settings_checksum_constructor_remotesettings_new() != 52961) {
12981330
return InitializationResult.apiChecksumMismatch
12991331
}
13001332

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 v15.0.1. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v15.1.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: 2024, month: 10, day: 21, hour: 14, minute: 20, second: 11))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 10, day: 21, hour: 16, minute: 56, second: 27))
2727
}
2828

2929
enum NimbusEvents {

swift-source/focus/Generated/nimbus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3273,7 +3273,7 @@ private var initializationResult: InitializationResult = {
32733273
if (uniffi_nimbus_checksum_method_recordedcontext_to_json() != 530) {
32743274
return InitializationResult.apiChecksumMismatch
32753275
}
3276-
if (uniffi_nimbus_checksum_constructor_nimbusclient_new() != 54745) {
3276+
if (uniffi_nimbus_checksum_constructor_nimbusclient_new() != 8866) {
32773277
return InitializationResult.apiChecksumMismatch
32783278
}
32793279
if (uniffi_nimbus_checksum_method_metricshandler_record_enrollment_statuses() != 22229) {

swift-source/focus/Generated/remote_settings.swift

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@ public func FfiConverterTypeRemoteSettings_lower(_ value: RemoteSettings) -> Uns
647647
}
648648

649649

650+
/**
651+
* Attachment metadata that can be optionally attached to a [Record]. The [location] should
652+
* included in calls to [Client::get_attachment].
653+
*/
650654
public struct Attachment {
651655
public var filename: String
652656
public var mimetype: String
@@ -737,6 +741,14 @@ public func FfiConverterTypeAttachment_lower(_ value: Attachment) -> RustBuffer
737741
}
738742

739743

744+
/**
745+
* Custom configuration for the client.
746+
* Currently includes the following:
747+
* - `server`: The Remote Settings server to use. If not specified, defaults to the production server (`RemoteSettingsServer::Prod`).
748+
* - `server_url`: An optional custom Remote Settings server URL. Deprecated; please use `server` instead.
749+
* - `bucket_name`: The optional name of the bucket containing the collection on the server. If not specified, the standard bucket will be used.
750+
* - `collection_name`: The name of the collection for the settings server.
751+
*/
740752
public struct RemoteSettingsConfig {
741753
public var collectionName: String
742754
public var bucketName: String?
@@ -819,6 +831,10 @@ public func FfiConverterTypeRemoteSettingsConfig_lower(_ value: RemoteSettingsCo
819831
}
820832

821833

834+
/**
835+
* A parsed Remote Settings record. Records can contain arbitrary fields, so clients
836+
* are required to further extract expected values from the [fields] member.
837+
*/
822838
public struct RemoteSettingsRecord {
823839
public var id: String
824840
public var lastModified: UInt64
@@ -909,6 +925,10 @@ public func FfiConverterTypeRemoteSettingsRecord_lower(_ value: RemoteSettingsRe
909925
}
910926

911927

928+
/**
929+
* Data structure representing the top-level response from the Remote Settings.
930+
* [last_modified] will be extracted from the etag header of the response.
931+
*/
912932
public struct RemoteSettingsResponse {
913933
public var records: [RemoteSettingsRecord]
914934
public var lastModified: UInt64
@@ -975,12 +995,21 @@ public func FfiConverterTypeRemoteSettingsResponse_lower(_ value: RemoteSettings
975995
}
976996

977997

998+
/**
999+
* Public error class, this is what we return to consumers
1000+
*/
9781001
public enum RemoteSettingsError {
9791002

9801003

9811004

1005+
/**
1006+
* Network error while making a remote settings request
1007+
*/
9821008
case Network(reason: String
9831009
)
1010+
/**
1011+
* The server has asked the client to backoff.
1012+
*/
9841013
case Backoff(seconds: UInt64
9851014
)
9861015
case Other(reason: String
@@ -1051,6 +1080,9 @@ extension RemoteSettingsError: Foundation.LocalizedError {
10511080

10521081
// Note that we don't yet support `indirect` for enums.
10531082
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
1083+
/**
1084+
* The Remote Settings server that the client should use.
1085+
*/
10541086

10551087
public enum RemoteSettingsServer {
10561088

@@ -1285,16 +1317,16 @@ private var initializationResult: InitializationResult = {
12851317
if bindings_contract_version != scaffolding_contract_version {
12861318
return InitializationResult.contractVersionMismatch
12871319
}
1288-
if (uniffi_remote_settings_checksum_method_remotesettings_download_attachment_to_path() != 45318) {
1320+
if (uniffi_remote_settings_checksum_method_remotesettings_download_attachment_to_path() != 34938) {
12891321
return InitializationResult.apiChecksumMismatch
12901322
}
1291-
if (uniffi_remote_settings_checksum_method_remotesettings_get_records() != 14513) {
1323+
if (uniffi_remote_settings_checksum_method_remotesettings_get_records() != 41444) {
12921324
return InitializationResult.apiChecksumMismatch
12931325
}
1294-
if (uniffi_remote_settings_checksum_method_remotesettings_get_records_since() != 31407) {
1326+
if (uniffi_remote_settings_checksum_method_remotesettings_get_records_since() != 58960) {
12951327
return InitializationResult.apiChecksumMismatch
12961328
}
1297-
if (uniffi_remote_settings_checksum_constructor_remotesettings_new() != 54895) {
1329+
if (uniffi_remote_settings_checksum_constructor_remotesettings_new() != 52961) {
12981330
return InitializationResult.apiChecksumMismatch
12991331
}
13001332

0 commit comments

Comments
 (0)