Skip to content

Commit 776445c

Browse files
committed
Try prefixing Data with Foundation.
1 parent 175be27 commit 776445c

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
@@ -54406,11 +54406,18 @@
5440654406
"usr": "s:10Foundation3URLV"
5440754407
},
5440854408
{
54409-
"kind": "TypeNominal",
54409+
"kind": "TypeNameAlias",
5441054410
"name": "ReadingOptions",
54411-
"printedName": "Foundation.NSData.ReadingOptions",
54412-
"hasDefaultArg": true,
54413-
"usr": "c:@E@NSDataReadingOptions"
54411+
"printedName": "Foundation.Data.ReadingOptions",
54412+
"children": [
54413+
{
54414+
"kind": "TypeNominal",
54415+
"name": "ReadingOptions",
54416+
"printedName": "Foundation.NSData.ReadingOptions",
54417+
"usr": "c:@E@NSDataReadingOptions"
54418+
}
54419+
],
54420+
"hasDefaultArg": true
5441454421
}
5441554422
],
5441654423
"declKind": "Constructor",

0 commit comments

Comments
 (0)