收口移动网络桥接响应边界
将 Expo network.status 成功响应包装收口到 network 模块 让移动 dispatch 只委托网络状态请求 同步移动壳配置门禁和共享记忆
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user