收紧移动壳启动地址归一
Expo 移动壳只接受 http 和 https 基准 H5 地址 非法启动地址回退默认 H5 并继续附加宿主上下文 Deep link 继续限制为同源 H5 路径 补充启动地址检查测试和架构文档
This commit is contained in:
@@ -127,12 +127,17 @@ for (const snippet of [
|
||||
'SafeAreaProvider',
|
||||
'SafeAreaView',
|
||||
'MOBILE_SHELL_SAFE_AREA_EDGES',
|
||||
'resolveMobileShellBaseWebUrl',
|
||||
]) {
|
||||
if (!appSource.includes(snippet)) {
|
||||
throw new Error(`mobile shell App missing ${snippet}`);
|
||||
}
|
||||
}
|
||||
|
||||
if (appSource.includes('process.env.EXPO_PUBLIC_GENARRATIVE_WEB_URL ||')) {
|
||||
throw new Error('mobile shell App must normalize EXPO_PUBLIC_GENARRATIVE_WEB_URL');
|
||||
}
|
||||
|
||||
for (const dependency of [
|
||||
'expo-file-system',
|
||||
'expo-document-picker',
|
||||
|
||||
Reference in New Issue
Block a user