Skip to content

Commit

Permalink
Nightly auto-update (127.0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefox Sync Engineering authored and linabutler committed May 30, 2024
1 parent 5bfe57d commit 53ecc52
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 14 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 = "36e6140abe7094ca7e07cd2e3dbea8d15870333eaf96bfb6756a3d43ceda273b"
let version = "127.0.0"
let url = "https://archive.mozilla.org/pub/app-services/releases/127.0/MozillaRustComponents.xcframework.zip"
let checksum = "dfc9af0094f5c8159bb6df8cdfb6ebae38a364f7dba6b85d532e482167f3abb2"
let version = "127.0.1"
let url = "https://archive.mozilla.org/pub/app-services/releases/127.0.1/MozillaRustComponents.xcframework.zip"

// Focus xcframework
let focusChecksum = "5ccfcea7f88dcf374e1b19ae7f966d662eb7c9b582e5e2c68b86e4293f8bd86e"
let focusUrl = "https://archive.mozilla.org/pub/app-services/releases/127.0/FocusRustComponents.xcframework.zip"
let focusChecksum = "1281cc31892cdaa3ebb244898a0818de759be2d6e37ffcf5bd780dfe895af2a3"
let focusUrl = "https://archive.mozilla.org/pub/app-services/releases/127.0.1/FocusRustComponents.xcframework.zip"
let package = Package(
name: "MozillaRustComponentsSwift",
platforms: [.iOS(.v14)],
Expand Down
4 changes: 2 additions & 2 deletions swift-source/all/Generated/Metrics/Metrics.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -*- mode: Swift -*-

// AUTOGENERATED BY glean_parser v14.1.1. DO NOT EDIT. DO NOT COMMIT.
// AUTOGENERATED BY glean_parser v14.1.2. DO NOT EDIT. DO NOT COMMIT.

#if canImport(Foundation)
import Foundation
Expand All @@ -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: 5, day: 13, hour: 13, minute: 55, second: 29))
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 30, hour: 12, minute: 11, second: 22))
}

enum NimbusEvents {
Expand Down
92 changes: 88 additions & 4 deletions swift-source/all/Generated/suggest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public protocol SuggestStoreProtocol : AnyObject {

func ingest(constraints: SuggestIngestionConstraints) throws

func interrupt()
func interrupt(kind: InterruptKind?)

func query(query: SuggestionQuery) throws -> [Suggestion]

Expand Down Expand Up @@ -617,8 +617,9 @@ open func ingest(constraints: SuggestIngestionConstraints)throws {try rustCallW
}
}

open func interrupt() {try! rustCall() {
uniffi_suggest_fn_method_suggeststore_interrupt(self.uniffiClonePointer(),$0
open func interrupt(kind: InterruptKind? = nil) {try! rustCall() {
uniffi_suggest_fn_method_suggeststore_interrupt(self.uniffiClonePointer(),
FfiConverterOptionTypeInterruptKind.lower(kind),$0
)
}
}
Expand Down Expand Up @@ -1003,6 +1004,68 @@ public func FfiConverterTypeSuggestionQuery_lower(_ value: SuggestionQuery) -> R
return FfiConverterTypeSuggestionQuery.lower(value)
}

// Note that we don't yet support `indirect` for enums.
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.

public enum InterruptKind {

case read
case write
case readWrite
}


public struct FfiConverterTypeInterruptKind: FfiConverterRustBuffer {
typealias SwiftType = InterruptKind

public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> InterruptKind {
let variant: Int32 = try readInt(&buf)
switch variant {

case 1: return .read

case 2: return .write

case 3: return .readWrite

default: throw UniffiInternalError.unexpectedEnumCase
}
}

public static func write(_ value: InterruptKind, into buf: inout [UInt8]) {
switch value {


case .read:
writeInt(&buf, Int32(1))


case .write:
writeInt(&buf, Int32(2))


case .readWrite:
writeInt(&buf, Int32(3))

}
}
}


public func FfiConverterTypeInterruptKind_lift(_ buf: RustBuffer) throws -> InterruptKind {
return try FfiConverterTypeInterruptKind.lift(buf)
}

public func FfiConverterTypeInterruptKind_lower(_ value: InterruptKind) -> RustBuffer {
return FfiConverterTypeInterruptKind.lower(value)
}



extension InterruptKind: Equatable, Hashable {}




public enum SuggestApiError {

Expand Down Expand Up @@ -1435,6 +1498,27 @@ fileprivate struct FfiConverterOptionString: FfiConverterRustBuffer {
}
}

fileprivate struct FfiConverterOptionTypeInterruptKind: FfiConverterRustBuffer {
typealias SwiftType = InterruptKind?

public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
guard let value = value else {
writeInt(&buf, Int8(0))
return
}
writeInt(&buf, Int8(1))
FfiConverterTypeInterruptKind.write(value, into: &buf)
}

public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
switch try readInt(&buf) as Int8 {
case 0: return nil
case 1: return try FfiConverterTypeInterruptKind.read(from: &buf)
default: throw UniffiInternalError.unexpectedOptionalTag
}
}
}

fileprivate struct FfiConverterOptionTypeSuggestProviderConfig: FfiConverterRustBuffer {
typealias SwiftType = SuggestProviderConfig?

Expand Down Expand Up @@ -1633,7 +1717,7 @@ private var initializationResult: InitializationResult {
if (uniffi_suggest_checksum_method_suggeststore_ingest() != 4478) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_suggest_checksum_method_suggeststore_interrupt() != 11751) {
if (uniffi_suggest_checksum_method_suggeststore_interrupt() != 17785) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_suggest_checksum_method_suggeststore_query() != 12875) {
Expand Down
2 changes: 1 addition & 1 deletion swift-source/all/Generated/suggestFFI.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void uniffi_suggest_fn_method_suggeststore_ingest(void*_Nonnull ptr, RustBuffer
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTORE_INTERRUPT
#define UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTORE_INTERRUPT
void uniffi_suggest_fn_method_suggeststore_interrupt(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_suggest_fn_method_suggeststore_interrupt(void*_Nonnull ptr, RustBuffer kind, RustCallStatus *_Nonnull out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_SUGGEST_FN_METHOD_SUGGESTSTORE_QUERY
Expand Down
4 changes: 2 additions & 2 deletions swift-source/focus/Generated/Metrics/Metrics.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -*- mode: Swift -*-

// AUTOGENERATED BY glean_parser v14.1.1. DO NOT EDIT. DO NOT COMMIT.
// AUTOGENERATED BY glean_parser v14.1.2. DO NOT EDIT. DO NOT COMMIT.

#if canImport(Foundation)
import Foundation
Expand All @@ -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: 5, day: 13, hour: 13, minute: 55, second: 32))
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2024, month: 5, day: 30, hour: 12, minute: 11, second: 24))
}

enum NimbusEvents {
Expand Down

0 comments on commit 53ecc52

Please sign in to comment.