NewsCrawler.org

Dari: debug tool that pairs app–WebView bridge messages into request–response pairs

Dari: debug tool that pairs app–WebView bridge messages into request–response pairs
Image: news.hada.io

Dari is a debug tool that shows the bridge messages between a native app and the WebView[1] inside it, pairing each request with its response by requestId[2] on one line. Each pair shows its status, duration, formatted JSON, and the average and maximum response time for each handler, replacing manual log matching in Logcat or the Xcode console.

On desktop, the app runs on macOS, Windows and Linux. Android devices connect through adb[3], and iOS devices connect from a Mac via the Simulator or a USB device, with no proxy or certificate setup. The inspector also opens on the device itself: via a notification or shaking on Android, and from the debug menu on iOS. Bridge code is recorded without changes, using a Gradle plugin on Android and autoCapture or the @DariBridge macro on iOS. Sensitive values such as tokens and passwords can be masked, Protocol Buffers[4] payloads decoded, logs exported as text or JSON, and history kept after the app restarts.

Dari is for debug builds only, and release builds exclude it through dari-noop on Android and #if DEBUG on iOS. Connecting an iOS app to the desktop app requires a Mac, and Wi-Fi connection works only with Android for now. The project is open source under Apache-2.0. The author notes that pairing may fail with bridges built on callbacks rather than requestId.

Read the original news.hada.io

Sources

  • KRGeekNews KO

    Show GN: Dari - 앱과 웹뷰가 주고받는 브릿지 메시지를 요청·응답 짝으로 보여 주는 디버그 도구 (Android/iOS)

    4 points0 comments

Published: First seen: Читать по-русски

Open as a page