Skip to content

Commit 8681c49

Browse files
committed
Try prefixing Data with Foundation.
1 parent 6152099 commit 8681c49

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

Sources/Swift/Integrations/Performance/IO/Data+SentryTracing.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public extension Data {
1818
/// - url: The location on disk of the data to read.
1919
/// - options: The mask specifying the options to use when reading the data. For more information, see ``NSData.ReadingOptions``.
2020
/// - Note: See ``Data.init(contentsOf:options:)`` for more information.
21-
init(contentsOfWithSentryTracing url: URL, options: NSData.ReadingOptions = []) throws {
21+
init(contentsOfWithSentryTracing url: URL, options: Foundation.Data.ReadingOptions = []) throws {
2222
// Gets a tracker instance if the SDK is enabled, otherwise uses the original method.
23-
let method = { (url: URL, options: NSData.ReadingOptions) throws -> Data in
23+
let method = { (url: URL, options: Data.ReadingOptions) throws -> Data in
2424
try Data(contentsOf: url, options: options)
2525
}
2626
guard let tracker = SentryFileIOTracker.sharedInstance() else {
@@ -49,7 +49,7 @@ public extension Data {
4949
/// - url: The location to write the data into.
5050
/// - options: Options for writing the data. Default value is `[]`.
5151
/// - Note: See ``Data.write(to:options:)`` for more information.
52-
func writeWithSentryTracing(to url: URL, options: Data.WritingOptions = []) throws {
52+
func writeWithSentryTracing(to url: URL, options: Foundation.Data.WritingOptions = []) throws {
5353
// Gets a tracker instance if the SDK is enabled, otherwise uses the original method.
5454
let method = { (data: Data, url: URL, options: Data.WritingOptions) throws in
5555
try data.write(to: url, options: options)

sdk_api.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56887,11 +56887,18 @@
5688756887
"usr": "s:10Foundation3URLV"
5688856888
},
5688956889
{
56890-
"kind": "TypeNominal",
56890+
"kind": "TypeNameAlias",
5689156891
"name": "ReadingOptions",
56892-
"printedName": "Foundation.NSData.ReadingOptions",
56893-
"hasDefaultArg": true,
56894-
"usr": "c:@E@NSDataReadingOptions"
56892+
"printedName": "Foundation.Data.ReadingOptions",
56893+
"children": [
56894+
{
56895+
"kind": "TypeNominal",
56896+
"name": "ReadingOptions",
56897+
"printedName": "Foundation.NSData.ReadingOptions",
56898+
"usr": "c:@E@NSDataReadingOptions"
56899+
}
56900+
],
56901+
"hasDefaultArg": true
5689556902
}
5689656903
],
5689756904
"declKind": "Constructor",

sdk_api_V9.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53936,11 +53936,18 @@
5393653936
"usr": "s:10Foundation3URLV"
5393753937
},
5393853938
{
53939-
"kind": "TypeNominal",
53939+
"kind": "TypeNameAlias",
5394053940
"name": "ReadingOptions",
53941-
"printedName": "Foundation.NSData.ReadingOptions",
53942-
"hasDefaultArg": true,
53943-
"usr": "c:@E@NSDataReadingOptions"
53941+
"printedName": "Foundation.Data.ReadingOptions",
53942+
"children": [
53943+
{
53944+
"kind": "TypeNominal",
53945+
"name": "ReadingOptions",
53946+
"printedName": "Foundation.NSData.ReadingOptions",
53947+
"usr": "c:@E@NSDataReadingOptions"
53948+
}
53949+
],
53950+
"hasDefaultArg": true
5394453951
}
5394553952
],
5394653953
"declKind": "Constructor",

0 commit comments

Comments
 (0)