• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-swift / 23064833049

13 Mar 2026 06:23PM UTC coverage: 80.379% (+0.04%) from 80.34%
23064833049

Pull #917

github

web-flow
chore: set minimum Swift version to 6.1 and Xcode to 16.3+ for v3.0 (#918)

* chore: set minimum Swift version to 6.1 and Xcode to 16.3+ for v3.0

Update supabase-swift SDK minimum requirements from Swift 5.10/Xcode 15.3+
to Swift 6.1/Xcode 16.3+ for the v3.0 release. The codebase was already
well-prepared for Swift 6 with strict concurrency enabled, Sendable
conformance throughout, and modern async/await patterns.

## Changes

### Package & Documentation
- **Package.swift**: Updated swift-tools-version from 5.10 to 6.1
- **Package.swift**: Updated platform targets (iOS 16+, macOS 12+, tvOS 16+, watchOS 9+)
- **README.md**: Updated requirements to reflect Swift 6.1+ and Xcode 16.3+
- **AGENTS.md**: Updated development environment requirements

### Test Fixes for Swift 6 Concurrency
Fixed Swift 6 strict concurrency issues in test suite:
- **FunctionsClientTests**: Explicit capture of session in @Sendable closures
- **PostgresQueryTests**: Explicit capture of session in @Sendable closures
- **SupabaseStorageTests**: Explicit capture of supabaseURL in closures
- **AuthClientTests**: Explicit capture of sut in Task closures
- **SessionManagerTests**: Fixed capture list and Result type
- **RealtimeTests**: Explicit capture of client and sut in closures
- **CallbackManagerTests**: Added sending parameter to XCTAssertNoLeak
- **StorageBucketAPITests**: MainActor.assumeIsolated for XCTContext
- **MockHelpers**: Convert Dependencies.mock to computed property
- **PostgrestIntegrationTests**: Fixed ilike API (pattern: not value:)

## Testing
- Production code builds cleanly with Swift 6.1 ✅
- 558 tests executed, 547 passing (98% pass rate)
- 11 test failures related to stricter concurrency checks
- Library evolution build succeeds ✅

## What Benefits Swift 6.1 Brings
- Official language-level strict concurrency (not experimental)
- Better compile-time data race detection
- Improved optimization for async/await
- Type-safe existentials by default
- Enhanced actor... (continued)
Pull Request #917: chore: remove all deprecated code for v3.0

101 of 122 new or added lines in 24 files covered. (82.79%)

4 existing lines in 2 files now uncovered.

6325 of 7869 relevant lines covered (80.38%)

27.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.41
/Sources/Helpers/HTTP/HTTPRequest.swift


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc