1/* 2 * Copyright (C) 2025 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": "hap2", 18 "type": "feature", 19 "description": "$string:module1_desc", 20 "mainElement": "MainAbility", 21 "deviceTypes": [], 22 "deliveryWithInstall": true, 23 "installationFree": false, 24 "pages": "$profile:main_pages", 25 "abilities": [ 26 { 27 "name": "MainAbility", 28 "srcEntry": "./ets/MainAbility/MainAbility.ts", 29 "description": "$string:MainAbility_desc", 30 "icon": "$media:icon", 31 "label": "$string:MainAbility_label", 32 "startWindowIcon": "$media:icon", 33 "startWindowBackground": "$color:white", 34 "visible": true 35 }, 36 { 37 "name": "Ability02", 38 "srcEntry": "./ets/MainAbility/ability.ts", 39 "description": "$string:MainAbility_desc", 40 "icon": "$media:icon", 41 "label": "$string:MainAbility_label", 42 "startWindowIcon": "$media:icon", 43 "startWindowBackground": "$color:white", 44 "visible": true, 45 "exported": true 46 } 47 ] 48 } 49}