diff --git a/Sources/Sentry/Public/Sentry.h b/Sources/Sentry/Public/Sentry.h index d1f1919853b..153be1a12ec 100644 --- a/Sources/Sentry/Public/Sentry.h +++ b/Sources/Sentry/Public/Sentry.h @@ -37,7 +37,9 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; # import # import # import -# import +# if !SDK_V9 +# import +# endif # import # import # import diff --git a/Sources/Sentry/Public/SentryWithoutUIKit.h b/Sources/Sentry/Public/SentryWithoutUIKit.h index 508d9b09348..651faa552ff 100644 --- a/Sources/Sentry/Public/SentryWithoutUIKit.h +++ b/Sources/Sentry/Public/SentryWithoutUIKit.h @@ -38,7 +38,9 @@ FOUNDATION_EXPORT const unsigned char SentryVersionString[]; # import # import # import -# import +# if !SDK_V9 +# import +# endif # import # import # import diff --git a/Sources/Sentry/include/SentrySpan.h b/Sources/Sentry/include/SentrySpan.h index 13fb8953a6e..193866d02d6 100644 --- a/Sources/Sentry/include/SentrySpan.h +++ b/Sources/Sentry/include/SentrySpan.h @@ -15,7 +15,12 @@ NS_ASSUME_NONNULL_BEGIN @class SentryFramesTracker; #endif // SENTRY_HAS_UIKIT -@interface SentrySpan : NSObject +@interface SentrySpan : NSObject +#if !SDK_V9 + +#else + +#endif SENTRY_NO_INIT /** diff --git a/Sources/Swift/Integrations/SessionReplay/RRWeb/SentryRRWebEvent.swift b/Sources/Swift/Integrations/SessionReplay/RRWeb/SentryRRWebEvent.swift index 392c6876893..30001751077 100644 --- a/Sources/Swift/Integrations/SessionReplay/RRWeb/SentryRRWebEvent.swift +++ b/Sources/Swift/Integrations/SessionReplay/RRWeb/SentryRRWebEvent.swift @@ -10,7 +10,8 @@ enum SentryRRWebEventType: Int { } @objc(SentryRRWebEvent) -@_spi(Private) public protocol SentryRRWebEventProtocol: SentrySerializable { +@_spi(Private) public protocol SentryRRWebEventProtocol { + func serialize() -> [String: Any] } @objcMembers diff --git a/Sources/Swift/SentryAppState.swift b/Sources/Swift/SentryAppState.swift index 1779f6f5080..05eea8bfe6c 100644 --- a/Sources/Swift/SentryAppState.swift +++ b/Sources/Swift/SentryAppState.swift @@ -1,7 +1,7 @@ @_implementationOnly import _SentryPrivate import Foundation -@objcMembers @_spi(Private) public class SentryAppState: NSObject, SentrySerializable { +@objcMembers @_spi(Private) public class SentryAppState: NSObject { public private(set) var releaseName: String? public private(set) var osVersion: String @@ -129,4 +129,4 @@ import Foundation return data } -} +}