Skip to content

Commit 40d3589

Browse files
authored
Merge pull request #82 from mozilla/update-as-to-v95.0.1
Auto update with latest AS Release v95.0.1
2 parents c3a40bc + d244222 commit 40d3589

File tree

8 files changed

+52
-28
lines changed

8 files changed

+52
-28
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 = "0bef856d3bfbf6df0b80fa9cab20b300bf27480fa476c55473380e1da6e34e81"
5-
let version = "v95.0.0"
4+
let checksum = "7702db5fa212890e8fcd2274cbec922b968dd34789b2775bd1f0f3cb8a4c6d8d"
5+
let version = "v95.0.1"
66
let url = "https://github.com/mozilla/application-services/releases/download/\(version)/MozillaRustComponents.xcframework.zip"
77

88
// Focus xcframework
9-
let focusChecksum = "6bfd3351e0344f62d1d52b1c134bcd793476dfe43400f73582733933edf815f1"
9+
let focusChecksum = "3ab0ee4fd7e13635e8066e080d6cc93472347ccf2b6c7afeedf0488d9b0e5658"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// -*- mode: Swift -*-
22

3-
// AUTOGENERATED BY glean_parser v6.2.1. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v6.3.0. DO NOT EDIT. DO NOT COMMIT.
44

55
#if canImport(Foundation)
66
import Foundation
@@ -26,7 +26,7 @@ extension GleanMetrics {
2626
// Intentionally left private, no external user can instantiate a new global object.
2727
}
2828

29-
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2022, month: 11, day: 1, hour: 15, minute: 7, second: 10))
29+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2022, month: 11, day: 4, hour: 3, minute: 28, second: 29))
3030
}
3131

3232
enum NimbusEvents {

swift-source/all/Generated/errorFFI.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,31 @@ typedef struct RustCallStatus {
4646
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
4747
#endif // def UNIFFI_SHARED_H
4848

49-
void ffi_errorsupport_4a62_ApplicationErrorReporter_init_callback(
49+
void ffi_errorsupport_a6ca_ApplicationErrorReporter_init_callback(
5050
ForeignCallback _Nonnull callback_stub,
5151
RustCallStatus *_Nonnull out_status
5252
);
53-
void errorsupport_4a62_set_application_error_reporter(
53+
void errorsupport_a6ca_set_application_error_reporter(
5454
uint64_t error_reporter,
5555
RustCallStatus *_Nonnull out_status
5656
);
57-
RustBuffer ffi_errorsupport_4a62_rustbuffer_alloc(
57+
void errorsupport_a6ca_unset_application_error_reporter(
58+
59+
RustCallStatus *_Nonnull out_status
60+
);
61+
RustBuffer ffi_errorsupport_a6ca_rustbuffer_alloc(
5862
int32_t size,
5963
RustCallStatus *_Nonnull out_status
6064
);
61-
RustBuffer ffi_errorsupport_4a62_rustbuffer_from_bytes(
65+
RustBuffer ffi_errorsupport_a6ca_rustbuffer_from_bytes(
6266
ForeignBytes bytes,
6367
RustCallStatus *_Nonnull out_status
6468
);
65-
void ffi_errorsupport_4a62_rustbuffer_free(
69+
void ffi_errorsupport_a6ca_rustbuffer_free(
6670
RustBuffer buf,
6771
RustCallStatus *_Nonnull out_status
6872
);
69-
RustBuffer ffi_errorsupport_4a62_rustbuffer_reserve(
73+
RustBuffer ffi_errorsupport_a6ca_rustbuffer_reserve(
7074
RustBuffer buf,int32_t additional,
7175
RustCallStatus *_Nonnull out_status
7276
);

swift-source/all/Generated/errorsupport.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ private extension RustBuffer {
1919
}
2020

2121
static func from(_ ptr: UnsafeBufferPointer<UInt8>) -> RustBuffer {
22-
try! rustCall { ffi_errorsupport_4a62_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
22+
try! rustCall { ffi_errorsupport_a6ca_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
2323
}
2424

2525
// Frees the buffer in place.
2626
// The buffer must not be used after this is called.
2727
func deallocate() {
28-
try! rustCall { ffi_errorsupport_4a62_rustbuffer_free(self, $0) }
28+
try! rustCall { ffi_errorsupport_a6ca_rustbuffer_free(self, $0) }
2929
}
3030
}
3131

@@ -481,7 +481,7 @@ private enum FfiConverterCallbackInterfaceApplicationErrorReporter {
481481
private static var callbackInitialized = false
482482
private static func initCallback() {
483483
try! rustCall { (err: UnsafeMutablePointer<RustCallStatus>) in
484-
ffi_errorsupport_4a62_ApplicationErrorReporter_init_callback(foreignCallbackCallbackInterfaceApplicationErrorReporter, err)
484+
ffi_errorsupport_a6ca_ApplicationErrorReporter_init_callback(foreignCallbackCallbackInterfaceApplicationErrorReporter, err)
485485
}
486486
}
487487

@@ -533,12 +533,20 @@ public func setApplicationErrorReporter(errorReporter: ApplicationErrorReporter)
533533
try!
534534

535535
rustCall {
536-
errorsupport_4a62_set_application_error_reporter(
536+
errorsupport_a6ca_set_application_error_reporter(
537537
FfiConverterCallbackInterfaceApplicationErrorReporter.lower(errorReporter), $0
538538
)
539539
}
540540
}
541541

542+
public func unsetApplicationErrorReporter() {
543+
try!
544+
545+
rustCall {
546+
errorsupport_a6ca_unset_application_error_reporter($0)
547+
}
548+
}
549+
542550
/**
543551
* Top level initializers and tear down methods.
544552
*

swift-source/all/Tabs/Tabs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ open class TabsStorage {
3434

3535
open func sync(unlockInfo: SyncUnlockInfo) throws -> String {
3636
guard let tabsLocalId = unlockInfo.tabsLocalId else {
37-
throw TabsApiError.UnexpectedTabsError(message: "tabs local ID was not provided")
37+
throw TabsApiError.UnexpectedTabsError(reason: "tabs local ID was not provided")
3838
}
3939

4040
return try queue.sync {

swift-source/focus/Generated/Metrics/Metrics.swift

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

3-
// AUTOGENERATED BY glean_parser v6.2.1. DO NOT EDIT. DO NOT COMMIT.
3+
// AUTOGENERATED BY glean_parser v6.3.0. DO NOT EDIT. DO NOT COMMIT.
44

55
#if canImport(Foundation)
66
import Foundation
@@ -26,7 +26,7 @@ extension GleanMetrics {
2626
// Intentionally left private, no external user can instantiate a new global object.
2727
}
2828

29-
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2022, month: 11, day: 1, hour: 15, minute: 11, second: 4))
29+
public static let info = BuildInfo(buildDate: DateComponents(calendar: Calendar.current, timeZone: TimeZone(abbreviation: "UTC"), year: 2022, month: 11, day: 4, hour: 3, minute: 32, second: 42))
3030
}
3131

3232
enum NimbusEvents {

swift-source/focus/Generated/errorFFI.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,31 @@ typedef struct RustCallStatus {
4646
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
4747
#endif // def UNIFFI_SHARED_H
4848

49-
void ffi_errorsupport_4a62_ApplicationErrorReporter_init_callback(
49+
void ffi_errorsupport_a6ca_ApplicationErrorReporter_init_callback(
5050
ForeignCallback _Nonnull callback_stub,
5151
RustCallStatus *_Nonnull out_status
5252
);
53-
void errorsupport_4a62_set_application_error_reporter(
53+
void errorsupport_a6ca_set_application_error_reporter(
5454
uint64_t error_reporter,
5555
RustCallStatus *_Nonnull out_status
5656
);
57-
RustBuffer ffi_errorsupport_4a62_rustbuffer_alloc(
57+
void errorsupport_a6ca_unset_application_error_reporter(
58+
59+
RustCallStatus *_Nonnull out_status
60+
);
61+
RustBuffer ffi_errorsupport_a6ca_rustbuffer_alloc(
5862
int32_t size,
5963
RustCallStatus *_Nonnull out_status
6064
);
61-
RustBuffer ffi_errorsupport_4a62_rustbuffer_from_bytes(
65+
RustBuffer ffi_errorsupport_a6ca_rustbuffer_from_bytes(
6266
ForeignBytes bytes,
6367
RustCallStatus *_Nonnull out_status
6468
);
65-
void ffi_errorsupport_4a62_rustbuffer_free(
69+
void ffi_errorsupport_a6ca_rustbuffer_free(
6670
RustBuffer buf,
6771
RustCallStatus *_Nonnull out_status
6872
);
69-
RustBuffer ffi_errorsupport_4a62_rustbuffer_reserve(
73+
RustBuffer ffi_errorsupport_a6ca_rustbuffer_reserve(
7074
RustBuffer buf,int32_t additional,
7175
RustCallStatus *_Nonnull out_status
7276
);

swift-source/focus/Generated/errorsupport.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ private extension RustBuffer {
1919
}
2020

2121
static func from(_ ptr: UnsafeBufferPointer<UInt8>) -> RustBuffer {
22-
try! rustCall { ffi_errorsupport_4a62_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
22+
try! rustCall { ffi_errorsupport_a6ca_rustbuffer_from_bytes(ForeignBytes(bufferPointer: ptr), $0) }
2323
}
2424

2525
// Frees the buffer in place.
2626
// The buffer must not be used after this is called.
2727
func deallocate() {
28-
try! rustCall { ffi_errorsupport_4a62_rustbuffer_free(self, $0) }
28+
try! rustCall { ffi_errorsupport_a6ca_rustbuffer_free(self, $0) }
2929
}
3030
}
3131

@@ -481,7 +481,7 @@ private enum FfiConverterCallbackInterfaceApplicationErrorReporter {
481481
private static var callbackInitialized = false
482482
private static func initCallback() {
483483
try! rustCall { (err: UnsafeMutablePointer<RustCallStatus>) in
484-
ffi_errorsupport_4a62_ApplicationErrorReporter_init_callback(foreignCallbackCallbackInterfaceApplicationErrorReporter, err)
484+
ffi_errorsupport_a6ca_ApplicationErrorReporter_init_callback(foreignCallbackCallbackInterfaceApplicationErrorReporter, err)
485485
}
486486
}
487487

@@ -533,12 +533,20 @@ public func setApplicationErrorReporter(errorReporter: ApplicationErrorReporter)
533533
try!
534534

535535
rustCall {
536-
errorsupport_4a62_set_application_error_reporter(
536+
errorsupport_a6ca_set_application_error_reporter(
537537
FfiConverterCallbackInterfaceApplicationErrorReporter.lower(errorReporter), $0
538538
)
539539
}
540540
}
541541

542+
public func unsetApplicationErrorReporter() {
543+
try!
544+
545+
rustCall {
546+
errorsupport_a6ca_unset_application_error_reporter($0)
547+
}
548+
}
549+
542550
/**
543551
* Top level initializers and tear down methods.
544552
*

0 commit comments

Comments
 (0)