Skip to content

Commit 0c065ed

Browse files
committed
ref: Make serializable conformance internal
1 parent 827b50c commit 0c065ed

File tree

10 files changed

+11
-27
lines changed

10 files changed

+11
-27
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,6 @@
11371137
FAE579CC2E7DE14900B710F9 /* SentryFrameRemover.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAE579C62E7DE14400B710F9 /* SentryFrameRemover.swift */; };
11381138
FAE57BF72E83049E00B710F9 /* SentryDisplayLinkWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAE57BF12E83049900B710F9 /* SentryDisplayLinkWrapper.swift */; };
11391139
FAE57C082E83092E00B710F9 /* SentryDispatchFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAE57C072E83092A00B710F9 /* SentryDispatchFactory.swift */; };
1140-
FAE80C242E4695B40010A595 /* SentryEvent+Serialize.h in Headers */ = {isa = PBXBuildFile; fileRef = FAE80C232E4695AE0010A595 /* SentryEvent+Serialize.h */; };
11411140
FAEC273D2DF3933A00878871 /* NSData+Unzip.m in Sources */ = {isa = PBXBuildFile; fileRef = FAEC273C2DF3933200878871 /* NSData+Unzip.m */; };
11421141
FAEEBFE22E736D4B00E79CA9 /* SentryViewHierarchyProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAEEBFDC2E736D4100E79CA9 /* SentryViewHierarchyProvider.swift */; };
11431142
FAEEBFEA2E74517B00E79CA9 /* SentryFileManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAEEBFE92E74517800E79CA9 /* SentryFileManager.swift */; };
@@ -2518,7 +2517,6 @@
25182517
FAE579C62E7DE14400B710F9 /* SentryFrameRemover.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryFrameRemover.swift; sourceTree = "<group>"; };
25192518
FAE57BF12E83049900B710F9 /* SentryDisplayLinkWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDisplayLinkWrapper.swift; sourceTree = "<group>"; };
25202519
FAE57C072E83092A00B710F9 /* SentryDispatchFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDispatchFactory.swift; sourceTree = "<group>"; };
2521-
FAE80C232E4695AE0010A595 /* SentryEvent+Serialize.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryEvent+Serialize.h"; path = "include/SentryEvent+Serialize.h"; sourceTree = "<group>"; };
25222520
FAEC273C2DF3933200878871 /* NSData+Unzip.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSData+Unzip.m"; sourceTree = "<group>"; };
25232521
FAEC273E2DF393E000878871 /* NSData+Unzip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSData+Unzip.h"; sourceTree = "<group>"; };
25242522
FAEEBFDC2E736D4100E79CA9 /* SentryViewHierarchyProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryViewHierarchyProvider.swift; sourceTree = "<group>"; };
@@ -2761,7 +2759,6 @@
27612759
639FCF961EBC7B9700778193 /* SentryEvent.h */,
27622760
639FCF971EBC7B9700778193 /* SentryEvent.m */,
27632761
D880E3B02860A5A0008A90DB /* SentryEvent+Private.h */,
2764-
FAE80C232E4695AE0010A595 /* SentryEvent+Serialize.h */,
27652762
639FCF9E1EBC804600778193 /* SentryException.h */,
27662763
639FCF9F1EBC804600778193 /* SentryException.m */,
27672764
6334313F20AD9AE40077E581 /* SentryMechanism.h */,
@@ -5212,7 +5209,6 @@
52125209
7B96572026830C9100C66E25 /* SentryScopeSyncC.h in Headers */,
52135210
63FE70EB20DA4C1000CDBAE8 /* SentryCrashMonitor_MachException.h in Headers */,
52145211
D456B4362D706BF2007068CB /* SentryTraceOrigin.h in Headers */,
5215-
FAE80C242E4695B40010A595 /* SentryEvent+Serialize.h in Headers */,
52165212
7BD86ECF264A7C77005439DB /* SentryAppStartMeasurement.h in Headers */,
52175213
0354A22B2A134D9C003C3A04 /* SentryProfilerState.h in Headers */,
52185214
7DC8310A2398283C0043DD9A /* SentryCrashIntegration.h in Headers */,

Sources/Sentry/Public/SentryEvent.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#else
77
# import <SentryDefines.h>
88
#endif
9-
#if !SDK_V9
10-
# import SENTRY_HEADER(SentrySerializable)
11-
#endif // !SDK_V9
129

1310
NS_ASSUME_NONNULL_BEGIN
1411

@@ -25,9 +22,6 @@ NS_ASSUME_NONNULL_BEGIN
2522

2623
NS_SWIFT_NAME(Event)
2724
@interface SentryEvent : NSObject
28-
#if !SDK_V9
29-
<SentrySerializable>
30-
#endif // !SDK_V9
3125

3226
/**
3327
* This will be set by the initializer.

Sources/Sentry/SentryFileManagerHelper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#import "SentryDsn.h"
55
#import "SentryEnvelopeItemHeader.h"
66
#import "SentryError.h"
7-
#import "SentryEvent+Serialize.h"
7+
#import "SentryEvent+Private.h"
88
#import "SentryEvent.h"
99
#import "SentryInternalDefines.h"
1010
#import "SentryLogC.h"

Sources/Sentry/SentryTransaction.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import "SentryTransaction.h"
2-
#import "SentryEvent+Serialize.h"
2+
#import "SentryEvent+Private.h"
33
#import "SentryInternalDefines.h"
44
#import "SentryNSDictionarySanitize.h"
55
#import "SentryProfilingConditionals.h"

Sources/Sentry/include/SentryEvent+Private.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#import "SentryProfilingConditionals.h"
44
#import <Foundation/Foundation.h>
55

6+
NS_ASSUME_NONNULL_BEGIN
7+
68
@interface SentryEvent ()
79

810
/**
@@ -26,6 +28,8 @@
2628
*/
2729
@property (nonatomic, strong) NSArray *serializedBreadcrumbs;
2830

31+
- (NSDictionary<NSString *, id> *)serialize;
32+
2933
#if SENTRY_TARGET_PROFILING_SUPPORTED
3034
@property (nonatomic) uint64_t startSystemTime;
3135
@property (nonatomic) uint64_t endSystemTime;
@@ -36,3 +40,5 @@
3640
#endif // SENTRY_HAS_METRIC_KIT
3741

3842
@end
43+
44+
NS_ASSUME_NONNULL_END

Sources/Sentry/include/SentryEvent+Serialize.h

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

Sources/Sentry/include/SentryModels+Serializable.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ NS_ASSUME_NONNULL_BEGIN
2828

2929
@end
3030

31-
@interface SentryEvent () <SentryInternalSerializable>
32-
33-
@end
34-
3531
@interface SentryStacktrace () <SentryInternalSerializable>
3632

3733
@end

Sources/Sentry/include/SentryPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#import "SentryDelayedFramesTracker.h"
4242
#import "SentryDependencyContainerSwiftHelper.h"
4343
#import "SentryDeviceContextKeys.h"
44-
#import "SentryEvent+Serialize.h"
44+
#import "SentryEvent+Private.h"
4545
#import "SentryFileIOTrackerHelper.h"
4646
#import "SentryFileManagerHelper.h"
4747
#import "SentryLevelHelper.h"

Sources/Swift/Integrations/SessionReplay/SentryReplayEvent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import Foundation
3232
self.type = "replay_video"
3333
}
3434

35-
required convenience init() {
35+
required convenience override init() {
3636
fatalError("init() has not been implemented")
3737
}
3838

scripts/pod-lib-lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PLATFORM="${1:-ios}"
55
POD_SPEC=${2:-Sentry}
66
LIBRARY_TYPE="${3:-dynamic}"
77
INCLUDE_POD_SPECS=""
8-
EXTRA_ARGS=""
8+
EXTRA_ARGS="--allow-warnings"
99

1010
case $POD_SPEC in
1111

0 commit comments

Comments
 (0)