From 5ae19bbdf3bdcd35be0bbe5631ea2cada4082b77 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Sat, 28 Oct 2023 18:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A4=BA=E4=BE=8B=E4=B8=AD?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=20utsarray=20=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-platform-api/utssdk/app-android/index.uts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uni_modules/uts-platform-api/utssdk/app-android/index.uts b/uni_modules/uts-platform-api/utssdk/app-android/index.uts index 2b5db4b..11b6663 100644 --- a/uni_modules/uts-platform-api/utssdk/app-android/index.uts +++ b/uni_modules/uts-platform-api/utssdk/app-android/index.uts @@ -119,7 +119,7 @@ export function gotoSystemPermissionActivityTest() { */ export function gotoCameraTake(imageDone : (event : string) => void) : boolean { - let permissionNeed = utsArrayOf("android.permission.CAMERA") + let permissionNeed = ["android.permission.CAMERA"] UTSAndroid.requestSystemPermission(UTSAndroid.getUniActivity()!, permissionNeed, function (allRight : boolean, _grantedList : string[]) { if (allRight) { @@ -282,7 +282,7 @@ export function arrayPermissionFlowTest(callback : (ret : boolean, desc : string /** * 同时申请日历和联系人权限 */ - let permissionNeed = utsArrayOf("android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.ACCESS_FINE_LOCATION", "android.permission.READ_PHONE_STATE") + let permissionNeed = ["android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.ACCESS_FINE_LOCATION", "android.permission.READ_PHONE_STATE"] if (UTSAndroid.getSystemPermissionDenied(UTSAndroid.getUniActivity()!, permissionNeed).isEmpty()) { callback(false, "已具备请求权限") @@ -429,7 +429,7 @@ export function singlePermissionFlowTest(callback : (ret : boolean, desc : strin return } - let permissionNeed = utsArrayOf("android.permission.READ_PHONE_STATE") + let permissionNeed = ["android.permission.READ_PHONE_STATE"] if (UTSAndroid.getSystemPermissionDenied(UTSAndroid.getUniActivity()!, permissionNeed).isEmpty()) { callback(false, "已具备权限") return; -- GitLab