Repository navigation
feat(ios): add an in-app inspector (DariUI) - #295
Merged
Merged
Conversation
List, detail, search and share, opened with Dari.shared.presentInspector(). Raises the package minimum to iOS 16. Refs #288
BridgeMacroTests shares 38700-38707, and stopped listeners hold a port for up to 250 ms.
Ship DariUI and the iOS 16 minimum from the root Package.swift, parse JSON before reindenting, match the Kotlin export's key order and nulls, and format payloads off the main thread.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
The background pass could fall behind live traffic and left raw values on screen and in exports until it caught up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Step 1 of #288: an in-app inspector for iOS, so QA and web developers can check bridge messages on a device without a Mac. Refs #288 (steps 2+ stay open).
Behavior changes
import Daribehind#if DEBUG; stay on 3.4.0 until they move to 16.Changes
DariUIproduct (rootPackage.swiftanddari-ios/Package.swift), so apps that only use the desktop app don't link UI code.Dari.shared.presentInspector()shows it over the frontmost screen, andDariInspectorViewcan go in an app's own.sheet.DariUIreads the store throughpackageaccess; nothing new is public inDaribeyond whatDariUIexposes.retentionPeriodandmaxEntriesdrops show up. It followsDari.stop()/start()while open.ios/index.mdx(+ ko), iOS 16 requirement, README tables.ProtobufTestsgets its own port range; it shared 38700–38707 withBridgeMacroTestsand failed intermittently.Notes for reviewers
setPayloadRedactorapply only to what's sent to the desktop app; the in-app view has its own switch, as on Android.swift test(newDariUITests), a Swift 6 consumer of both the root package anddari-iosbuilding for the iOS Simulator, and the sample on an iOS 27 Simulator (list, detail, protobuf Raw, empty state, JSON export share sheet). Not run on a physical device or iPad.