Skip to content

Releases

3.8.0

Choose a tag to compare

@easyhooon easyhooon released this 30 Nov 04:05
c333900

Dari now records whether a bridge message actually reached the page, follows androidx.web WebContent pages across re-attached views, and keeps bridge calls on the right page after a WebView is gone. dari, dari-core, dari-noop, dari-runtime, dari-kmp, dari-inspector-protocol and dari-gradle-plugin 3.8.0 are on Maven Central, and the Dari Swift package is at 3.8.0. The wire protocol stays at version 1, so any app and desktop combination from 2.0.0 still connects.

Behavior changes

  • The Gradle plugin now also routes WebView.evaluateJavascript call sites through DariHooks, as it already does for addJavascriptInterface. Use plugin 3.8.0 with dari / dari-noop 3.8.0: plugin 3.8.0 with dari 3.7.0 fails on the first evaluateJavascript call. (#316)
  • MessageEntry gains a delivery property. Binary callers of the 3.7 constructors keep working, but code compiled against 3.7 that calls MessageEntry.copy (for example a custom DariPayloadRedactor) must be recompiled; source stays compatible. (#316)

What's Changed

  • feat: record whether a message reached the page by @easyhooon in #316
    • Closes #313. A Web → App response or an App → Web request now carries a delivery state (PENDING, DELIVERED, FAILED), separate from its status. The in-app, iOS and desktop detail views show it; a message still pending 5 s after it was sent reads "Not confirmed: the page never ran it".
    • Android: a message is marked delivered when a script run on its own WebView names its requestId in quotes, or when the page answers an App → Web request. Custom interceptors get DariInterceptor.onDeliveryChanged (default no-op).
    • iOS auto capture marks scripts DELIVERED from evaluateJavaScript completions, or FAILED when the script threw or WebKit couldn't run it.
    • Existing entries load with no delivery state (DB 7 → 8). Older desktops ignore the new field.
  • feat(sample): WebContent screen and page URL fix after re-attach by @easyhooon in #312
    • Bridge calls from an androidx.web WebContent page keep their interceptor, page URL and tag when the page moves to a new WebContentView (rotation, navigation back). WebContentView is matched by class name, so dari has no androidx.web dependency.
    • Adds a WebContent screen to the Android sample and a WebContent section to the interceptor guide.
  • fix(auto): keep bridge calls on their page after the WebView is collected by @easyhooon in #315
    • Closes #314. A bridge call that arrived after its WebView was garbage collected could be recorded under another WebView's page. It now stays on the page it was registered on, and a bridge shared by several WebViews records under each WebView's own JS name.
  • Docs and samples: the Kotlin Multiplatform guide (#305) and README section (#308), dari-kmp traffic in the Android sample (#306), and troubleshooting for an empty desktop detail pane (#309).

Desktop app downloads

Installers for macOS (Apple Silicon and Intel, signed and notarized), Windows (.exe and .msi) and Linux x64 (preview, .deb and .tar.gz) are attached below, with SHA-256 files. See the Desktop App guide for install steps, or install from the terminal on macOS:

curl -fsSL https://raw.githubusercontent.com/easyhooon/dari/main/scripts/install-desktop.sh | bash

Full Changelog: 3.7.0...3.8.0

3.7.0

Choose a tag to compare

@easyhooon easyhooon released this 15 Nov 13:29
7bbc319

Dari now supports Kotlin Multiplatform. The new dari-kmp artifact lets a WebView bridge kept in commonMain record on Android and iOS with one call. dari, dari-core, dari-noop, dari-runtime, dari-kmp, dari-inspector-protocol and dari-gradle-plugin 3.7.0 are on Maven Central, and the Dari Swift package is at 3.7.0.

Existing apps need no migration. The Android library jumps from 3.0.0 to 3.7.0 to rejoin the shared number line (3.1.0–3.6.0 were desktop- and iOS-only releases), and the wire protocol stays at version 1.

What's Changed

  • feat: add dari-kmp, a KMP entry point backed by the Swift SDK on iOS by @easyhooon in #304
    • DariKmp.createInterceptor(tag) in commonMain returns a DariInterceptor?. On Android it uses whichever of dari / dari-noop the app depends on; on iOS it forwards to the Dari Swift SDK at runtime, with no linked library.
    • If the Swift SDK is missing or older than dari-kmp, the factory returns null and logs once instead of crashing. JVM targets return null, so Compose Multiplatform apps with a desktop target can keep the call in commonMain.
    • The Swift SDK gains DariObjC / DariObjCInterceptor, an @objc entry point. The Swift API is unchanged.
    • Adds sample-kmp and the Kotlin Multiplatform guide.
  • Docs: platform differences between Android and iOS (#298), WebView app wording (#303), and the project intro without Chucker (#302).

Desktop app downloads

Installers for macOS (Apple Silicon and Intel, signed and notarized), Windows (.exe and .msi) and Linux x64 (preview, .deb and .tar.gz) are attached below, with SHA-256 files. See the Desktop App guide for install steps, or install from the terminal on macOS:

curl -fsSL https://raw.githubusercontent.com/easyhooon/dari/main/scripts/install-desktop.sh | bash

Full Changelog: 3.6.0...3.7.0

3.6.0 (iOS only)

Choose a tag to compare

@easyhooon easyhooon released this 13 Nov 00:43
c1796e4

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

  • Keep recorded messages across relaunches by @easyhooon in #300
    • Opt in with DariConfiguration(persistsMessages: true): messages are written to Application Support/Dari/messages.jsonl and come back on the next start(), in the in-app inspector and the desktop app
    • Stored messages load in the background, so start() doesn't slow app launch; maxEntries and retentionPeriod apply to them too
    • Responses never complete a request from an earlier launch, even when the bridge reuses callback ids
    • Payloads are stored as recorded; the file is excluded from backups, protected until first unlock, and deleted by Clear or by starting with persistsMessages: false
    • No total size cap yet, matching Android; a cap for both platforms is tracked in #299

Full Changelog: 3.5.0...3.6.0

3.5.0 (iOS only)

Choose a tag to compare

@easyhooon easyhooon released this 12 Nov 07:59
d54b22e

iOS SDK only. Android stays at 3.0.0 on Maven Central and the desktop app at 3.3.0; neither needs to update.

Behavior changes

  • The Swift package now needs iOS 16. Apps whose deployment target is iOS 15 can't add 3.5.0 through SPM, even with import Dari behind #if DEBUG; stay on 3.4.0 until they move to 16. (#295)

What's Changed

  • Add an in-app inspector (DariUI) by @easyhooon in #295
    • New optional DariUI library: Dari.shared.presentInspector() from your debug menu, or DariInspectorView in your own sheet
    • Lets QA and web developers check bridge messages on a device without a Mac
    • Searchable list, Overview / Request / Response with pretty JSON, protobuf Decoded / Raw
    • Share one message as text, export all as text or JSON (same format as Android and the desktop app), clear
    • Mask Sensitive Values switch, remembered across launches, masks the list, search, detail, share and export with the desktop's rules
    • Built from system components, so it follows the host app's look, including Liquid Glass on iOS 26+
    • Desktop masking and setPayloadRedactor apply only to what's sent to the desktop app
    • Sample app gets an Inspector button; the iOS guide and README describe the new library

Full Changelog: 3.4.0...3.5.0

3.4.0 (iOS only)

Choose a tag to compare

@easyhooon easyhooon released this 12 Nov 06:49
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

3.3.0 (Desktop only)

Choose a tag to compare

@easyhooon easyhooon released this 06 Nov 06:33
d35abd7

Desktop app only. The library stays at 3.0.0, so there is no 3.3.0 on Maven Central and apps don't need to update.

Behavior changes

  • The desktop app now checks for updates every hour instead of every six hours, still with a single request to github.com and nothing else sent. (#273)

What's Changed

  • feat(desktop): pair Android devices over Wi-Fi with QR or pairing code by @easyhooon in #282
    • Session → Pair Device over Wi-Fi… pairs an Android 11+ phone for wireless debugging with a QR code or a 6-digit pairing code, the way Android Studio does. The "No device" screen has the same button.
    • A phone on USB and Wi-Fi at once is listed once.
    • On macOS, an adb server Dari starts uses Bonjour for discovery, which finds phones on office Wi-Fi where the default backend didn't.
  • perf(desktop): check for updates every hour instead of every six by @easyhooon in #273
    • A release published while Dari is open now shows the Update button within an hour.
  • fix(desktop): don't fail a staged update on a busy DMG detach by @easyhooon in #275
    • On macOS, updating failed with couldn't unmount ... Resource busy while an iOS simulator was running. The update now finishes anyway.
    • Clicking Update failed checks again and brings the Update button back.
  • fix(desktop): hint at a backgrounded app while a detail load waits by @easyhooon in #279
    • When the app is in the background, the system can pause it and details can't load. After 2 seconds the pane now says so instead of showing a spinner for 10 seconds.
  • fix: brace $arch before the ellipsis in install-desktop.sh by @easyhooon in #277
    • The Terminal installer no longer stops with arch…: unbound variable on macOS.
  • chore: bump the desktop app to 3.3.0 by @easyhooon in #278

Desktop app downloads

Installers for macOS (Apple Silicon and Intel, signed and notarized), Windows (.exe and .msi) and Linux x64 (preview, .deb and .tar.gz) are attached below, with SHA-256 files. See the Desktop App guide for install steps, or install from the terminal on macOS:

curl -fsSL https://raw.githubusercontent.com/easyhooon/dari/main/scripts/install-desktop.sh | bash

Updating from 3.2.1 or earlier on macOS with an iOS simulator running can still fail, because the fix ships in the new version. Shut down the simulator first, or use the Terminal installer above.

Full Changelog: 3.2.1...3.3.0

3.2.1 (Desktop only)

Choose a tag to compare

@easyhooon easyhooon released this 05 Nov 08:37
a8c1626

Desktop app only. The library stays at 3.0.0, so there is no 3.2.1 on Maven Central and apps don't need to update.

What's Changed

  • fix(desktop): keep Copy clear of a bare primitive payload by @easyhooon in #271
    • A payload that is a single JSON string (e.g. a token) no longer runs under the Copy button in the detail pane.
  • chore: bump the desktop app to 3.2.1 by @easyhooon in #272

Desktop app downloads

Installers for macOS (Apple Silicon and Intel, signed and notarized), Windows (.exe and .msi) and Linux x64 (preview, .deb and .tar.gz) are attached below, with SHA-256 files. See the Desktop App guide for install steps, or install from the terminal on macOS:

curl -fsSL https://raw.githubusercontent.com/easyhooon/dari/main/scripts/install-desktop.sh | bash

Full Changelog: 3.2.0...3.2.1

3.2.0 (iOS only)

Choose a tag to compare

@easyhooon easyhooon released this 04 Nov 16:56
f30e1b7

iOS SDK only. Android stays at 3.0.0 on Maven Central and the desktop app at 3.0.0; neither needs to update.

What's Changed

  • Record message handlers with @DariBridge macros by @easyhooon in #269
    • New opt-in DariMacros product. @DariBridge(tag:parseMessage:) on a WKScriptMessageHandler records each message at compile time, with no swizzling
    • Covers sync, replyHandler and async handlers, and handlers declared in extensions
    • dariEvaluateJavaScript and dariCallAsyncJavaScript record App → Web calls without hooks
    • With autoCapture also on, each message is recorded once
    • Needs Xcode 16 or later; swift-syntax runs on the host and isn't linked into the app
    • Sample app records its bridge with @DariBridge; the iOS guide walks through setup in English and Korean

Full Changelog: 3.1.0...3.2.0

3.1.0 (iOS only)

Choose a tag to compare

@easyhooon easyhooon released this 04 Nov 14:40
9538c00

iOS SDK only. Android stays at 3.0.0 on Maven Central and the desktop app at 3.0.0; neither needs to update. Update the Dari Swift package to 3.1.0.

What's Changed

  • feat(ios): capture WebKit bridge traffic automatically by @easyhooon in #264
    • Pass autoCapture: DariAutoCapture() to DariConfiguration and Dari records WKScriptMessage handlers (with and without reply) and evaluateJavaScript calls without manual DariInterceptor calls, like the Android Gradle plugin.
    • The default parsers read handler, requestId and data from message bodies and name scripts after the function they call; pass parseMessage / parseScript for other bridge shapes.
    • Start Dari before creating web views; handlers added earlier aren't wrapped.
    • The sample-ios app now records through autoCapture.
  • Docs: Swift Package Index badges in the README (#262).

Full Changelog: 3.0.0...3.1.0

3.0.0

Choose a tag to compare

@easyhooon easyhooon released this 29 Oct 13:44
1850184

Dari now inspects iOS apps. The Dari Swift package records WKWebView bridge traffic, and the desktop app shows it next to your Android apps. dari, dari-core, dari-noop, dari-runtime, dari-inspector-protocol and dari-gradle-plugin 3.0.0 are on Maven Central.

Android apps need no migration. The wire protocol stays at version 1, so desktop 3.0.0 still connects to Android apps on 2.x, and older desktop apps keep working with Android apps on 3.0.0. iOS apps need desktop 3.0.0 or later.

What's Changed

  • feat: inspect iOS Simulator apps from the desktop app by @easyhooon in #256
    • New Dari Swift package (iOS 15+). Add https://github.com/easyhooon/dari from 3.0.0, call Dari.shared.start() in debug builds and record calls with Dari.shared.interceptor(tag:). Pairing, tags, fire-and-forget, truncation and masking match Android.
    • Apps serve the inspector protocol on 127.0.0.1 only. The desktop app finds them under an iOS Simulator device, and works on a Mac without adb.
    • The handshake gains optional platform and osVersion. The status line and exports show the iOS version.
  • feat: inspect iOS apps on USB devices from the desktop app by @easyhooon in #257
    • iPhones and iPads attached over USB appear under their own name, reached through macOS's usbmuxd. Unplugging, replugging and app restarts reconnect on their own.
    • iOS connections are macOS-only by design; Wi-Fi is not offered.
    • Adds the sample-ios app and the iOS guide with install, compatibility and troubleshooting.
  • fix(desktop): restore the main window on a secondary screen by @easyhooon in #259
    • A window last placed on another screen no longer reopens at the minimum size on the main screen.
  • fix(desktop): readable dropdown chevrons and a sensible export folder by @easyhooon in #260
    • Pickers and the Export button draw a clearer chevron. The save dialog opens in the last export folder, or Downloads the first time, instead of /Applications.
  • test(desktop): fix race in FinishLinuxUpdateScriptTest by @easyhooon in #258
  • fix: skip rounded Scarf download observations by @easyhooon in #254
  • Docs: README and site now describe Android and iOS (#261).

Desktop app downloads

Installers for macOS (Apple Silicon and Intel, signed and notarized), Windows (.exe and .msi) and Linux x64 (preview, .deb and .tar.gz) are attached below, with SHA-256 files. See the Desktop App guide for install steps, or install from the terminal on macOS:

curl -fsSL https://raw.githubusercontent.com/easyhooon/dari/main/scripts/install-desktop.sh | bash

Full Changelog: 2.9.0...3.0.0