Skip to content

Commit 11853e6

Browse files
authored
refactor: Change SentryDsn.getHash to internal method (#6605)
1 parent 0a40a02 commit 11853e6

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- Enable enablePreWarmedAppStartTracing by default (#6508). With this option enabled, the SDK collects [prewarmed app starts](https://docs.sentry.io/platforms/apple/tracing/instrumentation/automatic-instrumentation/#prewarmed-app-start-tracing).
2626
- Change `value` and `type` of `SentryException` to be nullable (#6563)
2727
- Change the default trace context status to "ok" instead of "undefined" (#6611)
28+
- Remove `getHash` from SentryDsn (#6605)
2829

2930
### Features
3031

Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
#import "SentryBenchmarking.h"
33
#import "SentryExposure.h"
44
#import <Sentry/PrivateSentrySDKOnly.h>
5+
#import <Sentry/SentryDsn+Private.h>
56
#import <Sentry/SentryOptions+Private.h>

Sentry.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,7 @@
750750
A8F17B342902870300990B25 /* SentryHttpStatusCodeRange.m in Sources */ = {isa = PBXBuildFile; fileRef = A8F17B332902870300990B25 /* SentryHttpStatusCodeRange.m */; };
751751
D4009EB22D771BC20007AF30 /* SentryFileIOTrackerSwiftHelpersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4009EB12D771BB90007AF30 /* SentryFileIOTrackerSwiftHelpersTests.swift */; };
752752
D41415A72DEEE532003B14D5 /* SentryRedactViewHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = D41415A62DEEE532003B14D5 /* SentryRedactViewHelper.swift */; };
753+
D4237B3D2EB39D9700FE027C /* SentryDsn+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = D4237B3C2EB39D9700FE027C /* SentryDsn+Private.h */; settings = {ATTRIBUTES = (Private, ); }; };
753754
D4291A6D2DD62ACE00772088 /* SentryDispatchFactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D4291A6C2DD62AC800772088 /* SentryDispatchFactoryTests.m */; };
754755
D42ADEEF2E9CF43200753166 /* SentrySessionReplayEnvironmentChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = D42ADEE92E9CF42800753166 /* SentrySessionReplayEnvironmentChecker.swift */; };
755756
D42ADF372E9CF95700753166 /* SentrySessionReplayEnvironmentCheckerProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = D42ADF362E9CF95500753166 /* SentrySessionReplayEnvironmentCheckerProvider.swift */; };
@@ -2112,6 +2113,7 @@
21122113
D41415A62DEEE532003B14D5 /* SentryRedactViewHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryRedactViewHelper.swift; sourceTree = "<group>"; };
21132114
D41909922D48FFF6002B83D0 /* SentryNSDictionarySanitize+Tests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SentryNSDictionarySanitize+Tests.h"; sourceTree = "<group>"; };
21142115
D41909942D490006002B83D0 /* SentryNSDictionarySanitize+Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "SentryNSDictionarySanitize+Tests.m"; sourceTree = "<group>"; };
2116+
D4237B3C2EB39D9700FE027C /* SentryDsn+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryDsn+Private.h"; path = "include/SentryDsn+Private.h"; sourceTree = "<group>"; };
21152117
D4291A6C2DD62AC800772088 /* SentryDispatchFactoryTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDispatchFactoryTests.m; sourceTree = "<group>"; };
21162118
D42ADEE92E9CF42800753166 /* SentrySessionReplayEnvironmentChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySessionReplayEnvironmentChecker.swift; sourceTree = "<group>"; };
21172119
D42ADF362E9CF95500753166 /* SentrySessionReplayEnvironmentCheckerProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySessionReplayEnvironmentCheckerProvider.swift; sourceTree = "<group>"; };
@@ -3114,6 +3116,7 @@
31143116
63AA75ED1EB8B3C400D153DE /* SentryClient.m */,
31153117
7B85DC1C24EFAFCD007D01D2 /* SentryClient+Private.h */,
31163118
92EC54CD2E1EB54B00A10AC2 /* SentryClient+Logs.h */,
3119+
D4237B3C2EB39D9700FE027C /* SentryDsn+Private.h */,
31173120
7B610D5E2512390E00B0B5D9 /* SentrySDK+Private.h */,
31183121
FA6555132E30181B009917BC /* SentrySDKInternal.h */,
31193122
FA6555152E30182B009917BC /* SentrySDKInternal.m */,
@@ -5289,6 +5292,7 @@
52895292
9286059529A5096600F96038 /* SentryGeo.h in Headers */,
52905293
7B98D7BC25FB607300C5A389 /* SentryWatchdogTerminationTracker.h in Headers */,
52915294
8E4E7C7D25DAB287006AB9E2 /* SentryTracer.h in Headers */,
5295+
D4237B3D2EB39D9700FE027C /* SentryDsn+Private.h in Headers */,
52925296
7BC8523724588115005A70F0 /* SentryDataCategory.h in Headers */,
52935297
FAAB96482EA6843E0030A2DB /* SentryANRTrackerInternalDelegate.h in Headers */,
52945298
FA8A36182DEAA1EB0058D883 /* SentryThread+Private.h in Headers */,

Sources/Sentry/Public/SentryDsn.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ NS_ASSUME_NONNULL_BEGIN
99
- (_Nullable instancetype)initWithString:(NSString *)dsnString
1010
didFailWithError:(NSError *_Nullable *_Nullable)error;
1111

12-
- (NSString *)getHash;
13-
1412
- (NSURL *)getEnvelopeEndpoint;
1513

1614
@end

Sources/Sentry/SentryFileManagerHelper.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#import "SentryFileManagerHelper.h"
22
#import "SentryDataCategoryMapper.h"
33
#import "SentryDateUtils.h"
4+
#import "SentryDsn+Private.h"
45
#import "SentryDsn.h"
56
#import "SentryEnvelopeItemHeader.h"
67
#import "SentryError.h"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#if __has_include(<Sentry/SentryDsn.h>)
2+
# import <Sentry/SentryDsn.h>
3+
#else
4+
# import "SentryDsn.h"
5+
#endif
6+
7+
NS_ASSUME_NONNULL_BEGIN
8+
9+
@interface SentryDsn (Private)
10+
11+
- (NSString *)getHash;
12+
13+
@end
14+
15+
NS_ASSUME_NONNULL_END

Sources/Sentry/include/SentryPrivate.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#import "SentryCrashUUIDConversion.h"
1212
#import "SentryDataCategoryMapper.h"
1313
#import "SentryDiscardReasonMapper.h"
14+
#import "SentryDsn+Private.h"
1415
#import "SentryEnvelopeAttachmentHeader.h"
1516
#import "SentryEnvelopeHeaderHelper.h"
1617
#import "SentryEventSwiftHelper.h"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#import "SentryDsn+Private.h"

TestSamples/SwiftUITestSample/SwiftUITestSample.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ targets:
2121
- target: Sentry/Sentry
2222
sources:
2323
- SwiftUITestSample
24+
settings:
25+
SWIFT_OBJC_BRIDGING_HEADER: TestSamples/SwiftUITestSample/SwiftUITestSample-Bridging-Header.h
2426
configFiles:
2527
Debug: SwiftUITestSample.xcconfig
2628
Release: SwiftUITestSample.xcconfig

sdk_api.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24869,30 +24869,6 @@
2486924869
"throwing": true,
2487024870
"init_kind": "Designated"
2487124871
},
24872-
{
24873-
"kind": "Function",
24874-
"name": "getHash",
24875-
"printedName": "getHash()",
24876-
"children": [
24877-
{
24878-
"kind": "TypeNominal",
24879-
"name": "String",
24880-
"printedName": "Swift.String",
24881-
"usr": "s:SS"
24882-
}
24883-
],
24884-
"declKind": "Func",
24885-
"usr": "c:objc(cs)SentryDsn(im)getHash",
24886-
"moduleName": "Sentry",
24887-
"isOpen": true,
24888-
"objc_name": "getHash",
24889-
"declAttributes": [
24890-
"DiscardableResult",
24891-
"ObjC",
24892-
"Dynamic"
24893-
],
24894-
"funcSelfKind": "NonMutating"
24895-
},
2489624872
{
2489724873
"kind": "Function",
2489824874
"name": "getEnvelopeEndpoint",

0 commit comments

Comments
 (0)