-
Notifications
You must be signed in to change notification settings - Fork 731
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
Dependency Automation - Swift Package Manager #2120
Dependency Automation - Swift Package Manager #2120
Conversation
…emplates when we build them
Sources/ApolloCodegenLib/Templates/SwiftPackageManagerModuleTemplate.swift
Outdated
Show resolved
Hide resolved
Sources/ApolloCodegenLib/FileGenerators/SchemaModuleFileGenerator.swift
Outdated
Show resolved
Hide resolved
Sources/ApolloCodegenLib/Templates/SwiftPackageManagerModuleTemplate.swift
Outdated
Show resolved
Hide resolved
Sources/ApolloCodegenLib/Templates/SwiftPackageManagerModuleTemplate.swift
Outdated
Show resolved
Hide resolved
@@ -22,4 +22,16 @@ extension ApolloCodegenConfiguration { | |||
apqs: apqs | |||
) | |||
} | |||
|
|||
public static func mock( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added something similar in my most recent PR, so we should look and combine these after merging everything in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
.library(name: "\(moduleName)", targets: ["\(moduleName)"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh, this is a problem... we need to come up with a solution here to make sure we are just pulling in the same version as your project is using. Not sure what we can do about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh maybe not? Because it's "from: 1.0.0" it will resolve with whatever version you are pulling in from your projects package file right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe so. It will be tricker in the alpha release as we discussed though because 1.0.0
won't be a tag yet.
Adds support for Swift Package Manager dependency automation, generating an SPM manifest file.
The other three automation types (
.cocoapods
,.carthage
and.manuallyLinked
) intentionally throw an exception.