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

Update docs and migration guide after builder api changes #3422

Merged
merged 3 commits into from
Oct 19, 2021

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Oct 18, 2021

A followup of #3404.

Note: as discussed I've removed the Java snippets from the normalized cache doc, and that means we will probably need a specific "Java how-to" page 😊

Apollo Android 3.x instead uses Kotlin default arguments and exposes constructors as top-level functions.

For example, for `ApolloClient`:
On Apollo Android 2.x you would use the `ApolloClient.builder()` method to instantiate a new Builder. With 3.x, use the `ApolloClient.Builder()` constructor instead (notice the capital `B`).
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a deprecated builder() for the transition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely! Adding this to #3410.

Copy link
Contributor

@martinbonnin martinbonnin left a comment

Choose a reason for hiding this comment

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

A few minor comments but LGTM!

@BoD BoD merged commit 82d1a06 into dev-3.x Oct 19, 2021
@BoD BoD deleted the update-doc-after-builder-api-changes branch October 19, 2021 07:50
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.

2 participants