收口移动运行时响应边界
将 Expo host.getRuntime 成功响应包装收口到 runtime 模块 让移动 dispatch 只委托运行时请求 同步移动壳配置门禁和共享记忆
This commit is contained in:
@@ -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(') ||
|
||||
|
||||
Reference in New Issue
Block a user