mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-03 21:40:27 +08:00
* feat(mobile): 文件预览视频改用系统播放器并显示取回与缓冲进度 - 视频预览改用 expo-video 原生播放器,控件、全屏与旋转交给系统 - 电脑上传期间按真实字节显示百分比与速度 - 缓冲时显示已加载百分比;音频与 data: 地址保留 WebView 播放器 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * docs(design): 刷新设计台账以纳入原生视频播放器 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * test(mobile): 视频画布与图片 lightbox 同列恒深颜色豁免 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 原生播放器不支持的格式退回 WebView 播放器,补播放器行为测试 - 原生播放器报错(如 iOS 上的 WebM)时改用原 WebView 播放器,不再显示播放失败 - 新增 NativeVideoPlayer 行为测试:缓冲提示延迟、恢复后隐藏、计时器清理、失活暂停与错误回调 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> --------- Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
126 lines
7.3 KiB
JSON
126 lines
7.3 KiB
JSON
{
|
|
"name": "mobile",
|
|
"version": "1.0.0",
|
|
"license": "Apache-2.0",
|
|
"main": "index.js",
|
|
"dependencies": {
|
|
"@cindy/auth-client": "workspace:*",
|
|
"@cindy/device-link": "workspace:*",
|
|
"@cindy/maker-shared": "workspace:*",
|
|
"@cindy/model-providers": "workspace:*",
|
|
"@cindy/voice-input-core": "workspace:*",
|
|
"@expo/dom-webview": "~57.0.1",
|
|
"@expo/metro-runtime": "^57.0.14",
|
|
"@expo/ui": "~57.0.14",
|
|
"@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": "~57.0.23",
|
|
"expo-apple-authentication": "~57.0.1",
|
|
"expo-audio": "^57.0.4",
|
|
"expo-auth-session": "^57.0.10",
|
|
"expo-blur": "~57.0.2",
|
|
"expo-build-properties": "~57.0.20",
|
|
"expo-clipboard": "^57.0.1",
|
|
"expo-constants": "^57.0.15",
|
|
"expo-crypto": "^57.0.2",
|
|
"expo-document-picker": "~57.0.1",
|
|
"expo-file-system": "^57.0.6",
|
|
"expo-font": "~57.0.1",
|
|
"expo-glass-effect": "~57.0.1",
|
|
"expo-image": "~57.0.3",
|
|
"expo-image-manipulator": "~57.0.14",
|
|
"expo-image-picker": "^57.0.14",
|
|
"expo-linking": "^57.0.8",
|
|
"expo-localization": "~57.0.1",
|
|
"expo-media-library": "~57.0.4",
|
|
"expo-network": "~57.0.1",
|
|
"expo-notifications": "~57.0.15",
|
|
"expo-paste-input": "0.2.2",
|
|
"expo-router": "^57.0.17",
|
|
"expo-secure-store": "^57.0.2",
|
|
"expo-sharing": "~57.0.16",
|
|
"expo-splash-screen": "~57.0.8",
|
|
"expo-status-bar": "~57.0.1",
|
|
"expo-updates": "~57.0.18",
|
|
"expo-video": "~57.0.5",
|
|
"expo-web-browser": "^57.0.2",
|
|
"i18next": "^26.3.6",
|
|
"lucide-react-native": "0.468.0",
|
|
"pako": "^2.1.0",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3",
|
|
"react-i18next": "^17.0.10",
|
|
"react-native": "0.86.3",
|
|
"react-native-gesture-handler": "2.32.0",
|
|
"react-native-reanimated": "4.5.1",
|
|
"react-native-safe-area-context": "~5.7.0",
|
|
"react-native-screens": "~4.26.2",
|
|
"react-native-svg": "15.15.4",
|
|
"react-native-uitextview": "2.2.0",
|
|
"react-native-web": "^0.21.2",
|
|
"react-native-webview": "13.16.1",
|
|
"react-native-worklets": "0.10.1",
|
|
"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.2.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"
|
|
},
|
|
"private": true
|
|
}
|