Repository navigation
3.4.0 (iOS only)
iOS SDK only. Android stays at 3.0.0 on Maven Central and the desktop app at 3.3.0; neither needs to update.
What's Changed
- Add a
retentionPeriodoption by @easyhooon in #291DariConfiguration(retentionPeriod:), in seconds, drops messages older than the period when a new one is recorded, using Android's cutoffnilkeeps today's behavior;.infinitykeeps everything- Like Android, a connected desktop isn't told about pruned messages
- Add a custom payload redactor by @easyhooon in #292
Dari.shared.setPayloadRedactor { message in … }rewritesrequestData,responseDataandpageUrlbefore a message reaches the desktop app, after the built-in masking- A throwing redactor hides that message's payloads and page URL instead of sending them
- The closure is
@Sendableand runs on background threads;DariMessagehas a public init for testing redactors
- Inspect Protocol Buffers payloads by @easyhooon in #293
Dari.shared.interceptor(tag:protobufDecoder:)andonWebToAppProtobufRequestand friends takeData;DariProtobufDecodermaps each handler to your own decoding closure, with no SwiftProtobuf dependency- The desktop app shows the same Decoded and Raw views as for Android; sizes report the protobuf bytes
- Raw previews are hidden with masking on or a payload redactor set
autoCaptureand@DariBridgestill record strings only
- Docs: the README is a landing page for both platforms, and the iOS guide is split into setup, capture and connection pages by @easyhooon in #284, #289 and #290
Full Changelog: 3.3.0...3.4.0