Skip to content

Conversation

@AnthonyMDev
Copy link
Contributor

@AnthonyMDev AnthonyMDev commented Nov 5, 2025

Fixes apollographql/apollo-ios#3599

This PR provides a new static var defaultMockValue: Self on ScalarType and CustomScalarType. Generated mocks now use this property for initializer default values for custom scalars. This hides the SPI usage internal to the new computed property accessor.

This PR also makes some changes to the TestCodegenConfigurations.

  • Running test configurations will now fail when any test project fails. Previously the XCFramework target was failing silently.
  • Fixed XCFramework test configuration to build internal frameworks (disabling library evolution) instead of distributable frameworks.

@netlify
Copy link

netlify bot commented Nov 5, 2025

Deploy Preview for apollo-ios-docc canceled.

Name Link
🔨 Latest commit b9662f2
🔍 Latest deploy log https://app.netlify.com/projects/apollo-ios-docc/deploys/690bd4938eb290000937a292

@apollo-librarian
Copy link

apollo-librarian bot commented Nov 5, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 2c749f196a790aa62ff29b96
Build Logs: View logs

@AnthonyMDev AnthonyMDev mentioned this pull request Nov 5, 2025
3 tasks
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.

One question..

@AnthonyMDev AnthonyMDev merged commit 551cbe8 into main Nov 5, 2025
21 checks passed
@AnthonyMDev AnthonyMDev deleted the 3599-mock-custom-scalar branch November 5, 2025 23:03
BobaFetters pushed a commit that referenced this pull request Nov 5, 2025
BobaFetters pushed a commit to apollographql/apollo-ios that referenced this pull request Nov 5, 2025
BobaFetters pushed a commit to apollographql/apollo-ios-codegen that referenced this pull request Nov 5, 2025
BobaFetters pushed a commit that referenced this pull request Nov 5, 2025
bdb9db0f2 3599 mock custom scalar (#838)

git-subtree-dir: apollo-ios
git-subtree-split: bdb9db0f2d15c30847e1371b9a06fa90ecbc71ac
BobaFetters pushed a commit that referenced this pull request Nov 5, 2025
git-subtree-dir: apollo-ios
git-subtree-mainline: 292442f
git-subtree-split: bdb9db0f2d15c30847e1371b9a06fa90ecbc71ac
BobaFetters pushed a commit that referenced this pull request Nov 5, 2025
88d92d525 3599 mock custom scalar (#838)

git-subtree-dir: apollo-ios-codegen
git-subtree-split: 88d92d52536f30ef8741ae8b31d0da8e3b9c0358
BobaFetters pushed a commit that referenced this pull request Nov 5, 2025
git-subtree-dir: apollo-ios-codegen
git-subtree-mainline: a9240fc
git-subtree-split: 88d92d52536f30ef8741ae8b31d0da8e3b9c0358
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.

code generation creates a mock object using an inaccessible initializer for a default value

3 participants