Skip to content

Commit 5cbd333

Browse files
antonisphilprime
andauthored
chore(ci): React-Native: Adds missing self to make capture semantics explicit (#6156)
Co-authored-by: Philip Niedertscheider <[email protected]>
1 parent 89e74bc commit 5cbd333

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- Fixes a React Native legacy build failure by adding the missing self references for explicit capture semantics (#6156)
8+
39
## 8.56.0-alpha.2
410

511
### Features

Sources/Swift/Helper/SentryApplicationExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension SentryApplication {
3434
Dependencies.dispatchQueueWrapper.dispatchSyncOnMainQueue({ [weak self] in
3535
guard let self else { return }
3636
if #available(iOS 13.0, tvOS 13.0, *) {
37-
let scenes = connectedScenes
37+
let scenes = self.connectedScenes
3838
for scene in scenes {
3939
if scene.activationState == .foregroundActive {
4040
if
@@ -48,7 +48,7 @@ extension SentryApplication {
4848
}
4949
}
5050

51-
if let window = delegate?.window {
51+
if let window = self.delegate?.window {
5252
if let window {
5353
windows.insert(window)
5454
}

0 commit comments

Comments
 (0)