Skip to content

Commit

Permalink
Auto update with latest AS Release v94.3.0 (#76)
Browse files Browse the repository at this point in the history
* Updates Package.swift with v94.3.0 release

* Version 94.3.0

Co-authored-by: Firefox Sync Engineering <sync-team@mozilla.com>
  • Loading branch information
github-actions[bot] and Firefox Sync Engineering authored Sep 22, 2022
1 parent c45cd48 commit 0470b9f
Show file tree
Hide file tree
Showing 28 changed files with 5,200 additions and 3,884 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// swift-tools-version:5.4
import PackageDescription

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

// Focus xcframework
let focusChecksum = "22a2aaa44d25046fa1f5b5f9834cf4b2cba045e125b998f9f8096cd5ba639358"
let focusChecksum = "beac72a1fd86e489fc0bd404a9acf0c67990af06287d22e80a4f0bb0b228c9ea"
let focusUrl = "https://github.com/mozilla/application-services/releases/download/\(version)/FocusRustComponents.xcframework.zip"
let package = Package(
name: "MozillaRustComponentsSwift",
Expand Down
41 changes: 36 additions & 5 deletions swift-source/all/Generated/Metrics/Metrics.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// -*- mode: Swift -*-

// AUTOGENERATED BY glean_parser v6.1.1. DO NOT EDIT. DO NOT COMMIT.
// AUTOGENERATED BY glean_parser v6.2.0. DO NOT EDIT. DO NOT COMMIT.

#if canImport(Foundation)
import Foundation
#endif

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

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))
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))
}

enum NimbusEvents {
Expand Down Expand Up @@ -173,7 +177,21 @@ extension GleanMetrics {
}

enum NimbusHealth {
struct FeatureRequestErrorExtra: EventExtras {
struct SdkUnavailableForFeatureExtra: EventExtras {
var featureId: String?

func toExtraRecord() -> [String: String] {
var record = [String: String]()

if let featureId = self.featureId {
record["feature_id"] = String(featureId)
}

return record
}
}

struct CacheNotReadyForFeatureExtra: EventExtras {
var featureId: String?

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

/// Recorded when an application or library requests a feature configuration prior
/// to Nimbus initialization.
static let featureRequestError = EventMetricType<NoExtraKeys, FeatureRequestErrorExtra>( // generated from nimbus_health.feature_request_error
static let sdkUnavailableForFeature = EventMetricType<NoExtraKeys, SdkUnavailableForFeatureExtra>( // generated from nimbus_health.sdk_unavailable_for_feature
CommonMetricData(
category: "nimbus_health",
name: "sdk_unavailable_for_feature",
sendInPings: ["events"],
lifetime: .ping,
disabled: false
)
, ["feature_id"]
)

/// Recorded when an application or library requests a feature configuration before
/// the in memory cache has been populated from the database
static let cacheNotReadyForFeature = EventMetricType<NoExtraKeys, CacheNotReadyForFeatureExtra>( // generated from nimbus_health.cache_not_ready_for_feature
CommonMetricData(
category: "nimbus_health",
name: "feature_request_error",
name: "cache_not_ready_for_feature",
sendInPings: ["events"],
lifetime: .ping,
disabled: false
Expand Down
72 changes: 72 additions & 0 deletions swift-source/all/Generated/errorFFI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!

#pragma once

#include <stdbool.h>
#include <stdint.h>

// The following structs are used to implement the lowest level
// of the FFI, and thus useful to multiple uniffied crates.
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
#ifdef UNIFFI_SHARED_H
// We also try to prevent mixing versions of shared uniffi header structs.
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
#ifndef UNIFFI_SHARED_HEADER_V4
#error Combining helper code from multiple versions of uniffi is not supported
#endif // ndef UNIFFI_SHARED_HEADER_V4
#else
#define UNIFFI_SHARED_H
#define UNIFFI_SHARED_HEADER_V4
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️

typedef struct RustBuffer
{
int32_t capacity;
int32_t len;
uint8_t *_Nullable data;
} RustBuffer;

typedef int32_t (*ForeignCallback)(uint64_t, int32_t, RustBuffer, RustBuffer *_Nonnull);

typedef struct ForeignBytes
{
int32_t len;
const uint8_t *_Nullable data;
} ForeignBytes;

// Error definitions
typedef struct RustCallStatus {
int8_t code;
RustBuffer errorBuf;
} RustCallStatus;

// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
#endif // def UNIFFI_SHARED_H

void ffi_errorsupport_b986_ApplicationErrorReporter_init_callback(
ForeignCallback _Nonnull callback_stub,
RustCallStatus *_Nonnull out_status
);
void errorsupport_b986_set_application_error_reporter(
uint64_t error_reporter,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_errorsupport_b986_rustbuffer_alloc(
int32_t size,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_errorsupport_b986_rustbuffer_from_bytes(
ForeignBytes bytes,
RustCallStatus *_Nonnull out_status
);
void ffi_errorsupport_b986_rustbuffer_free(
RustBuffer buf,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_errorsupport_b986_rustbuffer_reserve(
RustBuffer buf,int32_t additional,
RustCallStatus *_Nonnull out_status
);
Loading

0 comments on commit 0470b9f

Please sign in to comment.