收口移动壳权限文档口径
修正移动壳图片拍摄与麦克风权限的协议文档口径 修正移动壳 Android 权限清单方案说明 增加原生壳门禁拦截旧权限描述
This commit is contained in:
@@ -1032,6 +1032,20 @@ function assertNativeShellCapabilityPlan() {
|
||||
'native shell plan must document the minimal desktop capability permission',
|
||||
);
|
||||
}
|
||||
for (const staleMobilePermissionText of [
|
||||
'Android `permissions` 不手写显式权限',
|
||||
'最终 Expo public config 只允许扫码能力由 `expo-camera` plugin 带入 `android.permission.CAMERA`',
|
||||
'移动拍摄不请求麦克风权限',
|
||||
]) {
|
||||
if (
|
||||
planSource.includes(staleMobilePermissionText) ||
|
||||
hostBridgeProtocolDocSource.includes(staleMobilePermissionText)
|
||||
) {
|
||||
throw new Error(
|
||||
`native shell docs must not keep stale mobile permission wording: ${staleMobilePermissionText}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
assertNativeShellScaffoldScanWording(planSource, 'native shell plan');
|
||||
assertNativeShellScaffoldScanWording(
|
||||
hostBridgeProtocolDocSource,
|
||||
|
||||
Reference in New Issue
Block a user