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

Swift Package Manager 5.3 compatibility #1584

Merged
merged 7 commits into from Dec 22, 2020
Merged

Swift Package Manager 5.3 compatibility #1584

merged 7 commits into from Dec 22, 2020

Conversation

designatednerd
Copy link
Contributor

@designatednerd designatednerd commented Dec 22, 2020

In this PR:

  • Added a Package@swift-5.2.swift to preserve backwards compatibility
  • Explicitly made text files in test package resources
  • Excluded ALL the Info.plists from libs
  • Moved graphql files in StarWarsAPI, GitHubAPI, and UploadAPI into excluded graphql folders
  • Cleaned up a whole mess of file redirecting nonsense from doing all that.
  • Added something that should eventually be removed (and will eventually fail tests once we switch codegen engines) if the codegen engine is the WIP engine

guard fileURL.apollo.isSwiftFileURL else {
throw CodegenError.singleFileButNotSwiftFileURL(fileURL)
}
} // else we're fine with JSON at this point for intermediate purposes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once default codegen becomes swift codegen, this will fail the tests that check that a folder URL can't be passed in here.

@@ -1,10 +0,0 @@
{
"63e25c339275a65f43b847e692e42caed8c06e25fbfb3dc8db6d4897b180c9ef": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was deleted because we switched to "operationIDs.json"

@designatednerd
Copy link
Contributor Author

May the ghost of Steve Jobs have mercy on us all.

@designatednerd designatednerd merged commit 5d9022f into main Dec 22, 2020
@designatednerd designatednerd added this to the Next Release milestone Dec 22, 2020
@designatednerd designatednerd deleted the add/spm-5.3 branch December 22, 2020 22:10
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

1 participant