Skip to content

Commit e7a30b0

Browse files
authored
ref: Make SentryProfilingConditionals private (#6868)
1 parent df7a9be commit e7a30b0

File tree

9 files changed

+11
-57
lines changed

9 files changed

+11
-57
lines changed

Samples/iOS-SwiftUI/iOS-SwiftUI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ targets:
3131
- ../../Sources/Sentry/Public/SentrySerializable.h
3232
- ../../Sources/Sentry/include/SentryTracer.h
3333
- ../../Sources/Sentry/include/SentryPerformanceTracker.h
34-
- ../../Sources/Sentry/Public/SentryProfilingConditionals.h
34+
- ../../Sources/Sentry/include/HybridPublic/SentryProfilingConditionals.h
3535
dependencies:
3636
- target: Sentry/Sentry
3737
- target: Sentry/SentrySwiftUI

Sentry.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0354A22B2A134D9C003C3A04 /* SentryProfilerState.h in Headers */ = {isa = PBXBuildFile; fileRef = 0354A22A2A134D9C003C3A04 /* SentryProfilerState.h */; };
1111
03BCC38A27E1BF49003232C7 /* SentryTime.h in Headers */ = {isa = PBXBuildFile; fileRef = 03BCC38927E1BF49003232C7 /* SentryTime.h */; };
1212
03BCC38C27E1C01A003232C7 /* SentryTime.mm in Sources */ = {isa = PBXBuildFile; fileRef = 03BCC38B27E1C01A003232C7 /* SentryTime.mm */; };
13-
03BCC38E27E2A377003232C7 /* SentryProfilingConditionals.h in Headers */ = {isa = PBXBuildFile; fileRef = 03BCC38D27E2A377003232C7 /* SentryProfilingConditionals.h */; settings = {ATTRIBUTES = (Public, ); }; };
13+
03BCC38E27E2A377003232C7 /* SentryProfilingConditionals.h in Headers */ = {isa = PBXBuildFile; fileRef = 03BCC38D27E2A377003232C7 /* SentryProfilingConditionals.h */; settings = {ATTRIBUTES = (Private, ); }; };
1414
03F84D1E27DD414C008FE43F /* SentryBacktrace.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 03F84D1227DD414C008FE43F /* SentryBacktrace.hpp */; };
1515
03F84D2027DD414C008FE43F /* SentryStackBounds.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 03F84D1427DD414C008FE43F /* SentryStackBounds.hpp */; };
1616
03F84D2127DD414C008FE43F /* SentrySamplingProfiler.hpp in Headers */ = {isa = PBXBuildFile; fileRef = 03F84D1527DD414C008FE43F /* SentrySamplingProfiler.hpp */; };
@@ -1287,7 +1287,7 @@
12871287
035E73CD27D5790A005EEB11 /* SentryThreadMetadataCacheTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = SentryThreadMetadataCacheTests.mm; sourceTree = "<group>"; };
12881288
03BCC38927E1BF49003232C7 /* SentryTime.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryTime.h; path = Sources/Sentry/include/SentryTime.h; sourceTree = SOURCE_ROOT; };
12891289
03BCC38B27E1C01A003232C7 /* SentryTime.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = SentryTime.mm; path = Sources/Sentry/SentryTime.mm; sourceTree = SOURCE_ROOT; };
1290-
03BCC38D27E2A377003232C7 /* SentryProfilingConditionals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryProfilingConditionals.h; path = ../Public/SentryProfilingConditionals.h; sourceTree = "<group>"; };
1290+
03BCC38D27E2A377003232C7 /* SentryProfilingConditionals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryProfilingConditionals.h; path = ../include/HybridPublic/SentryProfilingConditionals.h; sourceTree = "<group>"; };
12911291
03F84D1227DD414C008FE43F /* SentryBacktrace.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = SentryBacktrace.hpp; path = Sources/Sentry/include/SentryBacktrace.hpp; sourceTree = SOURCE_ROOT; };
12921292
03F84D1427DD414C008FE43F /* SentryStackBounds.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = SentryStackBounds.hpp; path = Sources/Sentry/include/SentryStackBounds.hpp; sourceTree = SOURCE_ROOT; };
12931293
03F84D1527DD414C008FE43F /* SentrySamplingProfiler.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = SentrySamplingProfiler.hpp; path = Sources/Sentry/include/SentrySamplingProfiler.hpp; sourceTree = SOURCE_ROOT; };

Sources/Resources/Sentry.modulemap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ framework module Sentry {
66

77
explicit module _Hybrid {
88
// Headers that are not part of the public API and should only be used by hybrid SDKs
9+
header "SentryProfilingConditionals.h"
910
header "PrivateSentrySDKOnly.h"
1011
header "PrivatesHeader.h"
1112
header "SentryAppStartMeasurement.h"

Sources/Sentry/Public/Sentry.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[];
2828
# import <Sentry/SentryMechanismContext.h>
2929
# import <Sentry/SentryMessage.h>
3030
# import <Sentry/SentryNSError.h>
31-
# import <Sentry/SentryProfilingConditionals.h>
3231
# import <Sentry/SentryReplayApi.h>
3332
# import <Sentry/SentryRequest.h>
3433
# import <Sentry/SentrySampleDecision.h>

Sources/Sentry/Public/SentryWithoutUIKit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[];
2828
# import <SentryWithoutUIKit/SentryMechanismContext.h>
2929
# import <SentryWithoutUIKit/SentryMessage.h>
3030
# import <SentryWithoutUIKit/SentryNSError.h>
31-
# import <SentryWithoutUIKit/SentryProfilingConditionals.h>
3231
# import <SentryWithoutUIKit/SentryReplayApi.h>
3332
# import <SentryWithoutUIKit/SentryRequest.h>
3433
# import <SentryWithoutUIKit/SentrySampleDecision.h>

Sources/Sentry/include/SentryPrivate.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// This import must be first. In SPM the file needs to be in the "include" directory since that is
2+
// the Public headers directory, but in Cocoapods it must be in HybridPublic because it is used in
3+
// that public interface too. In order to handle both these cases the file is in HybridPublic but
4+
// symlinked to include.
5+
#import "SentryProfilingConditionals.h"
6+
17
// Sentry internal headers that are needed for swift code; you cannot import headers that depend on
28
// public interfaces here
39
#import "NSLocale+Sentry.h"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
HybridPublic/SentryProfilingConditionals.h

sdk_api.json

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,6 @@
224224
"Exported"
225225
]
226226
},
227-
{
228-
"kind": "Import",
229-
"name": "Sentry.SentryProfilingConditionals",
230-
"printedName": "Sentry.SentryProfilingConditionals",
231-
"declKind": "Import",
232-
"moduleName": "Sentry",
233-
"declAttributes": [
234-
"Exported"
235-
]
236-
},
237227
{
238228
"kind": "Import",
239229
"name": "Sentry.SentryReplayApi",
@@ -57094,48 +57084,6 @@
5709457084
}
5709557085
]
5709657086
},
57097-
{
57098-
"kind": "Var",
57099-
"name": "SENTRY_TARGET_PROFILING_SUPPORTED",
57100-
"printedName": "SENTRY_TARGET_PROFILING_SUPPORTED",
57101-
"children": [
57102-
{
57103-
"kind": "TypeNominal",
57104-
"name": "Int32",
57105-
"printedName": "Swift.Int32",
57106-
"usr": "s:s5Int32V"
57107-
}
57108-
],
57109-
"declKind": "Var",
57110-
"usr": "c:@macro@SENTRY_TARGET_PROFILING_SUPPORTED",
57111-
"moduleName": "Sentry",
57112-
"declAttributes": [
57113-
"Nonisolated"
57114-
],
57115-
"accessors": [
57116-
{
57117-
"kind": "Accessor",
57118-
"name": "Get",
57119-
"printedName": "Get()",
57120-
"children": [
57121-
{
57122-
"kind": "TypeNominal",
57123-
"name": "Int32",
57124-
"printedName": "Swift.Int32",
57125-
"usr": "s:s5Int32V"
57126-
}
57127-
],
57128-
"declKind": "Accessor",
57129-
"usr": "s:SC33SENTRY_TARGET_PROFILING_SUPPORTEDs5Int32Vvg",
57130-
"mangledName": "$sSC33SENTRY_TARGET_PROFILING_SUPPORTEDs5Int32Vvg",
57131-
"moduleName": "Sentry",
57132-
"declAttributes": [
57133-
"Transparent"
57134-
],
57135-
"accessorKind": "get"
57136-
}
57137-
]
57138-
},
5713957087
{
5714057088
"kind": "Var",
5714157089
"name": "SENTRY_TARGET_REPLAY_SUPPORTED",

0 commit comments

Comments
 (0)