Skip to content

Commit d90fb20

Browse files
ref: Cleanup PrivateSDKOnly imports (#3726)
The SentryTraceContext doesn't need to SentrySwift import. It only needs a reference to SentryId.
1 parent 46bb3fe commit d90fb20

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

SentryTestUtils/SentryTestUtils-ObjC-BridgingHeader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#endif // SENTRY_TARGET_PROFILING_SUPPORTED
2222

2323
#import "PrivateSentrySDKOnly.h"
24+
#import "SentryAppStartMeasurement.h"
2425
#import "SentryAppState.h"
2526
#import "SentryClient+Private.h"
2627
#import "SentryClient+TestInit.h"

Sources/Sentry/PrivateSentrySDKOnly.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#import "PrivateSentrySDKOnly.h"
2+
#import "SentryAppStartMeasurement.h"
23
#import "SentryBreadcrumb+Private.h"
34
#import "SentryClient.h"
45
#import "SentryDebugImageProvider.h"

Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
#import "PrivatesHeader.h"
2-
#import "SentryAppStartMeasurement.h"
3-
#import "SentryEnvelope.h"
4-
#import "SentryEnvelopeItemType.h"
52
#import "SentryScreenFrames.h"
63

7-
@class SentryDebugMeta, SentryAppStartMeasurement, SentryScreenFrames, SentryOptions,
8-
SentryBreadcrumb, SentryUser;
4+
@class SentryDebugMeta;
5+
@class SentryScreenFrames;
6+
@class SentryAppStartMeasurement;
7+
@class SentryOptions;
8+
@class SentryBreadcrumb;
9+
@class SentryUser;
10+
@class SentryEnvelope;
11+
@class SentryId;
912

1013
NS_ASSUME_NONNULL_BEGIN
1114

0 commit comments

Comments
 (0)