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 "srcEntrance": "./ets/Application/MyAbilityStage.ts", 20 "description": "$string:entry_desc", 21 "mainElement": "MainAbility", 22 "deviceTypes": [ 23 "default", 24 "tablet", 25 "2in1", 26 "phone" 27 ], 28 "deliveryWithInstall": true, 29 "installationFree": false, 30 "pages": "$profile:main_pages", 31 "abilities": [], 32 "requestPermissions": [ 33 { 34 "name": "ohos.permission.MANAGE_SECURE_SETTINGS" 35 }, 36 { 37 "name": "ohos.permission.MANAGE_SETTINGS" 38 }, 39 { 40 "name": "ohos.permission.GET_BUNDLE_INFO" 41 } 42 ], 43 "extensionAbilities": [ 44 { 45 "name": "ToastExtensionAbility", 46 "srcEntrance": "./ets/ServiceExtAbility/ToastExtensionAbility.ts", 47 "description": "$string:ToastExtensionAbility_desc", 48 "icon": "$media:icon", 49 "label":"$string:ToastExtensionAbility_label", 50 "visible": false, 51 "type": "service" 52 }, 53 { 54 "name": "PasteboardSwitchAbility", 55 "srcEntry": "./ets/pasteboardswitchability/PasteboardSwitchAbility.ets", 56 "description": "$string:PasteboardSwitchAbility_desc", 57 "label": "$string:PasteboardSwitchAbility_label", 58 "type": "sys/commonUI", 59 "exported": true 60 } 61 ], 62 "metadata": [ 63 { 64 "name": "action.settings.search.path", 65 "value": "searchConfig/searchPage.json" 66 } 67 ] 68 } 69}