1/* 2 * Copyright (C) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15{ 16 "module": { 17 "name": "entry", 18 "type": "entry", 19 "description": "$string:module_desc", 20 "mainElement": "EntryAbility", 21 "deviceTypes": [ 22 "default", 23 "tablet", 24 "2in1", 25 "wearable" 26 ], 27 "deliveryWithInstall": true, 28 "installationFree": false, 29 "pages": "$profile:main_pages", 30 "metadata": [ 31 { 32 "name": "test_metadata" 33 } 34 ], 35 "abilities": [ 36 { 37 "name": "EntryAbility", 38 "srcEntry": "./ets/entryability/EntryAbility.ts", 39 "description": "$string:EntryAbility_desc", 40 "icon": "$media:icon", 41 "label": "$string:EntryAbility_label", 42 "startWindowIcon": "$media:icon", 43 "startWindowBackground": "$color:start_window_background", 44 "exported": true, 45 "skills": [ 46 { 47 "entities": [ 48 "entity.system.home" 49 ], 50 "actions": [ 51 "action.system.home" 52 ] 53 } 54 ] 55 }, 56 { 57 "name": "OtherAbility", 58 "srcEntry": "./ets/otherability/OtherAbility.ts", 59 "description": "$string:OtherAbility_desc", 60 "visible": true, 61 "icon": "$media:icon", 62 "label": "$string:OtherAbility_label", 63 "startWindowIcon": "$media:icon", 64 "startWindowBackground": "$color:start_window_background" 65 }, 66 { 67 "name": "CalledAbility", 68 "srcEntry": "./ets/calledability/CalledAbility.ts", 69 "description": "$string:CalledAbility_desc", 70 "visible": true, 71 "icon": "$media:icon", 72 "label": "$string:CalledAbility_label", 73 "launchType": "standard", 74 "exported": false, 75 "startWindowIcon": "$media:icon", 76 "startWindowBackground": "$color:start_window_background" 77 } 78 ], 79 "extensionAbilities": [ 80 { 81 "name": "UIExtAbility", 82 "icon": "$media:icon", 83 "description": "UIExtAbility", 84 "type": "action", 85 "visible": true, 86 "srcEntrance": "./ets/UIExtensionAbility/UIExtAbility.ts" 87 }, 88 { 89 "name": "ActsActionExtensionAbility", 90 "icon": "$media:icon", 91 "description": "ActsActionExtensionAbility", 92 "type": "action", 93 "visible": true, 94 "srcEntrance": "./ets/actionextensionability/ActsActionExtensionAbility.ts" 95 } 96 ], 97 "requestPermissions": [ 98 { 99 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 100 } 101 ] 102 } 103}