Skip to content

3.4.0 (iOS only)

Choose a tag to compare

@easyhooon easyhooon released this 12 Nov 06:49
· 65 commits to main since this release
ce49073

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 retentionPeriod option by @easyhooon in #291
    • DariConfiguration(retentionPeriod:), in seconds, drops messages older than the period when a new one is recorded, using Android's cutoff
    • nil keeps today's behavior; .infinity keeps 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 … } rewrites requestData, responseData and pageUrl before 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 @Sendable and runs on background threads; DariMessage has a public init for testing redactors
  • Inspect Protocol Buffers payloads by @easyhooon in #293
    • Dari.shared.interceptor(tag:protobufDecoder:) and onWebToAppProtobufRequest and friends take Data; DariProtobufDecoder maps 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
    • autoCapture and @DariBridge still 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