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

Added Existential Any requirement #379

Merged
merged 7 commits into from
Jun 6, 2024
Merged

Added Existential Any requirement #379

merged 7 commits into from
Jun 6, 2024

Conversation

AnthonyMDev
Copy link
Contributor

This PR adds the -enable-upcoming-feature ExistentialAny flag to all targets in the project and adds the any keyword at all necessary call sites.

The code generation templates are also updated to add the any keyword where needed.

Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for apollo-ios-docc canceled.

Name Link
🔨 Latest commit a3b8905
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docc/deploys/6660b8742074300007597171

Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for eclectic-pie-88a2ba canceled.

Name Link
🔨 Latest commit a3b8905
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/6660b874aebd43000895e24d

Copy link
Member

@calvincestari calvincestari left a comment

Choose a reason for hiding this comment

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

Looks good, a couple questions:

  1. Should we standardize on swift-tools-version of 5.9 across all packages in the repo? Eg: apollo-ios-pagination still on 5.8.
  2. I think we should get the ExistentialAny setting into the codegen test configuration projects too. Knowing those build correctly will be valuable.

apollo-ios-codegen/Package.swift Show resolved Hide resolved
@BobaFetters
Copy link
Member

  1. Should we standardize on swift-tools-version of 5.9 across all packages in the repo? Eg: apollo-ios-pagination still on 5.8.

I think it makes sense to standardize this across our packages.

  1. I think we should get the ExistentialAny setting into the codegen test configuration projects too. Knowing those build correctly will be valuable.

+1

Copy link
Member

@calvincestari calvincestari left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for adding the test config setting. One last comment on the swift flag in one of the cocoapods test projects.

@@ -704,6 +704,7 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_SWIFT_FLAGS = "\"-enable-upcoming-feature ExistentialAny\"";
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this one need the enclosing " removed too? There is one more at L763 that has them too.

@AnthonyMDev AnthonyMDev merged commit b970a18 into main Jun 6, 2024
24 of 25 checks passed
@AnthonyMDev AnthonyMDev deleted the existential-any branch June 6, 2024 18:23
BobaFetters pushed a commit that referenced this pull request Jun 6, 2024
BobaFetters pushed a commit to apollographql/apollo-ios that referenced this pull request Jun 6, 2024
BobaFetters pushed a commit to apollographql/apollo-ios-codegen that referenced this pull request Jun 6, 2024
BobaFetters pushed a commit to apollographql/apollo-ios-pagination that referenced this pull request Jun 6, 2024
BobaFetters pushed a commit that referenced this pull request Jun 6, 2024
3188d6a6 Added Existential Any requirement (#379)

git-subtree-dir: apollo-ios
git-subtree-split: 3188d6a60184e826ac51a526d35a362aeba2cb9d
BobaFetters pushed a commit that referenced this pull request Jun 6, 2024
git-subtree-dir: apollo-ios
git-subtree-mainline: 94be720
git-subtree-split: 3188d6a60184e826ac51a526d35a362aeba2cb9d
BobaFetters pushed a commit that referenced this pull request Jun 6, 2024
d48baeb7 Added Existential Any requirement (#379)

git-subtree-dir: apollo-ios-codegen
git-subtree-split: d48baeb705e8ede2247e8ebbf2fae5c6fd0430df
BobaFetters pushed a commit that referenced this pull request Jun 6, 2024
git-subtree-dir: apollo-ios-codegen
git-subtree-mainline: 64a1859
git-subtree-split: d48baeb705e8ede2247e8ebbf2fae5c6fd0430df
BobaFetters pushed a commit that referenced this pull request Jun 6, 2024
8e073198 Added Existential Any requirement (#379)

git-subtree-dir: apollo-ios-pagination
git-subtree-split: 8e073198d8bc2a206dc6e886aa9efd9dba9f9f81
BobaFetters pushed a commit that referenced this pull request Jun 6, 2024
…ement

git-subtree-dir: apollo-ios-pagination
git-subtree-mainline: 40eb7b6
git-subtree-split: 8e073198d8bc2a206dc6e886aa9efd9dba9f9f81
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.

Generated Models Will fail to compile on Xcode 15 if you enable ExistentialAny compiler flag
3 participants