收口移动运行时响应边界

将 Expo host.getRuntime 成功响应包装收口到 runtime 模块

让移动 dispatch 只委托运行时请求

同步移动壳配置门禁和共享记忆
This commit is contained in:
2026-06-20 01:55:58 +08:00
parent 941e7d979a
commit 65b9125d22
4 changed files with 13 additions and 4 deletions
+4 -1
View File
@@ -1802,6 +1802,8 @@ for (const runtimeSnippet of [
'const platform = getMobileRuntimePlatform();',
'platform,',
'capabilities: resolveMobileHostCapabilities(platform)',
'getMobileHostBridgeRuntimeResponse(request: HostBridgeRequest)',
'ok(request, getMobileHostBridgeRuntime())',
]) {
if (!hostBridgeRuntimeSource.includes(runtimeSnippet)) {
throw new Error(`mobile shell runtime response missing ${runtimeSnippet}`);
@@ -1809,7 +1811,8 @@ for (const runtimeSnippet of [
}
if (
!dispatchSource.includes('getMobileHostBridgeRuntime()') ||
!dispatchSource.includes('getMobileHostBridgeRuntimeResponse(request)') ||
dispatchSource.includes('ok(request, getMobileHostBridgeRuntime') ||
dispatchSource.includes('MOBILE_SHELL_HOST_VERSION') ||
dispatchSource.includes('HOST_BRIDGE_VERSION') ||
dispatchSource.includes('resolveMobileHostCapabilities(') ||