Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1/y] Add backwards compatibility with Swift 5.5 #283

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

andrewchang-bird
Copy link
Contributor

@andrewchang-bird andrewchang-bird commented Jan 27, 2022

Stack

πŸ“š #287 [5/y] Improve static mocking APIs
πŸ“š #286 [4/y] Enable mocking sources in test bundles
πŸ“š #285 [3/y] Fix read-only subscripts
πŸ“š #284 [2/y] Fix warnings in throwing initializers
πŸ“š #283 ← [1/y] Add backwards compatibility with Swift 5.5

Overview

Adding support for concurrency implicitly increased our minimum Swift target to 5.5.2. Trying to consume the framework on an older toolchain like Xcode 13.1 (Swift 5.5) would fail to compile. I wrapped all async/await testing interfaces in #if swift(>=5.5.2) compilation conditions. Technically we could target Swift 5.5 for concurrency which has different platform targets (no support for older OSes), but this increases the complexity of both the framework interface and the testing matrix we need to use without much benefit.

Test Plan

Added CI tests that run on Xcode 13.1 (Swift 5.5) and Xcode 13.2 (Swift 5.5.2).

@andrewchang-bird andrewchang-bird merged commit dfe56a4 into master Jan 28, 2022
@andrewchang-bird andrewchang-bird deleted the dev/andrewchang-bird/support-swift-5.5 branch January 28, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants