Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions Sentry.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
0A9E917128DC7E7000FB4182 /* SentryInternalCDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = 0A9E917028DC7E7000FB4182 /* SentryInternalCDefines.h */; };
0AAE201E28ED9B9400D0CD80 /* SentryReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AAE201D28ED9B9400D0CD80 /* SentryReachability.m */; };
0AAE202128ED9BCC00D0CD80 /* SentryReachability.h in Headers */ = {isa = PBXBuildFile; fileRef = 0AAE202028ED9BCC00D0CD80 /* SentryReachability.h */; };
0ADC33EC28D9BB780078D980 /* SentryUIDeviceWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0ADC33EB28D9BB780078D980 /* SentryUIDeviceWrapper.m */; };
0ADC33EE28D9BB890078D980 /* SentryUIDeviceWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 0ADC33ED28D9BB890078D980 /* SentryUIDeviceWrapper.h */; };
0ADC33F128D9BE940078D980 /* TestSentryUIDeviceWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0ADC33EF28D9BE690078D980 /* TestSentryUIDeviceWrapper.swift */; };
0AE455AD28F584D2006680E5 /* SentryReachabilityTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AE455AC28F584D2006680E5 /* SentryReachabilityTests.m */; };
15360CCF2432777500112302 /* SentrySessionTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 15360CCE2432777400112302 /* SentrySessionTracker.m */; };
Expand Down Expand Up @@ -1111,6 +1109,7 @@
FA8E58F12E0AD4270049F69D /* SentryDispatchQueueWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */; };
FA90FAA82E06614E008CAAE8 /* SentryExtraPackages.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */; };
FA90FAFD2E070A3B008CAAE8 /* SentryURLRequestFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90FAFC2E070A3B008CAAE8 /* SentryURLRequestFactory.swift */; };
FAAB2F972E4D345800FE8B7E /* SentryUIDeviceWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAAB2F962E4D344F00FE8B7E /* SentryUIDeviceWrapper.swift */; };
FAAB30F32E4E8F2C00FE8B7E /* SentryInAppLogic.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAAB30F22E4E8F2C00FE8B7E /* SentryInAppLogic.swift */; };
FAB359982E05D7E90083D5E3 /* SentryEventSwiftHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = FAB359972E05D7E90083D5E3 /* SentryEventSwiftHelper.h */; };
FAB3599A2E05D8080083D5E3 /* SentryEventSwiftHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = FAB359992E05D8080083D5E3 /* SentryEventSwiftHelper.m */; };
Expand Down Expand Up @@ -1288,8 +1287,6 @@
0A9E917028DC7E7000FB4182 /* SentryInternalCDefines.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryInternalCDefines.h; path = include/SentryInternalCDefines.h; sourceTree = "<group>"; };
0AAE201D28ED9B9400D0CD80 /* SentryReachability.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryReachability.m; sourceTree = "<group>"; };
0AAE202028ED9BCC00D0CD80 /* SentryReachability.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryReachability.h; path = include/SentryReachability.h; sourceTree = "<group>"; };
0ADC33EB28D9BB780078D980 /* SentryUIDeviceWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryUIDeviceWrapper.m; sourceTree = "<group>"; };
0ADC33ED28D9BB890078D980 /* SentryUIDeviceWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryUIDeviceWrapper.h; path = include/SentryUIDeviceWrapper.h; sourceTree = "<group>"; };
0ADC33EF28D9BE690078D980 /* TestSentryUIDeviceWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSentryUIDeviceWrapper.swift; sourceTree = "<group>"; };
0AE455AC28F584D2006680E5 /* SentryReachabilityTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryReachabilityTests.m; sourceTree = "<group>"; };
15360CCE2432777400112302 /* SentrySessionTracker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentrySessionTracker.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2460,6 +2457,7 @@
FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDispatchQueueWrapper.swift; sourceTree = "<group>"; };
FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExtraPackages.swift; sourceTree = "<group>"; };
FA90FAFC2E070A3B008CAAE8 /* SentryURLRequestFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryURLRequestFactory.swift; sourceTree = "<group>"; };
FAAB2F962E4D344F00FE8B7E /* SentryUIDeviceWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIDeviceWrapper.swift; sourceTree = "<group>"; };
FAAB30F22E4E8F2C00FE8B7E /* SentryInAppLogic.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryInAppLogic.swift; sourceTree = "<group>"; };
FAB359972E05D7E90083D5E3 /* SentryEventSwiftHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryEventSwiftHelper.h; path = include/SentryEventSwiftHelper.h; sourceTree = "<group>"; };
FAB359992E05D8080083D5E3 /* SentryEventSwiftHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryEventSwiftHelper.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2850,8 +2848,6 @@
7B7D873524864C9D00D2ECFF /* SentryCrashDefaultMachineContextWrapper.m */,
7B7A30C524B48321005A4C6E /* SentryCrashWrapper.h */,
7B7A30C724B48389005A4C6E /* SentryCrashWrapper.m */,
0ADC33ED28D9BB890078D980 /* SentryUIDeviceWrapper.h */,
0ADC33EB28D9BB780078D980 /* SentryUIDeviceWrapper.m */,
62C97D372CC64E4900DDA204 /* SentryUncaughtNSExceptions.h */,
62C97D392CC64E6B00DDA204 /* SentryUncaughtNSExceptions.m */,
);
Expand Down Expand Up @@ -4770,6 +4766,7 @@
FA67DCCC2DDBD4EA00896B02 /* Helper */ = {
isa = PBXGroup;
children = (
FAAB2F962E4D344F00FE8B7E /* SentryUIDeviceWrapper.swift */,
FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */,
FA67DCC82DDBD4EA00896B02 /* Log */,
FA67DCC92DDBD4EA00896B02 /* SentryBaggageSerialization.swift */,
Expand Down Expand Up @@ -4894,7 +4891,6 @@
92E5F3D62CDBB3BF00B7AD98 /* SentrySampling.h in Headers */,
92672BB629C9A2A9006B021C /* SentryBreadcrumb+Private.h in Headers */,
03BCC38E27E2A377003232C7 /* SentryProfilingConditionals.h in Headers */,
0ADC33EE28D9BB890078D980 /* SentryUIDeviceWrapper.h in Headers */,
848A451A2BBF8D33006AAAEC /* SentryContinuousProfiler.h in Headers */,
8E133FA625E72EB400ABD0BF /* SentrySamplingContext.h in Headers */,
0A9BF4E428A114B50068D266 /* SentryViewHierarchyIntegration.h in Headers */,
Expand Down Expand Up @@ -5597,6 +5593,7 @@
7BDB03BB2513652900BAE198 /* _SentryDispatchQueueWrapperInternal.m in Sources */,
FA6FC0A32E0B5ACE00ED2669 /* SentrySdkPackage.swift in Sources */,
D8739D142BEE5049007D2F66 /* SentryRRWebSpanEvent.swift in Sources */,
FAAB2F972E4D345800FE8B7E /* SentryUIDeviceWrapper.swift in Sources */,
7B6C5EDE264E8DF00010D138 /* SentryFramesTracker.m in Sources */,
D84F833E2A1CC401005828E0 /* SentrySwiftAsyncIntegration.m in Sources */,
7B6438AB26A70F24000D0F65 /* UIViewController+Sentry.m in Sources */,
Expand Down Expand Up @@ -5723,7 +5720,6 @@
63FE70D720DA4C1000CDBAE8 /* SentryCrashMonitor_MachException.c in Sources */,
7B96572226830D2400C66E25 /* SentryScopeSyncC.c in Sources */,
0A9BF4E228A114940068D266 /* SentryViewHierarchyIntegration.m in Sources */,
0ADC33EC28D9BB780078D980 /* SentryUIDeviceWrapper.m in Sources */,
7BBD188B244841FB00427C76 /* SentryHttpDateParser.m in Sources */,
D8AFC03D2BDA79BF00118BE1 /* SentryReplayVideoMaker.swift in Sources */,
840A11122B61E27500650D02 /* SentrySamplerDecision.m in Sources */,
Expand Down
1 change: 0 additions & 1 deletion SentryTestUtils/SentryTestUtils-ObjC-BridgingHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# import "SentryAppStartTracker.h"
# import "SentryDisplayLinkWrapper.h"
# import "SentryFramesTracker+TestInit.h"
# import "SentryUIDeviceWrapper.h"
# import "SentryUIViewControllerPerformanceTracker.h"
#endif // SENTRY_HAS_UIKIT

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryCrashWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#import "SentryNSProcessInfoWrapper.h"
#import "SentryScope+PrivateSwift.h"
#import "SentryScope.h"
#import "SentryUIDeviceWrapper.h"
#import "SentrySwift.h"
#import <SentryCrashCachedData.h>
#import <SentryCrashDebug.h>
#import <SentryCrashMonitor_System.h>
Expand Down
8 changes: 2 additions & 6 deletions Sources/Sentry/SentryDependencyContainer.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#import "SentrySwift.h"
#import "SentrySystemWrapper.h"
#import "SentryThreadInspector.h"
#import "SentryUIDeviceWrapper.h"
#import <SentryAppStateManager.h>
#import <SentryCrash.h>
#import <SentryCrashWrapper.h>
Expand Down Expand Up @@ -49,10 +48,6 @@
# import <SentryWatchdogTerminationBreadcrumbProcessor.h>
#endif // SENTRY_HAS_UIKIT

#if TARGET_OS_IOS
# import "SentryUIDeviceWrapper.h"
#endif // TARGET_OS_IOS

#if TARGET_OS_OSX
# import "SentryNSApplication.h"
#endif
Expand Down Expand Up @@ -168,7 +163,8 @@ - (instancetype)init

_notificationCenterWrapper = [NSNotificationCenter defaultCenter];
#if SENTRY_HAS_UIKIT
_uiDeviceWrapper = [[SentryUIDeviceWrapper alloc] init];
_uiDeviceWrapper =
[[SentryDefaultUIDeviceWrapper alloc] initWithQueueWrapper:_dispatchQueueWrapper];
_application = [[SentryUIApplication alloc]
initWithNotificationCenterWrapper:_notificationCenterWrapper
dispatchQueueWrapper:_dispatchQueueWrapper];
Expand Down
8 changes: 2 additions & 6 deletions Sources/Sentry/SentryExtraContextProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@

@class SentryCrashWrapper;
@class SentryNSProcessInfoWrapper;
@class SentryUIDeviceWrapper;

#if TARGET_OS_IOS && SENTRY_HAS_UIKIT
@class SentryUIDeviceWrapper;
#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT
@protocol SentryUIDeviceWrapper;

NS_ASSUME_NONNULL_BEGIN

Expand All @@ -23,7 +19,7 @@ SENTRY_NO_INIT
- (instancetype)initWithCrashWrapper:(SentryCrashWrapper *)crashWrapper
processInfoWrapper:(SentryNSProcessInfoWrapper *)processInfoWrapper
#if TARGET_OS_IOS && SENTRY_HAS_UIKIT
deviceWrapper:(SentryUIDeviceWrapper *)deviceWrapper
deviceWrapper:(id<SentryUIDeviceWrapper>)deviceWrapper
#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT
;

Expand Down
6 changes: 3 additions & 3 deletions Sources/Sentry/SentryExtraContextProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#import "SentryCrashWrapper.h"
#import "SentryLogC.h"
#import "SentryNSProcessInfoWrapper.h"
#import "SentryUIDeviceWrapper.h"
#import "SentrySwift.h"

NSString *const kSentryProcessInfoThermalStateNominal = @"nominal";
NSString *const kSentryProcessInfoThermalStateFair = @"fair";
Expand All @@ -16,7 +16,7 @@ @interface SentryExtraContextProvider ()
@property (nonatomic, strong) SentryNSProcessInfoWrapper *processInfoWrapper;

#if TARGET_OS_IOS && SENTRY_HAS_UIKIT
@property (nonatomic, strong) SentryUIDeviceWrapper *deviceWrapper;
@property (nonatomic, strong) id<SentryUIDeviceWrapper> deviceWrapper;
#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT

@end
Expand All @@ -26,7 +26,7 @@ @implementation SentryExtraContextProvider
- (instancetype)initWithCrashWrapper:(id)crashWrapper
processInfoWrapper:(id)processInfoWrapper
#if TARGET_OS_IOS && SENTRY_HAS_UIKIT
deviceWrapper:(SentryUIDeviceWrapper *)deviceWrapper
deviceWrapper:(id<SentryUIDeviceWrapper>)deviceWrapper
#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT
{
if (self = [super init]) {
Expand Down
1 change: 0 additions & 1 deletion Sources/Sentry/SentrySDKInternal.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#endif // TARGET_OS_MAC

#if SENTRY_HAS_UIKIT
# import "SentryUIDeviceWrapper.h"
# import "SentryUIViewControllerPerformanceTracker.h"
# if TARGET_OS_IOS
# import "SentryFeedbackAPI.h"
Expand Down
91 changes: 0 additions & 91 deletions Sources/Sentry/SentryUIDeviceWrapper.m

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#endif // SENTRY_UIKIT_AVAILABLE

#if SENTRY_HAS_UIKIT
@class SentryUIDeviceWrapper;
@protocol SentryUIDeviceWrapper;
#endif // TARGET_OS_IOS

#if !TARGET_OS_WATCH
Expand Down Expand Up @@ -100,7 +100,7 @@ SENTRY_NO_INIT
#endif // !TARGET_OS_WATCH

#if SENTRY_HAS_UIKIT
@property (nonatomic, strong) SentryUIDeviceWrapper *uiDeviceWrapper;
@property (nonatomic, strong) id<SentryUIDeviceWrapper> uiDeviceWrapper;
#endif // TARGET_OS_IOS

#pragma mark - Lazy Dependencies
Expand Down
27 changes: 0 additions & 27 deletions Sources/Sentry/include/SentryUIDeviceWrapper.h

This file was deleted.

Loading
Loading