Skip to content

Commit 4bf41b6

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (136.0.20250108050329)
1 parent 9f76a57 commit 4bf41b6

File tree

6 files changed

+130
-12
lines changed

6 files changed

+130
-12
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 = "76cf864f222428419e6474df612c33b5b1fa1bcf53f2cbf26b8aca3f602004bc"
5-
let version = "136.0.20250107050243"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.136.20250107050243/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "0c815ad5663bbcb18ab63733d47c48a8873bb699a42361bf90429775e9989e88"
5+
let version = "136.0.20250108050329"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.136.20250108050329/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

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

2929
enum NimbusEvents {

swift-source/all/Generated/remote_settings.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,13 +1670,19 @@ public func FfiConverterTypeRemoteSettingsContext_lower(_ value: RemoteSettingsC
16701670
public struct RemoteSettingsRecord {
16711671
public var id: String
16721672
public var lastModified: UInt64
1673+
/**
1674+
* Tombstone flag (see https://remote-settings.readthedocs.io/en/latest/client-specifications.html#local-state)
1675+
*/
16731676
public var deleted: Bool
16741677
public var attachment: Attachment?
16751678
public var fields: RsJsonObject
16761679

16771680
// Default memberwise initializers are never public by default, so we
16781681
// declare one manually.
1679-
public init(id: String, lastModified: UInt64, deleted: Bool, attachment: Attachment?, fields: RsJsonObject) {
1682+
public init(id: String, lastModified: UInt64,
1683+
/**
1684+
* Tombstone flag (see https://remote-settings.readthedocs.io/en/latest/client-specifications.html#local-state)
1685+
*/deleted: Bool, attachment: Attachment?, fields: RsJsonObject) {
16801686
self.id = id
16811687
self.lastModified = lastModified
16821688
self.deleted = deleted

swift-source/all/Generated/suggest.swift

Lines changed: 109 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,87 @@ public func FfiConverterTypeSuggestStoreBuilder_lower(_ value: SuggestStoreBuild
11501150
}
11511151

11521152

1153+
/**
1154+
* Additional data about how an FTS match was made
1155+
*/
1156+
public struct FtsMatchInfo {
1157+
/**
1158+
* Was this a prefix match (`water b` matched against `water bottle`)
1159+
*/
1160+
public var prefix: Bool
1161+
/**
1162+
* Did the match require stemming? (`run shoes` matched against `running shoes`)
1163+
*/
1164+
public var stemming: Bool
1165+
1166+
// Default memberwise initializers are never public by default, so we
1167+
// declare one manually.
1168+
public init(
1169+
/**
1170+
* Was this a prefix match (`water b` matched against `water bottle`)
1171+
*/prefix: Bool,
1172+
/**
1173+
* Did the match require stemming? (`run shoes` matched against `running shoes`)
1174+
*/stemming: Bool) {
1175+
self.prefix = prefix
1176+
self.stemming = stemming
1177+
}
1178+
}
1179+
1180+
1181+
1182+
extension FtsMatchInfo: Equatable, Hashable {
1183+
public static func ==(lhs: FtsMatchInfo, rhs: FtsMatchInfo) -> Bool {
1184+
if lhs.prefix != rhs.prefix {
1185+
return false
1186+
}
1187+
if lhs.stemming != rhs.stemming {
1188+
return false
1189+
}
1190+
return true
1191+
}
1192+
1193+
public func hash(into hasher: inout Hasher) {
1194+
hasher.combine(prefix)
1195+
hasher.combine(stemming)
1196+
}
1197+
}
1198+
1199+
1200+
#if swift(>=5.8)
1201+
@_documentation(visibility: private)
1202+
#endif
1203+
public struct FfiConverterTypeFtsMatchInfo: FfiConverterRustBuffer {
1204+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> FtsMatchInfo {
1205+
return
1206+
try FtsMatchInfo(
1207+
prefix: FfiConverterBool.read(from: &buf),
1208+
stemming: FfiConverterBool.read(from: &buf)
1209+
)
1210+
}
1211+
1212+
public static func write(_ value: FtsMatchInfo, into buf: inout [UInt8]) {
1213+
FfiConverterBool.write(value.prefix, into: &buf)
1214+
FfiConverterBool.write(value.stemming, into: &buf)
1215+
}
1216+
}
1217+
1218+
1219+
#if swift(>=5.8)
1220+
@_documentation(visibility: private)
1221+
#endif
1222+
public func FfiConverterTypeFtsMatchInfo_lift(_ buf: RustBuffer) throws -> FtsMatchInfo {
1223+
return try FfiConverterTypeFtsMatchInfo.lift(buf)
1224+
}
1225+
1226+
#if swift(>=5.8)
1227+
@_documentation(visibility: private)
1228+
#endif
1229+
public func FfiConverterTypeFtsMatchInfo_lower(_ value: FtsMatchInfo) -> RustBuffer {
1230+
return FfiConverterTypeFtsMatchInfo.lower(value)
1231+
}
1232+
1233+
11531234
/**
11541235
* A single geographic place.
11551236
*
@@ -2361,7 +2442,7 @@ public enum Suggestion {
23612442
)
23622443
case weather(city: String?, region: String?, country: String?, latitude: Double?, longitude: Double?, score: Double
23632444
)
2364-
case fakespot(fakespotGrade: String, productId: String, rating: Double, title: String, totalReviews: Int64, url: String, icon: Data?, iconMimetype: String?, score: Double
2445+
case fakespot(fakespotGrade: String, productId: String, rating: Double, title: String, totalReviews: Int64, url: String, icon: Data?, iconMimetype: String?, score: Double, matchInfo: FtsMatchInfo?
23652446
)
23662447
case exposure(suggestionType: String, score: Double
23672448
)
@@ -2399,7 +2480,7 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
23992480
case 7: return .weather(city: try FfiConverterOptionString.read(from: &buf), region: try FfiConverterOptionString.read(from: &buf), country: try FfiConverterOptionString.read(from: &buf), latitude: try FfiConverterOptionDouble.read(from: &buf), longitude: try FfiConverterOptionDouble.read(from: &buf), score: try FfiConverterDouble.read(from: &buf)
24002481
)
24012482

2402-
case 8: return .fakespot(fakespotGrade: try FfiConverterString.read(from: &buf), productId: try FfiConverterString.read(from: &buf), rating: try FfiConverterDouble.read(from: &buf), title: try FfiConverterString.read(from: &buf), totalReviews: try FfiConverterInt64.read(from: &buf), url: try FfiConverterString.read(from: &buf), icon: try FfiConverterOptionData.read(from: &buf), iconMimetype: try FfiConverterOptionString.read(from: &buf), score: try FfiConverterDouble.read(from: &buf)
2483+
case 8: return .fakespot(fakespotGrade: try FfiConverterString.read(from: &buf), productId: try FfiConverterString.read(from: &buf), rating: try FfiConverterDouble.read(from: &buf), title: try FfiConverterString.read(from: &buf), totalReviews: try FfiConverterInt64.read(from: &buf), url: try FfiConverterString.read(from: &buf), icon: try FfiConverterOptionData.read(from: &buf), iconMimetype: try FfiConverterOptionString.read(from: &buf), score: try FfiConverterDouble.read(from: &buf), matchInfo: try FfiConverterOptionTypeFtsMatchInfo.read(from: &buf)
24032484
)
24042485

24052486
case 9: return .exposure(suggestionType: try FfiConverterString.read(from: &buf), score: try FfiConverterDouble.read(from: &buf)
@@ -2489,7 +2570,7 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
24892570
FfiConverterDouble.write(score, into: &buf)
24902571

24912572

2492-
case let .fakespot(fakespotGrade,productId,rating,title,totalReviews,url,icon,iconMimetype,score):
2573+
case let .fakespot(fakespotGrade,productId,rating,title,totalReviews,url,icon,iconMimetype,score,matchInfo):
24932574
writeInt(&buf, Int32(8))
24942575
FfiConverterString.write(fakespotGrade, into: &buf)
24952576
FfiConverterString.write(productId, into: &buf)
@@ -2500,6 +2581,7 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
25002581
FfiConverterOptionData.write(icon, into: &buf)
25012582
FfiConverterOptionString.write(iconMimetype, into: &buf)
25022583
FfiConverterDouble.write(score, into: &buf)
2584+
FfiConverterOptionTypeFtsMatchInfo.write(matchInfo, into: &buf)
25032585

25042586

25052587
case let .exposure(suggestionType,score):
@@ -2751,6 +2833,30 @@ fileprivate struct FfiConverterOptionData: FfiConverterRustBuffer {
27512833
}
27522834
}
27532835

2836+
#if swift(>=5.8)
2837+
@_documentation(visibility: private)
2838+
#endif
2839+
fileprivate struct FfiConverterOptionTypeFtsMatchInfo: FfiConverterRustBuffer {
2840+
typealias SwiftType = FtsMatchInfo?
2841+
2842+
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
2843+
guard let value = value else {
2844+
writeInt(&buf, Int8(0))
2845+
return
2846+
}
2847+
writeInt(&buf, Int8(1))
2848+
FfiConverterTypeFtsMatchInfo.write(value, into: &buf)
2849+
}
2850+
2851+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
2852+
switch try readInt(&buf) as Int8 {
2853+
case 0: return nil
2854+
case 1: return try FfiConverterTypeFtsMatchInfo.read(from: &buf)
2855+
default: throw UniffiInternalError.unexpectedOptionalTag
2856+
}
2857+
}
2858+
}
2859+
27542860
#if swift(>=5.8)
27552861
@_documentation(visibility: private)
27562862
#endif

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

2929
enum NimbusEvents {

swift-source/focus/Generated/remote_settings.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,13 +1670,19 @@ public func FfiConverterTypeRemoteSettingsContext_lower(_ value: RemoteSettingsC
16701670
public struct RemoteSettingsRecord {
16711671
public var id: String
16721672
public var lastModified: UInt64
1673+
/**
1674+
* Tombstone flag (see https://remote-settings.readthedocs.io/en/latest/client-specifications.html#local-state)
1675+
*/
16731676
public var deleted: Bool
16741677
public var attachment: Attachment?
16751678
public var fields: RsJsonObject
16761679

16771680
// Default memberwise initializers are never public by default, so we
16781681
// declare one manually.
1679-
public init(id: String, lastModified: UInt64, deleted: Bool, attachment: Attachment?, fields: RsJsonObject) {
1682+
public init(id: String, lastModified: UInt64,
1683+
/**
1684+
* Tombstone flag (see https://remote-settings.readthedocs.io/en/latest/client-specifications.html#local-state)
1685+
*/deleted: Bool, attachment: Attachment?, fields: RsJsonObject) {
16801686
self.id = id
16811687
self.lastModified = lastModified
16821688
self.deleted = deleted

0 commit comments

Comments
 (0)