diff --git a/Sources/Sentry/Profiling/SentryLaunchProfiling.m b/Sources/Sentry/Profiling/SentryLaunchProfiling.m index 75da95ed4e..4df346e303 100644 --- a/Sources/Sentry/Profiling/SentryLaunchProfiling.m +++ b/Sources/Sentry/Profiling/SentryLaunchProfiling.m @@ -28,6 +28,7 @@ # pragma mark - Private +BOOL sentry_isTracingAppLaunch; static SentryTracer *_Nullable sentry_launchTracer; SentryTracerConfiguration * diff --git a/Sources/Sentry/include/SentryLaunchProfiling.h b/Sources/Sentry/include/SentryLaunchProfiling.h index 08a20945a7..e52d21320a 100644 --- a/Sources/Sentry/include/SentryLaunchProfiling.h +++ b/Sources/Sentry/include/SentryLaunchProfiling.h @@ -2,6 +2,7 @@ #if SENTRY_TARGET_PROFILING_SUPPORTED +# import "SentryDefines.h" # import @class SentryHub; @@ -12,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN -BOOL sentry_isTracingAppLaunch; +SENTRY_EXTERN BOOL sentry_isTracingAppLaunch; /** Try to start a profiled trace for this app launch, if the configuration allows. */ void sentry_startLaunchProfile(void); diff --git a/Tests/SentryTests/SentryLaunchProfiling+Tests.h b/Tests/SentryTests/SentryLaunchProfiling+Tests.h index 858c1d0e4b..06efd17f2e 100644 --- a/Tests/SentryTests/SentryLaunchProfiling+Tests.h +++ b/Tests/SentryTests/SentryLaunchProfiling+Tests.h @@ -2,6 +2,8 @@ #if SENTRY_TARGET_PROFILING_SUPPORTED +# import "SentryDefines.h" + @class SentrySamplerDecision; @class SentryOptions; @@ -15,8 +17,8 @@ typedef struct { SentryLaunchProfileConfig sentry_shouldProfileNextLaunch(SentryOptions *options); -NSString *const kSentryLaunchProfileConfigKeyTracesSampleRate; -NSString *const kSentryLaunchProfileConfigKeyProfilesSampleRate; +SENTRY_EXTERN NSString *const kSentryLaunchProfileConfigKeyTracesSampleRate; +SENTRY_EXTERN NSString *const kSentryLaunchProfileConfigKeyProfilesSampleRate; SentryTransactionContext *sentry_context(NSNumber *tracesRate);