Skip to content

Commit 8a3ee4c

Browse files
author
Firefox Sync Engineering
committed
Nightly auto-update (132.0.20240911050347)
1 parent c92def2 commit 8a3ee4c

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
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 = "a10ab41ddb6b43e0dc5facf1c53c5aa03ff51586d1f77927bbec80be74cda11f"
5-
let version = "132.0.20240907050348"
6-
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.132.20240907050348/artifacts/public/build/MozillaRustComponents.xcframework.zip"
4+
let checksum = "83c227f8f9cf2607db71e3a0348bdee3beadd6cd6c1ed3f2d6fb4c6a787f6519"
5+
let version = "132.0.20240911050347"
6+
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.132.20240911050347/artifacts/public/build/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "bc964accceddf7ffa80d0a09b60466bd177ec0157857432fb8814e96ae4174de"
10-
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.132.20240907050348/artifacts/public/build/FocusRustComponents.xcframework.zip"
9+
let focusChecksum = "80ad128ad34dcd92d50d51a76eb6a32966613676983220c743c54467e2fd8cba"
10+
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.132.20240911050347/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: 9, day: 7, hour: 5, minute: 21, second: 49))
26+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 9, day: 11, hour: 5, minute: 13, second: 39))
2727
}
2828

2929
enum NimbusEvents {

swift-source/all/Nimbus/FeatureHolder.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,12 @@ public extension FMLFeatureInterface {
218218

219219
func toJSONString() -> String {
220220
let encoder = JSONEncoder()
221-
let data = try! encoder.encode(self)
222-
return String(decoding: data, as: UTF8.self)
221+
guard let data = try? encoder.encode(self) else {
222+
fatalError("`JSONEncoder.encode()` must succeed for `FMLFeatureInterface`")
223+
}
224+
guard let string = String(data: data, encoding: .utf8) else {
225+
fatalError("`JSONEncoder.encode()` must return valid UTF-8")
226+
}
227+
return string
223228
}
224229
}

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

2929
enum NimbusEvents {

swift-source/focus/Nimbus/FeatureHolder.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,12 @@ public extension FMLFeatureInterface {
218218

219219
func toJSONString() -> String {
220220
let encoder = JSONEncoder()
221-
let data = try! encoder.encode(self)
222-
return String(decoding: data, as: UTF8.self)
221+
guard let data = try? encoder.encode(self) else {
222+
fatalError("`JSONEncoder.encode()` must succeed for `FMLFeatureInterface`")
223+
}
224+
guard let string = String(data: data, encoding: .utf8) else {
225+
fatalError("`JSONEncoder.encode()` must return valid UTF-8")
226+
}
227+
return string
223228
}
224229
}

0 commit comments

Comments
 (0)