Skip to content

Commit f2f0e74

Browse files
committed
Fix
1 parent 3b450bc commit f2f0e74

File tree

124 files changed

+804
-1776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+804
-1776
lines changed

Samples/iOS-Swift/iOS-Swift/Profiling/ProfilingViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Sentry
1+
@_spi(Private) import Sentry
22
import SentrySampleShared
33
import UIKit
44

Samples/iOS-Swift/iOS-Swift/Tools/SentryExposure.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#import <Sentry/SentryScope.h>
33
#import <UIKit/UIKit.h>
44

5-
@class SentryOptionsInternal;
5+
@class SentryOptions;
66

77
NS_ASSUME_NONNULL_BEGIN
88

Samples/iOS-Swift/iOS-Swift/Tools/iOS-Swift-Bridging-Header.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
#import "SentryExposure.h"
44
#import <Sentry/PrivateSentrySDKOnly.h>
55
#import <Sentry/SentryDsn+Private.h>
6-
#import <Sentry/SentryOptionsInternal+Private.h>

Sentry.xcodeproj/project.pbxproj

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,17 +1041,13 @@
10411041
FA1841832E4B457F005DEDC7 /* SentryApplication.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA18417D2E4B457B005DEDC7 /* SentryApplication.swift */; };
10421042
FA21A2EF2E60E9CB00E7EADB /* EnvelopeComparison.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA21A2E92E60E9C700E7EADB /* EnvelopeComparison.swift */; };
10431043
FA21F0B42E4A2A80008B4E5A /* SentryAppState.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA4C32972DF7513F001D7B01 /* SentryAppState.swift */; };
1044+
FA24E02A2EBBF6F900EFD92E /* SentryOptionsObjC.h in Headers */ = {isa = PBXBuildFile; fileRef = FA24E0292EBBF6F500EFD92E /* SentryOptionsObjC.h */; };
10441045
FA27EBDC2EB639D400F2ECF7 /* SentryId.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EBDB2EB639D100F2ECF7 /* SentryId.h */; settings = {ATTRIBUTES = (Public, ); }; };
10451046
FA27EBDE2EB639D900F2ECF7 /* SentryId.m in Sources */ = {isa = PBXBuildFile; fileRef = FA27EBDD2EB639D700F2ECF7 /* SentryId.m */; };
10461047
FA27EBF52EB82FAD00F2ECF7 /* FileIOTrackerTestHelpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EBEF2EB82FA800F2ECF7 /* FileIOTrackerTestHelpers.swift */; };
1047-
FA27ECA12EBA325A00F2ECF7 /* SentryTraceContext+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */; };
10481048
FA27EC0E2EB922F200F2ECF7 /* SentryOptionsInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */; settings = {ATTRIBUTES = (Private, ); }; };
1049-
FA27EC102EB922F900F2ECF7 /* SentryOptionsInternal+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */; settings = {ATTRIBUTES = (Private, ); }; };
1050-
FA27EC122EB9231D00F2ECF7 /* SentryOptionsConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */; };
1051-
FA27EC142EB9232600F2ECF7 /* SentryOptionsConverter.m in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */; };
10521049
FA27EC162EB9236000F2ECF7 /* Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC152EB9236000F2ECF7 /* Options.swift */; };
1053-
FA27EC182EB9236400F2ECF7 /* Options+Internal.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */; };
1054-
FA27EC222EB9466D00F2ECF7 /* OptionsUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */; };
1050+
FA27ECA12EBA325A00F2ECF7 /* SentryTraceContext+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */; };
10551051
FA34C1A32E692A5000BC52AA /* SentryEnvelopeItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA34C1A22E692A5000BC52AA /* SentryEnvelopeItem.swift */; };
10561052
FA3734842E0F086C0091EF24 /* SentryDependencyContainerSwiftHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */; };
10571053
FA3734862E0F09320091EF24 /* SentryDependencyContainerSwiftHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */; };
@@ -2471,17 +2467,13 @@
24712467
FA034AC72DD3DB4900FE3107 /* SentryIntegrationProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryIntegrationProtocol.h; path = include/HybridPublic/SentryIntegrationProtocol.h; sourceTree = "<group>"; };
24722468
FA18417D2E4B457B005DEDC7 /* SentryApplication.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryApplication.swift; sourceTree = "<group>"; };
24732469
FA21A2E92E60E9C700E7EADB /* EnvelopeComparison.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EnvelopeComparison.swift; sourceTree = "<group>"; };
2470+
FA24E0292EBBF6F500EFD92E /* SentryOptionsObjC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsObjC.h; path = include/SentryOptionsObjC.h; sourceTree = "<group>"; };
24742471
FA27EBDB2EB639D100F2ECF7 /* SentryId.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryId.h; path = Public/SentryId.h; sourceTree = "<group>"; };
24752472
FA27EBDD2EB639D700F2ECF7 /* SentryId.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryId.m; sourceTree = "<group>"; };
24762473
FA27EBEF2EB82FA800F2ECF7 /* FileIOTrackerTestHelpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileIOTrackerTestHelpers.swift; sourceTree = "<group>"; };
2477-
FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryTraceContext+Private.h"; path = "include/SentryTraceContext+Private.h"; sourceTree = "<group>"; };
2478-
FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsInternal.h; path = include/SentryOptionsInternal.h; sourceTree = "<group>"; };
2479-
FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryOptionsInternal+Private.h"; path = "include/SentryOptionsInternal+Private.h"; sourceTree = "<group>"; };
2480-
FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsConverter.h; path = include/SentryOptionsConverter.h; sourceTree = "<group>"; };
2481-
FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryOptionsConverter.m; sourceTree = "<group>"; };
2474+
FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryOptionsInternal.h; path = include/HybridPublic/SentryOptionsInternal.h; sourceTree = "<group>"; };
24822475
FA27EC152EB9236000F2ECF7 /* Options.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Options.swift; sourceTree = "<group>"; };
2483-
FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Options+Internal.swift"; sourceTree = "<group>"; };
2484-
FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OptionsUtils.swift; sourceTree = "<group>"; };
2476+
FA27EC9B2EBA325400F2ECF7 /* SentryTraceContext+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryTraceContext+Private.h"; path = "include/SentryTraceContext+Private.h"; sourceTree = "<group>"; };
24852477
FA34C1A22E692A5000BC52AA /* SentryEnvelopeItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryEnvelopeItem.swift; sourceTree = "<group>"; };
24862478
FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryDependencyContainerSwiftHelper.h; path = include/SentryDependencyContainerSwiftHelper.h; sourceTree = "<group>"; };
24872479
FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDependencyContainerSwiftHelper.m; sourceTree = "<group>"; };
@@ -3036,6 +3028,7 @@
30363028
63AA769B1EB9C57A00D153DE /* SentryError.h */,
30373029
63AA769C1EB9C57A00D153DE /* SentryError.mm */,
30383030
636085111ED47BE600E8599E /* SentryFileManagerHelper.h */,
3031+
FA24E0292EBBF6F500EFD92E /* SentryOptionsObjC.h */,
30393032
FA3734832E0F07A20091EF24 /* SentryDependencyContainerSwiftHelper.h */,
30403033
FA3734852E0F092F0091EF24 /* SentryDependencyContainerSwiftHelper.m */,
30413034
636085121ED47BE600E8599E /* SentryFileManagerHelper.m */,
@@ -3204,10 +3197,7 @@
32043197
7B610D5E2512390E00B0B5D9 /* SentrySDK+Private.h */,
32053198
FA6555132E30181B009917BC /* SentrySDKInternal.h */,
32063199
FA6555152E30182B009917BC /* SentrySDKInternal.m */,
3207-
FA27EC132EB9232600F2ECF7 /* SentryOptionsConverter.m */,
3208-
FA27EC112EB9231D00F2ECF7 /* SentryOptionsConverter.h */,
32093200
FA27EC0D2EB922F200F2ECF7 /* SentryOptionsInternal.h */,
3210-
FA27EC0F2EB922F900F2ECF7 /* SentryOptionsInternal+Private.h */,
32113201
FACEED122E3179A10007B4AC /* SentryOptionsInternal.m */,
32123202
7D9B079F23D1E89800C5FC8E /* SentryMeta.h */,
32133203
7D082B8023C628780029866B /* SentryMeta.m */,
@@ -3988,7 +3978,6 @@
39883978
7BF536D224BEF240004FA6A2 /* TestUtils */ = {
39893979
isa = PBXGroup;
39903980
children = (
3991-
FA27EC1C2EB9466900F2ECF7 /* OptionsUtils.swift */,
39923981
62885DA629E946B100554F38 /* TestConncurrentModifications.swift */,
39933982
7BF536D324BEF255004FA6A2 /* SentryAssertions.swift */,
39943983
7B6D98EC24C703F8005502FA /* Async.swift */,
@@ -4587,7 +4576,6 @@
45874576
FA6251FE2EB52DD700BFC967 /* SentryHub.swift */,
45884577
FA6252052EB5489B00BFC967 /* SentryClient.swift */,
45894578
FA27EC152EB9236000F2ECF7 /* Options.swift */,
4590-
FA27EC172EB9236400F2ECF7 /* Options+Internal.swift */,
45914579
);
45924580
path = Swift;
45934581
sourceTree = "<group>";
@@ -5233,7 +5221,6 @@
52335221
0A2D8DA8289BC905008720F6 /* SentryViewHierarchyProviderHelper.h in Headers */,
52345222
8EAE980C261E9F530073B6B3 /* SentryDefaultUIViewControllerPerformanceTracker.h in Headers */,
52355223
63FE717D20DA4C1100CDBAE8 /* SentryCrashCachedData.h in Headers */,
5236-
FA27EC122EB9231D00F2ECF7 /* SentryOptionsConverter.h in Headers */,
52375224
03BCC38A27E1BF49003232C7 /* SentryTime.h in Headers */,
52385225
925824C22CB5897700C9B20B /* SentrySessionReplayIntegration-Hybrid.h in Headers */,
52395226
63FE70CD20DA4C1000CDBAE8 /* SentryCrashDoctor.h in Headers */,
@@ -5401,7 +5388,6 @@
54015388
6344DDB41EC309E000D9160D /* SentryCrashReportSink.h in Headers */,
54025389
D8C66A362A77B1F70015696A /* SentryPropagationContext.h in Headers */,
54035390
D867063F27C3BC2400048851 /* SentryCoreDataTracker.h in Headers */,
5404-
FA27EC102EB922F900F2ECF7 /* SentryOptionsInternal+Private.h in Headers */,
54055391
7B6C5EDA264E8D860010D138 /* SentryFramesTrackingIntegration.h in Headers */,
54065392
7B0DC72F288698F70039995F /* NSMutableDictionary+Sentry.h in Headers */,
54075393
63FE713920DA4C1100CDBAE8 /* SentryCrashMach.h in Headers */,
@@ -5439,6 +5425,7 @@
54395425
63FE715520DA4C1100CDBAE8 /* SentryCrashStackCursor_MachineContext.h in Headers */,
54405426
62E081A929ED4260000F69FC /* SentryBreadcrumbDelegate.h in Headers */,
54415427
15360CF02433A16D00112302 /* SentryInstallation.h in Headers */,
5428+
FA24E02A2EBBF6F900EFD92E /* SentryOptionsObjC.h in Headers */,
54425429
63FE714720DA4C1100CDBAE8 /* SentryCrashMachineContext.h in Headers */,
54435430
7BC63F0828081242009D9E37 /* SentrySwizzleWrapperHelper.h in Headers */,
54445431
638DC9A01EBC6B6400A66E41 /* SentryRequestOperation.h in Headers */,
@@ -6135,7 +6122,6 @@
61356122
FA67DD012DDBD4EA00896B02 /* SentryMXCallStackTree.swift in Sources */,
61366123
FAAB29F12E3D252300ACD577 /* SentrySession.swift in Sources */,
61376124
FA6252042EB52DD900BFC967 /* SentryHub.swift in Sources */,
6138-
FA27EC142EB9232600F2ECF7 /* SentryOptionsConverter.m in Sources */,
61396125
FA67DD022DDBD4EA00896B02 /* SentryViewScreenshotProvider.swift in Sources */,
61406126
FA67DD032DDBD4EA00896B02 /* SentryTransactionNameSource.swift in Sources */,
61416127
FA67DD042DDBD4EA00896B02 /* SwiftDescriptor.swift in Sources */,
@@ -6278,7 +6264,6 @@
62786264
63FE711B20DA4C1000CDBAE8 /* SentryCrashString.c in Sources */,
62796265
7B14089824878F950035403D /* SentryCrashStackEntryMapper.m in Sources */,
62806266
D8BC28C82BFF5EBB0054DA4D /* SentryTouchTracker.swift in Sources */,
6281-
FA27EC182EB9236400F2ECF7 /* Options+Internal.swift in Sources */,
62826267
63FE711720DA4C1000CDBAE8 /* SentryCrashStackCursor_Backtrace.c in Sources */,
62836268
FA3A42722E1C5F9B00A08C39 /* SentryNSNotificationCenterWrapper.swift in Sources */,
62846269
63FE70CB20DA4C1000CDBAE8 /* SentryCrashReportFixer.c in Sources */,
@@ -6633,7 +6618,6 @@
66336618
FA8AFCFA2E844AB6007A0E18 /* SentryThreadsafeApplicationTests.swift in Sources */,
66346619
D884A20527C80F6300074664 /* SentryCoreDataTrackerTest.swift in Sources */,
66356620
8E70B10125CB8695002B3155 /* SentrySpanIdTests.swift in Sources */,
6636-
FA27EC222EB9466D00F2ECF7 /* OptionsUtils.swift in Sources */,
66376621
62E2119A2DAE99FC007D7262 /* SentryAsyncSafeLog.m in Sources */,
66386622
F44D2B602E6B829F00FF31FA /* SentryScreenFramesTests.swift in Sources */,
66396623
84EB21962BF01CEA00EDDA28 /* SentryCrashInstallationTests.swift in Sources */,

SentryTestUtils/Headers/SentryLaunchProfiling+Tests.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# import "SentryDefines.h"
66
# import "SentryProfiler+Private.h"
77

8-
@class SentryOptionsInternal;
8+
@class SentryOptions;
99
@class SentrySamplerDecision;
1010

1111
NS_ASSUME_NONNULL_BEGIN
@@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
1515
* expressible in Swift. This wraps it and only returns the `BOOL shouldProfile` value in the
1616
* struct.
1717
*/
18-
BOOL sentry_willProfileNextLaunch(SentryOptionsInternal *options);
18+
BOOL sentry_willProfileNextLaunch(SentryOptions *options);
1919

2020
/**
2121
* Contains the logic to start a launch profile. Exposed separately from @c

SentryTestUtils/Sources/TestClient.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import _SentryPrivate
22
import Foundation
3-
@_spi(Private) @testable import Sentry
3+
@_spi(Private) import Sentry
44

55
public class TestClient: SentryClientInternal {
6-
public override init?(options: SentryOptionsInternal) {
6+
public override init?(options: NSObject) {
77
super.init(
88
options: options,
9-
transportAdapter: TestTransportAdapter(transports: [TestTransport()], options: options),
9+
transportAdapter: TestTransportAdapter(transports: [TestTransport()], options: options as! Options),
1010
fileManager: try! TestFileManager(
1111
options: options.toOptions(),
1212
dateProvider: TestCurrentDateProvider(),
@@ -22,7 +22,7 @@ public class TestClient: SentryClientInternal {
2222

2323
// Without this override we get a fatal error: use of unimplemented initializer
2424
// see https://stackoverflow.com/questions/28187261/ios-swift-fatal-error-use-of-unimplemented-initializer-init
25-
@_spi(Private) public override init(options: SentryOptionsInternal, transportAdapter: SentryTransportAdapter, fileManager: SentryFileManager, threadInspector: SentryDefaultThreadInspector, debugImageProvider: SentryDebugImageProvider, random: SentryRandomProtocol, locale: Locale, timezone: TimeZone) {
25+
@_spi(Private) public override init(options: NSObject, transportAdapter: SentryTransportAdapter, fileManager: SentryFileManager, threadInspector: SentryDefaultThreadInspector, debugImageProvider: SentryDebugImageProvider, random: SentryRandomProtocol, locale: Locale, timezone: TimeZone) {
2626
super.init(
2727
options: options,
2828
transportAdapter: transportAdapter,

Sources/Resources/Sentry.modulemap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ framework module Sentry {
1111
header "SentryAppStartMeasurement.h"
1212
header "SentryBreadcrumb+Private.h"
1313
header "SentryFormatter.h"
14+
header "SentryOptionsInternal.h"
1415
header "SentrySwizzle.h"
1516
header "SentryUser+Private.h"
1617

Sources/Sentry/Public/SentryDefines.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ typedef SentryEvent *_Nullable (^SentryBeforeSendEventCallback)(SentryEvent *_No
102102
*/
103103
typedef id<SentrySpan> _Nullable (^SentryBeforeSendSpanCallback)(id<SentrySpan> _Nonnull span);
104104

105-
/**
106-
* Use this block to drop or modify a log before the SDK sends it to Sentry. Return @c nil to drop
107-
* the log.
108-
*/
109-
typedef SentryLog *_Nullable (^SentryBeforeSendLogCallback)(SentryLog *_Nonnull log);
110-
111105
/**
112106
* Block can be used to decide if the SDK should capture a screenshot or not. Return @c true if the
113107
* SDK should capture a screenshot, return @c false if not. This callback doesn't work for crashes.

Sources/Sentry/Public/SentryDsn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
66

77
@property (nonatomic, strong, readonly) NSURL *url;
88

9-
- (_Nullable instancetype)initWithString:(NSString *)dsnString
9+
- (_Nullable instancetype)initWithString:(NSString *_Nullable)dsnString
1010
didFailWithError:(NSError *_Nullable *_Nullable)error;
1111

1212
- (NSURL *)getEnvelopeEndpoint;

Sources/Sentry/Public/SentryTraceContext.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
1111

1212
@class SentryBaggage;
1313
@class SentryId;
14+
@class SentryOptions;
1415
@class SentryScope;
1516
@class SentryTracer;
1617
@class SentryUser;

0 commit comments

Comments
 (0)