From b0798772ac58eee61226ad818df4b32476f17373 Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Fri, 26 Sep 2025 16:07:42 -0700 Subject: [PATCH] ref: Use forward declarations in header --- Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm | 1 + Sources/Sentry/SentryHub.m | 1 + Sources/Sentry/SentryPerformanceTracker.m | 1 + Sources/Sentry/SentryTracer.m | 1 + Sources/Sentry/SentryUIEventTrackerTransactionMode.m | 1 + Sources/Sentry/include/SentryTracer.h | 5 +++-- .../include/SentryUIViewControllerPerformanceTracker.h | 1 - 7 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm b/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm index 0acda199f6..a8ac4dcfa7 100644 --- a/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm +++ b/Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm @@ -24,6 +24,7 @@ # import "SentrySamplerDecision.h" # import "SentryTraceProfiler.h" # import "SentryTracer+Private.h" +# import "SentryTracerConfiguration.h" # import "SentryTransaction.h" # if SENTRY_HAS_UIKIT diff --git a/Sources/Sentry/SentryHub.m b/Sources/Sentry/SentryHub.m index 5a4a12e395..05bf5e01f2 100644 --- a/Sources/Sentry/SentryHub.m +++ b/Sources/Sentry/SentryHub.m @@ -20,6 +20,7 @@ #import "SentrySwift.h" #import "SentryTraceOrigin.h" #import "SentryTracer.h" +#import "SentryTracerConfiguration.h" #import "SentryTransaction.h" #import "SentryTransactionContext+Private.h" diff --git a/Sources/Sentry/SentryPerformanceTracker.m b/Sources/Sentry/SentryPerformanceTracker.m index 62b3c536ef..cc0b6157d7 100644 --- a/Sources/Sentry/SentryPerformanceTracker.m +++ b/Sources/Sentry/SentryPerformanceTracker.m @@ -7,6 +7,7 @@ #import "SentrySpanId.h" #import "SentrySpanProtocol.h" #import "SentryTracer.h" +#import "SentryTracerConfiguration.h" #import "SentryTransactionContext+Private.h" #import "SentryProfilingConditionals.h" diff --git a/Sources/Sentry/SentryTracer.m b/Sources/Sentry/SentryTracer.m index 701a98da4e..b368f80436 100644 --- a/Sources/Sentry/SentryTracer.m +++ b/Sources/Sentry/SentryTracer.m @@ -23,6 +23,7 @@ #import "SentryTime.h" #import "SentryTraceContext.h" #import "SentryTracer+Private.h" +#import "SentryTracerConfiguration.h" #import "SentryTransaction.h" #import "SentryTransactionContext.h" #import diff --git a/Sources/Sentry/SentryUIEventTrackerTransactionMode.m b/Sources/Sentry/SentryUIEventTrackerTransactionMode.m index 0b9e648316..9eff063451 100644 --- a/Sources/Sentry/SentryUIEventTrackerTransactionMode.m +++ b/Sources/Sentry/SentryUIEventTrackerTransactionMode.m @@ -13,6 +13,7 @@ # import # import # import +# import # import NS_ASSUME_NONNULL_BEGIN diff --git a/Sources/Sentry/include/SentryTracer.h b/Sources/Sentry/include/SentryTracer.h index 46cc99ef94..767436c7a1 100644 --- a/Sources/Sentry/include/SentryTracer.h +++ b/Sources/Sentry/include/SentryTracer.h @@ -1,8 +1,6 @@ #import "SentryDefines.h" #import "SentryProfilingConditionals.h" #import "SentrySpan.h" -#import "SentrySpanProtocol.h" -#import "SentryTracerConfiguration.h" NS_ASSUME_NONNULL_BEGIN @@ -13,8 +11,11 @@ NS_ASSUME_NONNULL_BEGIN @class SentryTraceContext; @class SentryTraceHeader; @class SentryTracer; +@class SentryTracerConfiguration; @class SentryTransactionContext; +@protocol SentrySpan; + static NSTimeInterval const SentryTracerDefaultTimeout = 3.0; static const NSTimeInterval SENTRY_AUTO_TRANSACTION_MAX_DURATION = 500.0; diff --git a/Sources/Sentry/include/SentryUIViewControllerPerformanceTracker.h b/Sources/Sentry/include/SentryUIViewControllerPerformanceTracker.h index c5dcd23cbe..6508c5fbd3 100644 --- a/Sources/Sentry/include/SentryUIViewControllerPerformanceTracker.h +++ b/Sources/Sentry/include/SentryUIViewControllerPerformanceTracker.h @@ -2,7 +2,6 @@ #if SENTRY_HAS_UIKIT -@class SentrySpan; @class SentryInAppLogic; @class SentryTimeToDisplayTracker; @class UIViewController;