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

Implement Subscription #23

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Implement Subscription #23

merged 2 commits into from
Aug 29, 2024

Conversation

lawrence-forooghian
Copy link
Collaborator

@lawrence-forooghian lawrence-forooghian commented Aug 27, 2024

This is a repeat of #22, which I merged without realising that it was going into #9, which isn't what I wanted. So I’m reopening this PR (already approved by @maratal), only to be merged once #9 is!

It offers some nice convenience features.

I don’t think that this package is a controversial inclusion; it’s
written by Apple and they had a WWDC session about it.

This is the first time I’ve tried adding a new package, and for some
reason Xcode didn’t update its xcshareddata Package.resolved
automatically, but running `xcodebuild -resolvePackageDependencies` did
the trick.

Adding this package exposed a couple of issues in our CI setup:

1. the way in which we specify which Swift language version to use —
   I’ve fixed this
2. Xcode can fail when trying to compile a Package.swift package using
   “treat warnings as errors” — I’ve had to turn that off
Note that XCTAssertEqual doesn’t allow you to write `await` inside its
arguments, hence the indirection to get the result of a couple of `async
let`s. Hopefully we’ll be able to migrate to Swift Testing at some
point, which will resolve this; see #21.

I’ve also implemented MessageSubscription by wrapping Subscription.
Base automatically changed from 7-public-api to main August 28, 2024 16:18
@lawrence-forooghian lawrence-forooghian merged commit bc06747 into main Aug 29, 2024
34 checks passed
@lawrence-forooghian lawrence-forooghian deleted the implement-Subscription branch August 29, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants