Skip to content

Commit 0470b9f

Browse files
github-actions[bot]Firefox Sync Engineering
andauthored
Auto update with latest AS Release v94.3.0 (#76)
* Updates Package.swift with v94.3.0 release * Version 94.3.0 Co-authored-by: Firefox Sync Engineering <[email protected]>
1 parent c45cd48 commit 0470b9f

28 files changed

+5200
-3884
lines changed

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// swift-tools-version:5.4
22
import PackageDescription
33

4-
let checksum = "b665ab1f5371f5c14874763cfb135b953a58414e678027a5cacfcac81b3b0386"
5-
let version = "v94.1.0"
4+
let checksum = "351cf3f6ec32d7ebd984ce1a5cd8349e6169c5f4ee2c5dd5a77082650c2a3486"
5+
let version = "v94.3.0"
66
let url = "https://github.com/mozilla/application-services/releases/download/\(version)/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "22a2aaa44d25046fa1f5b5f9834cf4b2cba045e125b998f9f8096cd5ba639358"
9+
let focusChecksum = "beac72a1fd86e489fc0bd404a9acf0c67990af06287d22e80a4f0bb0b228c9ea"
1010
let focusUrl = "https://github.com/mozilla/application-services/releases/download/\(version)/FocusRustComponents.xcframework.zip"
1111
let package = Package(
1212
name: "MozillaRustComponentsSwift",

swift-source/all/Generated/Metrics/Metrics.swift

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// -*- mode: Swift -*-
22

3-
// AUTOGENERATED BY glean_parser v6.1.1. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v6.2.0. DO NOT EDIT. DO NOT COMMIT.
4+
5+
#if canImport(Foundation)
6+
import Foundation
7+
#endif
48

59
/* This Source Code Form is subject to the terms of the Mozilla Public
610
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -22,7 +26,7 @@ extension GleanMetrics {
2226
// Intentionally left private, no external user can instantiate a new global object.
2327
}
2428

25-
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2022, month: 8, day: 18, hour: 19, minute: 52, second: 20))
29+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2022, month: 9, day: 21, hour: 15, minute: 7, second: 42))
2630
}
2731

2832
enum NimbusEvents {
@@ -173,7 +177,21 @@ extension GleanMetrics {
173177
}
174178

175179
enum NimbusHealth {
176-
struct FeatureRequestErrorExtra: EventExtras {
180+
struct SdkUnavailableForFeatureExtra: EventExtras {
181+
var featureId: String?
182+
183+
func toExtraRecord() -> [String: String] {
184+
var record = [String: String]()
185+
186+
if let featureId = self.featureId {
187+
record["feature_id"] = String(featureId)
188+
}
189+
190+
return record
191+
}
192+
}
193+
194+
struct CacheNotReadyForFeatureExtra: EventExtras {
177195
var featureId: String?
178196

179197
func toExtraRecord() -> [String: String] {
@@ -189,10 +207,23 @@ extension GleanMetrics {
189207

190208
/// Recorded when an application or library requests a feature configuration prior
191209
/// to Nimbus initialization.
192-
static let featureRequestError = EventMetricType<NoExtraKeys, FeatureRequestErrorExtra>( // generated from nimbus_health.feature_request_error
210+
static let sdkUnavailableForFeature = EventMetricType<NoExtraKeys, SdkUnavailableForFeatureExtra>( // generated from nimbus_health.sdk_unavailable_for_feature
211+
CommonMetricData(
212+
category: "nimbus_health",
213+
name: "sdk_unavailable_for_feature",
214+
sendInPings: ["events"],
215+
lifetime: .ping,
216+
disabled: false
217+
)
218+
, ["feature_id"]
219+
)
220+
221+
/// Recorded when an application or library requests a feature configuration before
222+
/// the in memory cache has been populated from the database
223+
static let cacheNotReadyForFeature = EventMetricType<NoExtraKeys, CacheNotReadyForFeatureExtra>( // generated from nimbus_health.cache_not_ready_for_feature
193224
CommonMetricData(
194225
category: "nimbus_health",
195-
name: "feature_request_error",
226+
name: "cache_not_ready_for_feature",
196227
sendInPings: ["events"],
197228
lifetime: .ping,
198229
disabled: false

swift-source/all/Generated/errorFFI.h

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// This file was autogenerated by some hot garbage in the `uniffi` crate.
2+
// Trust me, you don't want to mess with it!
3+
4+
#pragma once
5+
6+
#include <stdbool.h>
7+
#include <stdint.h>
8+
9+
// The following structs are used to implement the lowest level
10+
// of the FFI, and thus useful to multiple uniffied crates.
11+
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
12+
#ifdef UNIFFI_SHARED_H
13+
// We also try to prevent mixing versions of shared uniffi header structs.
14+
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
15+
#ifndef UNIFFI_SHARED_HEADER_V4
16+
#error Combining helper code from multiple versions of uniffi is not supported
17+
#endif // ndef UNIFFI_SHARED_HEADER_V4
18+
#else
19+
#define UNIFFI_SHARED_H
20+
#define UNIFFI_SHARED_HEADER_V4
21+
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
22+
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
23+
24+
typedef struct RustBuffer
25+
{
26+
int32_t capacity;
27+
int32_t len;
28+
uint8_t *_Nullable data;
29+
} RustBuffer;
30+
31+
typedef int32_t (*ForeignCallback)(uint64_t, int32_t, RustBuffer, RustBuffer *_Nonnull);
32+
33+
typedef struct ForeignBytes
34+
{
35+
int32_t len;
36+
const uint8_t *_Nullable data;
37+
} ForeignBytes;
38+
39+
// Error definitions
40+
typedef struct RustCallStatus {
41+
int8_t code;
42+
RustBuffer errorBuf;
43+
} RustCallStatus;
44+
45+
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
46+
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
47+
#endif // def UNIFFI_SHARED_H
48+
49+
void ffi_errorsupport_b986_ApplicationErrorReporter_init_callback(
50+
ForeignCallback _Nonnull callback_stub,
51+
RustCallStatus *_Nonnull out_status
52+
);
53+
void errorsupport_b986_set_application_error_reporter(
54+
uint64_t error_reporter,
55+
RustCallStatus *_Nonnull out_status
56+
);
57+
RustBuffer ffi_errorsupport_b986_rustbuffer_alloc(
58+
int32_t size,
59+
RustCallStatus *_Nonnull out_status
60+
);
61+
RustBuffer ffi_errorsupport_b986_rustbuffer_from_bytes(
62+
ForeignBytes bytes,
63+
RustCallStatus *_Nonnull out_status
64+
);
65+
void ffi_errorsupport_b986_rustbuffer_free(
66+
RustBuffer buf,
67+
RustCallStatus *_Nonnull out_status
68+
);
69+
RustBuffer ffi_errorsupport_b986_rustbuffer_reserve(
70+
RustBuffer buf,int32_t additional,
71+
RustCallStatus *_Nonnull out_status
72+
);

0 commit comments

Comments
 (0)