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

Move to a JSON client singleton #433

Merged
merged 5 commits into from
Jan 15, 2021
Merged

Move to a JSON client singleton #433

merged 5 commits into from
Jan 15, 2021

Conversation

lbalmaceda
Copy link
Contributor

Changes

GsonProvider has been historically constructing instances of the Gson client that were not being shared. This PR changes that into using a kotlin object (thread-safe singleton) that will be reused across the entire library. Since this client property has an internal visibility, classes using it were required to be migrated to kotlin. That includes tests.

Depends on #427. Merge that and rebase before reviewing this or review from 97f0099 on.

@lbalmaceda lbalmaceda added this to the v2-Next milestone Jan 14, 2021
@lbalmaceda lbalmaceda requested a review from jimmyjames January 14, 2021 17:53
@lbalmaceda lbalmaceda requested a review from a team as a code owner January 14, 2021 17:53
@jimmyjames jimmyjames self-requested a review January 15, 2021 14:35
@lbalmaceda lbalmaceda merged commit 255e682 into v2-dev Jan 15, 2021
@lbalmaceda lbalmaceda modified the milestones: v2-Next, 2.0.0-beta.0 Jan 19, 2021
@lbalmaceda lbalmaceda deleted the ft-gson-singleton branch January 20, 2021 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants