Skip to content

Commit 050a376

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (138.0.20250311050358)
1 parent c36ce2c commit 050a376

File tree

9 files changed

+57
-39
lines changed

9 files changed

+57
-39
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 = "916ce887c1ad36fc304580bb9497e7fffffd9914a151d1ec7ed871c845f02f2e"
5-
let version = "138.0.20250308050337"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.138.20250308050337/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "47b480468b345cf300c716072f89342469beb50e46887dabce5a166128705f9b"
5+
let version = "138.0.20250311050358"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.138.20250311050358/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "7ea68b25f2849c79c7801816c3052a17a5afa1eabf8bf3f3099033b20d37f1e1"
10-
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.138.20250308050337/artifacts/public/build/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "ac54400800c9561804f5ed774deea0026edf06c9df81cee72d6c32943a5f7b77"
10+
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.138.20250311050358/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: 3, day: 8, hour: 5, minute: 12, second: 40))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2025, month: 3, day: 11, hour: 5, minute: 16, second: 8))
2727
}
2828

2929
enum NimbusEvents {

swift-source/all/Generated/remote_settings.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ public protocol RemoteSettingsClientProtocol : AnyObject {
736736
*/
737737
func getRecordsMap(syncIfEmpty: Bool) -> [String: RemoteSettingsRecord]?
738738

739+
func sync() throws
740+
739741
}
740742
/**
741743
* Client for a single Remote Settings collection
@@ -861,6 +863,12 @@ open func getRecordsMap(syncIfEmpty: Bool = false) -> [String: RemoteSettingsRec
861863
})
862864
}
863865

866+
open func sync()throws {try rustCallWithError(FfiConverterTypeRemoteSettingsError.lift) {
867+
uniffi_remote_settings_fn_method_remotesettingsclient_sync(self.uniffiClonePointer(),$0
868+
)
869+
}
870+
}
871+
864872

865873
}
866874

@@ -2360,6 +2368,9 @@ private var initializationResult: InitializationResult = {
23602368
if (uniffi_remote_settings_checksum_method_remotesettingsclient_get_records_map() != 32665) {
23612369
return InitializationResult.apiChecksumMismatch
23622370
}
2371+
if (uniffi_remote_settings_checksum_method_remotesettingsclient_sync() != 29749) {
2372+
return InitializationResult.apiChecksumMismatch
2373+
}
23632374
if (uniffi_remote_settings_checksum_method_remotesettingsservice_make_client() != 50814) {
23642375
return InitializationResult.apiChecksumMismatch
23652376
}

swift-source/all/Generated/remote_settingsFFI.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ RustBuffer uniffi_remote_settings_fn_method_remotesettingsclient_get_records(voi
311311
RustBuffer uniffi_remote_settings_fn_method_remotesettingsclient_get_records_map(void*_Nonnull ptr, int8_t sync_if_empty, RustCallStatus *_Nonnull out_status
312312
);
313313
#endif
314+
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_METHOD_REMOTESETTINGSCLIENT_SYNC
315+
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_METHOD_REMOTESETTINGSCLIENT_SYNC
316+
void uniffi_remote_settings_fn_method_remotesettingsclient_sync(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
317+
);
318+
#endif
314319
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_CLONE_REMOTESETTINGSSERVICE
315320
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_CLONE_REMOTESETTINGSSERVICE
316321
void*_Nonnull uniffi_remote_settings_fn_clone_remotesettingsservice(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
@@ -661,6 +666,12 @@ uint16_t uniffi_remote_settings_checksum_method_remotesettingsclient_get_records
661666
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSCLIENT_GET_RECORDS_MAP
662667
uint16_t uniffi_remote_settings_checksum_method_remotesettingsclient_get_records_map(void
663668

669+
);
670+
#endif
671+
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSCLIENT_SYNC
672+
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSCLIENT_SYNC
673+
uint16_t uniffi_remote_settings_checksum_method_remotesettingsclient_sync(void
674+
664675
);
665676
#endif
666677
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSSERVICE_MAKE_CLIENT

swift-source/all/Generated/suggest.swift

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,12 @@ open class SuggestStore:
728728
/**
729729
* Creates a Suggest store.
730730
*/
731-
public convenience init(path: String, settingsConfig: RemoteSettingsConfig? = nil)throws {
731+
public convenience init(path: String, remoteSettingsService: RemoteSettingsService)throws {
732732
let pointer =
733733
try rustCallWithError(FfiConverterTypeSuggestApiError.lift) {
734734
uniffi_suggest_fn_constructor_suggeststore_new(
735735
FfiConverterString.lower(path),
736-
FfiConverterOptionTypeRemoteSettingsConfig.lower(settingsConfig),$0
736+
FfiConverterTypeRemoteSettingsService_lower(remoteSettingsService),$0
737737
)
738738
}
739739
self.init(unsafeFromRawPointer: pointer)
@@ -3158,30 +3158,6 @@ fileprivate struct FfiConverterOptionSequenceTypeSuggestionProvider: FfiConverte
31583158
}
31593159
}
31603160

3161-
#if swift(>=5.8)
3162-
@_documentation(visibility: private)
3163-
#endif
3164-
fileprivate struct FfiConverterOptionTypeRemoteSettingsConfig: FfiConverterRustBuffer {
3165-
typealias SwiftType = RemoteSettingsConfig?
3166-
3167-
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
3168-
guard let value = value else {
3169-
writeInt(&buf, Int8(0))
3170-
return
3171-
}
3172-
writeInt(&buf, Int8(1))
3173-
FfiConverterTypeRemoteSettingsConfig.write(value, into: &buf)
3174-
}
3175-
3176-
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
3177-
switch try readInt(&buf) as Int8 {
3178-
case 0: return nil
3179-
case 1: return try FfiConverterTypeRemoteSettingsConfig.read(from: &buf)
3180-
default: throw UniffiInternalError.unexpectedOptionalTag
3181-
}
3182-
}
3183-
}
3184-
31853161
#if swift(>=5.8)
31863162
@_documentation(visibility: private)
31873163
#endif
@@ -3335,8 +3311,6 @@ fileprivate struct FfiConverterSequenceTypeSuggestionProvider: FfiConverterRustB
33353311

33363312

33373313

3338-
3339-
33403314
/**
33413315
* Determines whether a "raw" sponsored suggestion URL is equivalent to a
33423316
* "cooked" URL. The two URLs are equivalent if they are identical except for
@@ -3417,10 +3391,10 @@ private var initializationResult: InitializationResult = {
34173391
if (uniffi_suggest_checksum_method_suggeststorebuilder_remote_settings_server() != 19990) {
34183392
return InitializationResult.apiChecksumMismatch
34193393
}
3420-
if (uniffi_suggest_checksum_method_suggeststorebuilder_remote_settings_service() != 52699) {
3394+
if (uniffi_suggest_checksum_method_suggeststorebuilder_remote_settings_service() != 25201) {
34213395
return InitializationResult.apiChecksumMismatch
34223396
}
3423-
if (uniffi_suggest_checksum_constructor_suggeststore_new() != 9768) {
3397+
if (uniffi_suggest_checksum_constructor_suggeststore_new() != 27588) {
34243398
return InitializationResult.apiChecksumMismatch
34253399
}
34263400
if (uniffi_suggest_checksum_constructor_suggeststorebuilder_new() != 1218) {

swift-source/all/Generated/suggestFFI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void uniffi_suggest_fn_free_suggeststore(void*_Nonnull ptr, RustCallStatus *_Non
263263
#endif
264264
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_CONSTRUCTOR_SUGGESTSTORE_NEW
265265
#define UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_CONSTRUCTOR_SUGGESTSTORE_NEW
266-
void*_Nonnull uniffi_suggest_fn_constructor_suggeststore_new(RustBuffer path, RustBuffer settings_config, RustCallStatus *_Nonnull out_status
266+
void*_Nonnull uniffi_suggest_fn_constructor_suggeststore_new(RustBuffer path, void*_Nonnull remote_settings_service, RustCallStatus *_Nonnull out_status
267267
);
268268
#endif
269269
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTORE_CLEAR
@@ -364,7 +364,7 @@ void*_Nonnull uniffi_suggest_fn_method_suggeststorebuilder_remote_settings_serve
364364
#endif
365365
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTOREBUILDER_REMOTE_SETTINGS_SERVICE
366366
#define UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTOREBUILDER_REMOTE_SETTINGS_SERVICE
367-
void*_Nonnull uniffi_suggest_fn_method_suggeststorebuilder_remote_settings_service(void*_Nonnull ptr, void*_Nonnull _rs_service, RustCallStatus *_Nonnull out_status
367+
void*_Nonnull uniffi_suggest_fn_method_suggeststorebuilder_remote_settings_service(void*_Nonnull ptr, void*_Nonnull rs_service, RustCallStatus *_Nonnull out_status
368368
);
369369
#endif
370370
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_FUNC_RAW_SUGGESTION_URL_MATCHES

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

2929
enum NimbusEvents {

swift-source/focus/Generated/remote_settings.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ public protocol RemoteSettingsClientProtocol : AnyObject {
736736
*/
737737
func getRecordsMap(syncIfEmpty: Bool) -> [String: RemoteSettingsRecord]?
738738

739+
func sync() throws
740+
739741
}
740742
/**
741743
* Client for a single Remote Settings collection
@@ -861,6 +863,12 @@ open func getRecordsMap(syncIfEmpty: Bool = false) -> [String: RemoteSettingsRec
861863
})
862864
}
863865

866+
open func sync()throws {try rustCallWithError(FfiConverterTypeRemoteSettingsError.lift) {
867+
uniffi_remote_settings_fn_method_remotesettingsclient_sync(self.uniffiClonePointer(),$0
868+
)
869+
}
870+
}
871+
864872

865873
}
866874

@@ -2360,6 +2368,9 @@ private var initializationResult: InitializationResult = {
23602368
if (uniffi_remote_settings_checksum_method_remotesettingsclient_get_records_map() != 32665) {
23612369
return InitializationResult.apiChecksumMismatch
23622370
}
2371+
if (uniffi_remote_settings_checksum_method_remotesettingsclient_sync() != 29749) {
2372+
return InitializationResult.apiChecksumMismatch
2373+
}
23632374
if (uniffi_remote_settings_checksum_method_remotesettingsservice_make_client() != 50814) {
23642375
return InitializationResult.apiChecksumMismatch
23652376
}

swift-source/focus/Generated/remote_settingsFFI.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ RustBuffer uniffi_remote_settings_fn_method_remotesettingsclient_get_records(voi
311311
RustBuffer uniffi_remote_settings_fn_method_remotesettingsclient_get_records_map(void*_Nonnull ptr, int8_t sync_if_empty, RustCallStatus *_Nonnull out_status
312312
);
313313
#endif
314+
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_METHOD_REMOTESETTINGSCLIENT_SYNC
315+
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_METHOD_REMOTESETTINGSCLIENT_SYNC
316+
void uniffi_remote_settings_fn_method_remotesettingsclient_sync(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
317+
);
318+
#endif
314319
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_CLONE_REMOTESETTINGSSERVICE
315320
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_FN_CLONE_REMOTESETTINGSSERVICE
316321
void*_Nonnull uniffi_remote_settings_fn_clone_remotesettingsservice(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
@@ -661,6 +666,12 @@ uint16_t uniffi_remote_settings_checksum_method_remotesettingsclient_get_records
661666
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSCLIENT_GET_RECORDS_MAP
662667
uint16_t uniffi_remote_settings_checksum_method_remotesettingsclient_get_records_map(void
663668

669+
);
670+
#endif
671+
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSCLIENT_SYNC
672+
#define UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSCLIENT_SYNC
673+
uint16_t uniffi_remote_settings_checksum_method_remotesettingsclient_sync(void
674+
664675
);
665676
#endif
666677
#ifndef UNIFFI_FFIDEF_UNIFFI_REMOTE_SETTINGS_CHECKSUM_METHOD_REMOTESETTINGSSERVICE_MAKE_CLIENT

0 commit comments

Comments
 (0)