Skip to content

Commit efb39d2

Browse files
committed
feat(V9): Remove SentryRedactviewHelper from API
1 parent 5db87fa commit efb39d2

File tree

5 files changed

+16
-141
lines changed

5 files changed

+16
-141
lines changed

CHANGELOG-v9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Removes enableTracing property from SentryOptions (#5694)
1515
Removes deprecated `setExtraValue` from SentrySpan (#5864)
1616
Removes `integrations` property from `SentryOptions` (#5749)
1717
Makes `SentryEventDecodable` internal (#5808)
18+
Removes `SentryRedactviewHelper` from API (#5860)
1819
The `span` property on `SentryScope` is now readonly (#5866)
1920

2021
### Fixes

Sources/SentrySwiftUI/SentryReplayView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#if canImport(SwiftUI) && canImport(UIKit) && os(iOS) || os(tvOS)
2-
import Sentry
2+
@_spi(Private) import Sentry
33
import SwiftUI
44
import UIKit
55

Sources/Swift/Core/Tools/ViewCapture/SentryRedactViewHelper.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,21 @@ import UIKit
77
import WebKit
88
#endif
99

10-
@objcMembers
11-
public class SentryRedactViewHelper: NSObject {
10+
#if SDK_V9
11+
@objcMembers @_spi(Private) public class SentryRedactViewHelper: NSObject {
12+
override private init() {}
13+
}
14+
#else
15+
@objcMembers public class SentryRedactViewHelper: NSObject {
16+
override private init() {}
17+
}
18+
#endif
19+
extension SentryRedactViewHelper {
1220
private static var associatedRedactObjectHandle: UInt8 = 0
1321
private static var associatedIgnoreObjectHandle: UInt8 = 0
1422
private static var associatedClipOutObjectHandle: UInt8 = 0
1523
private static var associatedSwiftUIRedactObjectHandle: UInt8 = 0
1624

17-
override private init() {}
18-
1925
@_spi(Private) public static func maskView(_ view: UIView) {
2026
objc_setAssociatedObject(view, &associatedRedactObjectHandle, true, .OBJC_ASSOCIATION_ASSIGN)
2127
}

sdk_api.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53374,14 +53374,15 @@
5337453374
}
5337553375
],
5337653376
"declKind": "Func",
53377-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:",
53377+
"usr": "c:@CM@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:",
5337853378
"mangledName": "$s6Sentry0A16RedactViewHelperC07clipOutC0yySo6UIViewCFZ",
5337953379
"moduleName": "Sentry",
5338053380
"static": true,
5338153381
"declAttributes": [
5338253382
"Final",
5338353383
"ObjC"
5338453384
],
53385+
"isFromExtension": true,
5338553386
"funcSelfKind": "NonMutating"
5338653387
},
5338753388
{
@@ -53402,14 +53403,15 @@
5340253403
}
5340353404
],
5340453405
"declKind": "Func",
53405-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:",
53406+
"usr": "c:@CM@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:",
5340653407
"mangledName": "$s6Sentry0A16RedactViewHelperC11maskSwiftUIyySo6UIViewCFZ",
5340753408
"moduleName": "Sentry",
5340853409
"static": true,
5340953410
"declAttributes": [
5341053411
"Final",
5341153412
"ObjC"
5341253413
],
53414+
"isFromExtension": true,
5341353415
"funcSelfKind": "NonMutating"
5341453416
}
5341553417
],

sdk_api_V9.json

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -49885,140 +49885,6 @@
4988549885
}
4988649886
]
4988749887
},
49888-
{
49889-
"kind": "TypeDecl",
49890-
"name": "SentryRedactViewHelper",
49891-
"printedName": "SentryRedactViewHelper",
49892-
"children": [
49893-
{
49894-
"kind": "Function",
49895-
"name": "clipOutView",
49896-
"printedName": "clipOutView(_:)",
49897-
"children": [
49898-
{
49899-
"kind": "TypeNominal",
49900-
"name": "Void",
49901-
"printedName": "()"
49902-
},
49903-
{
49904-
"kind": "TypeNominal",
49905-
"name": "UIView",
49906-
"printedName": "UIKit.UIView",
49907-
"usr": "c:objc(cs)UIView"
49908-
}
49909-
],
49910-
"declKind": "Func",
49911-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:",
49912-
"mangledName": "$s6Sentry0A16RedactViewHelperC07clipOutC0yySo6UIViewCFZ",
49913-
"moduleName": "Sentry",
49914-
"static": true,
49915-
"declAttributes": [
49916-
"Final",
49917-
"ObjC"
49918-
],
49919-
"funcSelfKind": "NonMutating"
49920-
},
49921-
{
49922-
"kind": "Function",
49923-
"name": "maskSwiftUI",
49924-
"printedName": "maskSwiftUI(_:)",
49925-
"children": [
49926-
{
49927-
"kind": "TypeNominal",
49928-
"name": "Void",
49929-
"printedName": "()"
49930-
},
49931-
{
49932-
"kind": "TypeNominal",
49933-
"name": "UIView",
49934-
"printedName": "UIKit.UIView",
49935-
"usr": "c:objc(cs)UIView"
49936-
}
49937-
],
49938-
"declKind": "Func",
49939-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:",
49940-
"mangledName": "$s6Sentry0A16RedactViewHelperC11maskSwiftUIyySo6UIViewCFZ",
49941-
"moduleName": "Sentry",
49942-
"static": true,
49943-
"declAttributes": [
49944-
"Final",
49945-
"ObjC"
49946-
],
49947-
"funcSelfKind": "NonMutating"
49948-
}
49949-
],
49950-
"declKind": "Class",
49951-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper",
49952-
"mangledName": "$s6Sentry0A16RedactViewHelperC",
49953-
"moduleName": "Sentry",
49954-
"declAttributes": [
49955-
"ObjCMembers",
49956-
"ObjC"
49957-
],
49958-
"superclassUsr": "c:objc(cs)NSObject",
49959-
"hasMissingDesignatedInitializers": true,
49960-
"inheritsConvenienceInitializers": true,
49961-
"superclassNames": [
49962-
"ObjectiveC.NSObject"
49963-
],
49964-
"conformances": [
49965-
{
49966-
"kind": "Conformance",
49967-
"name": "Copyable",
49968-
"printedName": "Copyable",
49969-
"usr": "s:s8CopyableP",
49970-
"mangledName": "$ss8CopyableP"
49971-
},
49972-
{
49973-
"kind": "Conformance",
49974-
"name": "Escapable",
49975-
"printedName": "Escapable",
49976-
"usr": "s:s9EscapableP",
49977-
"mangledName": "$ss9EscapableP"
49978-
},
49979-
{
49980-
"kind": "Conformance",
49981-
"name": "NSObjectProtocol",
49982-
"printedName": "NSObjectProtocol",
49983-
"usr": "c:objc(pl)NSObject"
49984-
},
49985-
{
49986-
"kind": "Conformance",
49987-
"name": "Equatable",
49988-
"printedName": "Equatable",
49989-
"usr": "s:SQ",
49990-
"mangledName": "$sSQ"
49991-
},
49992-
{
49993-
"kind": "Conformance",
49994-
"name": "Hashable",
49995-
"printedName": "Hashable",
49996-
"usr": "s:SH",
49997-
"mangledName": "$sSH"
49998-
},
49999-
{
50000-
"kind": "Conformance",
50001-
"name": "CVarArg",
50002-
"printedName": "CVarArg",
50003-
"usr": "s:s7CVarArgP",
50004-
"mangledName": "$ss7CVarArgP"
50005-
},
50006-
{
50007-
"kind": "Conformance",
50008-
"name": "CustomStringConvertible",
50009-
"printedName": "CustomStringConvertible",
50010-
"usr": "s:s23CustomStringConvertibleP",
50011-
"mangledName": "$ss23CustomStringConvertibleP"
50012-
},
50013-
{
50014-
"kind": "Conformance",
50015-
"name": "CustomDebugStringConvertible",
50016-
"printedName": "CustomDebugStringConvertible",
50017-
"usr": "s:s28CustomDebugStringConvertibleP",
50018-
"mangledName": "$ss28CustomDebugStringConvertibleP"
50019-
}
50020-
]
50021-
},
5002249888
{
5002349889
"kind": "TypeDecl",
5002449890
"name": "SentryTransactionNameSource",

0 commit comments

Comments
 (0)