Closed lemnik closed 3 months ago
Format | Size impact of Bugsnag (kB) | Size impact of Bugsnag when Minified (kB) |
---|---|---|
APK | 1844.42 | 1668.69 |
arm64_v8a | 626.95 | 450.82 |
armeabi_v7a | 561.42 | 385.29 |
x86 | 700.66 | 524.53 |
x86_64 | 671.99 | 495.86 |
Generated by :no_entry_sign: Danger
Goal
Replace the binary event writer with a signal-safe JSON encoder.
Design
Using the same JSON encoder we use in
bugsnag-cocoa
our signal handler now dumps the event state directly as JSON, allowing more flexibility in the in-memory event model.The native events are still written to the
native
directory since thediscardClasses
cannot be evaluated during the crash. Instead a newReportDiscardScanner
class will evaluatediscardClasses
andenabledReleaseStages
on delivery, using aJsonReader
to allow early-exit when either:Testing
Relied on existing tests, with a simple unit test to ensure that legacy native events are discarded.