From 92f6ab9e337f5dea0df498613ce2b6c868dacd0d Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Sat, 21 Sep 2024 17:41:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=95=BF=E5=88=97=E8=A1=A8=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E5=AF=B9=E6=AF=94=E3=80=91=E6=9B=B4=E6=96=B0=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=BD=BF=E7=94=A8=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/module.json5 | 9 ++++++++- entry/src/main/resources/base/element/string.json | 4 ++++ entry/src/main/resources/en_US/element/string.json | 4 ++++ entry/src/main/resources/zh_CN/element/string.json | 4 ++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 7d86119..8c8c6b1 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -36,7 +36,14 @@ ], "requestPermissions": [ { - "name": "ohos.permission.INTERNET" + "name": "ohos.permission.INTERNET", + "reason": "$string:reason_internet", + "usedScene": { + "abilities": [ + "EntryAbility" + ], + "when": "always" + } } ] } diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 1224b0f..e25a4c6 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -19,6 +19,10 @@ { "name": "lazy_foreach", "value": "LazyForEach" + }, + { + "name": "reason_internet", + "value": "Allow the app to use the Internet network when obtaining list information" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index 1224b0f..e25a4c6 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -19,6 +19,10 @@ { "name": "lazy_foreach", "value": "LazyForEach" + }, + { + "name": "reason_internet", + "value": "Allow the app to use the Internet network when obtaining list information" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index ff05d99..1db9d9e 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -19,6 +19,10 @@ { "name": "lazy_foreach", "value": "LazyForEach" + }, + { + "name": "reason_internet", + "value": "允许应用在获取列表信息时使用Internet网络" } ] } \ No newline at end of file -- Gitee