Skip to content

Commit be6a4ee

Browse files
authored
fix(react-native): Fixes React Native closure compilation issue (#5816)
1 parent e3767a1 commit be6a4ee

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Sources/Swift/Integrations/SessionReplay/SentryVideoFrameProcessor.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ class SentryVideoFrameProcessor {
105105
let videoResult = SentryRenderVideoResult(info: nil, finalFrameIndex: frameIndex)
106106
return completion(.success(videoResult))
107107
}
108-
SentrySDKLog.debug("[Session Replay] Finished video writing, status: \(videoWriter.status)")
108+
SentrySDKLog.debug("[Session Replay] Finished video writing, status: \(self.videoWriter.status)")
109109

110-
switch videoWriter.status {
110+
switch self.videoWriter.status {
111111
case .writing:
112112
SentrySDKLog.error("[Session Replay] Finish writing video was called with status writing, this is unexpected! Completing with no video info")
113113
let videoResult = SentryRenderVideoResult(info: nil, finalFrameIndex: frameIndex)
@@ -120,10 +120,10 @@ class SentryVideoFrameProcessor {
120120
SentrySDKLog.debug("[Session Replay] Finish writing video was completed, creating video info from file attributes.")
121121
do {
122122
let videoInfo = try self.getVideoInfo(
123-
from: outputFileURL,
124-
usedFrames: usedFrames,
125-
videoWidth: Int(videoWidth),
126-
videoHeight: Int(videoHeight)
123+
from: self.outputFileURL,
124+
usedFrames: self.usedFrames,
125+
videoWidth: Int(self.videoWidth),
126+
videoHeight: Int(self.videoHeight)
127127
)
128128
let videoResult = SentryRenderVideoResult(info: videoInfo, finalFrameIndex: frameIndex)
129129
completion(.success(videoResult))
@@ -132,13 +132,13 @@ class SentryVideoFrameProcessor {
132132
completion(.failure(error))
133133
}
134134
case .failed:
135-
SentrySDKLog.warning("[Session Replay] Finish writing video failed, reason: \(String(describing: videoWriter.error))")
136-
completion(.failure(videoWriter.error ?? SentryOnDemandReplayError.errorRenderingVideo))
135+
SentrySDKLog.warning("[Session Replay] Finish writing video failed, reason: \(String(describing: self.videoWriter.error))")
136+
completion(.failure(self.videoWriter.error ?? SentryOnDemandReplayError.errorRenderingVideo))
137137
case .unknown:
138-
SentrySDKLog.warning("[Session Replay] Finish writing video with unknown status, reason: \(String(describing: videoWriter.error))")
139-
completion(.failure(videoWriter.error ?? SentryOnDemandReplayError.errorRenderingVideo))
138+
SentrySDKLog.warning("[Session Replay] Finish writing video with unknown status, reason: \(String(describing: self.videoWriter.error))")
139+
completion(.failure(self.videoWriter.error ?? SentryOnDemandReplayError.errorRenderingVideo))
140140
@unknown default:
141-
SentrySDKLog.warning("[Session Replay] Finish writing video in unknown state, reason: \(String(describing: videoWriter.error))")
141+
SentrySDKLog.warning("[Session Replay] Finish writing video in unknown state, reason: \(String(describing: self.videoWriter.error))")
142142
completion(.failure(SentryOnDemandReplayError.errorRenderingVideo))
143143
}
144144
}
@@ -175,4 +175,4 @@ class SentryVideoFrameProcessor {
175175
}
176176

177177
#endif // os(iOS) || os(tvOS)
178-
#endif // canImport(UIKit)
178+
#endif // canImport(UIKit) && !SENTRY_NO_UIKIT

0 commit comments

Comments
 (0)