Skip to content

Commit fc6362d

Browse files
committed
feat(V9): Remove SentryRedactviewHelper from API
1 parent 7416ffc commit fc6362d

File tree

4 files changed

+15
-140
lines changed

4 files changed

+15
-140
lines changed

CHANGELOG-v9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Removes public SentrySerializable conformance from many public models (#5636)
1313
Removes Decodable conformances from the public API of model classes (#5691)
1414
Removes enableTracing property from SentryOptions (#5694)
1515
Removes `integrations` property from `SentryOptions` (#5749)
16+
Removes `SentryRedactviewHelper` from API (#5860)
1617

1718
### Fixes
1819

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
@@ -50844,14 +50844,15 @@
5084450844
}
5084550845
],
5084650846
"declKind": "Func",
50847-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:",
50847+
"usr": "c:@CM@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:",
5084850848
"mangledName": "$s6Sentry0A16RedactViewHelperC07clipOutC0yySo6UIViewCFZ",
5084950849
"moduleName": "Sentry",
5085050850
"static": true,
5085150851
"declAttributes": [
5085250852
"Final",
5085350853
"ObjC"
5085450854
],
50855+
"isFromExtension": true,
5085550856
"funcSelfKind": "NonMutating"
5085650857
},
5085750858
{
@@ -50872,14 +50873,15 @@
5087250873
}
5087350874
],
5087450875
"declKind": "Func",
50875-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:",
50876+
"usr": "c:@CM@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:",
5087650877
"mangledName": "$s6Sentry0A16RedactViewHelperC11maskSwiftUIyySo6UIViewCFZ",
5087750878
"moduleName": "Sentry",
5087850879
"static": true,
5087950880
"declAttributes": [
5088050881
"Final",
5088150882
"ObjC"
5088250883
],
50884+
"isFromExtension": true,
5088350885
"funcSelfKind": "NonMutating"
5088450886
}
5088550887
],

sdk_api_V9.json

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -47644,140 +47644,6 @@
4764447644
}
4764547645
]
4764647646
},
47647-
{
47648-
"kind": "TypeDecl",
47649-
"name": "SentryRedactViewHelper",
47650-
"printedName": "SentryRedactViewHelper",
47651-
"children": [
47652-
{
47653-
"kind": "Function",
47654-
"name": "clipOutView",
47655-
"printedName": "clipOutView(_:)",
47656-
"children": [
47657-
{
47658-
"kind": "TypeNominal",
47659-
"name": "Void",
47660-
"printedName": "()"
47661-
},
47662-
{
47663-
"kind": "TypeNominal",
47664-
"name": "UIView",
47665-
"printedName": "UIKit.UIView",
47666-
"usr": "c:objc(cs)UIView"
47667-
}
47668-
],
47669-
"declKind": "Func",
47670-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)clipOutView:",
47671-
"mangledName": "$s6Sentry0A16RedactViewHelperC07clipOutC0yySo6UIViewCFZ",
47672-
"moduleName": "Sentry",
47673-
"static": true,
47674-
"declAttributes": [
47675-
"Final",
47676-
"ObjC"
47677-
],
47678-
"funcSelfKind": "NonMutating"
47679-
},
47680-
{
47681-
"kind": "Function",
47682-
"name": "maskSwiftUI",
47683-
"printedName": "maskSwiftUI(_:)",
47684-
"children": [
47685-
{
47686-
"kind": "TypeNominal",
47687-
"name": "Void",
47688-
"printedName": "()"
47689-
},
47690-
{
47691-
"kind": "TypeNominal",
47692-
"name": "UIView",
47693-
"printedName": "UIKit.UIView",
47694-
"usr": "c:objc(cs)UIView"
47695-
}
47696-
],
47697-
"declKind": "Func",
47698-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper(cm)maskSwiftUI:",
47699-
"mangledName": "$s6Sentry0A16RedactViewHelperC11maskSwiftUIyySo6UIViewCFZ",
47700-
"moduleName": "Sentry",
47701-
"static": true,
47702-
"declAttributes": [
47703-
"Final",
47704-
"ObjC"
47705-
],
47706-
"funcSelfKind": "NonMutating"
47707-
}
47708-
],
47709-
"declKind": "Class",
47710-
"usr": "c:@M@Sentry@objc(cs)SentryRedactViewHelper",
47711-
"mangledName": "$s6Sentry0A16RedactViewHelperC",
47712-
"moduleName": "Sentry",
47713-
"declAttributes": [
47714-
"ObjCMembers",
47715-
"ObjC"
47716-
],
47717-
"superclassUsr": "c:objc(cs)NSObject",
47718-
"hasMissingDesignatedInitializers": true,
47719-
"inheritsConvenienceInitializers": true,
47720-
"superclassNames": [
47721-
"ObjectiveC.NSObject"
47722-
],
47723-
"conformances": [
47724-
{
47725-
"kind": "Conformance",
47726-
"name": "Copyable",
47727-
"printedName": "Copyable",
47728-
"usr": "s:s8CopyableP",
47729-
"mangledName": "$ss8CopyableP"
47730-
},
47731-
{
47732-
"kind": "Conformance",
47733-
"name": "Escapable",
47734-
"printedName": "Escapable",
47735-
"usr": "s:s9EscapableP",
47736-
"mangledName": "$ss9EscapableP"
47737-
},
47738-
{
47739-
"kind": "Conformance",
47740-
"name": "NSObjectProtocol",
47741-
"printedName": "NSObjectProtocol",
47742-
"usr": "c:objc(pl)NSObject"
47743-
},
47744-
{
47745-
"kind": "Conformance",
47746-
"name": "Equatable",
47747-
"printedName": "Equatable",
47748-
"usr": "s:SQ",
47749-
"mangledName": "$sSQ"
47750-
},
47751-
{
47752-
"kind": "Conformance",
47753-
"name": "Hashable",
47754-
"printedName": "Hashable",
47755-
"usr": "s:SH",
47756-
"mangledName": "$sSH"
47757-
},
47758-
{
47759-
"kind": "Conformance",
47760-
"name": "CVarArg",
47761-
"printedName": "CVarArg",
47762-
"usr": "s:s7CVarArgP",
47763-
"mangledName": "$ss7CVarArgP"
47764-
},
47765-
{
47766-
"kind": "Conformance",
47767-
"name": "CustomStringConvertible",
47768-
"printedName": "CustomStringConvertible",
47769-
"usr": "s:s23CustomStringConvertibleP",
47770-
"mangledName": "$ss23CustomStringConvertibleP"
47771-
},
47772-
{
47773-
"kind": "Conformance",
47774-
"name": "CustomDebugStringConvertible",
47775-
"printedName": "CustomDebugStringConvertible",
47776-
"usr": "s:s28CustomDebugStringConvertibleP",
47777-
"mangledName": "$ss28CustomDebugStringConvertibleP"
47778-
}
47779-
]
47780-
},
4778147647
{
4778247648
"kind": "TypeDecl",
4778347649
"name": "SentryTransactionNameSource",

0 commit comments

Comments
 (0)