Skip to content

chore(mobile): adopt Expo 58 and the supported iOS scene lifecycle - #33155

Draft
kazu-42 wants to merge 4 commits into
stablyai:mainfrom
kazu-42:kazu-42/mobile-expo58
Draft

kazu-42 wants to merge 4 commits into
stablyai:mainfrom
kazu-42:kazu-42/mobile-expo58

Conversation

@kazu-42

@kazu-42 kazu-42 commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Move the mobile app onto Expo's supported iOS scene lifecycle so it can use the iOS 27.1 SDK without a custom AppDelegate generator. This is the runtime prerequisite for iPhone Duo; the fold layout and terminal controls are in dependent PR #33157.

What Changed

  • Align Expo 58.0.16, React Native 0.88, React 19.3 and the native packages with Expo's published compatibility matrix. Keep the existing three-day package release-age policy.
  • Let Expo prebuild generate SceneDelegate and the single-scene manifest. Select Xcode 27.1 for iOS releases and keep the window-controls inset probe attached after scene creation.
  • Preserve Orca's composition, dictation, recycled-text and WebView subframe protections when moving the dependency patches. Remove the notification retry patch because upstream now clears failed requests, and remove the query-string override because the new Router no longer needs it.
  • Await asynchronous file writes, copies, moves and chunk reads; retain synchronous media staging where callers require a completed file. Replace removed InteractionManager calls with cancellable delayed focus, and migrate refs/styles and test fixtures to the new public types.
  • Apply the small iOS bridge-proxy compatibility fix from fix(ios): read the JSI runtime from the bridge proxy instead of RCTCxxBridge serenity-kit/react-native-libsodium#109 after reproducing its RCTCxxBridge compile failure. The C++ crypto implementation and Android binding are unchanged.
  • Move module imports to Expo's public API and use legacyResolver at the microphone permission callback boundary. Remove retired config fields while preserving splash settings and Android LAN access through their supported plugins.
  • Share React Native Web's asset registry with SVG in the existing page bundler, so numeric image IDs still resolve after the native package removes the old registry import.

Why

Expo now provides the lifecycle that #32733 implements locally for Expo 55. Using the supported runtime avoids maintaining a parallel AppDelegate while keeping the Duo UI independently reviewable. The window attachment is adapted from Lars Keggenhoff's work in #32733, credited in the commit.

This raises the minimum supported iOS version to 16.4, as required by Expo 56 and later. Native development clients must be rebuilt. SDK 56/57 migration notes were reviewed; validation here is against the final SDK 58 configuration.

Linked Issue

Prerequisite for #22597. This PR addresses the runtime/build portion; it does not claim the complete Duo acceptance criteria are met.

Visual Proof

N/A — this PR upgrades the runtime and preserves existing screen layouts. Duo-specific layout and interaction evidence belongs to the dependent UI PR. Native launch/link acceptance is still outstanding.

Testing

On macOS:

  • Full mobile suite: 1,112 suites passed, 2 skipped; 11,370 tests passed, 6 skipped.
  • Production typecheck passed. Test typecheck ratchet passed: 1,109 test files in the program, the existing 112-file baseline unchanged.
  • Mobile lint, native import checks, formatting, max-lines ratchet and root/mobile shared dependency checks passed. Commit hooks ran normally.
  • iOS prebuild, CocoaPods installation and the arm64 iPhone simulator compile passed with Xcode 27.2 beta 2, including the libsodium and microphone-permission compatibility fixes. The final generated native project was rebuilt successfully after the config migration.
  • pnpm build:mobile-web and its existing budget/hash verifier passed. Four focused web build/manifest/serializer/asset-registry suites passed, 54 tests total.
  • File-operation regression tests first reproduced early completion and lost rejections, then passed after awaiting the native operations.
  • No iPhone Duo simulator/runtime is installed here. Cold/warm pairing links, notification delivery, native crypto startup, physical devices, Android builds and release archives have not been accepted.

Expo Doctor passes 18/20 checks, including config schema and public-API dependency checks. The remaining reports are React Native Directory metadata for local modules/libsodium, and newer SDK 58 patches still inside the repository's release-age window. The installed packages match the selected published SDK 58.0.16 matrix; no policy exclusions or warning suppressions were added.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Implemented and checked with OpenAI Codex (GPT-6). No device results from #32733 are claimed as validation of this branch.

Review

Review file-operation ordering, native input/WebView patch preservation, the libsodium runtime getter and the iOS support-floor change. Keep this draft until native launch/link/crypto smoke checks are recorded. Roll back by reverting the runtime commits and rebuilding the native app; a JavaScript-only update cannot restore an older native runtime.

Agent skill upstream boundary

  • Not applicable; this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Desktop dependencies and the remote transport protocol are unchanged. SSH and folder workspaces retain the same execution host and session ownership. Native package changes still require Android regression verification.

Checklist

  • Runtime prerequisite separated from Duo UI
  • User-facing effect, mechanism and alternatives explained
  • Visual-proof scope explained
  • Self-reviewed for correctness, security and performance
  • Cross-platform, SSH/remote and workspace impact considered
  • Native runtime acceptance and hosted CI completed

kazu-42 and others added 4 commits October 24, 2026 21:51
Align React Native and native packages with Expo SDK 58, preserve input and WebView protections, and await asynchronous file operations. Keep the existing release-age policy and document the iOS 16.4 minimum.

Window-controls scene attachment adapted from stablyai#32733.

Co-authored-by: Lars Keggenhoff <[email protected]>
Apply the narrow bridge-proxy runtime fix from serenity-kit/react-native-libsodium#109. Preserve the existing C++ crypto implementation and synchronous installation path.
Use Expo public module APIs, preserve Android cleartext access through build-properties, and use legacyResolver at the microphone permission callback boundary.
Keep splash options in the supported plugin and share React Native Web numeric image IDs with SVG. Validate the actual bundled SVG resolver against the web registry.

This branch has not been deployed

No deployments
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