Skip to content

Commit cd3f73e

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (120.0.20230927050226)
1 parent c7ced69 commit cd3f73e

File tree

4 files changed

+72
-7
lines changed

4 files changed

+72
-7
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 = "58f624e1b8f98055a0cb5a6b28f2225984aa413b5b2a9def420c2fae55741a79"
5-
let version = "120.0.20230926050453"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.120.20230926050453/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "a4c81dadf8471bfadf037865c2413dfc23ce6912d51cc918b0cd50a72d09bf5b"
5+
let version = "120.0.20230927050226"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.120.20230927050226/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "99200ef8686ed9dae097379779d6b13641ba9663160353320e9eb87d172a1545"
10-
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.120.20230926050453/artifacts/public/build/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "967320fd784187662ea80e3b0aebcd2a7397275f2df0504f79d602f24a4709cd"
10+
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.120.20230927050226/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
@@ -25,7 +25,7 @@ extension GleanMetrics {
2525
// Intentionally left private, no external user can instantiate a new global object.
2626
}
2727

28-
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2023, month: 9, day: 26, hour: 5, minute: 31, second: 41))
28+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2023, month: 9, day: 27, hour: 5, minute: 21, second: 22))
2929
}
3030

3131
enum NimbusEvents {

swift-source/all/Generated/suggest.swift

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,19 @@ fileprivate struct FfiConverterInt64: FfiConverterPrimitive {
332332
}
333333
}
334334

335+
fileprivate struct FfiConverterDouble: FfiConverterPrimitive {
336+
typealias FfiType = Double
337+
typealias SwiftType = Double
338+
339+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Double {
340+
return try lift(readDouble(&buf))
341+
}
342+
343+
public static func write(_ value: Double, into buf: inout [UInt8]) {
344+
writeDouble(&buf, lower(value))
345+
}
346+
}
347+
335348
fileprivate struct FfiConverterBool : FfiConverter {
336349
typealias FfiType = Int8
337350
typealias SwiftType = Bool
@@ -669,6 +682,7 @@ public enum Suggestion {
669682

670683
case `amp`(`title`: String, `url`: String, `rawUrl`: String, `icon`: [UInt8]?, `fullKeyword`: String, `blockId`: Int64, `advertiser`: String, `iabCategory`: String, `impressionUrl`: String, `clickUrl`: String, `rawClickUrl`: String)
671684
case `wikipedia`(`title`: String, `url`: String, `icon`: [UInt8]?, `fullKeyword`: String)
685+
case `amo`(`title`: String, `url`: String, `iconUrl`: String, `description`: String, `rating`: String?, `numberOfRatings`: Int64, `guid`: String, `score`: Double)
672686
}
673687

674688
public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
@@ -699,6 +713,17 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
699713
`fullKeyword`: try FfiConverterString.read(from: &buf)
700714
)
701715

716+
case 3: return .`amo`(
717+
`title`: try FfiConverterString.read(from: &buf),
718+
`url`: try FfiConverterString.read(from: &buf),
719+
`iconUrl`: try FfiConverterString.read(from: &buf),
720+
`description`: try FfiConverterString.read(from: &buf),
721+
`rating`: try FfiConverterOptionString.read(from: &buf),
722+
`numberOfRatings`: try FfiConverterInt64.read(from: &buf),
723+
`guid`: try FfiConverterString.read(from: &buf),
724+
`score`: try FfiConverterDouble.read(from: &buf)
725+
)
726+
702727
default: throw UniffiInternalError.unexpectedEnumCase
703728
}
704729
}
@@ -729,6 +754,18 @@ public struct FfiConverterTypeSuggestion: FfiConverterRustBuffer {
729754
FfiConverterOptionSequenceUInt8.write(`icon`, into: &buf)
730755
FfiConverterString.write(`fullKeyword`, into: &buf)
731756

757+
758+
case let .`amo`(`title`,`url`,`iconUrl`,`description`,`rating`,`numberOfRatings`,`guid`,`score`):
759+
writeInt(&buf, Int32(3))
760+
FfiConverterString.write(`title`, into: &buf)
761+
FfiConverterString.write(`url`, into: &buf)
762+
FfiConverterString.write(`iconUrl`, into: &buf)
763+
FfiConverterString.write(`description`, into: &buf)
764+
FfiConverterOptionString.write(`rating`, into: &buf)
765+
FfiConverterInt64.write(`numberOfRatings`, into: &buf)
766+
FfiConverterString.write(`guid`, into: &buf)
767+
FfiConverterDouble.write(`score`, into: &buf)
768+
732769
}
733770
}
734771
}
@@ -753,6 +790,7 @@ public enum SuggestionProvider {
753790

754791
case `amp`
755792
case `wikipedia`
793+
case `amo`
756794
}
757795

758796
public struct FfiConverterTypeSuggestionProvider: FfiConverterRustBuffer {
@@ -766,6 +804,8 @@ public struct FfiConverterTypeSuggestionProvider: FfiConverterRustBuffer {
766804

767805
case 2: return .`wikipedia`
768806

807+
case 3: return .`amo`
808+
769809
default: throw UniffiInternalError.unexpectedEnumCase
770810
}
771811
}
@@ -781,6 +821,10 @@ public struct FfiConverterTypeSuggestionProvider: FfiConverterRustBuffer {
781821
case .`wikipedia`:
782822
writeInt(&buf, Int32(2))
783823

824+
825+
case .`amo`:
826+
writeInt(&buf, Int32(3))
827+
784828
}
785829
}
786830
}
@@ -820,6 +864,27 @@ fileprivate struct FfiConverterOptionUInt64: FfiConverterRustBuffer {
820864
}
821865
}
822866

867+
fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
868+
typealias SwiftType = String?
869+
870+
public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
871+
guard let value = value else {
872+
writeInt(&buf, Int8(0))
873+
return
874+
}
875+
writeInt(&buf, Int8(1))
876+
FfiConverterString.write(value, into: &buf)
877+
}
878+
879+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
880+
switch try readInt(&buf) as Int8 {
881+
case 0: return nil
882+
case 1: return try FfiConverterString.read(from: &buf)
883+
default: throw UniffiInternalError.unexpectedOptionalTag
884+
}
885+
}
886+
}
887+
823888
fileprivate struct FfiConverterOptionSequenceUInt8: FfiConverterRustBuffer {
824889
typealias SwiftType = [UInt8]?
825890

swift-source/focus/Generated/Metrics/Metrics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extension GleanMetrics {
2525
// Intentionally left private, no external user can instantiate a new global object.
2626
}
2727

28-
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2023, month: 9, day: 26, hour: 5, minute: 31, second: 45))
28+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2023, month: 9, day: 27, hour: 5, minute: 21, second: 25))
2929
}
3030

3131
enum NimbusEvents {

0 commit comments

Comments
 (0)