Files
cindy/apps/mobile/package.json
Dash 05d306379f fix(mobile): 修复多类线上闪退并留存 iOS 崩溃符号
按商店后台与 Xcode Organizer 里的线上崩溃日志逐类处理:

- JS 致命错误:启动稳定后(根布局首次提交 20 秒后),渲染报错由根级
  RootErrorBoundary 显示可重新加载的错误页,回调与定时器里的未捕获报错由
  jsErrorGuard 降为非致命。窗口内保持致命,expo-updates 的错误恢复照旧回滚坏热更。
  本机诊断记录新增 `js error` 事件,只含报错类型与打包文件行列号。
- iOS 0xdead10cc:后台启动时不读取入站分享暂存区(读取期间持有 App Group 文件锁),
  回到前台再读。
- Android 图片绘制崩溃:expo-image 补丁在绘制前修正未预乘标记,画布仍拒绝时丢弃
  这张图;该模块改为从源码编译,否则补丁进不了包。
- Android 长按输入框崩溃:expo-paste-input 补丁在选区没有可见宽度时让本次触摸
  不触发长按,避开系统零尺寸拖拽缩略图的异常。
- build-ios.mjs 把 archive 里的 dSYM 打成 .dSYMs.zip 留在 .ipa 旁边。

只改变 Android 的 runtime fingerprint(iOS 不变):两个 Android 补丁须随冷更发布,
其余为纯 JS 改动。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-11 18:31:29 +13:00

138 lines
7.5 KiB
JSON

{
"name": "mobile",
"version": "1.0.0",
"license": "Apache-2.0",
"main": "index.js",
"dependencies": {
"@cindy/agent-net": "workspace:*",
"@cindy/agent-net-protocol": "workspace:*",
"@cindy/auth-client": "workspace:*",
"@cindy/device-link": "workspace:*",
"@cindy/maker-shared": "workspace:*",
"@cindy/model-providers": "workspace:*",
"@cindy/plugin-protocol": "workspace:*",
"@cindy/voice-input-core": "workspace:*",
"@expo/dom-webview": "~58.0.2",
"@expo/metro-runtime": "~58.0.17",
"@expo/ui": "~58.0.27",
"@legendapp/list": "^3.3.3",
"@noble/curves": "1.9.7",
"@noble/hashes": "^1.8.0",
"@react-native-async-storage/async-storage": "2.2.0",
"@react-native-google-signin/google-signin": "16.1.2",
"@react-native-menu/menu": "^2.0.0",
"@types/pako": "^2.0.4",
"expo": "~58.0.23",
"expo-apple-authentication": "~58.0.2",
"expo-audio": "~58.0.11",
"expo-auth-session": "~58.0.17",
"expo-blur": "~58.0.5",
"expo-build-properties": "~58.0.12",
"expo-clipboard": "~58.0.4",
"expo-constants": "~58.0.15",
"expo-crypto": "~58.0.7",
"expo-document-picker": "~58.0.4",
"expo-file-system": "~58.0.13",
"expo-font": "~58.0.11",
"expo-glass-effect": "~58.0.5",
"expo-image": "~58.0.18",
"expo-image-manipulator": "~58.0.16",
"expo-image-picker": "~58.0.10",
"expo-linking": "~58.0.16",
"expo-localization": "~58.0.5",
"expo-media-library": "~58.0.13",
"expo-network": "~58.0.4",
"expo-notifications": "~58.1.8",
"expo-paste-input": "0.2.2",
"expo-router": "~58.0.30",
"expo-secure-store": "~58.0.2",
"expo-sharing": "~58.0.22",
"expo-splash-screen": "~58.0.13",
"expo-status-bar": "~58.0.4",
"expo-updates": "~58.0.21",
"expo-video": "~58.0.13",
"expo-web-browser": "~58.0.7",
"i18next": "^26.3.6",
"lucide-react-native": "0.468.0",
"pako": "^2.1.0",
"react": "19.3.0",
"react-dom": "19.3.0",
"react-i18next": "^17.0.10",
"react-native": "0.88.1",
"react-native-gesture-handler": "~3.3.0",
"react-native-reanimated": "4.7.1",
"react-native-safe-area-context": "~5.11.1",
"react-native-screens": "~4.30.1",
"react-native-svg": "15.16.0",
"react-native-uitextview": "2.2.0",
"react-native-web": "~0.21.4",
"react-native-webview": "14.0.1",
"react-native-worklets": "0.13.0",
"xdt-ios-action-sheet": "file:./modules/xdt-ios-action-sheet",
"xdt-ios-app-distribution": "file:./modules/xdt-ios-app-distribution",
"xdt-mobile-realtime-audio": "file:./modules/xdt-mobile-realtime-audio",
"xdt-screenshot-monitor": "file:./modules/xdt-screenshot-monitor",
"xdt-tapdb": "file:./modules/xdt-tapdb",
"xdt-wechat-login": "file:./modules/xdt-wechat-login"
},
"devDependencies": {
"@types/react": "~19.3.0",
"typescript": "~6.0.3",
"vitest": "^3.2.4"
},
"scripts": {
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:scope": "node scripts/mobile-scope-guard.mjs",
"test:smoke": "vitest run src/__tests__/remoteControlSmoke.test.ts src/__tests__/mobileRemoteFlowSmoke.test.ts",
"test:web-smoke": "node scripts/expo-web-smoke.mjs",
"test:e2e:doctor": "node scripts/native-e2e-doctor.mjs",
"test:e2e:doctor:ios": "node scripts/native-e2e-doctor.mjs --platform ios --require-maestro",
"test:e2e:doctor:android": "node scripts/native-e2e-doctor.mjs --platform android --require-maestro",
"test:e2e:maestro": "node scripts/maestro-e2e.mjs",
"test:e2e:maestro:check": "node scripts/mobile-scope-guard.mjs && node scripts/maestro-flow-smoke.mjs",
"test:e2e:create-session": "node scripts/maestro-e2e.mjs --flow create_session_smoke.yaml",
"test:e2e:visual": "node scripts/maestro-e2e.mjs --flow visual_smoke.yaml --flow visual_session_idle.yaml --flow visual_session_running.yaml --flow visual_session_queue.yaml --flow visual_session_pending.yaml --flow visual_session_payload.yaml --flow visual_session_offline.yaml --flow visual_session_revoked.yaml",
"test:e2e:visual:ios": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite visual --profile ios-iphone-17-pro-expo-go --api-base http://localhost:3333",
"test:e2e:visual:android": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite visual --profile android-pixel-expo-go --api-base http://localhost:3333",
"test:e2e:visual:baseline": "node scripts/visual-baseline-check.mjs",
"test:e2e:visual:baseline:ios": "node scripts/visual-baseline-check.mjs --profile ios-iphone-17-pro-expo-go",
"test:e2e:visual:baseline:android": "node scripts/visual-baseline-check.mjs --profile android-pixel-expo-go",
"test:e2e:visual:update-baseline": "node scripts/visual-baseline-check.mjs --update",
"test:e2e:visual:update-baseline:ios": "node scripts/visual-baseline-check.mjs --update --profile ios-iphone-17-pro-expo-go",
"test:e2e:visual:update-baseline:android": "node scripts/visual-baseline-check.mjs --update --profile android-pixel-expo-go",
"test:e2e:reconnect:local": "node scripts/device-link-reconnect-smoke.mjs --start-server",
"test:e2e:local": "node scripts/local-device-link-smoke.mjs",
"test:e2e:local:fixture": "node scripts/local-device-link-smoke.mjs --mock-host",
"test:e2e:local:ios": "node scripts/local-device-link-smoke.mjs --start-server --start-expo --mock-host --profile ios-iphone-17-pro-expo-go --api-base http://localhost:3333",
"test:e2e:local:real-db:ios": "node scripts/local-device-link-smoke.mjs --start-server --start-expo --mock-host --mock-host-real-db auto --profile ios-iphone-17-pro-expo-go --api-base http://localhost:3333",
"test:e2e:local:create": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite create",
"test:e2e:local:controls": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite controls",
"test:e2e:local:voice": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite voice",
"test:e2e:local:voice:ios": "node scripts/local-device-link-smoke.mjs --start-server --start-expo --mock-host --flow-suite voice --profile ios-iphone-17-pro-native --api-base http://localhost:3333",
"test:voice-cloud:preflight": "node scripts/mobile-voice-cloud-preflight.mjs",
"test:voice-cloud:preflight:run": "node scripts/mobile-voice-cloud-preflight.mjs --run",
"test:e2e:local:file": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite file",
"test:e2e:local:media": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite media",
"test:e2e:local:visual": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite visual",
"test:e2e:local:visual:revoked": "node scripts/local-device-link-smoke.mjs --mock-host --mock-host-scenario visual --mock-host-device-id mobile-e2e-host-revoked --flow visual_session_revoked.yaml",
"test:e2e:local:visual:offline": "node scripts/local-device-link-smoke.mjs --mock-host --mock-host-scenario visual --mock-host-device-id mobile-e2e-host-offline --flow visual_session_offline.yaml",
"test:e2e:local:full": "node scripts/local-device-link-smoke.mjs --mock-host --flow-suite full",
"test:e2e:local:full:ios": "node scripts/local-device-link-smoke.mjs --start-server --start-expo --mock-host --flow-suite full --profile ios-iphone-17-pro-expo-go --api-base http://localhost:3333"
},
"expo": {
"autolinking": {
"android": {
"buildFromSource": [
"expo-image"
]
}
}
},
"private": true
}