From fc806f02f8ff563ea5f27d8dfa92d8991fd4c4d6 Mon Sep 17 00:00:00 2001 From: wwyang <137208408@qq.com> Date: Sun, 25 Aug 2024 16:17:20 +0800 Subject: [PATCH] =?UTF-8?q?camera=E4=B8=89=E6=96=B9=E5=BA=93=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wwyang <137208408@qq.com> --- .../example/ohos/entry/src/main/module.json5 | 23 ------------------- .../plugins/camera/CameraPermissions.ets | 4 +--- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/packages/camera/camera_ohos/example/ohos/entry/src/main/module.json5 b/packages/camera/camera_ohos/example/ohos/entry/src/main/module.json5 index 63cab6c2f..9757bb40a 100644 --- a/packages/camera/camera_ohos/example/ohos/entry/src/main/module.json5 +++ b/packages/camera/camera_ohos/example/ohos/entry/src/main/module.json5 @@ -77,29 +77,6 @@ "when": "inuse" } }, - { - "name": "ohos.permission.READ_IMAGEVIDEO", - "reason": "$string:reason", - "usedScene": { - "abilities": [ - "FormAbility" - ], - "when": "inuse" - } - }, - { - "name": "ohos.permission.WRITE_IMAGEVIDEO", - "reason": "$string:reason", - "usedScene": { - "abilities": [ - "FormAbility" - ], - "when": "inuse" - } - }, - // { - // "name": "ohos.permission.CAPTURE_VOICE_DOWNLINK_AUDIO" - // } ] } } \ No newline at end of file diff --git a/packages/camera/camera_ohos/ohos/src/main/ets/io/flutter/plugins/camera/CameraPermissions.ets b/packages/camera/camera_ohos/ohos/src/main/ets/io/flutter/plugins/camera/CameraPermissions.ets index d04a8ce51..0a8631171 100644 --- a/packages/camera/camera_ohos/ohos/src/main/ets/io/flutter/plugins/camera/CameraPermissions.ets +++ b/packages/camera/camera_ohos/ohos/src/main/ets/io/flutter/plugins/camera/CameraPermissions.ets @@ -21,9 +21,7 @@ type ResultCallback = (errCode: string | null, errDesc: string | null) => void; const cameraPermission: Array = ['ohos.permission.CAMERA', - 'ohos.permission.MICROPHONE', - 'ohos.permission.READ_IMAGEVIDEO', - 'ohos.permission.WRITE_IMAGEVIDEO']; + 'ohos.permission.MICROPHONE']; const audioPermission: Array = ['ohos.permission.CAPTURE_VOICE_DOWNLINK_AUDIO']; -- Gitee