Skip to content

Add Android native Drive host and DEBUG iOS snapshot probe - #329

Merged
tiensonqin merged 9 commits into
mainfrom
devin/1793940121-native-drive-hosts
Nov 6, 2026
Merged

tiensonqin merged 9 commits into
mainfrom
devin/1793940121-native-drive-hosts

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add opt-in platform observation/input facilities for Drive's explicit native mode, without changing production defaults or translating native actions into LUI semantic events. Driver transport and the separate XCTest runner are in logseq/drive#10.

  • Android: LuiBackend.inspect() provides copied retained nodes, incarnation guards and clipped measured geometry. The optional debug-only :drive instrumentation host uses OS MotionEvent/KeyEvent injection and a deliberately selected test IME InputConnection for Unicode/empty replacement. A standalone sample keeps runner, IME, permission and host classes out of Release; its explicit launcher preserves/restores IME selection and port forwarding. Existing Android CI compiles/tests/lints these modules.
  • iOS: DEBUG-only debugDriveSnapshot() and LUIDriveSnapshotProbe.startIfEnabled(...) expose read-only tree/geometry/native identifiers on IPv4 loopback only when explicitly enabled. Input remains exclusively in an external XCTest UI-testing target. Frame settings are restored on teardown; no callback is replaced.
  • Both guides and root migrations document lifecycle, snapshot ordering, unsupported geometry, sampled-settle limits, and the absence of semantic fallback. No MyGo SDK or pin change.

Local validation: Android full existing unit suite (71 tests), one strict v1 protocol table test, sample Debug/Release assembly, and scoped lint pass. Release manifest/dex inspection confirms no instrumentation, test IME, native host classes, INTERNET permission or debuggable flag. git diff --check passes. Hosted Android checks and Apple backend/iOS compile checks passed on the initial integration; final CI includes an upstream-main refresh. The standalone XCTest runner also passes Drive's Apple compile-only gate.

No native Android/iOS Drive device-input verification has been performed. Existing UIKit lifecycle regressions and compiler checks are not native-adapter evidence. Integrating apps must still hook up their DEBUG host and exercise input on a device/Simulator. The MyGo native adapter remains blocked by the current pinned SDK's lack of a public live-window input dispatcher.

Link to Devin session: https://app.devin.ai/sessions/9bf68438070747fb8b5c0c6718836a56
Open in Devin Desktop: https://app.devin.ai/desktop/session/9bf68438070747fb8b5c0c6718836a56?variant=devin
Requested by: @tiensonqin

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@tiensonqin
tiensonqin merged commit da2dd9b into main Nov 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant