Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: remove unnecessary imports #3256

Merged
merged 2 commits into from
Aug 29, 2023
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
4 changes: 0 additions & 4 deletions Sentry.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
15360CD92432835400112302 /* SentryAutoSessionTrackingIntegration.h in Headers */ = {isa = PBXBuildFile; fileRef = 15360CD82432835400112302 /* SentryAutoSessionTrackingIntegration.h */; settings = {ATTRIBUTES = (Private, ); }; };
15360CED2433A15500112302 /* SentryInstallation.m in Sources */ = {isa = PBXBuildFile; fileRef = 15360CEC2433A15500112302 /* SentryInstallation.m */; };
15360CF02433A16D00112302 /* SentryInstallation.h in Headers */ = {isa = PBXBuildFile; fileRef = 15360CEF2433A16D00112302 /* SentryInstallation.h */; };
15360CF52433C59B00112302 /* SentryInstallationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 15360CF22433C59500112302 /* SentryInstallationTests.m */; };
15D0AC882459EE4D006541C2 /* SentryNSURLRequestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15D0AC872459EE4D006541C2 /* SentryNSURLRequestTests.swift */; };
15E0A8E1240C41CE00F044E3 /* SentryEnvelope.h in Headers */ = {isa = PBXBuildFile; fileRef = 15E0A8E0240C41CE00F044E3 /* SentryEnvelope.h */; settings = {ATTRIBUTES = (Private, ); }; };
15E0A8E5240C457D00F044E3 /* SentryEnvelope.m in Sources */ = {isa = PBXBuildFile; fileRef = 15E0A8E4240C457D00F044E3 /* SentryEnvelope.m */; };
Expand Down Expand Up @@ -946,7 +945,6 @@
15360CD82432835400112302 /* SentryAutoSessionTrackingIntegration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryAutoSessionTrackingIntegration.h; path = include/SentryAutoSessionTrackingIntegration.h; sourceTree = "<group>"; };
15360CEC2433A15500112302 /* SentryInstallation.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryInstallation.m; sourceTree = "<group>"; };
15360CEF2433A16D00112302 /* SentryInstallation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryInstallation.h; path = include/SentryInstallation.h; sourceTree = "<group>"; };
15360CF22433C59500112302 /* SentryInstallationTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryInstallationTests.m; sourceTree = "<group>"; };
15D0AC872459EE4D006541C2 /* SentryNSURLRequestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryNSURLRequestTests.swift; sourceTree = "<group>"; };
15E0A8E0240C41CE00F044E3 /* SentryEnvelope.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryEnvelope.h; path = include/HybridPublic/SentryEnvelope.h; sourceTree = "<group>"; };
15E0A8E4240C457D00F044E3 /* SentryEnvelope.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryEnvelope.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2219,7 +2217,6 @@
7B569E052590F04700B653FC /* SentryScope+Properties.h */,
7B9421C4260CA393001F9349 /* SentrySDK+Tests.h */,
639889D21EDF06C100EA7442 /* SentryTests-Bridging-Header.h */,
15360CF22433C59500112302 /* SentryInstallationTests.m */,
63B819131EC352A7002FDF4C /* SentryInterfacesTests.m */,
630C01931EC3402C00C52CEF /* SentryKSCrashReportConverterTests.m */,
630436151EC0AD3100C4D3FA /* SentryNSDataCompressionTests.m */,
Expand Down Expand Up @@ -4344,7 +4341,6 @@
7BE912B12721C76000E49E62 /* SentryPerformanceTrackingIntegrationTests.swift in Sources */,
7BA61CCC247D14E600C130A8 /* SentryThreadInspectorTests.swift in Sources */,
623C45B02A651D8200D9E88B /* SentryCoreDataTracker+Test.m in Sources */,
15360CF52433C59B00112302 /* SentryInstallationTests.m in Sources */,
8E0551E026A7A63C00400526 /* TestProtocolClient.swift in Sources */,
7BD86ECD264A78A6005439DB /* SentryAppStartTrackerTests.swift in Sources */,
7BB6550D253EEB3900887E87 /* SentryUserFeedbackTests.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "SentryFileManager.h"
#import <Sentry/Sentry.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
1 change: 0 additions & 1 deletion Tests/SentryTests/Helper/SentryLog+TestInit.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "SentryLog.h"
#import <Sentry/Sentry.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
1 change: 0 additions & 1 deletion Tests/SentryTests/Helper/SentrySerializationNilTests.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "SentrySerialization.h"
#import <Sentry/Sentry.h>
#import <XCTest/XCTest.h>

@interface SentrySerializationNilTests : XCTestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/SentryTests/Helper/SentrySwizzleTests.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "SentrySwizzle.h"
#import <Sentry/Sentry.h>
#import <XCTest/XCTest.h>

#pragma mark - HELPER CLASSES -
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#import "SentryCoreDataTracker.h"
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
1 change: 0 additions & 1 deletion Tests/SentryTests/Networking/SentryDsnTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#import "SentryMeta.h"
#import "SentryNSURLRequest.h"
#import "SentryOptions+HybridSDKs.h"
#import <Sentry/Sentry.h>
#import <XCTest/XCTest.h>

@interface SentryDsnTests : XCTestCase
Expand Down
2 changes: 1 addition & 1 deletion Tests/SentryTests/Protocol/SentryAttachment+Equality.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Sentry/Sentry.h>
#import "SentryAttachment.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
1 change: 0 additions & 1 deletion Tests/SentryTests/SentryClient+TestInit.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#import "SentryExtraContextProvider.h"
#import "SentryRandom.h"
#import "SentryTransport.h"
#import <Sentry/Sentry.h>

@class SentryCrashWrapper, SentryThreadInspector, SentryTransportAdapter, SentryUIDeviceWrapper;

Expand Down
16 changes: 0 additions & 16 deletions Tests/SentryTests/SentryInstallationTests.m

This file was deleted.

9 changes: 8 additions & 1 deletion Tests/SentryTests/SentryInterfacesTests.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
#import <Sentry/Sentry.h>
#import <XCTest/XCTest.h>

#import "NSDate+SentryExtras.h"
#import "SentryBreadcrumb.h"
#import "SentryEvent.h"
#import "SentryException.h"
#import "SentryFileManager.h"
#import "SentryFrame.h"
#import "SentryId.h"
#import "SentryMechanism.h"
#import "SentryMeta.h"
#import "SentryStackTrace.h"
#import "SentryThread.h"
#import "SentryUser.h"

@interface SentryInterfacesTests : XCTestCase

Expand Down
10 changes: 9 additions & 1 deletion Tests/SentryTests/SentryKSCrashReportConverterTests.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#import "NSDate+SentryExtras.h"
#import "SentryBreadcrumb.h"
#import "SentryCrashReportConverter.h"
#import "SentryDebugMeta.h"
#import "SentryEvent.h"
#import "SentryException.h"
#import "SentryFrame.h"
#import "SentryInAppLogic.h"
#import "SentryMechanism.h"
#import "SentryMechanismMeta.h"
#import <Sentry/Sentry.h>
#import "SentryStacktrace.h"
#import "SentryThread.h"
#import "SentryUser.h"
#import <XCTest/XCTest.h>

@interface SentryCrashReportConverterTests : XCTestCase
Expand Down
1 change: 0 additions & 1 deletion Tests/SentryTests/SentryNSDataCompressionTests.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "NSData+SentryCompression.h"
#import <Sentry/Sentry.h>
#import <XCTest/XCTest.h>

@interface SentryNSDataCompressionTests : XCTestCase
Expand Down
2 changes: 0 additions & 2 deletions Tests/SentryTests/SentrySDK+Tests.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#import <Sentry/Sentry.h>

NS_ASSUME_NONNULL_BEGIN

@interface
Expand Down
3 changes: 1 addition & 2 deletions Tests/SentryTests/SentryScope+Equality.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "SentryScope+Properties.h"
#import <Sentry/Sentry.h>
#import "SentryScope.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
3 changes: 2 additions & 1 deletion Tests/SentryTests/SentryScope+Equality.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#import "SentryScope+Equality.h"
#import "SentryScope+Properties.h"
#import "SentryUser.h"

@implementation
SentryScope (Equality)
Expand Down
6 changes: 5 additions & 1 deletion Tests/SentryTests/SentryScope+Properties.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#import <Sentry/Sentry.h>
#import "SentryScope.h"

@class SentryUser;
@class SentryBreadcrumb;
@class SentryAttachment;

NS_ASSUME_NONNULL_BEGIN

Expand Down
5 changes: 4 additions & 1 deletion Tests/SentryTests/SentryTests.m
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#import "NSDate+SentryExtras.h"
#import "SentryBreadcrumb.h"
#import "SentryBreadcrumbTracker.h"
#import "SentryClient.h"
#import "SentryDataCategory.h"
#import "SentryEvent.h"
#import "SentryHub.h"
#import "SentryLevelMapper.h"
#import "SentryMessage.h"
#import "SentryMeta.h"
#import "SentryOptions+HybridSDKs.h"
#import "SentrySDK+Private.h"
#import <Sentry/Sentry.h>
#import <XCTest/XCTest.h>

@interface
Expand Down
1 change: 1 addition & 0 deletions Tests/SentryTests/TestLogOutput.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import XCTest

class TestLogOutput: SentryLogOutput {

Expand Down
1 change: 0 additions & 1 deletion Tests/SentryTests/TestUtils/SentryBooleanSerialization.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#import "SentrySerializable.h"
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion Tests/SentryTests/TestUtils/SentryBooleanSerialization.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "SentryBooleanSerialization.h"
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Loading