diff --git a/README_zh.md b/README_zh.md index 3377dd09b57744f987799a16e02c9a2d63f0b445..8bf8ddceede47bd112e83edcfb3fd01820e4cde2 100644 --- a/README_zh.md +++ b/README_zh.md @@ -41,7 +41,7 @@ [媒体库服务](https://gitee.com/openharmony/multimedia_medialibrary_standard) [存储管理服务](https://gitee.com/openharmony/filemanagement_storage_service) [文件访问接口](https://gitee.com/openharmony/filemanagement_file_api) -[多用户管理](http:////gitee.com/openharmony/account_os_account) +[多用户管理](https://gitee.com/openharmony/account_os_account) [**公共文件访问框架**](https://gitee.com/openharmony/filemanagement_user_file_service) diff --git a/services/file_extension_hap/entry/build-profile.json5 b/services/file_extension_hap/entry/build-profile.json5 index d3089f7ba484c6385983234a1f147c161a5d9cdd..3c8e3bd058b31b3d7a11fe0f5c38547914d74de8 100644 --- a/services/file_extension_hap/entry/build-profile.json5 +++ b/services/file_extension_hap/entry/build-profile.json5 @@ -13,12 +13,27 @@ * limitations under the License. */ { - "apiType": 'stageMode', + "apiType": "stageMode", "buildOption": { }, + "buildOptionSet": [ + { + "name": "release", + "arkOptions": { + "obfuscation": { + "ruleOptions": { + "enable": false, + "files": [ + "./obfuscation-rules.txt" + ] + } + } + } + }, + ], "targets": [ { - "name": "default", + "name": "default" } ] -} \ No newline at end of file +}} \ No newline at end of file diff --git a/services/file_extension_hap/entry/src/main/module.json b/services/file_extension_hap/entry/src/main/module.json index 36f17c61be00e392a4e8a6db402f0ebac5292534..25dcfe6ad3b974db07652eb0a05cc9ed3a42583f 100644 --- a/services/file_extension_hap/entry/src/main/module.json +++ b/services/file_extension_hap/entry/src/main/module.json @@ -2,10 +2,9 @@ "module": { "name": "entry", "type": "entry", - "srcEntrance": "./ets/Application/AbilityStage.ts", + "description": "$string:module_desc", "mainElement": "FileExtensionAbility", "deviceTypes": [ - "default", "phone", "tablet", "2in1" @@ -13,15 +12,34 @@ "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", - "uiSyntax": "ets", - "abilities": [], + "abilities": [ + { + "name": "EntryAbility", + "srcEntry": "./ets/entryability/EntryAbility.ets", + "description": "$string:EntryAbility_desc", + "icon": "$media:layered_image", + "label": "$string:EntryAbility_label", + "startWindowIcon": "$media:startIcon", + "startWindowBackground": "$color:start_window_background", + "exported": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ], "extensionAbilities": [ { - "srcEntrance": "./ets/FileExtensionAbility/FileExtensionAbility.ts", "name": "FileExtensionAbility", + "srcEntry": "./ets/FileExtensionAbility/FileExtensionAbility.ts", "type": "fileAccess", "uri": "fileAccess://docs", - "visible": true } ], "requestPermissions": [ @@ -29,5 +47,5 @@ "name": "ohos.permission.FILE_ACCESS_MANAGER" } ] - } -} + } +} \ No newline at end of file