-
Notifications
You must be signed in to change notification settings - Fork 204
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
Improved EventPayload for Delivery #2092
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lemnik
requested review from
kstenerud,
tomlongridge,
YYChen01988 and
hannah-smartbear
October 23, 2024 16:37
Android notifier sizes
Generated by 🚫 Danger |
kstenerud
approved these changes
Oct 24, 2024
lemnik
force-pushed
the
PLAT-12835/improved-delivery
branch
from
October 24, 2024 07:59
997be71
to
c6c8745
Compare
YYChen01988
approved these changes
Oct 28, 2024
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.
LGTM
…yload, DeliveryStatus, and Session to allow easier development of new `Delivery` implementations
…liverable is more natural to implement from Java
…crumbs in EventPayload.trimToSize
…Static for easier use in Java
…hods to avoid breaking binary compatibility
lemnik
force-pushed
the
PLAT-12835/improved-delivery
branch
from
October 29, 2024 13:18
4387507
to
f2a0afa
Compare
Closed
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Goal
Make it easier to build new
Delivery
implementations without requiring the use of internal classes.Design
Updated the
EventPayload
class to have the trimming logic and integrity-header generation.Changeset
EventPayload
andSession
both now include atoByteArray()
function that will encode them in JSON suitable for direct delivery over HTTP.EventPayload
also includes the calculations for theBugsnag-Integrity
header, and the payload trimming logic that was previously inDefaultDelivery
A new
OkHttpDelivery
implementation ofDelivery
has been added to thebugsnag-plugin-android-okhttp
module, allowing for the reuse of externally configuredOkHttpClient
s to be used for delivery of sessions and events.Testing
New end to end scenario