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

Add configuration for generating Package.swift tied to pre-release of Apollo library #3017

Closed
AnthonyMDev opened this issue May 15, 2023 · 1 comment · Fixed by apollographql/apollo-ios-dev#539
Assignees
Labels
codegen Issues related to or arising from code generation feature New addition or enhancement to existing solutions low-priority

Comments

@AnthonyMDev
Copy link
Contributor

We should be able to generated the Package.swift to use with a specific branch or local development clone of Apollo iOS.

public enum ModuleType: Codable, Equatable {
      /// Generated schema types will be manually embedded in a target with the specified `name`.
      /// No module will be created for the generated schema types.
      ///
      /// - Note: Generated files must be manually added to your application target. The generated
      /// schema types files will be namespaced with the value of your configuration's
      /// `schemaNamespace` to prevent naming conflicts.
      case embeddedInTarget(name: String)
      /// Generates a `Package.swift` file that is suitable for linking the generated schema types
      /// files to your project using Swift Package Manager.
      case swiftPackageManager(version: ApolloPackageVersion = .release)
      /// No module will be created for the generated types and you are required to create the
      /// module to support your preferred dependency manager. You must specify the name of the
      /// module you will create in the `schemaNamespace` property as this will be used in `import`
      /// statements of generated operation files.
      ///
      /// Use this option for dependency managers, such as CocoaPods. Example usage would be to 
      /// create the podspec file that is expecting the generated files in the configured output 
      /// location.
      case other
    }

    enum ApolloPackageVersion {
      case release
      case local(path: String)
      case branch(name: String)
    }
@AnthonyMDev AnthonyMDev added feature New addition or enhancement to existing solutions codegen Issues related to or arising from code generation labels May 15, 2023
@AnthonyMDev AnthonyMDev added this to the Patch Releases (1.1.x) milestone May 15, 2023
@BobaFetters BobaFetters self-assigned this Nov 27, 2024
Copy link
Contributor

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codegen Issues related to or arising from code generation feature New addition or enhancement to existing solutions low-priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants