Skip to content

Swift Package Manager 5.3 compatibility#1584

Merged
designatednerd merged 7 commits intomainfrom
add/spm-5.3
Dec 22, 2020
Merged

Swift Package Manager 5.3 compatibility#1584
designatednerd merged 7 commits intomainfrom
add/spm-5.3

Conversation

@designatednerd
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

1 participant