This repository was archived by the owner on Apr 26, 2026. It is now read-only.
Commit 4db4041
chore(ios): fix Swift 6 warnings and deprecated API usage (#3148)
## Summary
- Fix Swift 6 compatibility warnings to prepare for Swift 6 migration
- Suppress unused result warning for better code cleanliness
Closes #3146
## Changes
### RnIapHelper.swift
- Add explicit `@unchecked Sendable` conformance to `OpenIapException`
class
### HybridRnIap.swift
- Capture `products` as local constant before `MainActor.run` closure to
avoid Swift 6 concurrency warning
- Add `_ =` to suppress unused result warning for `finishTransaction`
## Notes
The deprecated API warnings (`validateReceiptIOS` and
`requestPurchaseOnPromotedProductIOS`) are from the OpenIAP library
itself and will be resolved when OpenIAP is updated with new APIs.
## Test plan
- [x] `yarn typecheck` passes
- [x] `yarn lint` passes
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Improved iOS in-app purchase internals to reduce concurrency issues
and streamline transaction handling.
* **Bug Fixes**
* Reduced risk of transaction-related errors and unexpected behavior,
improving reliability of purchases and completion flows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent c2aec64 commit 4db4041
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments