-
Notifications
You must be signed in to change notification settings - Fork 95
Allow GsonBuilder to be passed in and used through Analytics and AnalyticsClient #446
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
Conversation
@pbassut - Does this make sense? Can we do this? I also wasn't sure why gsonInstance was static - not sure if I'm missing something here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All works fine!
could you help us tu run this command to fix format issues on Analytics.java, please?
mvn spotless:apply
1c3f172
to
38d1e55
Compare
Done 👍 |
@edsonjab can we merge this branch? It's also blocking us from moving to Java 17. |
@bsneed / @MichaelGHSeg Would either of you be able to review? |
Hey @edsonjab do you have any update on this PR? 🥺 |
Following up internally, stay tuned. Will get an answer this week. |
Hi @bsneed / @wenxi-zeng / @edsonjab Thanks for the approval. Unfortunately I don't have permission to hit merge - Would one of you be able to? |
Hi @louislepper we will request to merge your PR |
Released in 3.5.0 |
Hi there,
I'm getting some issues when upgrading services to Java 17, where previously Gson was able to automatically deserialise things like java.util.Optional, and java.util.Duration, but now gets exceptions due to disallowed reflection.
Can we change Analytics / AnalyticsClient, to allow the GsonBuilder to be passed in, so that consumers can provide TypeAdapters and TypeAdapter factories as needed, for deserialisation of any classes that they'd like to send in analytics messages?