Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions src/apps/ohos/entry/src/main/module.json5
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,20 @@
],
"requestPermissions": [
{
"name": "ohos.permission.INTERNET"
"name": "ohos.permission.INTERNET",
"reason": "$string:permission_internet_reason"
},
{
"name": "ohos.permission.READ_WRITE_USER_FILE"
"name": "ohos.permission.READ_WRITE_USER_FILE",
"reason": "$string:permission_user_file_reason"
},
{
"name": "ohos.permission.CUSTOM_SANDBOX"
"name": "ohos.permission.CUSTOM_SANDBOX",
"reason": "$string:permission_custom_sandbox_reason"
},
{
"name": "ohos.permission.READ_CALENDAR",
"reason": "$string:module_desc",
"reason": "$string:permission_read_calendar_reason",
"usedScene": {
"abilities": [
"EntryAbility"
Expand All @@ -53,7 +56,7 @@
},
{
"name": "ohos.permission.WRITE_CALENDAR",
"reason": "$string:module_desc",
"reason": "$string:permission_write_calendar_reason",
"usedScene": {
"abilities": [
"EntryAbility"
Expand All @@ -63,7 +66,7 @@
},
{
"name": "ohos.permission.READ_WRITE_DESKTOP_DIRECTORY",
"reason": "$string:module_desc",
"reason": "$string:permission_desktop_directory_reason",
"usedScene": {
"abilities": [
"EntryAbility"
Expand All @@ -73,7 +76,7 @@
},
{
"name": "ohos.permission.READ_WRITE_DOCUMENTS_DIRECTORY",
"reason": "$string:module_desc",
"reason": "$string:permission_documents_directory_reason",
"usedScene": {
"abilities": [
"EntryAbility"
Expand All @@ -83,7 +86,7 @@
},
{
"name": "ohos.permission.READ_WRITE_DOWNLOAD_DIRECTORY",
"reason": "$string:module_desc",
"reason": "$string:permission_download_directory_reason",
"usedScene": {
"abilities": [
"EntryAbility"
Expand Down
32 changes: 32 additions & 0 deletions src/apps/ohos/entry/src/main/resources/base/element/string.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,38 @@
{
"name": "EntryAbility_label",
"value": "BitFun"
},
{
"name": "permission_internet_reason",
"value": "Used to access the network for communicating with remote AI services"
},
{
"name": "permission_user_file_reason",
"value": "Used to read and write user-selected files for code editing and project management"
},
{
"name": "permission_custom_sandbox_reason",
"value": "Used to access custom sandbox paths for project workspace operations"
},
{
"name": "permission_read_calendar_reason",
"value": "Used to read calendar events for task scheduling and reminders"
},
{
"name": "permission_write_calendar_reason",
"value": "Used to write calendar events for task scheduling and reminders"
},
{
"name": "permission_desktop_directory_reason",
"value": "Used to access desktop directory for file management and project operations"
},
{
"name": "permission_documents_directory_reason",
"value": "Used to access documents directory for file management and project operations"
},
{
"name": "permission_download_directory_reason",
"value": "Used to access download directory for file management and project operations"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const MiniAppRunner: React.FC<MiniAppRunnerProps> = ({ app, runScope }) => {
data-run-scope={runScope?.kind ?? 'active'}
sandbox="allow-scripts allow-forms allow-modals allow-popups allow-downloads"
style={{ width: '100%', height: '100%', border: 'none', display: 'block' }}
title={app.name}
aria-label={app.name}
/>
);
};
Expand Down
Loading