收口移动壳通知桥接边界

将 Expo 本地通知 payload 归一收口到 notifications 模块

让移动壳 dispatch 只委托通知 HostBridge 请求

同步移动壳结构门禁、架构文档和共享记忆
This commit is contained in:
2026-06-19 22:24:41 +08:00
parent 1d6fda4696
commit b1c42885ba
6 changed files with 31 additions and 16 deletions
+12 -1
View File
@@ -1529,7 +1529,8 @@ if (
}
if (
!dispatchSource.includes('showMobileLocalNotification(notification)') ||
!dispatchSource.includes('showMobileHostBridgeLocalNotification(request.payload)') ||
dispatchSource.includes('normalizeHostBridgeLocalNotification') ||
dispatchSource.includes("from 'expo-notifications'") ||
dispatchSource.includes('Notifications.scheduleNotificationAsync') ||
dispatchSource.includes('Notifications.requestPermissionsAsync') ||
@@ -1539,6 +1540,16 @@ if (
'mobile shell dispatch must delegate local notification delivery to notifications.ts',
);
}
for (const notificationSnippet of [
'showMobileHostBridgeLocalNotification',
'normalizeHostBridgeLocalNotification(payload)',
"invalidRequest('title is required')",
'showMobileLocalNotification(notification)',
]) {
if (!notificationsSource.includes(notificationSnippet)) {
throw new Error(`mobile shell notifications module is missing ${notificationSnippet}`);
}
}
for (const snippet of [
'file.exportText',