Skip to content

Commit 443be4f

Browse files
committed
Convert SentrySdkInfo to Swift
1 parent d38165b commit 443be4f

File tree

14 files changed

+151
-235
lines changed

14 files changed

+151
-235
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,6 @@
458458
7B8713B426415BAA006D6004 /* SentryAppStartTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B8713B326415BAA006D6004 /* SentryAppStartTracker.m */; };
459459
7B87C916295ECFD700510C52 /* SentryMetricKitEventTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B87C915295ECFD700510C52 /* SentryMetricKitEventTests.swift */; };
460460
7B883F49253D714C00879E62 /* SentryCrashUUIDConversion.c in Sources */ = {isa = PBXBuildFile; fileRef = 7B883F48253D714C00879E62 /* SentryCrashUUIDConversion.c */; };
461-
7B88F2FE24BC5A4C00ADF90A /* SentrySdkInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B88F2FD24BC5A4C00ADF90A /* SentrySdkInfo.h */; settings = {ATTRIBUTES = (Private, ); }; };
462-
7B88F30024BC5A7D00ADF90A /* SentrySdkInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B88F2FF24BC5A7D00ADF90A /* SentrySdkInfo.m */; };
463461
7B88F30224BC5C6D00ADF90A /* SentrySdkInfoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B88F30124BC5C6D00ADF90A /* SentrySdkInfoTests.swift */; };
464462
7B88F30424BC8E6500ADF90A /* SentrySerializationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B88F30324BC8E6500ADF90A /* SentrySerializationTests.swift */; };
465463
7B8CA85726DD4E6200DD872C /* SentryNetworkTrackerIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B8CA85626DD4E6200DD872C /* SentryNetworkTrackerIntegrationTests.swift */; };
@@ -1065,6 +1063,7 @@
10651063
FA67DD182DDBD4EA00896B02 /* UIImageHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA67DCED2DDBD4EA00896B02 /* UIImageHelper.swift */; };
10661064
FA67DD192DDBD4EA00896B02 /* SwizzleClassNameExclude.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA67DCD52DDBD4EA00896B02 /* SwizzleClassNameExclude.swift */; };
10671065
FA6FC0A32E0B5ACE00ED2669 /* SentrySdkPackage.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6FC0A22E0B5AC800ED2669 /* SentrySdkPackage.swift */; };
1066+
FA6FC0AA2E0B6B1100ED2669 /* SentrySdkInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA6FC0A92E0B6B0E00ED2669 /* SentrySdkInfo.swift */; };
10681067
FA7206DF2E0B37850072FDD4 /* SentryProfileCollector.h in Headers */ = {isa = PBXBuildFile; fileRef = FA7206DE2E0B37780072FDD4 /* SentryProfileCollector.h */; };
10691068
FA7206E12E0B37C80072FDD4 /* SentryProfileCollector.mm in Sources */ = {isa = PBXBuildFile; fileRef = FA7206E02E0B37C60072FDD4 /* SentryProfileCollector.mm */; };
10701069
FA8A36182DEAA1EB0058D883 /* SentryThread+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */; };
@@ -1636,8 +1635,6 @@
16361635
7B8713B326415BAA006D6004 /* SentryAppStartTracker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryAppStartTracker.m; sourceTree = "<group>"; };
16371636
7B87C915295ECFD700510C52 /* SentryMetricKitEventTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMetricKitEventTests.swift; sourceTree = "<group>"; };
16381637
7B883F48253D714C00879E62 /* SentryCrashUUIDConversion.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = SentryCrashUUIDConversion.c; sourceTree = "<group>"; };
1639-
7B88F2FD24BC5A4C00ADF90A /* SentrySdkInfo.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentrySdkInfo.h; path = include/SentrySdkInfo.h; sourceTree = "<group>"; };
1640-
7B88F2FF24BC5A7D00ADF90A /* SentrySdkInfo.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentrySdkInfo.m; sourceTree = "<group>"; };
16411638
7B88F30124BC5C6D00ADF90A /* SentrySdkInfoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySdkInfoTests.swift; sourceTree = "<group>"; };
16421639
7B88F30324BC8E6500ADF90A /* SentrySerializationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySerializationTests.swift; sourceTree = "<group>"; };
16431640
7B8CA85626DD4E6200DD872C /* SentryNetworkTrackerIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryNetworkTrackerIntegrationTests.swift; sourceTree = "<group>"; };
@@ -2317,6 +2314,7 @@
23172314
FA67DCEF2DDBD4EA00896B02 /* URLSessionTaskHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URLSessionTaskHelper.swift; sourceTree = "<group>"; };
23182315
FA67DCF22DDBD4EA00896B02 /* SwiftDescriptor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftDescriptor.swift; sourceTree = "<group>"; };
23192316
FA6FC0A22E0B5AC800ED2669 /* SentrySdkPackage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySdkPackage.swift; sourceTree = "<group>"; };
2317+
FA6FC0A92E0B6B0E00ED2669 /* SentrySdkInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySdkInfo.swift; sourceTree = "<group>"; };
23202318
FA7206DE2E0B37780072FDD4 /* SentryProfileCollector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryProfileCollector.h; sourceTree = "<group>"; };
23212319
FA7206E02E0B37C60072FDD4 /* SentryProfileCollector.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = SentryProfileCollector.mm; sourceTree = "<group>"; };
23222320
FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryThread+Private.h"; path = "include/SentryThread+Private.h"; sourceTree = "<group>"; };
@@ -2458,6 +2456,7 @@
24582456
621D9F2D2B9B030E003D94DE /* Helper */ = {
24592457
isa = PBXGroup;
24602458
children = (
2459+
FA6FC0A92E0B6B0E00ED2669 /* SentrySdkInfo.swift */,
24612460
FA6FC0A22E0B5AC800ED2669 /* SentrySdkPackage.swift */,
24622461
84B0E0062CD963F9007FB332 /* SentryIconography.swift */,
24632462
621F61F02BEA073A005E654F /* SentryEnabledFeaturesBuilder.swift */,
@@ -2572,8 +2571,6 @@
25722571
7B4E24FB251C97B400060D68 /* SentrySession.h */,
25732572
15E0A8F12411A45A00F044E3 /* SentrySession.m */,
25742573
7BE1E32624F7AE08009D3AD0 /* SentrySession+Private.h */,
2575-
7B88F2FD24BC5A4C00ADF90A /* SentrySdkInfo.h */,
2576-
7B88F2FF24BC5A7D00ADF90A /* SentrySdkInfo.m */,
25772574
7BFC169A2524995700FF6266 /* SentryMessage.h */,
25782575
7BFC16A025249A9D00FF6266 /* SentryMessage.m */,
25792576
7B4E375425822C4500059C93 /* SentryAttachment.h */,
@@ -4646,7 +4643,6 @@
46464643
63FE717720DA4C1100CDBAE8 /* SentryCrashReportWriter.h in Headers */,
46474644
84DEE86B2B686BD400A7BC17 /* SentrySamplerDecision.h in Headers */,
46484645
7B4E23BE251A2BD500060D68 /* SentryCrashIntegrationSessionHandler.h in Headers */,
4649-
7B88F2FE24BC5A4C00ADF90A /* SentrySdkInfo.h in Headers */,
46504646
D4291A692DD61A3F00772088 /* SentryDispatchQueueProviderProtocol.h in Headers */,
46514647
7BCFBD672681C95000BC27D8 /* SentryScopeObserver.h in Headers */,
46524648
D81A346C291AECC7005A27A9 /* PrivateSentrySDKOnly.h in Headers */,
@@ -5281,6 +5277,7 @@
52815277
7B6438AB26A70F24000D0F65 /* UIViewController+Sentry.m in Sources */,
52825278
84302A812B5767A50027A629 /* SentryLaunchProfiling.m in Sources */,
52835279
63AA76A31EB9CBAA00D153DE /* SentryDsn.m in Sources */,
5280+
FA6FC0AA2E0B6B1100ED2669 /* SentrySdkInfo.swift in Sources */,
52845281
84DBC62C2CE82F12000C4904 /* SentryFeedback.swift in Sources */,
52855282
63B818FA1EC34639002FDF4C /* SentryDebugMeta.m in Sources */,
52865283
7B98D7D325FB65AE00C5A389 /* SentryWatchdogTerminationTracker.m in Sources */,
@@ -5325,7 +5322,6 @@
53255322
7BA0C0482805600A003E0326 /* SentryTransportAdapter.m in Sources */,
53265323
63FE712920DA4C1000CDBAE8 /* SentryCrashCPU_arm.c in Sources */,
53275324
03F84D3427DD4191008FE43F /* SentryThreadMetadataCache.cpp in Sources */,
5328-
7B88F30024BC5A7D00ADF90A /* SentrySdkInfo.m in Sources */,
53295325
62862B1E2B1DDC35009B16E3 /* SentryDelayedFrame.m in Sources */,
53305326
84AC61D729F75A98009EEF61 /* SentryDispatchFactory.m in Sources */,
53315327
15360CD62432832400112302 /* SentryAutoSessionTrackingIntegration.m in Sources */,

Sources/Resources/Sentry.modulemap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ framework module Sentry {
2626
header "SentrySessionReplayIntegration.h"
2727
header "SentrySessionReplayIntegration-Hybrid.h"
2828

29-
header "SentrySdkInfo.h"
3029
header "SentryInternalSerializable.h"
3130

3231
export *

Sources/Sentry/SentryClient.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#import "SentryRandom.h"
3434
#import "SentrySDK+Private.h"
3535
#import "SentryScope+Private.h"
36-
#import "SentrySdkInfo.h"
3736
#import "SentrySerialization.h"
3837
#import "SentrySession.h"
3938
#import "SentryStacktraceBuilder.h"

Sources/Sentry/SentryEnvelope.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import "SentryLog.h"
1010
#import "SentryMessage.h"
1111
#import "SentryMsgPackSerializer.h"
12-
#import "SentrySdkInfo.h"
1312
#import "SentrySerialization.h"
1413
#import "SentrySession.h"
1514
#import "SentrySwift.h"

Sources/Sentry/SentrySdkInfo.m

Lines changed: 0 additions & 130 deletions
This file was deleted.

Sources/Sentry/SentrySerialization.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#import "SentryError.h"
88
#import "SentryLevelMapper.h"
99
#import "SentryLog.h"
10-
#import "SentrySdkInfo.h"
1110
#import "SentrySession.h"
1211
#import "SentrySwift.h"
1312
#import "SentryTraceContext.h"

Sources/Sentry/include/HybridPublic/SentryEnvelope.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,7 @@
44
# import "PrivatesHeader.h"
55
#endif
66

7-
#if COCOAPODS
87
@class SentrySdkInfo;
9-
#else
10-
11-
# if __has_include(<Sentry/SentrySdkInfo.h>)
12-
# import <Sentry/SentrySdkInfo.h>
13-
# else
14-
# import "SentrySdkInfo.h"
15-
# endif
16-
17-
#endif
18-
198
@class SentryAttachment;
209
@class SentryEnvelopeItemHeader;
2110
@class SentryEvent;

Sources/Sentry/include/SentryPrivate.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
#import "SentryCrashExceptionApplicationHelper.h"
55
#import "SentryDispatchQueueWrapper.h"
66
#import "SentryEventSwiftHelper.h"
7+
#import "SentryHub+Private.h"
78
#import "SentryNSDataUtils.h"
89
#import "SentryRandom.h"
10+
#import "SentrySDK+Private.h"
911
#import "SentryTime.h"
1012
#import "SentryUserAccess.h"
1113

@@ -23,7 +25,6 @@
2325
#import "SentryProfiler+Private.h"
2426
#import "SentryRandom.h"
2527
#import "SentryScreenshot.h"
26-
#import "SentrySdkInfo.h"
2728
#import "SentrySerialization.h"
2829
#import "SentrySession.h"
2930
#import "SentrySpanDataKey.h"

Sources/Sentry/include/SentrySdkInfo.h

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)