mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-03 11:10:55 +08:00
Merge pull request #9908 from makecindy/cindy/sweet-babbage
fix(mobile): 修复多类线上闪退并留存 iOS 崩溃符号
This commit is contained in:
@@ -11,6 +11,7 @@ import { HomeRosterStoreProvider } from '@/session/HomeRosterContext';
|
||||
import { PluginPromptReadsProvider } from '@/plugins/PluginPromptReadsContext';
|
||||
import { AndroidUpdateSheet } from '@/update/AndroidUpdateSheet';
|
||||
import { PeerFileTransport } from '@/device-link/peerFileTransport';
|
||||
import { noteRootCommitted } from '@/debug/jsErrorGuard';
|
||||
import { startLocalDiagnostics } from '@/debug/localDiagnostics';
|
||||
import { MobileOutboxBridge } from '@/session/MobileOutboxBridge';
|
||||
import { RemoteHistoryPrefetchBridge } from '@/session/RemoteHistoryPrefetchBridge';
|
||||
@@ -31,6 +32,7 @@ import { useTranslation } from 'react-i18next';
|
||||
import { Alert, AppState, Platform, Pressable, StyleSheet, View } from 'react-native';
|
||||
import { Text } from '@/components/AppText';
|
||||
import { ConnectionNoticeProvider } from '@/components/ConnectionNoticeOverlay';
|
||||
import { RootErrorBoundary } from '@/components/RootErrorBoundary';
|
||||
import { fontWeight, lineHeight, radius, spacing, typeScale, useThemedStyles, type ThemeColors } from '@/theme';
|
||||
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
||||
import { AdaptiveWindowProvider } from '@/platform/AdaptiveWindow';
|
||||
@@ -425,7 +427,13 @@ function RootAfterUpdateChannel({ channel }: { channel: UpdateChannel }) {
|
||||
<AgentActivityBridge />
|
||||
{/* 掌机模式:手柄语音键 / 焦点导航 / 副屏(仅含 cindy-handheld 的 Android 原生包,不渲染 UI) */}
|
||||
<HandheldModeBridge />
|
||||
<NavigationGate />
|
||||
{/* 渲染兜底:启动稳定后,页面树里任何一处渲染报错都落到这里,显示可重新加载的错误页而不是
|
||||
让 App 退出。只包页面树、留在 AuthProvider / DeviceLinkProvider 里面:重新加载只重挂页面,
|
||||
不会重建登录与设备连接——重建 AuthProvider 会让可能仍在途的令牌刷新与新实例的刷新
|
||||
各用同一个会轮换的令牌,被服务端拒绝时会清掉登录状态(登出)。 */}
|
||||
<RootErrorBoundary fallback={renderErrorFallback}>
|
||||
<NavigationGate />
|
||||
</RootErrorBoundary>
|
||||
</DeviceLinkProvider>
|
||||
</AuthProvider>
|
||||
);
|
||||
@@ -446,6 +454,11 @@ function RootAfterEndpoints() {
|
||||
|
||||
function RootLayout() {
|
||||
useEffect(() => startLocalDiagnostics(), []);
|
||||
// JS 报错兜底的启动窗口从根布局首次提交起算(见 jsErrorGuard):窗口内报错照旧致命,
|
||||
// 留给热更新的错误恢复回滚;窗口之后才显示错误页 / 继续运行。
|
||||
useEffect(() => {
|
||||
noteRootCommitted();
|
||||
}, []);
|
||||
// Dev-only:注册开发者菜单的"清缓存 + reload"项(内部 __DEV__ gate,生产为 no-op)。
|
||||
useEffect(() => {
|
||||
registerDevCacheMenu();
|
||||
@@ -540,6 +553,23 @@ function RootLayout() {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 渲染兜底页:与启动闸门同一套阻断内容层(标题 / 说明 / 唯一动作),唯一动作是重新加载——
|
||||
* 丢弃出错的页面树并重新挂载它。
|
||||
*/
|
||||
function renderErrorFallback(retry: () => void): ReactElement {
|
||||
return (
|
||||
<MobileLoginHandoffStage staticBrand>
|
||||
<StartupGateBlockedContent
|
||||
title={loginText('renderErrorTitle')}
|
||||
subtitle={loginText('renderErrorSubtitle')}
|
||||
actionLabel={loginText('renderErrorAction')}
|
||||
onAction={retry}
|
||||
/>
|
||||
</MobileLoginHandoffStage>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动闸门阻断内容层(StartupBlockedScreen 的白底体系消费变体,PR4a):
|
||||
* 品牌视觉由 MobileLoginHandoffStage 宿主拥有,本层背景透明、内容沉到下半屏
|
||||
|
||||
@@ -5,6 +5,8 @@ if (typeof globalThis.SharedArrayBuffer === 'undefined') {
|
||||
}
|
||||
|
||||
require('./src/debug/quietDevLogs').installDevLogFilters();
|
||||
// 启动稳定后,回调里的未捕获 JS 报错不再让 App 退出(开发构建不启用,保留红屏)。
|
||||
require('./src/debug/jsErrorGuard').installJsErrorGuard();
|
||||
if (__DEV__ && process.env.EXPO_PUBLIC_CINDY_MOBILE_VISUAL_MOCK === '1'
|
||||
&& process.env.EXPO_PUBLIC_CINDY_AGENT_NET_SMOKE === '1') {
|
||||
void require('./src/debug/agentNetNativeSmoke').runAgentNetNativeSmoke();
|
||||
|
||||
@@ -124,5 +124,14 @@
|
||||
"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
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
// build-ios.mjs —— iOS 纯构建(本机出签名 .ipa,不含任何上传 / 分发 / 发布)
|
||||
//
|
||||
// 流程(--execute):git 闸门 → expo prebuild → pod install → xcodebuild archive/export
|
||||
// → .ipa → 从 .ipa 回读内嵌 runtimeVersion(EXUpdates.bundle/fingerprint,仅报告)
|
||||
// → .ipa + 同名 .dSYMs.zip(崩溃日志符号化用,须与该包一起留存)
|
||||
// → 从 .ipa 回读内嵌 runtimeVersion(EXUpdates.bundle/fingerprint,仅报告)
|
||||
// → 产物留在导出目录并打印路径(--out 可另拷一份)。
|
||||
// dry-run 纯本地:校验配置 + 打印计划,git 闸门(含 origin/main 远端比对)只在
|
||||
// --execute 时执行,分支/离线环境也能直接看计划。
|
||||
@@ -32,7 +33,7 @@
|
||||
// --execute 真正构建;缺省 dry-run 只打印计划。
|
||||
// --desktop-version x.y.z 可选。配对的桌面产品线版本号(设置页展示用),
|
||||
// 不传则不注入、设置页不显示该行。
|
||||
// --out <dir> 可选。构建完把 .ipa 另拷到该目录。
|
||||
// --out <dir> 可选。构建完把 .ipa 与 .dSYMs.zip 另拷到该目录。
|
||||
// --skip-git-gate 跳过 --execute 的 main/clean/HEAD 校验(仅本地迭代用;
|
||||
// dry-run 本就不校验)。
|
||||
//
|
||||
@@ -59,7 +60,7 @@ import {
|
||||
SELF_HOST_PUBLIC_ENV_KEYS,
|
||||
formatBakedEnvLines,
|
||||
} from './release-lib.mjs';
|
||||
import { buildExportOptionsPlist, resolveIosSigningEnv } from './lib/ios-local.mjs';
|
||||
import { archiveIosSymbols, buildExportOptionsPlist, resolveIosSigningEnv } from './lib/ios-local.mjs';
|
||||
import { clearBundlerCache } from './lib/bundler-cache.mjs';
|
||||
import { withUserGemPodOnPath } from './sim-pod-install.mjs';
|
||||
import { readEmbeddedRuntimeVersionFromIpa } from './lib/embedded-runtime.mjs';
|
||||
@@ -215,7 +216,15 @@ function buildIpa(env, region) {
|
||||
|
||||
const ipa = readdirSync(exportDir).find((f) => f.endsWith('.ipa'));
|
||||
if (!ipa) throw new Error(`export 未产出 .ipa:${exportDir}`);
|
||||
return join(exportDir, ipa);
|
||||
const ipaPath = join(exportDir, ipa);
|
||||
// archive 建在临时目录里:符号必须随 .ipa 一起留下,否则这个版本的线上崩溃日志读不出函数名。
|
||||
const symbolsPath = archiveIosSymbols({
|
||||
archivePath,
|
||||
ipaPath,
|
||||
zip: (from, to) => run('ditto', ['-c', '-k', '--keepParent', from, to]),
|
||||
fs: { existsSync, readdirSync },
|
||||
});
|
||||
return { ipaPath, symbolsPath };
|
||||
}
|
||||
|
||||
async function main() {
|
||||
@@ -294,8 +303,11 @@ async function main() {
|
||||
assertPublicEnv(env, { variant: 'production', requiredKeys: SELF_HOST_PUBLIC_ENV_KEYS });
|
||||
|
||||
iosBuildFailureStage = IOS_BUILD_FAILURE_STAGE.toolchain;
|
||||
const ipaPath = buildIpa(env, region);
|
||||
const { ipaPath, symbolsPath } = buildIpa(env, region);
|
||||
log(` ✓ ipa: ${ipaPath}`);
|
||||
log(symbolsPath
|
||||
? ` ✓ symbols: ${symbolsPath}`
|
||||
: ' warn: archive 未包含 dSYM;这个包的线上崩溃日志将无法还原成函数名');
|
||||
|
||||
iosBuildFailureStage = IOS_BUILD_FAILURE_STAGE.artifactValidation;
|
||||
// 权威 runtimeVersion = 真正烤进 .ipa 的 EXUpdates.bundle/fingerprint(仅报告,供发布侧比对)。
|
||||
@@ -303,20 +315,27 @@ async function main() {
|
||||
log(` ✓ runtimeVersion(读自 .ipa 内嵌 fingerprint): ${runtimeVersion}`);
|
||||
|
||||
let finalPath = ipaPath;
|
||||
let finalSymbolsPath = symbolsPath;
|
||||
if (typeof args.out === 'string' && args.out) {
|
||||
iosBuildFailureStage = IOS_BUILD_FAILURE_STAGE.output;
|
||||
const outDir = resolve(String(args.out));
|
||||
if (!existsSync(outDir)) mkdirSync(outDir, { recursive: true });
|
||||
finalPath = join(outDir, basename(ipaPath));
|
||||
copyFileSync(ipaPath, finalPath);
|
||||
if (symbolsPath) {
|
||||
finalSymbolsPath = join(outDir, basename(symbolsPath));
|
||||
copyFileSync(symbolsPath, finalSymbolsPath);
|
||||
}
|
||||
}
|
||||
|
||||
console.log('');
|
||||
console.log('==================== iOS 构建完成 ====================');
|
||||
console.log(` ipa : ${finalPath}`);
|
||||
console.log(` symbols : ${finalSymbolsPath ?? '(无:archive 未包含 dSYM)'}`);
|
||||
console.log(` version : ${version} (${buildNumber})`);
|
||||
console.log(` runtimeVersion : ${runtimeVersion}`);
|
||||
console.log(' 注意:本脚本只构建;签名为本机证书所签,分发/发布由发布方流程另行处理。');
|
||||
console.log(' 符号:.dSYMs.zip 请与该 .ipa 一起留存;没有它,Xcode Organizer 里这个版本的崩溃日志读不出函数名。');
|
||||
console.log('======================================================');
|
||||
}
|
||||
|
||||
|
||||
@@ -235,6 +235,22 @@ export function buildExportOptionsPlist({ teamId, bundleId, profileName, signing
|
||||
`;
|
||||
}
|
||||
|
||||
/**
|
||||
* 把 archive 里的 dSYM 打成一个 zip 放到 .ipa 旁边,返回 zip 路径;archive 没带符号时返回 null。
|
||||
* archive 建在临时目录里,不另留这一份,线上崩溃日志里 App 自身的调用帧就只剩地址,
|
||||
* Xcode Organizer 无法还原成函数名(Apple 不替未上传符号的包做符号化)。
|
||||
* `zip(fromDir, toFile)` 与 `fs` 由调用方注入,本函数不直接起进程。
|
||||
*/
|
||||
export function archiveIosSymbols({ archivePath, ipaPath, zip, fs }) {
|
||||
if (!archivePath || !ipaPath) throw new Error('archiveIosSymbols requires archivePath / ipaPath');
|
||||
const dsymDir = `${String(archivePath).replace(/\/+$/, '')}/dSYMs`;
|
||||
const hasSymbols = fs.existsSync(dsymDir) && fs.readdirSync(dsymDir).some((name) => name.endsWith('.dSYM'));
|
||||
if (!hasSymbols) return null;
|
||||
const zipPath = `${String(ipaPath).replace(/\.ipa$/i, '')}.dSYMs.zip`;
|
||||
zip(dsymDir, zipPath);
|
||||
return zipPath;
|
||||
}
|
||||
|
||||
/** 组装写入 CDN 的整包版本记录(/latest 返回体)。 */
|
||||
export function buildReleaseRecord({ version, buildNumber, runtimeVersion, installUrl, itmsUrl, releaseNotes, minVersion }) {
|
||||
if (!runtimeVersion) throw new Error('buildReleaseRecord requires runtimeVersion');
|
||||
|
||||
@@ -144,6 +144,18 @@ it('refreshes only when an account switch settles in foreground', async () => {
|
||||
expect(mock.receive).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
|
||||
// Bug (App Store crash logs, 2026-11): iOS ends a background-launched app with 0xdead10cc when it
|
||||
// is suspended while the native inbox read holds the App Group file lock. Minimal input: the
|
||||
// bridge mounts while AppState is 'background'. The read must wait for the foreground event.
|
||||
it('defers the first native read of a background launch until the app is foreground', async () => {
|
||||
mock.appState = 'background';
|
||||
await render();
|
||||
expect(mock.cleanup).not.toHaveBeenCalled();
|
||||
expect(mock.receive).not.toHaveBeenCalled();
|
||||
mock.appState = 'active'; mock.foreground!('active'); await flush();
|
||||
expect(mock.receive).toHaveBeenCalledOnce();
|
||||
});
|
||||
|
||||
it('ignores unrelated links and retries a native read on a later share notification', async () => {
|
||||
mock.receive.mockRejectedValueOnce(new Error('temporarily unavailable'));
|
||||
await render();
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
nextDateBuildNumber,
|
||||
replaceBuildNumberInAppJson,
|
||||
resolveIosSigningEnv,
|
||||
archiveIosSymbols,
|
||||
} from '../../scripts/lib/ios-local.mjs';
|
||||
|
||||
const resp = (status, { json, ok } = {}) => ({
|
||||
@@ -144,6 +145,38 @@ describe('buildExportOptionsPlist', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// 测试价值:生产入口 archiveIosSymbols(build-ios.mjs 导出 .ipa 后调用),可观察结果是 .ipa 旁边
|
||||
// 是否留下 .dSYMs.zip。依据:2026-11 排查线上崩溃时发现历史 iOS 包的符号全部随临时目录丢失,
|
||||
// App 自身调用帧无法还原。最小失败输入:archive 的 dSYMs 目录里有 .dSYM。tier:unit(注入 fs/zip)。
|
||||
describe('archiveIosSymbols(发版留存崩溃符号)', () => {
|
||||
const fsWith = (entries) => ({ existsSync: () => entries !== null, readdirSync: () => entries ?? [] });
|
||||
it('archive 带 dSYM → 打包到 .ipa 同目录同名的 .dSYMs.zip 并返回其路径', () => {
|
||||
const calls = [];
|
||||
const out = archiveIosSymbols({
|
||||
archivePath: '/tmp/build/app.xcarchive',
|
||||
ipaPath: '/tmp/build/export/Cindy.ipa',
|
||||
zip: (from, to) => calls.push([from, to]),
|
||||
fs: fsWith(['Cindy.app.dSYM', 'hermesvm.framework.dSYM']),
|
||||
});
|
||||
expect(out).toBe('/tmp/build/export/Cindy.dSYMs.zip');
|
||||
expect(calls).toEqual([['/tmp/build/app.xcarchive/dSYMs', '/tmp/build/export/Cindy.dSYMs.zip']]);
|
||||
});
|
||||
it.each([
|
||||
['没有 dSYMs 目录', null],
|
||||
['目录里没有 .dSYM', ['Info.plist']],
|
||||
])('%s → 返回 null 且不打包(由调用方告警)', (_name, entries) => {
|
||||
const calls = [];
|
||||
const out = archiveIosSymbols({
|
||||
archivePath: '/tmp/build/app.xcarchive',
|
||||
ipaPath: '/tmp/build/export/Cindy.ipa',
|
||||
zip: (from, to) => calls.push([from, to]),
|
||||
fs: fsWith(entries),
|
||||
});
|
||||
expect(out).toBeNull();
|
||||
expect(calls).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('buildReleaseRecord', () => {
|
||||
it('组装记录,可选字段按需带上', () => {
|
||||
const r = buildReleaseRecord({
|
||||
|
||||
67
apps/mobile/src/__tests__/rootErrorBoundary.test.tsx
Normal file
67
apps/mobile/src/__tests__/rootErrorBoundary.test.tsx
Normal file
@@ -0,0 +1,67 @@
|
||||
// @vitest-environment jsdom
|
||||
import { act, createElement } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { afterEach, beforeEach, expect, it, vi } from 'vitest';
|
||||
import { RootErrorBoundary } from '@/components/RootErrorBoundary';
|
||||
|
||||
// 测试价值
|
||||
// - 生产入口与可观察结果:根布局用的 RootErrorBoundary——渲染报错后用户看到错误页还是 App 退出,
|
||||
// 以及点「重试」后业务树是否重新挂载。
|
||||
// - 依据:2026-11 线上崩溃日志(JS 致命错误占 iOS 闪退约一半);启动窗口内必须保持致命,
|
||||
// 否则 expo-updates 回滚不了坏热更。
|
||||
// - 现有覆盖缺口:此前渲染路径没有根级 ErrorBoundary。
|
||||
// - 最小失败输入:子组件渲染时抛错,分别发生在启动窗口内 / 外。
|
||||
// - tier:unit(真实 React 渲染,jsdom)。
|
||||
const mock = vi.hoisted(() => ({ settled: true, record: vi.fn() }));
|
||||
vi.mock('@/debug/jsErrorGuard', () => ({
|
||||
launchSettled: () => mock.settled,
|
||||
recordJsError: mock.record,
|
||||
}));
|
||||
|
||||
(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
|
||||
let container: HTMLDivElement;
|
||||
let broken: boolean;
|
||||
const boom = new TypeError('render failed');
|
||||
function Screen() {
|
||||
if (broken) throw boom;
|
||||
return createElement('p', null, 'business tree');
|
||||
}
|
||||
function tree() {
|
||||
return createElement(RootErrorBoundary, {
|
||||
fallback: (retry: () => void) => createElement('button', { onClick: retry }, 'retry'),
|
||||
children: createElement(Screen),
|
||||
});
|
||||
}
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
mock.settled = true; broken = true;
|
||||
vi.spyOn(console, 'error').mockImplementation(() => undefined);
|
||||
container = document.createElement('div'); document.body.append(container);
|
||||
});
|
||||
afterEach(() => { container.remove(); vi.restoreAllMocks(); });
|
||||
|
||||
it('shows the retry page after the launch window and remounts the tree on retry', async () => {
|
||||
const uncaught = vi.fn();
|
||||
const root = createRoot(container, { onUncaughtError: uncaught });
|
||||
await act(async () => { root.render(tree()); });
|
||||
expect(container.textContent).toBe('retry');
|
||||
expect(mock.record).toHaveBeenCalledExactlyOnceWith('render', boom);
|
||||
expect(uncaught).not.toHaveBeenCalled();
|
||||
broken = false;
|
||||
await act(async () => { container.querySelector('button')!.click(); });
|
||||
expect(container.textContent).toBe('business tree');
|
||||
await act(async () => { root.unmount(); });
|
||||
});
|
||||
|
||||
it('lets a render error stay uncaught inside the launch window', async () => {
|
||||
mock.settled = false;
|
||||
const uncaught = vi.fn();
|
||||
const root = createRoot(container, { onUncaughtError: uncaught });
|
||||
// No boundary handled it: React reports it as uncaught (the fatal path on device) and the
|
||||
// test renderer hands the same error back to the caller.
|
||||
let thrown: unknown;
|
||||
try { await act(async () => { root.render(tree()); }); } catch (error) { thrown = error; }
|
||||
expect(thrown ?? uncaught.mock.calls[0]?.[0]).toBe(boom);
|
||||
expect(container.textContent).toBe('');
|
||||
expect(mock.record).not.toHaveBeenCalled();
|
||||
});
|
||||
@@ -129,6 +129,9 @@ const messages = {
|
||||
accountDeletionRestoredCopy:
|
||||
"本次登入已取消刪除帳號,Cindy 登入帳號將繼續保留。",
|
||||
errorFallback: "登入未完成,請重試。",
|
||||
renderErrorTitle: "畫面顯示出錯",
|
||||
renderErrorSubtitle: "重新載入後仍出錯,請重新開啟 Cindy。",
|
||||
renderErrorAction: "重新載入畫面",
|
||||
endpointGateTitle: "無法取得伺服器設定",
|
||||
endpointGateSubtitle: "請檢查網路連線後重試({reason})",
|
||||
endpointGateResetToDev: "返回 Dev",
|
||||
@@ -249,6 +252,9 @@ const messages = {
|
||||
accountDeletionRestoredCopy:
|
||||
"此番登門已撤銷刪除,Cindy 登門名籍仍予保留。",
|
||||
errorFallback: "登入未成,請再試。",
|
||||
renderErrorTitle: "畫面顯示有誤",
|
||||
renderErrorSubtitle: "重載而誤猶在,請重啟 Cindy。",
|
||||
renderErrorAction: "重載畫面",
|
||||
endpointGateTitle: "無從取得伺服器設定",
|
||||
endpointGateSubtitle: "請察網路連線後再試({reason})",
|
||||
endpointGateResetToDev: "歸 Dev",
|
||||
@@ -369,6 +375,9 @@ const messages = {
|
||||
accountDeletionRestoredCopy:
|
||||
"此番登门已撤销删除,Cindy 登门名籍仍予保留。",
|
||||
errorFallback: "登录未成,请再试。",
|
||||
renderErrorTitle: "画面显示有误",
|
||||
renderErrorSubtitle: "重载而误犹在,请重启 Cindy。",
|
||||
renderErrorAction: "重载画面",
|
||||
endpointGateTitle: "无从取得服务器设置",
|
||||
endpointGateSubtitle: "请察网络连接后再试({reason})",
|
||||
endpointGateResetToDev: "归 Dev",
|
||||
@@ -489,6 +498,9 @@ const messages = {
|
||||
accountDeletionRestoredCopy:
|
||||
"本次登录已取消账号注销,Cindy 登录账号将继续保留。",
|
||||
errorFallback: "登录未完成,请重试。",
|
||||
renderErrorTitle: "页面显示出错",
|
||||
renderErrorSubtitle: "重新加载后仍出错,请重新打开 Cindy。",
|
||||
renderErrorAction: "重新加载页面",
|
||||
endpointGateTitle: "无法获取服务器配置",
|
||||
endpointGateSubtitle: "请检查网络连接后重试({reason})",
|
||||
endpointGateResetToDev: "返回 Dev",
|
||||
@@ -621,6 +633,9 @@ const messages = {
|
||||
accountDeletionRestoredCopy:
|
||||
"This sign-in canceled account deletion. Your Cindy sign-in account will be kept.",
|
||||
errorFallback: "Sign-in did not complete. Please try again.",
|
||||
renderErrorTitle: "Couldn't Display This Screen",
|
||||
renderErrorSubtitle: "If reloading doesn't help, reopen Cindy.",
|
||||
renderErrorAction: "Reload Screen",
|
||||
endpointGateTitle: "Unable to load server configuration",
|
||||
endpointGateSubtitle:
|
||||
"Check your network connection and try again ({reason})",
|
||||
@@ -754,6 +769,9 @@ const messages = {
|
||||
accountDeletionRestoredCopy:
|
||||
"今回のログインでアカウント削除を取り消しました。Cindy ログインアカウントは引き続き保持されます。",
|
||||
errorFallback: "ログインが完了しませんでした。もう一度お試しください。",
|
||||
renderErrorTitle: "画面を表示できませんでした",
|
||||
renderErrorSubtitle: "再読み込みしても直らない場合は、Cindy を開き直してください。",
|
||||
renderErrorAction: "画面を再読み込み",
|
||||
endpointGateTitle: "サーバー設定を取得できません",
|
||||
endpointGateSubtitle:
|
||||
"ネットワーク接続を確認してから再試行してください({reason})",
|
||||
@@ -884,6 +902,9 @@ const messages = {
|
||||
accountDeletionRestoredCopy:
|
||||
"이번 로그인으로 계정 삭제가 취소되었습니다. Cindy 로그인 계정은 계속 유지됩니다.",
|
||||
errorFallback: "로그인이 완료되지 않았습니다. 다시 시도해 주세요.",
|
||||
renderErrorTitle: "화면을 표시하지 못했습니다",
|
||||
renderErrorSubtitle: "다시 불러와도 해결되지 않으면 Cindy를 다시 열어 주세요.",
|
||||
renderErrorAction: "화면 다시 불러오기",
|
||||
endpointGateTitle: "서버 설정을 가져올 수 없습니다",
|
||||
endpointGateSubtitle:
|
||||
"네트워크 연결을 확인한 후 다시 시도해 주세요({reason})",
|
||||
@@ -993,6 +1014,9 @@ const messages = {
|
||||
"accountDeletionRestoredTitle": "Cuenta restaurada",
|
||||
"accountDeletionRestoredCopy": "Este inicio de sesión canceló la eliminación de la cuenta. Tu cuenta de inicio de sesión de Cindy se conservará.",
|
||||
"errorFallback": "El inicio de sesión no se completó. Por favor inténtalo de nuevo.",
|
||||
"renderErrorTitle": "No se pudo mostrar la pantalla",
|
||||
"renderErrorSubtitle": "Si recargar no lo soluciona, vuelva a abrir Cindy.",
|
||||
"renderErrorAction": "Recargar pantalla",
|
||||
"endpointGateTitle": "No se puede cargar la configuración del servidor",
|
||||
"endpointGateSubtitle": "Verifique su conexión de red e inténtelo nuevamente ({reason})",
|
||||
"endpointGateResetToDev": "Volver a Dev",
|
||||
@@ -1100,6 +1124,9 @@ const messages = {
|
||||
"accountDeletionRestoredTitle": "Compte restauré",
|
||||
"accountDeletionRestoredCopy": "Cette connexion a annulé la suppression du compte. Votre compte de connexion Cindy sera conservé.",
|
||||
"errorFallback": "La connexion n'a pas abouti. Veuillez réessayer.",
|
||||
"renderErrorTitle": "Impossible d'afficher cet écran",
|
||||
"renderErrorSubtitle": "Si le rechargement ne suffit pas, rouvrez Cindy.",
|
||||
"renderErrorAction": "Recharger l'écran",
|
||||
"endpointGateTitle": "Impossible de charger la configuration du serveur",
|
||||
"endpointGateSubtitle": "Vérifiez votre connexion réseau et réessayez ({reason})",
|
||||
"endpointGateResetToDev": "Revenir à Dev",
|
||||
@@ -1207,6 +1234,9 @@ const messages = {
|
||||
"accountDeletionRestoredTitle": "Konto wiederhergestellt",
|
||||
"accountDeletionRestoredCopy": "Diese Anmeldung hat die Kontolöschung abgebrochen. Dein Cindy-Anmeldekonto bleibt erhalten.",
|
||||
"errorFallback": "Die Anmeldung wurde nicht abgeschlossen. Versuche es erneut.",
|
||||
"renderErrorTitle": "Bildschirm konnte nicht angezeigt werden",
|
||||
"renderErrorSubtitle": "Wenn das Neuladen nicht hilft, öffne Cindy neu.",
|
||||
"renderErrorAction": "Bildschirm neu laden",
|
||||
"endpointGateTitle": "Serverkonfiguration konnte nicht geladen werden",
|
||||
"endpointGateSubtitle": "Prüfe deine Netzwerkverbindung und versuche es erneut ({reason})",
|
||||
"endpointGateResetToDev": "Zurück zu Dev",
|
||||
@@ -1314,6 +1344,9 @@ const messages = {
|
||||
"accountDeletionRestoredTitle": "Conta restaurada",
|
||||
"accountDeletionRestoredCopy": "Este início de sessão cancelou a eliminação da conta. A sua conta de acesso à Cindy será mantida.",
|
||||
"errorFallback": "Não foi possível concluir o início de sessão. Tente novamente.",
|
||||
"renderErrorTitle": "Não foi possível mostrar o ecrã",
|
||||
"renderErrorSubtitle": "Se recarregar não resolver, volte a abrir o Cindy.",
|
||||
"renderErrorAction": "Recarregar ecrã",
|
||||
"endpointGateTitle": "Não foi possível carregar a configuração do servidor",
|
||||
"endpointGateSubtitle": "Verifique a sua ligação de rede e tente novamente ({reason})",
|
||||
"endpointGateResetToDev": "Voltar a Dev",
|
||||
@@ -1421,6 +1454,9 @@ const messages = {
|
||||
"accountDeletionRestoredTitle": "Conta restaurada",
|
||||
"accountDeletionRestoredCopy": "Este login cancelou a exclusão da conta. Sua conta de acesso à Cindy será mantida.",
|
||||
"errorFallback": "Não foi possível concluir o login. Tente novamente.",
|
||||
"renderErrorTitle": "Não foi possível exibir a tela",
|
||||
"renderErrorSubtitle": "Se recarregar não resolver, abra o Cindy novamente.",
|
||||
"renderErrorAction": "Recarregar tela",
|
||||
"endpointGateTitle": "Não foi possível carregar a configuração do servidor",
|
||||
"endpointGateSubtitle": "Verifique sua conexão de rede e tente novamente ({reason})",
|
||||
"endpointGateResetToDev": "Voltar para Dev",
|
||||
|
||||
40
apps/mobile/src/components/RootErrorBoundary.tsx
Normal file
40
apps/mobile/src/components/RootErrorBoundary.tsx
Normal file
@@ -0,0 +1,40 @@
|
||||
import { Component, Fragment, type ReactNode } from 'react';
|
||||
import { launchSettled, recordJsError } from '@/debug/jsErrorGuard';
|
||||
|
||||
type Props = {
|
||||
children: ReactNode;
|
||||
/** 错误页;`retry` 丢弃出错的子树并重新挂载。 */
|
||||
fallback: (retry: () => void) => ReactNode;
|
||||
};
|
||||
type State = { failed: boolean; error: unknown; attempt: number };
|
||||
|
||||
/**
|
||||
* 页面树的渲染兜底:包在导航树外面、登录与设备连接 Provider 里面(见根布局),树里任何一处渲染报错
|
||||
* 都落到这里,显示可重新加载的错误页,而不是让 App 退出。重新加载只重挂这棵页面树。
|
||||
*
|
||||
* 启动窗口内不接:此时把报错原样抛回去,它仍是 React 的未捕获错误、照旧致命,
|
||||
* expo-updates 的错误恢复才能回滚坏掉的热更(窗口定义见 `jsErrorGuard`)。
|
||||
*/
|
||||
export class RootErrorBoundary extends Component<Props, State> {
|
||||
state: State = { failed: false, error: undefined, attempt: 0 };
|
||||
|
||||
static getDerivedStateFromError(error: unknown): Partial<State> {
|
||||
return { failed: true, error };
|
||||
}
|
||||
|
||||
componentDidCatch(error: unknown): void {
|
||||
recordJsError('render', error);
|
||||
}
|
||||
|
||||
private retry = (): void => {
|
||||
this.setState((state) => ({ failed: false, error: undefined, attempt: state.attempt + 1 }));
|
||||
};
|
||||
|
||||
render(): ReactNode {
|
||||
if (this.state.failed) {
|
||||
if (!launchSettled()) throw this.state.error;
|
||||
return this.props.fallback(this.retry);
|
||||
}
|
||||
return <Fragment key={this.state.attempt}>{this.props.children}</Fragment>;
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,36 @@ describe("local diagnostic privacy boundary", () => {
|
||||
},
|
||||
});
|
||||
});
|
||||
// Rule: the journal keeps known names, enums and bounded numbers only (diagnosticEvents header).
|
||||
// A JS error is the one event whose raw input is an Error, so its message, stack text and any
|
||||
// extra field must be dropped while the class name and bundle positions survive a reload.
|
||||
it("keeps a JS error's class and bundle positions, never its text", () => {
|
||||
const projected = projectDiagnostic(
|
||||
[
|
||||
"js error",
|
||||
{
|
||||
kind: "render",
|
||||
name: "TypeError",
|
||||
line1: 1,
|
||||
column1: 2345678,
|
||||
line2: 1,
|
||||
column2: -5,
|
||||
message: "Cannot read property 'title' of secret chat",
|
||||
stack: "at render (address at index.ios.bundle:1:2345678)",
|
||||
},
|
||||
],
|
||||
30,
|
||||
);
|
||||
expect(projected).toEqual({
|
||||
at: 30,
|
||||
event: "js error",
|
||||
fields: { kind: "render", name: "TypeError", line1: 1, column1: 2345678, line2: 1 },
|
||||
});
|
||||
expect(restoreDiagnosticEvents([projected])).toEqual([projected]);
|
||||
expect(
|
||||
projectDiagnostic(["js error", { kind: "elsewhere", name: "SecretError" }], 31),
|
||||
).toEqual({ at: 31, event: "js error", fields: {} });
|
||||
});
|
||||
it("never stores interpolated close reasons or request identifiers", () => {
|
||||
const events = [
|
||||
projectDiagnostic(
|
||||
|
||||
@@ -11,6 +11,7 @@ const names = [
|
||||
"app background",
|
||||
"app inactive",
|
||||
"js stall",
|
||||
"js error",
|
||||
"recovery phase",
|
||||
"getToken failed",
|
||||
"createWebSocket failed",
|
||||
@@ -38,6 +39,30 @@ const numericKeys = [
|
||||
"count",
|
||||
];
|
||||
const phases = ["subscription", "history", "pending", "projection", "goal"];
|
||||
/** Where a JS error surfaced: a React render (caught by the root boundary) or an uncaught callback. */
|
||||
export const JS_ERROR_KINDS = ["render", "uncaught"] as const;
|
||||
/** Error class names only; anything else is recorded as "other". Messages are never kept. */
|
||||
export const JS_ERROR_NAMES = [
|
||||
"Error",
|
||||
"TypeError",
|
||||
"RangeError",
|
||||
"ReferenceError",
|
||||
"SyntaxError",
|
||||
"EvalError",
|
||||
"URIError",
|
||||
"AggregateError",
|
||||
"Invariant Violation",
|
||||
"other",
|
||||
] as const;
|
||||
/** Bundle positions of the top stack frames; they need the release's source map to mean anything. */
|
||||
export const JS_ERROR_FRAME_KEYS = [
|
||||
"line1",
|
||||
"column1",
|
||||
"line2",
|
||||
"column2",
|
||||
"line3",
|
||||
"column3",
|
||||
] as const;
|
||||
const outcomes = ["applied", "superseded", "failed"];
|
||||
function boundedNumber(value: unknown): value is number {
|
||||
return (
|
||||
@@ -86,6 +111,20 @@ export function projectDiagnostic(
|
||||
}
|
||||
}
|
||||
}
|
||||
// A JS error keeps its class name and bundle positions only: the message and the stack text can
|
||||
// carry user content, so neither is ever read here.
|
||||
if (event === "js error") {
|
||||
const data = args[1];
|
||||
if (data && typeof data === "object") {
|
||||
const record = data as Record<string, unknown>;
|
||||
const kind = JS_ERROR_KINDS.find((value) => value === record.kind);
|
||||
if (kind) fields.kind = kind;
|
||||
const name = JS_ERROR_NAMES.find((value) => value === record.name);
|
||||
if (name) fields.name = name;
|
||||
for (const key of JS_ERROR_FRAME_KEYS)
|
||||
if (boundedNumber(record[key])) fields[key] = record[key];
|
||||
}
|
||||
}
|
||||
// Extract only client-generated timing fields. Never retain the original interpolated message.
|
||||
if (event === "device-link online" || event === "network probe timed out") {
|
||||
const match = /elapsedMs=(\d+(?:\.\d+)?)/.exec(message);
|
||||
|
||||
109
apps/mobile/src/debug/jsErrorGuard.test.ts
Normal file
109
apps/mobile/src/debug/jsErrorGuard.test.ts
Normal file
@@ -0,0 +1,109 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
LAUNCH_WINDOW_MS,
|
||||
createJsErrorGuard,
|
||||
describeJsError,
|
||||
type ErrorUtilsLike,
|
||||
} from "./jsErrorGuard";
|
||||
|
||||
// 测试价值
|
||||
// - 生产入口与可观察结果:createJsErrorGuard().install() 包住的全局处理函数——致命报错是否仍以
|
||||
// 致命交给 React Native(App 退出 / 热更回滚),还是降为非致命(App 继续运行)并留下记录。
|
||||
// - 依据:2026-11 线上崩溃日志里约一半 iOS 闪退是启动稳定后的 JS 致命错误;同时
|
||||
// expo-updates 靠「首屏后 10 秒内的致命报错」回滚坏热更,这个窗口内的行为不能变。
|
||||
// - 现有覆盖缺口:此前没有任何 JS 报错兜底,也就没有对应测试。
|
||||
// - 最小失败输入:根布局提交后 LAUNCH_WINDOW_MS 前 / 后各来一次 isFatal=true 的报错。
|
||||
// - tier:unit(注入时钟与 ErrorUtils,不触碰真实全局)。
|
||||
function setup() {
|
||||
let clock = 1_000;
|
||||
const previous = vi.fn();
|
||||
const record = vi.fn();
|
||||
let handler: (error: unknown, isFatal?: boolean) => void = previous;
|
||||
const errorUtils: ErrorUtilsLike = {
|
||||
getGlobalHandler: () => handler,
|
||||
setGlobalHandler: (next) => {
|
||||
handler = next;
|
||||
},
|
||||
};
|
||||
const guard = createJsErrorGuard({ now: () => clock, record });
|
||||
guard.install(errorUtils);
|
||||
return {
|
||||
guard,
|
||||
previous,
|
||||
record,
|
||||
report: (error: unknown, isFatal?: boolean) => handler(error, isFatal),
|
||||
advance: (ms: number) => {
|
||||
clock += ms;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
describe("JS error guard launch window", () => {
|
||||
it("keeps fatal errors fatal until the root has been committed for the whole window", () => {
|
||||
const { guard, previous, record, report, advance } = setup();
|
||||
const error = new TypeError("boom");
|
||||
advance(60_000);
|
||||
report(error, true); // root never committed: still starting up
|
||||
guard.noteRootCommitted();
|
||||
advance(LAUNCH_WINDOW_MS - 1);
|
||||
report(error, true);
|
||||
expect(previous.mock.calls).toEqual([
|
||||
[error, true],
|
||||
[error, true],
|
||||
]);
|
||||
expect(guard.launchSettled()).toBe(false);
|
||||
expect(record).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("downgrades and records a fatal error once the launch has settled", () => {
|
||||
const { guard, previous, record, report, advance } = setup();
|
||||
guard.noteRootCommitted();
|
||||
advance(LAUNCH_WINDOW_MS);
|
||||
guard.noteRootCommitted(); // a retry remount must not reopen the window
|
||||
const error = new TypeError("boom");
|
||||
report(error, true);
|
||||
expect(previous).toHaveBeenCalledExactlyOnceWith(error, false);
|
||||
expect(record).toHaveBeenCalledExactlyOnceWith("uncaught", error);
|
||||
});
|
||||
|
||||
it("passes non-fatal reports through untouched", () => {
|
||||
const { guard, previous, record, report, advance } = setup();
|
||||
guard.noteRootCommitted();
|
||||
advance(LAUNCH_WINDOW_MS);
|
||||
const error = new Error("soft");
|
||||
report(error, false);
|
||||
expect(previous).toHaveBeenCalledExactlyOnceWith(error, false);
|
||||
expect(record).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("describeJsError", () => {
|
||||
it("projects a Hermes stack to the class name and top frame positions only", () => {
|
||||
const error = new TypeError("Cannot read property 'title' of private text");
|
||||
error.stack = [
|
||||
"TypeError: Cannot read property 'title' of private text at 9:9",
|
||||
" at renderRow (address at index.android.bundle:1:2345678)",
|
||||
" at apply (native)",
|
||||
" at anonymous (/data/user/0/app/files/.expo-internal/bundle:1:4567)",
|
||||
" at flush (address at index.android.bundle:1:89)",
|
||||
" at tick (address at index.android.bundle:1:90)",
|
||||
].join("\n");
|
||||
expect(describeJsError(error)).toEqual({
|
||||
name: "TypeError",
|
||||
line1: 1,
|
||||
column1: 2345678,
|
||||
line2: 1,
|
||||
column2: 4567,
|
||||
line3: 1,
|
||||
column3: 89,
|
||||
});
|
||||
});
|
||||
|
||||
it.each([
|
||||
["an unknown error class", Object.assign(new Error("x"), { name: "PrivateError", stack: "" })],
|
||||
["a thrown string", "private text"],
|
||||
["null", null],
|
||||
])("records %s as other without positions", (_label, thrown) => {
|
||||
expect(describeJsError(thrown)).toEqual({ name: "other" });
|
||||
});
|
||||
});
|
||||
103
apps/mobile/src/debug/jsErrorGuard.ts
Normal file
103
apps/mobile/src/debug/jsErrorGuard.ts
Normal file
@@ -0,0 +1,103 @@
|
||||
import {
|
||||
JS_ERROR_NAMES,
|
||||
type JS_ERROR_KINDS,
|
||||
} from "./diagnosticEvents";
|
||||
import { mobileDebugLog } from "./mobileDebugLog";
|
||||
|
||||
/**
|
||||
* JS 报错兜底:启动稳定之后,JS 报错不再让 App 直接退出。
|
||||
*
|
||||
* - 渲染报错由根级 `RootErrorBoundary` 接住并显示可重试的错误页;
|
||||
* - 回调、定时器等处的未捕获报错经本模块包住的全局处理函数降为非致命,App 继续运行。
|
||||
*
|
||||
* 启动窗口内(根布局首次提交后的 `LAUNCH_WINDOW_MS` 之内)两者都保持原有的致命行为:
|
||||
* expo-updates 的错误恢复在「首屏出现后 10 秒」内靠致命报错回滚坏掉的热更,这里的窗口
|
||||
* 取 20 秒,严格覆盖它,回滚行为不变。
|
||||
*
|
||||
* 记录只进本机诊断日志(`js error` 事件),且只含报错类型与打包文件里的行列号;
|
||||
* 报错文本和堆栈原文可能夹带用户内容,从不读取。
|
||||
*/
|
||||
export const LAUNCH_WINDOW_MS = 20_000;
|
||||
const MAX_FRAMES = 3;
|
||||
/** Hermes / JSC 堆栈行尾的 `:行:列`;只取数字,不取函数名或路径。 */
|
||||
const FRAME_POSITION = /(?:^\s*at\s|@).*:(\d{1,9}):(\d{1,9})\)?\s*$/;
|
||||
|
||||
export type JsErrorKind = (typeof JS_ERROR_KINDS)[number];
|
||||
type GlobalHandler = (error: unknown, isFatal?: boolean) => void;
|
||||
export interface ErrorUtilsLike {
|
||||
getGlobalHandler(): GlobalHandler;
|
||||
setGlobalHandler(handler: GlobalHandler): void;
|
||||
}
|
||||
|
||||
/** 报错的可记录投影:类型名(白名单内)与最上面几帧的行列号。 */
|
||||
export function describeJsError(
|
||||
error: unknown,
|
||||
): Record<string, number | string> {
|
||||
const fields: Record<string, number | string> = { name: "other" };
|
||||
if (!error || typeof error !== "object") return fields;
|
||||
const { name, stack } = error as { name?: unknown; stack?: unknown };
|
||||
const known = JS_ERROR_NAMES.find((value) => value === name);
|
||||
if (known) fields.name = known;
|
||||
if (typeof stack !== "string") return fields;
|
||||
let frame = 0;
|
||||
for (const line of stack.split("\n", 64)) {
|
||||
const match = FRAME_POSITION.exec(line);
|
||||
if (!match) continue;
|
||||
frame += 1;
|
||||
fields[`line${frame}`] = Number(match[1]);
|
||||
fields[`column${frame}`] = Number(match[2]);
|
||||
if (frame === MAX_FRAMES) break;
|
||||
}
|
||||
return fields;
|
||||
}
|
||||
|
||||
export function recordJsError(kind: JsErrorKind, error: unknown): void {
|
||||
mobileDebugLog("error", "lifecycle", "js error", {
|
||||
kind,
|
||||
...describeJsError(error),
|
||||
});
|
||||
}
|
||||
|
||||
export function createJsErrorGuard(deps: {
|
||||
now(): number;
|
||||
record(kind: JsErrorKind, error: unknown): void;
|
||||
}) {
|
||||
let committedAt: number | undefined;
|
||||
const launchSettled = (): boolean =>
|
||||
committedAt !== undefined && deps.now() - committedAt >= LAUNCH_WINDOW_MS;
|
||||
return {
|
||||
/** 根布局首次提交时调用一次;之后的调用不重置窗口。 */
|
||||
noteRootCommitted(): void {
|
||||
committedAt ??= deps.now();
|
||||
},
|
||||
launchSettled,
|
||||
install(errorUtils: ErrorUtilsLike): void {
|
||||
const previous = errorUtils.getGlobalHandler();
|
||||
errorUtils.setGlobalHandler((error, isFatal) => {
|
||||
if (!isFatal || !launchSettled()) {
|
||||
previous(error, isFatal);
|
||||
return;
|
||||
}
|
||||
deps.record("uncaught", error);
|
||||
previous(error, false);
|
||||
});
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
const guard = createJsErrorGuard({
|
||||
now: () => performance.now(),
|
||||
record: recordJsError,
|
||||
});
|
||||
export const noteRootCommitted = guard.noteRootCommitted;
|
||||
export const launchSettled = guard.launchSettled;
|
||||
|
||||
let installed = false;
|
||||
/** 入口处调用一次。开发构建保留红屏,不改未捕获报错的行为。 */
|
||||
export function installJsErrorGuard(): void {
|
||||
if (installed || __DEV__) return;
|
||||
const errorUtils = (globalThis as { ErrorUtils?: ErrorUtilsLike }).ErrorUtils;
|
||||
if (!errorUtils) return;
|
||||
installed = true;
|
||||
guard.install(errorUtils);
|
||||
}
|
||||
@@ -61,7 +61,11 @@ export function IncomingShareBridge() {
|
||||
if (!getMobileAuthOwner().switching && AppState.currentState === 'active') refresh();
|
||||
}) },
|
||||
];
|
||||
refresh();
|
||||
// A push or background fetch can launch the app straight into the background, where iOS
|
||||
// suspends it within seconds. The native read holds a file lock in the App Group while it
|
||||
// waits on the shared preferences, and being suspended with that lock held ends the
|
||||
// process (0xdead10cc). The 'active' listener above picks the inbox up on first foreground.
|
||||
if (AppState.currentState !== 'background') refresh();
|
||||
}).catch(() => undefined);
|
||||
return () => {
|
||||
active = false;
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
|
||||
| 依赖 | 用途 |
|
||||
| --- | --- |
|
||||
| `expo-image@58.0.18` | 修复 Android 图片绘制时的闪退(`RuntimeException`,栈在 `ExpoImageView.draw` → `BaseCanvas.throwIfCannotDraw`,Play 上集中在 Android 17)。画布遇到已回收、未预乘透明度或过大的位图会抛异常,绘制阶段的异常会带崩整个 App;上游只在绘制前检查「已回收」。补丁在绘制前把未预乘标记改正(Glide 位图池对取出的位图做同样的归一化),画布仍然拒绝时丢弃这张图而不是闪退,其它异常原样抛出。**Android 上 Expo 默认使用该模块的预编译包,源码补丁不会进包**,因此 `apps/mobile/package.json` 的 `expo.autolinking.android.buildFromSource` 把它列为从源码编译;删除补丁时一并移除该项。改变 runtime fingerprint,须随冷更发布;升级 expo-image 时核查上游是否已有等价保护。 |
|
||||
| `expo-modules-core@58.0.30` | 修复 iOS 偶发闪退(`NSFastEnumerationMutation`,栈在 `-[UIViewController _recursiveUpdateContentOverlayInsetsFromParentIfNecessary]`,无 App 帧)。SwiftUI 宿主视图(`@expo/ui` 的 `Host`)挂上 / 卸下窗口时会同步 `addChild` / `removeFromParent`;而 UIKit 在状态栏或安全区变化时正遍历父控制器的子控制器,若此时有 `unstable_Immediate` 状态提交让 Fabric 当场挂载,子控制器列表就在遍历中被改动。远程桌面叠层渲染在导航栈外,它的 SwiftUI 宿主直接挂在根控制器下,画中画期间一直在。补丁让视图仍同步挂上 / 卸下,控制器的父子关系改到下一轮主线程再同步,并沿用上游对「父控制器视图不包含宿主」时跳过 containment 的判断。同一机制见 [`react-native-screens#4811`](https://github.com/software-mansion/react-native-screens/issues/4811)、[`#4168`](https://github.com/software-mansion/react-native-screens/issues/4168)。改变 iOS 原生指纹,需随冷更发版;升级 expo-modules-core 时核查上游是否已有等价修复。 |
|
||||
| `expo-paste-input@0.2.2` | 优化移动端粘贴图片的处理时序,将耗时的解码、压缩和写盘移出 UI 线程,并补充加载中与失败事件。 |
|
||||
| `expo-paste-input@0.2.2` | 优化移动端粘贴图片的处理时序,将耗时的解码、压缩和写盘移出 UI 线程,并补充加载中与失败事件。另规避 Android 系统文本拖拽的闪退(`IllegalStateException: Drag shadow dimensions must be positive`,栈在 `Editor.startDragAndDrop`,无 App 帧):长按落在选区上会开始拖拽,拖拽缩略图按选区前 20 个字符生成,这些字符没有宽度(例如只选中了换行)时系统直接抛异常。异常在 `TextView.performLongClick` 内部,外层拦不住,所以包装层在这种选区下让本次触摸不触发长按,点按、光标与选择手柄不受影响。只覆盖被 `TextInputWrapper` 包住的输入框(任务输入框 `MobileComposerInputRow`),其它原生多行输入框不在保护范围内。改变 runtime fingerprint,须随冷更发布。 |
|
||||
| `expo-router@58.0.30` | `Stack.Toolbar.Menu` 子菜单透传 `subtitle`,让 iOS 顶栏菜单的一级行在标题下显示当前值(如「任务信息」下显示已选项)。配合下方 `react-native-screens` 补丁生效。 |
|
||||
| `harmonyos-sans-sc-webfont-splitted` | 移除依赖按语言全局覆盖 `font-family` 的规则,由 Cindy 自己决定界面字体。 |
|
||||
| `react-native@0.85.3` | 回移 Yoga 对 `display: none` 与 `display: contents` 测量过程的布局状态修复,避免 Fabric 布局阶段因错误的 owner 关系触发断言崩溃(上游 `6fa330693fba313a2fe1121545c1efd558b60983`、`2546ce4d8219050fcd1bf432c7c830c9fd70c9af`)。移动端 iOS 通过 `expo-build-properties` 的 `buildReactNativeFromSource` 编译该补丁,不能改回预编译 RN Core。 |
|
||||
|
||||
63
dependency-patches/expo-image@58.0.18.patch
Normal file
63
dependency-patches/expo-image@58.0.18.patch
Normal file
@@ -0,0 +1,63 @@
|
||||
diff --git a/android/src/main/java/expo/modules/image/ExpoImageView.kt b/android/src/main/java/expo/modules/image/ExpoImageView.kt
|
||||
index 423e3b72923a3c0e1b3efb9145a757942a312378..81b64f6a77dcd99bdb6a0f9229c5a212b0b52cda 100644
|
||||
--- a/android/src/main/java/expo/modules/image/ExpoImageView.kt
|
||||
+++ b/android/src/main/java/expo/modules/image/ExpoImageView.kt
|
||||
@@ -2,6 +2,7 @@ package expo.modules.image
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
+import android.graphics.Bitmap
|
||||
import android.graphics.Canvas
|
||||
import android.graphics.PorterDuff
|
||||
import android.graphics.RectF
|
||||
@@ -179,14 +180,44 @@ class ExpoImageView(
|
||||
// If we encounter a recycled bitmap here, it suggests an issue where we may have failed to
|
||||
// finish clearing the image bitmap before the UI attempts to display it.
|
||||
// One solution could be to suppress the error and assume that the second image view is currently responsible for displaying the correct view.
|
||||
- if ((drawable as? BitmapDrawable)?.bitmap?.isRecycled == true) {
|
||||
+ val bitmap = (drawable as? BitmapDrawable)?.bitmap
|
||||
+ if (bitmap?.isRecycled == true) {
|
||||
Log.e("ExpoImage", "Trying to use a recycled bitmap")
|
||||
- recycleView()?.let { target ->
|
||||
- (parent as? ExpoImageViewWrapper)?.requestManager?.let { requestManager ->
|
||||
- target.clear(requestManager)
|
||||
- }
|
||||
+ dropUndrawableImage()
|
||||
+ } else if (bitmap != null && !bitmap.isPremultiplied && bitmap.config == Bitmap.Config.ARGB_8888 && bitmap.hasAlpha()) {
|
||||
+ // Cindy patch: android.graphics.BaseCanvas.throwIfCannotDraw rejects exactly this
|
||||
+ // combination, and a RuntimeException thrown from a draw pass takes the whole app down
|
||||
+ // (Play crash reports on Android 17 point at this check). Glide's bitmap pool applies the same
|
||||
+ // normalisation to every bitmap it hands out, so the flag is corrected instead of
|
||||
+ // discarding the image.
|
||||
+ try {
|
||||
+ bitmap.isPremultiplied = true
|
||||
+ } catch (e: RuntimeException) {
|
||||
+ Log.e("ExpoImage", "Dropping a non-premultiplied bitmap", e)
|
||||
+ dropUndrawableImage()
|
||||
+ }
|
||||
+ }
|
||||
+ val saveCount = canvas.saveCount
|
||||
+ try {
|
||||
+ super.draw(canvas)
|
||||
+ } catch (e: RuntimeException) {
|
||||
+ // Cindy patch: last line of defence for the remaining throwIfCannotDraw checks (a bitmap
|
||||
+ // recycled between the check above and the draw, or one that is too large). One image
|
||||
+ // the canvas refuses must not crash the app; any other exception is rethrown unchanged.
|
||||
+ if (e.message?.startsWith("Canvas: trying to") != true) {
|
||||
+ throw e
|
||||
+ }
|
||||
+ canvas.restoreToCount(saveCount)
|
||||
+ Log.e("ExpoImage", "Dropping an image the canvas refused to draw", e)
|
||||
+ dropUndrawableImage()
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private fun dropUndrawableImage() {
|
||||
+ recycleView()?.let { target ->
|
||||
+ (parent as? ExpoImageViewWrapper)?.requestManager?.let { requestManager ->
|
||||
+ target.clear(requestManager)
|
||||
}
|
||||
}
|
||||
- super.draw(canvas)
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,19 @@
|
||||
diff --git a/android/src/main/java/expo/modules/pasteinput/ExpoPasteInputView.kt b/android/src/main/java/expo/modules/pasteinput/ExpoPasteInputView.kt
|
||||
index 99b0fa68814e57404d4c7f97c7fb47ced5ca59f1..da433256c0690c7369953dd83d616e82707b739b 100644
|
||||
index 99b0fa68814e57404d4c7f97c7fb47ced5ca59f1..c7722100c1e9fe01095293b018949cdf0a2ec7b2 100644
|
||||
--- a/android/src/main/java/expo/modules/pasteinput/ExpoPasteInputView.kt
|
||||
+++ b/android/src/main/java/expo/modules/pasteinput/ExpoPasteInputView.kt
|
||||
@@ -6,6 +6,8 @@ import android.graphics.Bitmap
|
||||
@@ -6,7 +6,10 @@ import android.graphics.Bitmap
|
||||
import android.graphics.BitmapFactory
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
+import android.os.Handler
|
||||
+import android.os.Looper
|
||||
import android.os.SystemClock
|
||||
+import android.view.MotionEvent
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@@ -19,8 +21,21 @@ import expo.modules.kotlin.viewevent.EventDispatcher
|
||||
import android.view.ActionMode
|
||||
@@ -19,8 +22,24 @@ import expo.modules.kotlin.viewevent.EventDispatcher
|
||||
import expo.modules.kotlin.views.ExpoView
|
||||
import java.io.File
|
||||
import java.io.FileOutputStream
|
||||
@@ -28,12 +30,79 @@ index 99b0fa68814e57404d4c7f97c7fb47ced5ca59f1..da433256c0690c7369953dd83d616e82
|
||||
+ Thread(runnable, "expo-paste-input-media").apply { isDaemon = true }
|
||||
+ }
|
||||
+ private val MAIN_HANDLER = Handler(Looper.getMainLooper())
|
||||
+
|
||||
+ // android.widget.Editor builds the text drag shadow from at most this many selected characters.
|
||||
+ private const val DRAG_SHADOW_MAX_TEXT_LENGTH = 20
|
||||
+ }
|
||||
+
|
||||
private val onPaste by EventDispatcher()
|
||||
private var textInputView: EditText? = null
|
||||
private var isMonitoring: Boolean = false
|
||||
@@ -413,9 +428,44 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
@@ -30,6 +49,7 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
private var customSelectionActionModeCallback: ActionMode.Callback? = null
|
||||
private var customInsertionActionModeCallback: ActionMode.Callback? = null
|
||||
private var suppressOnReceiveContentUntilMs: Long = 0L
|
||||
+ private var longPressSuspendedInput: EditText? = null
|
||||
|
||||
private data class ClipboardPayload(
|
||||
val imageUris: List<Uri>,
|
||||
@@ -113,6 +133,46 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
}
|
||||
}
|
||||
|
||||
+ // Cindy patch: a long press that lands on the current selection makes android.widget.Editor
|
||||
+ // start a text drag, with a shadow built from the first DRAG_SHADOW_MAX_TEXT_LENGTH selected
|
||||
+ // characters. When those have no width (only line breaks, for example) the shadow is
|
||||
+ // zero-sized and View.startDragAndDrop throws "Drag shadow dimensions must be positive" for
|
||||
+ // apps targeting API 28+, which kills the process. The exception is raised inside
|
||||
+ // TextView.performLongClick, out of reach from here, so the long press is switched off for
|
||||
+ // that one gesture instead: taps, cursor placement and the selection handles keep working.
|
||||
+ override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
|
||||
+ val action = ev.actionMasked
|
||||
+ if (action == MotionEvent.ACTION_DOWN) {
|
||||
+ restoreLongPress()
|
||||
+ val editText = textInputView
|
||||
+ if (editText != null && editText.isLongClickable && selectionHasNoDragShadow(editText)) {
|
||||
+ editText.isLongClickable = false
|
||||
+ longPressSuspendedInput = editText
|
||||
+ }
|
||||
+ }
|
||||
+ try {
|
||||
+ return super.dispatchTouchEvent(ev)
|
||||
+ } finally {
|
||||
+ if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) {
|
||||
+ restoreLongPress()
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private fun restoreLongPress() {
|
||||
+ longPressSuspendedInput?.isLongClickable = true
|
||||
+ longPressSuspendedInput = null
|
||||
+ }
|
||||
+
|
||||
+ private fun selectionHasNoDragShadow(editText: EditText): Boolean {
|
||||
+ val text = editText.text ?: return false
|
||||
+ val start = minOf(editText.selectionStart, editText.selectionEnd)
|
||||
+ val end = maxOf(editText.selectionStart, editText.selectionEnd)
|
||||
+ if (start < 0 || end <= start || end > text.length) return false
|
||||
+ val shadowText = text.subSequence(start, minOf(end, start + DRAG_SHADOW_MAX_TEXT_LENGTH)).toString()
|
||||
+ return shadowText.split('\n').all { line -> editText.paint.measureText(line) <= 0f }
|
||||
+ }
|
||||
+
|
||||
private fun startMonitoring() {
|
||||
if (isMonitoring) return
|
||||
|
||||
@@ -127,6 +187,8 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
}
|
||||
|
||||
private fun stopMonitoring() {
|
||||
+ // A gesture can be cut short by a detach; never leave the input without its long press.
|
||||
+ restoreLongPress()
|
||||
if (!isMonitoring) return
|
||||
|
||||
val editText = textInputView
|
||||
@@ -413,9 +475,44 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
}
|
||||
|
||||
internal fun processMultipleImagePaste(imageUris: List<Uri>, gifUris: List<Uri> = emptyList()) {
|
||||
@@ -80,7 +149,7 @@ index 99b0fa68814e57404d4c7f97c7fb47ced5ca59f1..da433256c0690c7369953dd83d616e82
|
||||
// Process GIFs first - copy them directly without decoding
|
||||
for (gifUri in gifUris) {
|
||||
val gifPath = copyGifFile(gifUri)
|
||||
@@ -423,19 +473,19 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
@@ -423,19 +520,19 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
filePaths.add(gifPath)
|
||||
}
|
||||
}
|
||||
@@ -104,7 +173,7 @@ index 99b0fa68814e57404d4c7f97c7fb47ced5ca59f1..da433256c0690c7369953dd83d616e82
|
||||
// Save to cache directory
|
||||
val cacheDir = context.cacheDir
|
||||
val usePng = bitmap.hasAlpha()
|
||||
@@ -443,7 +493,7 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
@@ -443,7 +540,7 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
// Use UUID-like approach for better uniqueness: timestamp + counter
|
||||
val fileName = "${System.currentTimeMillis()}_${filePaths.size}.$fileExtension"
|
||||
val file = File(cacheDir, fileName)
|
||||
@@ -113,7 +182,7 @@ index 99b0fa68814e57404d4c7f97c7fb47ced5ca59f1..da433256c0690c7369953dd83d616e82
|
||||
FileOutputStream(file).use { outputStream ->
|
||||
if (usePng) {
|
||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream)
|
||||
@@ -452,24 +502,15 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
@@ -452,24 +549,15 @@ class ExpoPasteInputView(context: Context, appContext: AppContext) : ExpoView(co
|
||||
}
|
||||
outputStream.flush()
|
||||
}
|
||||
|
||||
@@ -260,6 +260,32 @@ pnpm --filter mobile test:smoke
|
||||
|
||||
## 专项入口
|
||||
|
||||
### 线上崩溃日志的读法
|
||||
|
||||
- **iOS 符号**:崩溃日志里 App 自身的调用帧只有在本机能找到该版本的 dSYM 时才会还原成
|
||||
函数名。`build-ios.mjs` 把 archive 里的 dSYM 打成与 `.ipa` 同名的 `.dSYMs.zip`
|
||||
(`--out` 时一并拷出);archive 建在临时目录里,这份 zip 是该版本符号的唯一留存,须与
|
||||
安装包一起保管。没有它,日志里只剩「二进制 + 偏移」。
|
||||
- **没有符号时按调用链形状归类**(同一份原生二进制的偏移相同,可跨版本比对):
|
||||
|
||||
| 日志特征 | 含义 |
|
||||
| --- | --- |
|
||||
| `objc_exception_throw` ← App 三帧 ← `-[NSInvocation invoke]` ← App 两帧 | 首屏出现 10 秒之后的 JS 致命错误:RN 把它转成原生异常抛出,日志不带 JS 报错内容 |
|
||||
| `-[NSException raise]` ← 连续 App 帧 ← dispatch | 启动监控窗口内的 JS 致命错误:expo-updates 的错误恢复放弃后主动崩溃 |
|
||||
| `Termination Reason: RUNNINGBOARD 0xdead10cc` | 被挂起时仍持有 App Group 里的文件锁。入站分享读取暂存区时持锁,所以后台启动时不读取,等回到前台(`IncomingShareBridge`) |
|
||||
|
||||
- **JS 报错兜底**:启动稳定后(根布局首次提交 20 秒后),页面树的渲染报错由
|
||||
`RootErrorBoundary`(包在 `NavigationGate` 外、`AuthProvider` / `DeviceLinkProvider` 内,重新加载不会
|
||||
重建登录与设备连接)显示可重新加载的错误页,回调与定时器里的未捕获报错由 `jsErrorGuard`
|
||||
降为非致命、App 继续运行。**窗口内两者都保持致命**:expo-updates 的错误恢复靠「首屏出现后
|
||||
10 秒内的致命报错」回滚坏掉的热更,20 秒的窗口严格覆盖它,改动这两处时不得缩短或绕过。
|
||||
开发构建不启用降级,保留红屏。开启本机诊断记录时会写入 `js error` 事件,只含报错类型与
|
||||
打包文件里的行列号(要用对应版本的源码映射还原位置),不含报错文本与堆栈原文。
|
||||
- **Android**:`ExpoImageView.draw` → `BaseCanvas.throwIfCannotDraw` 与
|
||||
`Editor.startDragAndDrop: Drag shadow dimensions must be positive` 两类的原因和规避见
|
||||
[`dependency-patches/README.md`](../../dependency-patches/README.md) 的 `expo-image`、
|
||||
`expo-paste-input` 两行。
|
||||
|
||||
### Android 组字与发送快照
|
||||
|
||||
普通任务与伙伴私聊点击发送时保持编辑器可编辑、保留焦点与软键盘;发送防重由提交锁和发送按钮负责,
|
||||
|
||||
@@ -69,7 +69,8 @@
|
||||
"react-native-screens@4.30.1": "dependency-patches/react-native-screens@4.30.1.patch",
|
||||
"expo-router@58.0.30": "dependency-patches/expo-router@58.0.30.patch",
|
||||
"react-native-gesture-handler@3.3.0": "dependency-patches/react-native-gesture-handler@3.3.0.patch",
|
||||
"expo-modules-core@58.0.30": "dependency-patches/expo-modules-core@58.0.30.patch"
|
||||
"expo-modules-core@58.0.30": "dependency-patches/expo-modules-core@58.0.30.patch",
|
||||
"expo-image@58.0.18": "dependency-patches/expo-image@58.0.18.patch"
|
||||
},
|
||||
"allowUnusedPatches": true
|
||||
},
|
||||
|
||||
13
pnpm-lock.yaml
generated
13
pnpm-lock.yaml
generated
@@ -22,11 +22,14 @@ patchedDependencies:
|
||||
'@expo/cli@58.1.19':
|
||||
hash: bf44a5f353700b074164286e0005bf9d5f218a067b6639b5c6a6fb8a1e056298
|
||||
path: dependency-patches/@expo__cli@58.1.19.patch
|
||||
expo-image@58.0.18:
|
||||
hash: 46725ea274130be1df9de144759f1febf5a92bbf85cd36919059c16de2f7469c
|
||||
path: dependency-patches/expo-image@58.0.18.patch
|
||||
expo-modules-core@58.0.30:
|
||||
hash: 1a53965ceba6ed84ab514b4de51ccbaab45a9492be23de1f14843dd11826c353
|
||||
path: dependency-patches/expo-modules-core@58.0.30.patch
|
||||
expo-paste-input@0.2.2:
|
||||
hash: 53be555646735a171c1624f074ef30e5ca897a7b8893724bc2d0d51682f769d8
|
||||
hash: 7125922aa9772f1ac949d034fe120e8837c3708fe6912e1aec5db0d3c5ed91ae
|
||||
path: dependency-patches/expo-paste-input@0.2.2.patch
|
||||
expo-router@58.0.30:
|
||||
hash: 611a9b0644099d0a9725be517184f1b9e7d96ad5058c8445d90cc106012afebe
|
||||
@@ -819,7 +822,7 @@ importers:
|
||||
version: 58.0.5(expo@58.0.23)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)
|
||||
expo-image:
|
||||
specifier: ~58.0.18
|
||||
version: 58.0.18(expo@58.0.23)(react-native-web@0.21.4(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)
|
||||
version: 58.0.18(patch_hash=46725ea274130be1df9de144759f1febf5a92bbf85cd36919059c16de2f7469c)(expo@58.0.23)(react-native-web@0.21.4(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)
|
||||
expo-image-manipulator:
|
||||
specifier: ~58.0.16
|
||||
version: 58.0.16(expo@58.0.23)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)
|
||||
@@ -843,7 +846,7 @@ importers:
|
||||
version: 58.1.8(expo@58.0.23)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)(typescript@6.0.3)
|
||||
expo-paste-input:
|
||||
specifier: 0.2.2
|
||||
version: 0.2.2(patch_hash=53be555646735a171c1624f074ef30e5ca897a7b8893724bc2d0d51682f769d8)(expo@58.0.23)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)
|
||||
version: 0.2.2(patch_hash=7125922aa9772f1ac949d034fe120e8837c3708fe6912e1aec5db0d3c5ed91ae)(expo@58.0.23)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)
|
||||
expo-router:
|
||||
specifier: ~58.0.30
|
||||
version: 58.0.30(patch_hash=611a9b0644099d0a9725be517184f1b9e7d96ad5058c8445d90cc106012afebe)(e55e201996914484c5cb4495ce8822dc)
|
||||
@@ -19021,7 +19024,7 @@ snapshots:
|
||||
expo: 58.0.23(@babel/core@7.29.7)(@expo/dom-webview@58.0.2)(@expo/metro-runtime@58.0.17)(expo-router@58.0.30)(react-dom@19.3.0(react@19.3.0))(react-native-web@0.21.4(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react-native-webview@14.0.1(patch_hash=a5418ce60809f2cb171596780f5fd8f3399172512bec33f6cf6238fdfff3142f)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0))(react-native-worklets@0.13.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)(typescript@6.0.3)
|
||||
expo-image-loader: 58.0.3(expo@58.0.23)
|
||||
|
||||
expo-image@58.0.18(expo@58.0.23)(react-native-web@0.21.4(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0):
|
||||
expo-image@58.0.18(patch_hash=46725ea274130be1df9de144759f1febf5a92bbf85cd36919059c16de2f7469c)(expo@58.0.23)(react-native-web@0.21.4(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0):
|
||||
dependencies:
|
||||
expo: 58.0.23(@babel/core@7.29.7)(@expo/dom-webview@58.0.2)(@expo/metro-runtime@58.0.17)(expo-router@58.0.30)(react-dom@19.3.0(react@19.3.0))(react-native-web@0.21.4(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react-native-webview@14.0.1(patch_hash=a5418ce60809f2cb171596780f5fd8f3399172512bec33f6cf6238fdfff3142f)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0))(react-native-worklets@0.13.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)(typescript@6.0.3)
|
||||
react: 19.3.0
|
||||
@@ -19120,7 +19123,7 @@ snapshots:
|
||||
- supports-color
|
||||
- typescript
|
||||
|
||||
expo-paste-input@0.2.2(patch_hash=53be555646735a171c1624f074ef30e5ca897a7b8893724bc2d0d51682f769d8)(expo@58.0.23)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0):
|
||||
expo-paste-input@0.2.2(patch_hash=7125922aa9772f1ac949d034fe120e8837c3708fe6912e1aec5db0d3c5ed91ae)(expo@58.0.23)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0):
|
||||
dependencies:
|
||||
expo: 58.0.23(@babel/core@7.29.7)(@expo/dom-webview@58.0.2)(@expo/metro-runtime@58.0.17)(expo-router@58.0.30)(react-dom@19.3.0(react@19.3.0))(react-native-web@0.21.4(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(react-native-webview@14.0.1(patch_hash=a5418ce60809f2cb171596780f5fd8f3399172512bec33f6cf6238fdfff3142f)(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0))(react-native-worklets@0.13.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7)(@react-native/metro-config@0.88.1(@babel/core@7.29.7))(@types/react@19.3.0)(react@19.3.0))(react@19.3.0)(typescript@6.0.3)
|
||||
react: 19.3.0
|
||||
|
||||
Reference in New Issue
Block a user