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

Support linking with lower version OS #5

Merged
merged 1 commit into from Nov 8, 2021
Merged

Conversation

osy
Copy link
Contributor

@osy osy commented Nov 5, 2021

Swift PM does not have a good way to conditionally include a package. That
means that apps targeting a lower OS version cannot import AltKit. As a
workaround, we lower the linking version while inserting availability
checks into AltKit.

Since NWConnection requires iOS 12, we will return an error when trying to
connect with iOS 11.

Swift PM does not have a good way to conditionally include a package. That
means that apps targeting a lower OS version cannot import AltKit. As a
workaround, we lower the linking version while inserting availability
checks into AltKit.

Since NWConnection requires iOS 12, we will return an error when trying to
connect with iOS 11.
@rileytestut rileytestut merged commit 7d634cd into altstoreio:main Nov 8, 2021
@rileytestut
Copy link
Collaborator

That's unfortunate we can't weak-link Swift Package, but since we can't do anything about that I agree this is a reasonable workaround. Thanks!

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.

None yet

2 participants