收口移动网络桥接响应边界

将 Expo network.status 成功响应包装收口到 network 模块

让移动 dispatch 只委托网络状态请求

同步移动壳配置门禁和共享记忆
This commit is contained in:
2026-06-20 00:06:30 +08:00
parent 3d4657432a
commit e51d92f0d5
4 changed files with 13 additions and 6 deletions
+5 -2
View File
@@ -1962,14 +1962,17 @@ if (!hostBridgeNavigationSource.includes('openMobileShellExternalNavigation(Link
}
if (
!dispatchSource.includes('getMobileHostBridgeNetworkStatus()') ||
!dispatchSource.includes('getMobileHostBridgeNetworkStatus(request)') ||
dispatchSource.includes('../shell/network') ||
dispatchSource.includes('getMobileNetworkStatus()')
dispatchSource.includes('getMobileNetworkStatus()') ||
dispatchSource.includes('ok(request, await getMobileHostBridgeNetworkStatus())')
) {
throw new Error('mobile shell network HostBridge method must delegate to network module');
}
for (const snippet of [
'getMobileHostBridgeNetworkStatus',
'request: HostBridgeRequest',
'ok(request, await getMobileNetworkStatus())',
'getMobileNetworkStatus()',
]) {
if (!hostBridgeNetworkSource.includes(snippet)) {