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

Make test dependencies not resolve when installing with SPM [SDK-2598] #108

Merged
merged 2 commits into from
Jun 4, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Jun 3, 2021

Changes

SimpleKeychain relies on the Quick and Nimble test libraries for its tests, and it's pinning their version range to a particular major. Currently, when installing SimpleKeychain with the Swift Package Manager it will resolve both test dependencies even though they're not used in the actual library. This opens up the possibility of conflict if the app the libraries are imported into is using another major version of Quick/Nimble.
SPM has, since swift 5.2 (released with Xcode 11.4), supported a way to have the test dependencies not resolve if they're not used. Since we already dropped support for Xcode < 11.4, this will not be a breaking change.

References

Fixes #107

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If helpful, please include manual testing steps as well.

[ ] This change adds unit test coverage (or why not)
[X] This change has been tested on the latest version of the platform/language or why not

Checklist

[X] I have read the Auth0 general contribution guidelines
[X] I have read the Auth0 Code of Conduct
[ ] All existing and new tests complete without errors

@Widcket Widcket requested a review from a team as a code owner June 3, 2021 12:43
@Widcket Widcket changed the title Make test dependencies not resolve when installing with SPM Make test dependencies not resolve when installing with SPM [SDK-2598] Jun 3, 2021
@Widcket Widcket added this to the vNext milestone Jun 3, 2021
@Widcket Widcket merged commit 355af56 into master Jun 4, 2021
@Widcket Widcket deleted the test/spm-deps branch June 4, 2021 15:40
@Widcket Widcket mentioned this pull request Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update dependency (Quick)
2 participants