Skip to content

Commit

Permalink
Nightly auto-update (133.0.20241027050311)
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefox Sync Engineering committed Oct 27, 2024
1 parent fd7fd07 commit e891a64
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 433 deletions.
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// swift-tools-version:5.4
import PackageDescription

let checksum = "342d1512bb69ac29c9b3e59ab5bf59abcfbe8b1da7017e63591cba68e489d2b0"
let version = "133.0.20241026050254"
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241026050254/artifacts/public/build/MozillaRustComponents.xcframework.zip"
let checksum = "39b3d06d4236fa79ffe860a0787ea850b5b40c71bf060aa76b5c18d70e08cb69"
let version = "133.0.20241027050311"
let url = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241027050311/artifacts/public/build/MozillaRustComponents.xcframework.zip"

// Focus xcframework
let focusChecksum = "9c1300ba20f85d4f29c34b2c4c4f522b2fbaaa79a3723cea42c9404ea82de4bb"
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241026050254/artifacts/public/build/FocusRustComponents.xcframework.zip"
let focusChecksum = "37b9ef870c798f3ed5e1668c385ee5b00e5dedf7f63f533e04467730db4b9b41"
let focusUrl = "https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/project.application-services.v2.swift.133.20241027050311/artifacts/public/build/FocusRustComponents.xcframework.zip"
let package = Package(
name: "MozillaRustComponentsSwift",
platforms: [.iOS(.v14)],
Expand Down
2 changes: 1 addition & 1 deletion swift-source/all/Generated/Metrics/Metrics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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: 2024, month: 10, day: 26, hour: 5, minute: 16, second: 21))
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 10, day: 27, hour: 5, minute: 13, second: 18))
}

enum NimbusEvents {
Expand Down
160 changes: 0 additions & 160 deletions swift-source/all/Generated/nimbus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -427,22 +427,6 @@ fileprivate struct FfiConverterInt64: FfiConverterPrimitive {
}
}

#if swift(>=5.8)
@_documentation(visibility: private)
#endif
fileprivate struct FfiConverterDouble: FfiConverterPrimitive {
typealias FfiType = Double
typealias SwiftType = Double

public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> Double {
return try lift(readDouble(&buf))
}

public static func write(_ value: Double, into buf: inout [UInt8]) {
writeDouble(&buf, lower(value))
}
}

#if swift(>=5.8)
@_documentation(visibility: private)
#endif
Expand Down Expand Up @@ -1398,12 +1382,8 @@ public func FfiConverterTypeNimbusTargetingHelper_lower(_ value: NimbusTargeting

public protocol RecordedContext : AnyObject {

func getEventQueries() -> [String: String]

func record()

func setEventQueryValues(eventQueryValues: [String: Double])

func toJson() -> JsonObject

}
Expand Down Expand Up @@ -1457,26 +1437,12 @@ open class RecordedContextImpl:



open func getEventQueries() -> [String: String] {
return try! FfiConverterDictionaryStringString.lift(try! rustCall() {
uniffi_nimbus_fn_method_recordedcontext_get_event_queries(self.uniffiClonePointer(),$0
)
})
}

open func record() {try! rustCall() {
uniffi_nimbus_fn_method_recordedcontext_record(self.uniffiClonePointer(),$0
)
}
}

open func setEventQueryValues(eventQueryValues: [String: Double]) {try! rustCall() {
uniffi_nimbus_fn_method_recordedcontext_set_event_query_values(self.uniffiClonePointer(),
FfiConverterDictionaryStringDouble.lower(eventQueryValues),$0
)
}
}

open func toJson() -> JsonObject {
return try! FfiConverterTypeJsonObject.lift(try! rustCall() {
uniffi_nimbus_fn_method_recordedcontext_to_json(self.uniffiClonePointer(),$0
Expand All @@ -1500,28 +1466,6 @@ fileprivate struct UniffiCallbackInterfaceRecordedContext {
// Create the VTable using a series of closures.
// Swift automatically converts these into C callback functions.
static var vtable: UniffiVTableCallbackInterfaceRecordedContext = UniffiVTableCallbackInterfaceRecordedContext(
getEventQueries: { (
uniffiHandle: UInt64,
uniffiOutReturn: UnsafeMutablePointer<RustBuffer>,
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
) in
let makeCall = {
() throws -> [String: String] in
guard let uniffiObj = try? FfiConverterTypeRecordedContext.handleMap.get(handle: uniffiHandle) else {
throw UniffiInternalError.unexpectedStaleHandle
}
return uniffiObj.getEventQueries(
)
}


let writeReturn = { uniffiOutReturn.pointee = FfiConverterDictionaryStringString.lower($0) }
uniffiTraitInterfaceCall(
callStatus: uniffiCallStatus,
makeCall: makeCall,
writeReturn: writeReturn
)
},
record: { (
uniffiHandle: UInt64,
uniffiOutReturn: UnsafeMutableRawPointer,
Expand All @@ -1537,30 +1481,6 @@ fileprivate struct UniffiCallbackInterfaceRecordedContext {
}


let writeReturn = { () }
uniffiTraitInterfaceCall(
callStatus: uniffiCallStatus,
makeCall: makeCall,
writeReturn: writeReturn
)
},
setEventQueryValues: { (
uniffiHandle: UInt64,
eventQueryValues: RustBuffer,
uniffiOutReturn: UnsafeMutableRawPointer,
uniffiCallStatus: UnsafeMutablePointer<RustCallStatus>
) in
let makeCall = {
() throws -> () in
guard let uniffiObj = try? FfiConverterTypeRecordedContext.handleMap.get(handle: uniffiHandle) else {
throw UniffiInternalError.unexpectedStaleHandle
}
return uniffiObj.setEventQueryValues(
eventQueryValues: try FfiConverterDictionaryStringDouble.lift(eventQueryValues)
)
}


let writeReturn = { () }
uniffiTraitInterfaceCall(
callStatus: uniffiCallStatus,
Expand Down Expand Up @@ -2558,8 +2478,6 @@ public enum NimbusError {

case UniFfiCallbackError(message: String)

case RegexError(message: String)

}


Expand Down Expand Up @@ -2676,10 +2594,6 @@ public struct FfiConverterTypeNimbusError: FfiConverterRustBuffer {
message: try FfiConverterString.read(from: &buf)
)

case 26: return .RegexError(
message: try FfiConverterString.read(from: &buf)
)


default: throw UniffiInternalError.unexpectedEnumCase
}
Expand Down Expand Up @@ -2741,8 +2655,6 @@ public struct FfiConverterTypeNimbusError: FfiConverterRustBuffer {
writeInt(&buf, Int32(24))
case .UniFfiCallbackError(_ /* message is ignored*/):
writeInt(&buf, Int32(25))
case .RegexError(_ /* message is ignored*/):
writeInt(&buf, Int32(26))


}
Expand Down Expand Up @@ -3208,58 +3120,6 @@ fileprivate struct FfiConverterSequenceTypeExperimentBranch: FfiConverterRustBuf
}
}

#if swift(>=5.8)
@_documentation(visibility: private)
#endif
fileprivate struct FfiConverterDictionaryStringDouble: FfiConverterRustBuffer {
public static func write(_ value: [String: Double], into buf: inout [UInt8]) {
let len = Int32(value.count)
writeInt(&buf, len)
for (key, value) in value {
FfiConverterString.write(key, into: &buf)
FfiConverterDouble.write(value, into: &buf)
}
}

public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> [String: Double] {
let len: Int32 = try readInt(&buf)
var dict = [String: Double]()
dict.reserveCapacity(Int(len))
for _ in 0..<len {
let key = try FfiConverterString.read(from: &buf)
let value = try FfiConverterDouble.read(from: &buf)
dict[key] = value
}
return dict
}
}

#if swift(>=5.8)
@_documentation(visibility: private)
#endif
fileprivate struct FfiConverterDictionaryStringString: FfiConverterRustBuffer {
public static func write(_ value: [String: String], into buf: inout [UInt8]) {
let len = Int32(value.count)
writeInt(&buf, len)
for (key, value) in value {
FfiConverterString.write(key, into: &buf)
FfiConverterString.write(value, into: &buf)
}
}

public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> [String: String] {
let len: Int32 = try readInt(&buf)
var dict = [String: String]()
dict.reserveCapacity(Int(len))
for _ in 0..<len {
let key = try FfiConverterString.read(from: &buf)
let value = try FfiConverterString.read(from: &buf)
dict[key] = value
}
return dict
}
}




Expand Down Expand Up @@ -3304,17 +3164,6 @@ public func FfiConverterTypeJsonObject_lift(_ value: RustBuffer) throws -> JsonO
public func FfiConverterTypeJsonObject_lower(_ value: JsonObject) -> RustBuffer {
return FfiConverterTypeJsonObject.lower(value)
}
/**
* A test utility used to validate event queries against the jexl evaluator.
*
* This method should only be used in tests.
*/
public func validateEventQueries(recordedContext: RecordedContext)throws {try rustCallWithError(FfiConverterTypeNimbusError.lift) {
uniffi_nimbus_fn_func_validate_event_queries(
FfiConverterTypeRecordedContext.lower(recordedContext),$0
)
}
}

private enum InitializationResult {
case ok
Expand All @@ -3331,9 +3180,6 @@ private var initializationResult: InitializationResult = {
if bindings_contract_version != scaffolding_contract_version {
return InitializationResult.contractVersionMismatch
}
if (uniffi_nimbus_checksum_func_validate_event_queries() != 42746) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nimbus_checksum_method_nimbusclient_advance_event_time() != 40755) {
return InitializationResult.apiChecksumMismatch
}
Expand Down Expand Up @@ -3421,15 +3267,9 @@ private var initializationResult: InitializationResult = {
if (uniffi_nimbus_checksum_method_nimbustargetinghelper_eval_jexl() != 42395) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nimbus_checksum_method_recordedcontext_get_event_queries() != 28844) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nimbus_checksum_method_recordedcontext_record() != 5916) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nimbus_checksum_method_recordedcontext_set_event_query_values() != 40199) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_nimbus_checksum_method_recordedcontext_to_json() != 530) {
return InitializationResult.apiChecksumMismatch
}
Expand Down
57 changes: 4 additions & 53 deletions swift-source/all/Generated/nimbusFFI.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,28 +281,14 @@ typedef void (*UniffiCallbackInterfaceMetricsHandlerMethod3)(uint64_t, RustBuffe
#endif
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD0
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD0
typedef void (*UniffiCallbackInterfaceRecordedContextMethod0)(uint64_t, RustBuffer* _Nonnull,
typedef void (*UniffiCallbackInterfaceRecordedContextMethod0)(uint64_t, void* _Nonnull,
RustCallStatus *_Nonnull uniffiCallStatus
);

#endif
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD1
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD1
typedef void (*UniffiCallbackInterfaceRecordedContextMethod1)(uint64_t, void* _Nonnull,
RustCallStatus *_Nonnull uniffiCallStatus
);

#endif
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD2
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD2
typedef void (*UniffiCallbackInterfaceRecordedContextMethod2)(uint64_t, RustBuffer, void* _Nonnull,
RustCallStatus *_Nonnull uniffiCallStatus
);

#endif
#ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD3
#define UNIFFI_FFIDEF_CALLBACK_INTERFACE_RECORDED_CONTEXT_METHOD3
typedef void (*UniffiCallbackInterfaceRecordedContextMethod3)(uint64_t, RustBuffer* _Nonnull,
typedef void (*UniffiCallbackInterfaceRecordedContextMethod1)(uint64_t, RustBuffer* _Nonnull,
RustCallStatus *_Nonnull uniffiCallStatus
);

Expand All @@ -321,10 +307,8 @@ typedef struct UniffiVTableCallbackInterfaceMetricsHandler {
#ifndef UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_RECORDED_CONTEXT
#define UNIFFI_FFIDEF_V_TABLE_CALLBACK_INTERFACE_RECORDED_CONTEXT
typedef struct UniffiVTableCallbackInterfaceRecordedContext {
UniffiCallbackInterfaceRecordedContextMethod0 _Nonnull getEventQueries;
UniffiCallbackInterfaceRecordedContextMethod1 _Nonnull record;
UniffiCallbackInterfaceRecordedContextMethod2 _Nonnull setEventQueryValues;
UniffiCallbackInterfaceRecordedContextMethod3 _Nonnull toJson;
UniffiCallbackInterfaceRecordedContextMethod0 _Nonnull record;
UniffiCallbackInterfaceRecordedContextMethod1 _Nonnull toJson;
UniffiCallbackInterfaceFree _Nonnull uniffiFree;
} UniffiVTableCallbackInterfaceRecordedContext;

Expand Down Expand Up @@ -524,21 +508,11 @@ void uniffi_nimbus_fn_free_recordedcontext(void*_Nonnull ptr, RustCallStatus *_N
void uniffi_nimbus_fn_init_callback_vtable_recordedcontext(UniffiVTableCallbackInterfaceRecordedContext* _Nonnull vtable
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_GET_EVENT_QUERIES
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_GET_EVENT_QUERIES
RustBuffer uniffi_nimbus_fn_method_recordedcontext_get_event_queries(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_RECORD
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_RECORD
void uniffi_nimbus_fn_method_recordedcontext_record(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_SET_EVENT_QUERY_VALUES
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_SET_EVENT_QUERY_VALUES
void uniffi_nimbus_fn_method_recordedcontext_set_event_query_values(void*_Nonnull ptr, RustBuffer event_query_values, RustCallStatus *_Nonnull out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_TO_JSON
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_METHOD_RECORDEDCONTEXT_TO_JSON
RustBuffer uniffi_nimbus_fn_method_recordedcontext_to_json(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
Expand All @@ -549,11 +523,6 @@ RustBuffer uniffi_nimbus_fn_method_recordedcontext_to_json(void*_Nonnull ptr, Ru
void uniffi_nimbus_fn_init_callback_vtable_metricshandler(UniffiVTableCallbackInterfaceMetricsHandler* _Nonnull vtable
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_FUNC_VALIDATE_EVENT_QUERIES
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_FN_FUNC_VALIDATE_EVENT_QUERIES
void uniffi_nimbus_fn_func_validate_event_queries(void*_Nonnull recorded_context, RustCallStatus *_Nonnull out_status
);
#endif
#ifndef UNIFFI_FFIDEF_FFI_NIMBUS_RUSTBUFFER_ALLOC
#define UNIFFI_FFIDEF_FFI_NIMBUS_RUSTBUFFER_ALLOC
RustBuffer ffi_nimbus_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
Expand Down Expand Up @@ -832,12 +801,6 @@ void ffi_nimbus_rust_future_free_void(uint64_t handle
#ifndef UNIFFI_FFIDEF_FFI_NIMBUS_RUST_FUTURE_COMPLETE_VOID
#define UNIFFI_FFIDEF_FFI_NIMBUS_RUST_FUTURE_COMPLETE_VOID
void ffi_nimbus_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_FUNC_VALIDATE_EVENT_QUERIES
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_FUNC_VALIDATE_EVENT_QUERIES
uint16_t uniffi_nimbus_checksum_func_validate_event_queries(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_NIMBUSCLIENT_ADVANCE_EVENT_TIME
Expand Down Expand Up @@ -1012,24 +975,12 @@ uint16_t uniffi_nimbus_checksum_method_nimbusstringhelper_string_format(void
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_NIMBUSTARGETINGHELPER_EVAL_JEXL
uint16_t uniffi_nimbus_checksum_method_nimbustargetinghelper_eval_jexl(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_RECORDEDCONTEXT_GET_EVENT_QUERIES
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_RECORDEDCONTEXT_GET_EVENT_QUERIES
uint16_t uniffi_nimbus_checksum_method_recordedcontext_get_event_queries(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_RECORDEDCONTEXT_RECORD
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_RECORDEDCONTEXT_RECORD
uint16_t uniffi_nimbus_checksum_method_recordedcontext_record(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_RECORDEDCONTEXT_SET_EVENT_QUERY_VALUES
#define UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_RECORDEDCONTEXT_SET_EVENT_QUERY_VALUES
uint16_t uniffi_nimbus_checksum_method_recordedcontext_set_event_query_values(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_NIMBUS_CHECKSUM_METHOD_RECORDEDCONTEXT_TO_JSON
Expand Down
Loading

0 comments on commit e891a64

Please sign in to comment.