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 a "compat" v2 CustomTypeAdapter to v3 Adapter API #3482

Merged
merged 5 commits into from
Nov 2, 2021

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Nov 2, 2021

This is part of #3410

  • duplicate CustomTypeValue and CustomTypeAdapter from v2 👉 users should be able to use them by updating imports
  • add a Version2CustomTypeAdapterToAdapter to wrap existing CustomTypeAdapter and expose them as v3 Adapter
  • add addCustomTypeAdapter on ApolloClient.Builder (and on CustomScalarAdapters) that uses Version2CustomTypeAdapterToAdapter under the hood.

…a requires optin `ApolloInternal` annotation on it
@BoD BoD merged commit 576a32c into dev-3.x Nov 2, 2021
@BoD BoD deleted the compat-v2-custom-type-adapter-to-v3-adapter branch November 2, 2021 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants