Skip to content

Commit 2f81fd7

Browse files
committed
ref: Use SPI for SentryUserFeedbackIntegrationDriver
1 parent 581ef4b commit 2f81fd7

File tree

16 files changed

+121
-169
lines changed

16 files changed

+121
-169
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if let env, String(cString: env, encoding: .utf8) == "1" {
4848
path: "Sources/Sentry",
4949
sources: ["NSLocale+Sentry.m"],
5050
publicHeadersPath: "include",
51-
cSettings: [.headerSearchPath("include/HybridPublic")]),
51+
cSettings: [.headerSearchPath("include/HybridPublic"), .headerSearchPath("Helper")]),
5252
.target(
5353
name: "SentrySwift",
5454
dependencies: ["_SentryPrivate", "SentryHeaders"],

Sentry.xcodeproj/project.pbxproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,6 @@
924924
D855AD62286ED6A4002573E1 /* SentryCrashTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D855AD61286ED6A4002573E1 /* SentryCrashTests.m */; };
925925
D855B3E827D652AF00BCED76 /* SentryCoreDataTrackingIntegrationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = D855B3E727D652AF00BCED76 /* SentryCoreDataTrackingIntegrationTest.swift */; };
926926
D855B3EA27D652C700BCED76 /* TestCoreDataStack.swift in Sources */ = {isa = PBXBuildFile; fileRef = D855B3E927D652C700BCED76 /* TestCoreDataStack.swift */; };
927-
D85852B627ECEEDA00C6D8AE /* SentryScreenshot.m in Sources */ = {isa = PBXBuildFile; fileRef = D85852B427ECEEDA00C6D8AE /* SentryScreenshot.m */; };
928927
D85852BA27EDDC5900C6D8AE /* SentryUIApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = D85852B827EDDC5900C6D8AE /* SentryUIApplication.m */; };
929928
D858FA662A29EAB3002A3503 /* SentryBinaryImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = D858FA642A29EAB3002A3503 /* SentryBinaryImageCache.h */; settings = {ATTRIBUTES = (Private, ); }; };
930929
D858FA672A29EAB3002A3503 /* SentryBinaryImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = D858FA652A29EAB3002A3503 /* SentryBinaryImageCache.m */; };
@@ -991,7 +990,6 @@
991990
D8C66A362A77B1F70015696A /* SentryPropagationContext.h in Headers */ = {isa = PBXBuildFile; fileRef = D8C66A342A77B1F70015696A /* SentryPropagationContext.h */; };
992991
D8C66A372A77B1F70015696A /* SentryPropagationContext.m in Sources */ = {isa = PBXBuildFile; fileRef = D8C66A352A77B1F70015696A /* SentryPropagationContext.m */; };
993992
D8C67E9B28000E24007E326E /* SentryUIApplication.h in Headers */ = {isa = PBXBuildFile; fileRef = D8C67E9928000E23007E326E /* SentryUIApplication.h */; };
994-
D8C67E9C28000E24007E326E /* SentryScreenshot.h in Headers */ = {isa = PBXBuildFile; fileRef = D8C67E9A28000E23007E326E /* SentryScreenshot.h */; };
995993
D8CA12952C203E71005894F4 /* SentrySessionListener.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8CA12942C203E71005894F4 /* SentrySessionListener.swift */; };
996994
D8CAC02E2BA0663E00E38F34 /* SentryReplayOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8CAC02A2BA0663E00E38F34 /* SentryReplayOptions.swift */; };
997995
D8CAC02F2BA0663E00E38F34 /* SentryVideoInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8CAC02B2BA0663E00E38F34 /* SentryVideoInfo.swift */; };
@@ -1028,6 +1026,7 @@
10281026
F49D419E2DEA3D0600D9244E /* SentryCrashExceptionApplicationHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = F49D419D2DEA3D0300D9244E /* SentryCrashExceptionApplicationHelper.m */; };
10291027
F4AACD612E01ACE800DDDD1E /* SentryCrashDynamicLinkerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F4AACD602E01ACE800DDDD1E /* SentryCrashDynamicLinkerTests.m */; };
10301028
FA034AC82DD3DB4900FE3107 /* SentryIntegrationProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = FA034AC72DD3DB4900FE3107 /* SentryIntegrationProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; };
1029+
FA3734822E0EEA670091EF24 /* SentryScreenshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA3734812E0EEA670091EF24 /* SentryScreenshot.swift */; };
10311030
FA4C32972DF7513F001D7B00 /* SentryExperimentalOptions.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA4C32962DF7513F001D7B00 /* SentryExperimentalOptions.swift */; };
10321031
FA67DCC12DDBD4C800896B02 /* SentrySDKLog+Configure.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA67DCC02DDBD4C800896B02 /* SentrySDKLog+Configure.swift */; };
10331032
FA67DCF52DDBD4EA00896B02 /* SentryCurrentDateProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA67DCCA2DDBD4EA00896B02 /* SentryCurrentDateProvider.swift */; };
@@ -1070,8 +1069,8 @@
10701069
FA7206DF2E0B37850072FDD4 /* SentryProfileCollector.h in Headers */ = {isa = PBXBuildFile; fileRef = FA7206DE2E0B37780072FDD4 /* SentryProfileCollector.h */; };
10711070
FA7206E12E0B37C80072FDD4 /* SentryProfileCollector.mm in Sources */ = {isa = PBXBuildFile; fileRef = FA7206E02E0B37C60072FDD4 /* SentryProfileCollector.mm */; };
10721071
FA8A36182DEAA1EB0058D883 /* SentryThread+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */; };
1073-
FA90FAA82E06614E008CAAE8 /* SentryExtraPackages.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */; };
10741072
FA8E58F12E0AD4270049F69D /* SentryDispatchQueueWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */; };
1073+
FA90FAA82E06614E008CAAE8 /* SentryExtraPackages.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */; };
10751074
FA90FAFD2E070A3B008CAAE8 /* SentryURLRequestFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA90FAFC2E070A3B008CAAE8 /* SentryURLRequestFactory.swift */; };
10761075
FAB359982E05D7E90083D5E3 /* SentryEventSwiftHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = FAB359972E05D7E90083D5E3 /* SentryEventSwiftHelper.h */; };
10771076
FAB3599A2E05D8080083D5E3 /* SentryEventSwiftHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = FAB359992E05D8080083D5E3 /* SentryEventSwiftHelper.m */; };
@@ -2168,7 +2167,6 @@
21682167
D855B3E727D652AF00BCED76 /* SentryCoreDataTrackingIntegrationTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryCoreDataTrackingIntegrationTest.swift; sourceTree = "<group>"; };
21692168
D855B3E927D652C700BCED76 /* TestCoreDataStack.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestCoreDataStack.swift; sourceTree = "<group>"; };
21702169
D85790282976A69F00C6AC1F /* TestDebugImageProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestDebugImageProvider.swift; sourceTree = "<group>"; };
2171-
D85852B427ECEEDA00C6D8AE /* SentryScreenshot.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryScreenshot.m; sourceTree = "<group>"; };
21722170
D85852B827EDDC5900C6D8AE /* SentryUIApplication.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryUIApplication.m; sourceTree = "<group>"; };
21732171
D858FA642A29EAB3002A3503 /* SentryBinaryImageCache.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryBinaryImageCache.h; path = include/HybridPublic/SentryBinaryImageCache.h; sourceTree = "<group>"; };
21742172
D858FA652A29EAB3002A3503 /* SentryBinaryImageCache.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryBinaryImageCache.m; sourceTree = "<group>"; };
@@ -2244,7 +2242,6 @@
22442242
D8C66A342A77B1F70015696A /* SentryPropagationContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryPropagationContext.h; sourceTree = "<group>"; };
22452243
D8C66A352A77B1F70015696A /* SentryPropagationContext.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryPropagationContext.m; sourceTree = "<group>"; };
22462244
D8C67E9928000E23007E326E /* SentryUIApplication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryUIApplication.h; path = include/SentryUIApplication.h; sourceTree = "<group>"; };
2247-
D8C67E9A28000E23007E326E /* SentryScreenshot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryScreenshot.h; path = include/SentryScreenshot.h; sourceTree = "<group>"; };
22482245
D8CA12942C203E71005894F4 /* SentrySessionListener.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySessionListener.swift; sourceTree = "<group>"; };
22492246
D8CAC02A2BA0663E00E38F34 /* SentryReplayOptions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SentryReplayOptions.swift; sourceTree = "<group>"; };
22502247
D8CAC02B2BA0663E00E38F34 /* SentryVideoInfo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SentryVideoInfo.swift; sourceTree = "<group>"; };
@@ -2282,6 +2279,7 @@
22822279
F49D419D2DEA3D0300D9244E /* SentryCrashExceptionApplicationHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCrashExceptionApplicationHelper.m; sourceTree = "<group>"; };
22832280
F4AACD602E01ACE800DDDD1E /* SentryCrashDynamicLinkerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCrashDynamicLinkerTests.m; sourceTree = "<group>"; };
22842281
FA034AC72DD3DB4900FE3107 /* SentryIntegrationProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryIntegrationProtocol.h; path = Public/SentryIntegrationProtocol.h; sourceTree = "<group>"; };
2282+
FA3734812E0EEA670091EF24 /* SentryScreenshot.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryScreenshot.swift; sourceTree = "<group>"; };
22852283
FA4C32962DF7513F001D7B00 /* SentryExperimentalOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExperimentalOptions.swift; sourceTree = "<group>"; };
22862284
FA67DCC02DDBD4C800896B02 /* SentrySDKLog+Configure.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentrySDKLog+Configure.swift"; sourceTree = "<group>"; };
22872285
FA67DCC22DDBD4EA00896B02 /* Locks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Locks.swift; sourceTree = "<group>"; };
@@ -2324,8 +2322,8 @@
23242322
FA7206DE2E0B37780072FDD4 /* SentryProfileCollector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SentryProfileCollector.h; sourceTree = "<group>"; };
23252323
FA7206E02E0B37C60072FDD4 /* SentryProfileCollector.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = SentryProfileCollector.mm; sourceTree = "<group>"; };
23262324
FA8A36172DEAA1EB0058D883 /* SentryThread+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "SentryThread+Private.h"; path = "include/SentryThread+Private.h"; sourceTree = "<group>"; };
2327-
FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExtraPackages.swift; sourceTree = "<group>"; };
23282325
FA8E58F02E0AD4220049F69D /* SentryDispatchQueueWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDispatchQueueWrapper.swift; sourceTree = "<group>"; };
2326+
FA90FAA72E06614B008CAAE8 /* SentryExtraPackages.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryExtraPackages.swift; sourceTree = "<group>"; };
23292327
FA90FAFC2E070A3B008CAAE8 /* SentryURLRequestFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryURLRequestFactory.swift; sourceTree = "<group>"; };
23302328
FAB359972E05D7E90083D5E3 /* SentryEventSwiftHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryEventSwiftHelper.h; path = include/SentryEventSwiftHelper.h; sourceTree = "<group>"; };
23312329
FAB359992E05D8080083D5E3 /* SentryEventSwiftHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryEventSwiftHelper.m; sourceTree = "<group>"; };
@@ -3928,8 +3926,6 @@
39283926
children = (
39293927
8E25C95625F836EE00DC215B /* SentryRandom.h */,
39303928
8E25C95125F836D000DC215B /* SentryRandom.m */,
3931-
D8C67E9A28000E23007E326E /* SentryScreenshot.h */,
3932-
D85852B427ECEEDA00C6D8AE /* SentryScreenshot.m */,
39333929
D406044A2DD2483D00C40DC0 /* SentryApplication.h */,
39343930
D8C67E9928000E23007E326E /* SentryUIApplication.h */,
39353931
D85852B827EDDC5900C6D8AE /* SentryUIApplication.m */,
@@ -4267,6 +4263,7 @@
42674263
children = (
42684264
FA90FAFC2E070A3B008CAAE8 /* SentryURLRequestFactory.swift */,
42694265
FA67DCC02DDBD4C800896B02 /* SentrySDKLog+Configure.swift */,
4266+
FA3734812E0EEA670091EF24 /* SentryScreenshot.swift */,
42704267
);
42714268
path = Tools;
42724269
sourceTree = "<group>";
@@ -4827,7 +4824,6 @@
48274824
84AC61D229F7541E009EEF61 /* SentryDispatchSourceWrapper.h in Headers */,
48284825
84281C462A57905700EE88F2 /* SentrySample.h in Headers */,
48294826
63FE712B20DA4C1100CDBAE8 /* SentryCrashStackCursor.h in Headers */,
4830-
D8C67E9C28000E24007E326E /* SentryScreenshot.h in Headers */,
48314827
7BA61CBF247CEA8100C130A8 /* SentryFormatter.h in Headers */,
48324828
7B8713B226415B7A006D6004 /* SentryAppStartTracker.h in Headers */,
48334829
D8370B6C273DF20F00F66E2D /* SentryNSURLSessionTaskSearch.h in Headers */,
@@ -5382,7 +5378,6 @@
53825378
7BA61CAD247BAA0B00C130A8 /* SentryDebugImageProvider.m in Sources */,
53835379
63FE70E720DA4C1000CDBAE8 /* SentryCrashMonitor.c in Sources */,
53845380
84354E1229BF944900CDBB8B /* SentryProfileTimeseries.mm in Sources */,
5385-
D85852B627ECEEDA00C6D8AE /* SentryScreenshot.m in Sources */,
53865381
7D5C441C237C2E1F00DAB0A3 /* SentryHub.m in Sources */,
53875382
84E13B842CBF1D91003B52EC /* SentryUserFeedbackWidgetButtonMegaphoneIconView.swift in Sources */,
53885383
63FE715920DA4C1100CDBAE8 /* SentryCrashCPU_x86_32.c in Sources */,
@@ -5403,6 +5398,7 @@
54035398
63FE716720DA4C1100CDBAE8 /* SentryCrashCPU.c in Sources */,
54045399
63FE717320DA4C1100CDBAE8 /* SentryCrashC.c in Sources */,
54055400
6293F5752D422A95002BC3BD /* SentryStacktraceCodable.swift in Sources */,
5401+
FA3734822E0EEA670091EF24 /* SentryScreenshot.swift in Sources */,
54065402
63FE712120DA4C1000CDBAE8 /* SentryCrashSymbolicator.c in Sources */,
54075403
627C77892D50B6840055E966 /* SentryBreadcrumbCodable.swift in Sources */,
54085404
63FE70D720DA4C1000CDBAE8 /* SentryCrashMonitor_MachException.c in Sources */,

Sources/Resources/Sentry.modulemap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ framework module Sentry {
1212
header "SentryBinaryImageCache.h"
1313
header "SentryBreadcrumb+Private.h"
1414
header "SentryDebugImageProvider+HybridSDKs.h"
15-
header "SentryDependencyContainer.h"
1615
header "SentryEnvelope.h"
1716
header "SentryEnvelopeItemType.h"
1817
header "SentryFormatter.h"

Sources/Sentry/PrivateSentrySDKOnly.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#import <SentryDependencyContainer.h>
2222
#import <SentryFramesTracker.h>
2323
#import <SentryScope+Private.h>
24-
#import <SentryScreenshot.h>
2524
#import <SentryUser.h>
2625

2726
#if SENTRY_TARGET_PROFILING_SUPPORTED

Sources/Sentry/SentryDependencyContainer.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
# import "SentryANRTrackerV2.h"
4747
# import "SentryFramesTracker.h"
4848
# import "SentryUIApplication.h"
49-
# import <SentryScreenshot.h>
5049
# import <SentryViewHierarchyProvider.h>
5150
# import <SentryWatchdogTerminationBreadcrumbProcessor.h>
5251
#endif // SENTRY_HAS_UIKIT

Sources/Sentry/SentryScreenshot.m

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

Sources/Sentry/SentryScreenshotIntegration.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# import "SentryHub+Private.h"
1111
# import "SentryOptions.h"
1212
# import "SentrySDK+Private.h"
13+
# import "SentrySwift.h"
1314

1415
# if SENTRY_HAS_METRIC_KIT
1516
# import "SentryMetricKitIntegration.h"

Sources/Sentry/SentryUserFeedbackIntegration.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#import "SentryDependencyContainer.h"
33
#import "SentryOptions+Private.h"
44
#import "SentrySDK+Private.h"
5-
#import "SentryScreenshot.h"
65
#import "SentrySwift.h"
76

87
#if TARGET_OS_IOS && SENTRY_HAS_UIKIT

Sources/Sentry/include/SentryPrivate.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111

1212
// Headers that also import SentryDefines should be at the end of this list
1313
// otherwise it wont compile
14+
#import "SentryApplication.h"
1415
#import "SentryAsyncLog.h"
1516
#import "SentryDateUtil.h"
1617
#import "SentryDateUtils.h"
18+
#import "SentryDependencyContainer.h"
1719
#import "SentryDisplayLinkWrapper.h"
1820
#import "SentryFileIOTracker.h"
1921
#import "SentryFileManager.h"
@@ -22,7 +24,6 @@
2224
#import "SentryNSDictionarySanitize.h"
2325
#import "SentryProfiler+Private.h"
2426
#import "SentryRandom.h"
25-
#import "SentryScreenshot.h"
2627
#import "SentrySdkInfo.h"
2728
#import "SentrySerialization.h"
2829
#import "SentrySession.h"

0 commit comments

Comments
 (0)