Skip to content

Commit 7ebbb60

Browse files
authored
Merge 94d6460 into d069d70
2 parents d069d70 + 94d6460 commit 7ebbb60

19 files changed

+208
-488
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,6 @@
332332
7B01CE3D271993AC00B5AF31 /* SentryTransportFactoryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B01CE3C271993AB00B5AF31 /* SentryTransportFactoryTests.swift */; };
333333
7B04A9AB24EA5F8D00E710B1 /* SentryUserTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B04A9AA24EA5F8D00E710B1 /* SentryUserTests.swift */; };
334334
7B05A61824A4D14A00EF211D /* SentrySessionGeneratorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B05A61724A4D14A00EF211D /* SentrySessionGeneratorTests.swift */; };
335-
7B08A3452924CF6C0059603A /* SentryMetricKitIntegration.h in Headers */ = {isa = PBXBuildFile; fileRef = 7B08A3442924CF6C0059603A /* SentryMetricKitIntegration.h */; };
336-
7B08A3472924CF9C0059603A /* SentryMetricKitIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B08A3462924CF9C0059603A /* SentryMetricKitIntegration.m */; };
337335
7B0A542E2521C62400A71716 /* SentryFrameRemoverTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B0A542D2521C62400A71716 /* SentryFrameRemoverTests.swift */; };
338336
7B0A5452252311CE00A71716 /* SentryBreadcrumbTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B0A5451252311CE00A71716 /* SentryBreadcrumbTests.swift */; };
339337
7B0A54562523178700A71716 /* SentryScopeSwiftTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7B0A54552523178700A71716 /* SentryScopeSwiftTests.swift */; };
@@ -1160,6 +1158,7 @@
11601158
FAF0F3D02EA7DD0D00E44E9B /* SentryANRTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF0F3CA2EA7DD0700E44E9B /* SentryANRTrackerTests.swift */; };
11611159
FAFA358D2EF2FD2A006B145F /* SentryMXCallStackTree+Parsing.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAFA35872EF2FD24006B145F /* SentryMXCallStackTree+Parsing.swift */; };
11621160
FAFA358F2EF2FD8F006B145F /* MXSample.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAFA358E2EF2FD8C006B145F /* MXSample.swift */; };
1161+
FAFA359A2EF5A725006B145F /* SentryMetricKitIntegration.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAFA35942EF5A71C006B145F /* SentryMetricKitIntegration.swift */; };
11631162
/* End PBXBuildFile section */
11641163

11651164
/* Begin PBXContainerItemProxy section */
@@ -1638,8 +1637,6 @@
16381637
7B01CE3C271993AB00B5AF31 /* SentryTransportFactoryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryTransportFactoryTests.swift; sourceTree = "<group>"; };
16391638
7B04A9AA24EA5F8D00E710B1 /* SentryUserTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUserTests.swift; sourceTree = "<group>"; };
16401639
7B05A61724A4D14A00EF211D /* SentrySessionGeneratorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySessionGeneratorTests.swift; sourceTree = "<group>"; };
1641-
7B08A3442924CF6C0059603A /* SentryMetricKitIntegration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryMetricKitIntegration.h; path = include/SentryMetricKitIntegration.h; sourceTree = "<group>"; };
1642-
7B08A3462924CF9C0059603A /* SentryMetricKitIntegration.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryMetricKitIntegration.m; sourceTree = "<group>"; };
16431640
7B0A542D2521C62400A71716 /* SentryFrameRemoverTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryFrameRemoverTests.swift; sourceTree = "<group>"; };
16441641
7B0A5451252311CE00A71716 /* SentryBreadcrumbTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryBreadcrumbTests.swift; sourceTree = "<group>"; };
16451642
7B0A54552523178700A71716 /* SentryScopeSwiftTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryScopeSwiftTests.swift; sourceTree = "<group>"; };
@@ -2549,6 +2546,7 @@
25492546
FAF0F3CA2EA7DD0700E44E9B /* SentryANRTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryANRTrackerTests.swift; sourceTree = "<group>"; };
25502547
FAFA35872EF2FD24006B145F /* SentryMXCallStackTree+Parsing.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryMXCallStackTree+Parsing.swift"; sourceTree = "<group>"; };
25512548
FAFA358E2EF2FD8C006B145F /* MXSample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MXSample.swift; sourceTree = "<group>"; };
2549+
FAFA35942EF5A71C006B145F /* SentryMetricKitIntegration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryMetricKitIntegration.swift; sourceTree = "<group>"; };
25522550
/* End PBXFileReference section */
25532551

25542552
/* Begin PBXFrameworksBuildPhase section */
@@ -2943,7 +2941,6 @@
29432941
isa = PBXGroup;
29442942
children = (
29452943
847B1A002C618ACA002CB1F3 /* UserFeedback */,
2946-
7B08A3432924CF4E0059603A /* MetricKit */,
29472944
7B127B0B27CF6EF600A71ED2 /* ANR */,
29482945
7BE0DC33272AE74A004FA8B7 /* Breadcrumbs */,
29492946
7BE0DC34272AE78C004FA8B7 /* WatchdogTerminations */,
@@ -3390,15 +3387,6 @@
33903387
path = SentryCrash;
33913388
sourceTree = "<group>";
33923389
};
3393-
7B08A3432924CF4E0059603A /* MetricKit */ = {
3394-
isa = PBXGroup;
3395-
children = (
3396-
7B08A3442924CF6C0059603A /* SentryMetricKitIntegration.h */,
3397-
7B08A3462924CF9C0059603A /* SentryMetricKitIntegration.m */,
3398-
);
3399-
name = MetricKit;
3400-
sourceTree = "<group>";
3401-
};
34023390
7B127B0B27CF6EF600A71ED2 /* ANR */ = {
34033391
isa = PBXGroup;
34043392
children = (
@@ -5051,6 +5039,7 @@
50515039
FA67DCDA2DDBD4EA00896B02 /* MetricKit */ = {
50525040
isa = PBXGroup;
50535041
children = (
5042+
FAFA35942EF5A71C006B145F /* SentryMetricKitIntegration.swift */,
50545043
FA67DCD82DDBD4EA00896B02 /* SentryMXCallStackTree.swift */,
50555044
FAFA35872EF2FD24006B145F /* SentryMXCallStackTree+Parsing.swift */,
50565045
FAFA358E2EF2FD8C006B145F /* MXSample.swift */,
@@ -5177,7 +5166,6 @@
51775166
63FE708520DA4C1000CDBAE8 /* SentryCrashReportFilter.h in Headers */,
51785167
84354E1129BF944900CDBB8B /* SentryProfileTimeseries.h in Headers */,
51795168
D8ACE3CD2762187D00F5A213 /* SentryNSDataSwizzling.h in Headers */,
5180-
7B08A3452924CF6C0059603A /* SentryMetricKitIntegration.h in Headers */,
51815169
0A2D8DA8289BC905008720F6 /* SentryViewHierarchyProviderHelper.h in Headers */,
51825170
8EAE980C261E9F530073B6B3 /* SentryDefaultUIViewControllerPerformanceTracker.h in Headers */,
51835171
63FE717D20DA4C1100CDBAE8 /* SentryCrashCachedData.h in Headers */,
@@ -5855,7 +5843,6 @@
58555843
F4FE86BD2EECAC31003D845F /* SentryScreenshotOptions.swift in Sources */,
58565844
F4FE86BE2EECAC31003D845F /* SentryScreenshotIntegration.swift in Sources */,
58575845
92D957732E05A44600E20E66 /* SentryAsyncLog.m in Sources */,
5858-
7B08A3472924CF9C0059603A /* SentryMetricKitIntegration.m in Sources */,
58595846
623FD9022D3FA5E000803EDA /* SentryFrameCodable.swift in Sources */,
58605847
62BDDD122D51FD540024CCD1 /* SentryThreadCodable.swift in Sources */,
58615848
7B63459B280EB9E200CFA05A /* SentryUIEventTrackingIntegration.m in Sources */,
@@ -5904,6 +5891,7 @@
59045891
639FCFA91EBC80CC00778193 /* SentryFrame.m in Sources */,
59055892
8E564AEA267AF22600FE117D /* SentryNetworkTracker.m in Sources */,
59065893
15360CED2433A15500112302 /* SentryInstallation.m in Sources */,
5894+
FAFA359A2EF5A725006B145F /* SentryMetricKitIntegration.swift in Sources */,
59075895
FAAB95FF2EA301670030A2DB /* SentryWatchdogTerminationScopeObserver.swift in Sources */,
59085896
D8370B6A273DF1E900F66E2D /* SentryNSURLSessionTaskSearch.m in Sources */,
59095897
D4563FA92EBA3B73005B33E2 /* SentryExtensionDetector.swift in Sources */,

Sources/Sentry/SentryEvent.m

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#if SENTRY_HAS_METRIC_KIT
1919
# import "SentryMechanism.h"
20-
# import "SentryMetricKitIntegration.h"
2120
#endif // SENTRY_HAS_METRIC_KIT
2221

2322
NS_ASSUME_NONNULL_BEGIN
@@ -185,31 +184,6 @@ - (NSMutableArray *)serializeBreadcrumbs
185184
return crumbs;
186185
}
187186

188-
#if SENTRY_HAS_METRIC_KIT
189-
190-
- (BOOL)isMetricKitEvent
191-
{
192-
if (self.exceptions == nil || self.exceptions.count != 1) {
193-
return NO;
194-
}
195-
196-
NSArray<NSString *> *metricKitMechanisms = @[
197-
SentryMetricKitDiskWriteExceptionMechanism, SentryMetricKitCpuExceptionMechanism,
198-
SentryMetricKitHangDiagnosticMechanism, @"MXCrashDiagnostic"
199-
];
200-
201-
SentryException *exception = self.exceptions[0];
202-
if (exception.mechanism != nil &&
203-
[metricKitMechanisms
204-
containsObject:SENTRY_UNWRAP_NULLABLE(NSString, exception.mechanism).type]) {
205-
return YES;
206-
} else {
207-
return NO;
208-
}
209-
}
210-
211-
#endif // SENTRY_HAS_METRIC_KIT
212-
213187
- (BOOL)isAppHangEvent
214188
{
215189
return self.exceptions.count == 1 &&

Sources/Sentry/SentryMetricKitIntegration.m

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

0 commit comments

Comments
 (0)