Skip to content

Commit 55c28be

Browse files
committed
PR feedback
1 parent 5898b11 commit 55c28be

File tree

7 files changed

+21
-17
lines changed

7 files changed

+21
-17
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,8 @@
570570
7BD86ECD264A78A6005439DB /* SentryAppStartTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BD86ECC264A78A6005439DB /* SentryAppStartTrackerTests.swift */; };
571571
7BD86ECF264A7C77005439DB /* SentryAppStartMeasurement.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BD86ECE264A7C77005439DB /* SentryAppStartMeasurement.h */; settings = {ATTRIBUTES = (Private, ); }; };
572572
7BD86ED1264A7CF6005439DB /* SentryAppStartMeasurement.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BD86ED0264A7CF6005439DB /* SentryAppStartMeasurement.m */; };
573-
7BDB03B7251364F800BAE198 /* SentryDispatchQueueWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BDB03B6251364F800BAE198 /* SentryDispatchQueueWrapper.h */; };
574-
7BDB03BB2513652900BAE198 /* SentryDispatchQueueWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BDB03BA2513652900BAE198 /* SentryDispatchQueueWrapper.m */; };
573+
7BDB03B7251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BDB03B6251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h */; };
574+
7BDB03BB2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BDB03BA2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m */; };
575575
7BDDE3CC2966BD4700EB9177 /* SentryMXManagerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BDDE3CB2966BD4700EB9177 /* SentryMXManagerTests.swift */; };
576576
7BDEAA022632A4580001EA25 /* SentryOptions+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BDEAA002632A4580001EA25 /* SentryOptions+Private.h */; settings = {ATTRIBUTES = (Private, ); }; };
577577
7BE0DC29272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BE0DC28272A9E1C004FA8B7 /* SentryBreadcrumbTrackerTests.swift */; };
@@ -1762,8 +1762,8 @@
17621762
7BD86ECC264A78A6005439DB /* SentryAppStartTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryAppStartTrackerTests.swift; sourceTree = "<group>"; };
17631763
7BD86ECE264A7C77005439DB /* SentryAppStartMeasurement.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryAppStartMeasurement.h; path = include/HybridPublic/SentryAppStartMeasurement.h; sourceTree = "<group>"; };
17641764
7BD86ED0264A7CF6005439DB /* SentryAppStartMeasurement.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryAppStartMeasurement.m; sourceTree = "<group>"; };
1765-
7BDB03B6251364F800BAE198 /* SentryDispatchQueueWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryDispatchQueueWrapper.h; path = include/SentryDispatchQueueWrapper.h; sourceTree = "<group>"; };
1766-
7BDB03BA2513652900BAE198 /* SentryDispatchQueueWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDispatchQueueWrapper.m; sourceTree = "<group>"; };
1765+
7BDB03B6251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = _SentryDispatchQueueWrapperInternal.h; path = include/_SentryDispatchQueueWrapperInternal.h; sourceTree = "<group>"; };
1766+
7BDB03BA2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = _SentryDispatchQueueWrapperInternal.m; sourceTree = "<group>"; };
17671767
7BDB03BE25136A7D00BAE198 /* TestSentryDispatchQueueWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSentryDispatchQueueWrapper.swift; sourceTree = "<group>"; };
17681768
7BDDE3CB2966BD4700EB9177 /* SentryMXManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMXManagerTests.swift; sourceTree = "<group>"; };
17691769
7BDEAA002632A4580001EA25 /* SentryOptions+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryOptions+Private.h"; path = "include/SentryOptions+Private.h"; sourceTree = "<group>"; };
@@ -2518,8 +2518,8 @@
25182518
638DC99E1EBC6B6400A66E41 /* SentryRequestOperation.h */,
25192519
638DC99F1EBC6B6400A66E41 /* SentryRequestOperation.m */,
25202520
D4291A672DD61A3F00772088 /* SentryDispatchQueueProviderProtocol.h */,
2521-
7BDB03B6251364F800BAE198 /* SentryDispatchQueueWrapper.h */,
2522-
7BDB03BA2513652900BAE198 /* SentryDispatchQueueWrapper.m */,
2521+
7BDB03B6251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h */,
2522+
7BDB03BA2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m */,
25232523
D4FC68162DD632E7001B74FF /* SentryDispatchSourceProviderProtocol.h */,
25242524
84AC61D129F7541E009EEF61 /* SentryDispatchSourceWrapper.m */,
25252525
84AC61D029F7541E009EEF61 /* SentryDispatchSourceWrapper.h */,
@@ -4816,7 +4816,7 @@
48164816
7B2BB0032966F55900A1E102 /* SentryOptions+HybridSDKs.h in Headers */,
48174817
7BF9EF762722B34700B5BBEF /* SentrySubClassFinder.h in Headers */,
48184818
7BC852332458802C005A70F0 /* SentryDataCategoryMapper.h in Headers */,
4819-
7BDB03B7251364F800BAE198 /* SentryDispatchQueueWrapper.h in Headers */,
4819+
7BDB03B7251364F800BAE198 /* _SentryDispatchQueueWrapperInternal.h in Headers */,
48204820
7BF9EF842722D07B00B5BBEF /* SentryObjCRuntimeWrapper.h in Headers */,
48214821
621AE74B2C626C230012E730 /* SentryANRTrackerV2.h in Headers */,
48224822
639889B71EDECFA800EA7442 /* SentryBreadcrumbTracker.h in Headers */,
@@ -5280,7 +5280,7 @@
52805280
7BD4BD4527EB29F50071F4FF /* SentryClientReport.m in Sources */,
52815281
631E6D341EBC679C00712345 /* SentryQueueableRequestManager.m in Sources */,
52825282
7B8713B426415BAA006D6004 /* SentryAppStartTracker.m in Sources */,
5283-
7BDB03BB2513652900BAE198 /* SentryDispatchQueueWrapper.m in Sources */,
5283+
7BDB03BB2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m in Sources */,
52845284
D8739D142BEE5049007D2F66 /* SentryRRWebSpanEvent.swift in Sources */,
52855285
7B6C5EDE264E8DF00010D138 /* SentryFramesTracker.m in Sources */,
52865286
D84F833E2A1CC401005828E0 /* SentrySwiftAsyncIntegration.m in Sources */,

Sources/Sentry/SentryDispatchQueueWrapper.m renamed to Sources/Sentry/_SentryDispatchQueueWrapperInternal.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#import "SentryDispatchQueueWrapper.h"
1+
#import "_SentryDispatchQueueWrapperInternal.h"
22
#import "SentryThreadWrapper.h"
33

44
NS_ASSUME_NONNULL_BEGIN
55

6-
@implementation SentryDispatchQueueWrapperInternal
6+
@implementation _SentryDispatchQueueWrapperInternal
77

88
- (instancetype)init
99
{

Sources/Sentry/include/SentryPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// public interfaces here
33
#import "NSLocale+Sentry.h"
44
#import "SentryCrashExceptionApplicationHelper.h"
5-
#import "SentryDispatchQueueWrapper.h"
65
#import "SentryEventSwiftHelper.h"
76
#import "SentryNSDataUtils.h"
87
#import "SentryRandom.h"
98
#import "SentryTime.h"
109
#import "SentryUserAccess.h"
10+
#import "_SentryDispatchQueueWrapperInternal.h"
1111

1212
// Headers that also import SentryDefines should be at the end of this list
1313
// otherwise it wont compile

Sources/Sentry/include/SentryDispatchQueueWrapper.h renamed to Sources/Sentry/include/_SentryDispatchQueueWrapperInternal.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ NS_ASSUME_NONNULL_BEGIN
44

55
/**
66
* A wrapper around DispatchQueue functions for testability.
7+
* This should not be used directly, instead the Swift version in
8+
* SentryDispatchQueueWrapper should be used to ensure compatibility
9+
* with Swift code.
710
*/
8-
@interface SentryDispatchQueueWrapperInternal : NSObject
11+
@interface _SentryDispatchQueueWrapperInternal : NSObject
912

1013
@property (strong, nonatomic) dispatch_queue_t queue;
1114

Sources/Swift/Helper/SentryDispatchQueueWrapper.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
@_implementationOnly import _SentryPrivate
22

3+
// This is the Swift verion of `_SentryDispatchQueueWrapperInternal`
4+
// It exists to allow the implementation of `_SentryDispatchQueueWrapperInternal`
5+
// to be accessible to Swift without making that header file public
36
@objcMembers class SentryDispatchQueueWrapper: NSObject {
47

5-
let internalWrapper: SentryDispatchQueueWrapperInternal
8+
let internalWrapper: _SentryDispatchQueueWrapperInternal
69

710
public override init() {
8-
internalWrapper = SentryDispatchQueueWrapperInternal()
11+
internalWrapper = _SentryDispatchQueueWrapperInternal()
912
}
1013

1114
public init(name: UnsafePointer<CChar>, attributes: __OS_dispatch_queue_attr?) {
12-
internalWrapper = SentryDispatchQueueWrapperInternal(name: name, attributes: attributes)
15+
internalWrapper = _SentryDispatchQueueWrapperInternal(name: name, attributes: attributes)
1316
}
1417

1518
public var queue: DispatchQueue {

Tests/SentryTests/Integrations/SentryCrash/SentryCrashIntegration+TestInit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#import "SentryCrashIntegration.h"
2-
#import "SentryDispatchQueueWrapper.h"
32

43
NS_ASSUME_NONNULL_BEGIN
54

Tests/SentryTests/SentryTests-Bridging-Header.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
#import "SentryDiscardReasonMapper.h"
113113
#import "SentryDiscardedEvent.h"
114114
#import "SentryDispatchFactory.h"
115-
#import "SentryDispatchQueueWrapper.h"
116115
#import "SentryDispatchSourceWrapper.h"
117116
#import "SentryDisplayLinkWrapper.h"
118117
#import "SentryDsn.h"

0 commit comments

Comments
 (0)