mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
* fix(mobile): wall hosts that cannot serve the page instead of opening native screens * refactor(mobile): drop the native-route state and the shell fallback prop; unknown routes say unavailable * test(mobile): read the nullable page route refusal in its policy test * refactor(mobile): every build is the OTA shell; drop the native/OTA build switch The owner retired the native-screen fallback with no emergency native build, so EXPO_PUBLIC_MOBILE_SHELL, mobileShellBuildKind, shellSwitchDecision, the Metro cache-key suffix and both release workflows' shell input go. Every host route mounts the shell; a route naming no screen the shell could open gets the existing refusal screen instead of a native screen. Claude-Session: https://claude.ai/code/session_6cea92f6 * refactor(mobile): drop the dead web route, flag-era comments and the one-value shell kind The host route files no longer switch, so their comments say what they do now: a route naming no screen shows the unavailable screen. app/h/[hostId]/web.tsx duplicated index.tsx and nothing linked to it, so it and its stack entry go (the bundle sweep is re-measured: 77 scripts at 15 routes). Diagnostics print the bridge protocol on its own instead of a shell kind that has one value. Claude-Session: https://claude.ai/code/session_6cea92f6
14 lines
512 B
JavaScript
14 lines
512 B
JavaScript
const path = require('node:path')
|
|
const { getDefaultConfig } = require('expo/metro-config')
|
|
|
|
const projectRoot = __dirname
|
|
const sharedRoot = path.resolve(projectRoot, '..', 'src', 'shared')
|
|
|
|
const config = getDefaultConfig(projectRoot)
|
|
|
|
// Why: mobile source-control prompts use the same pure builders as desktop.
|
|
// Metro only watches mobile/ by default, so make repo-root shared modules visible.
|
|
config.watchFolders = Array.from(new Set([...(config.watchFolders ?? []), sharedRoot]))
|
|
|
|
module.exports = config
|