/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// [Start module_all]
// [Start module_metadata]
// [Start module_abilities_skills]
// [Start module_systemTheme]
// [Start module_fileContextMenu]
// [Start module_appEnvironments]
// [Start module_abilities_metadata]
// [Start module_pages]
{
  // [StartExclude module_abilities_skills]
  "module": {
    // [StartExclude module_pages]
    // [StartExclude module_abilities_metadata]
    // [StartExclude module_appEnvironments]
    // [StartExclude module_systemTheme]
    // [StartExclude module_fileContextMenu]
    // [StartExclude module_metadata]
    "name": "entry",
    "type": "entry",
    "description": "$string:module_desc",
    "mainElement": "EntryAbility",
    "deviceTypes": [
      "tv",
      "tablet"
    ],
    "deliveryWithInstall": true,
    // [EndExclude module_pages]
    "pages": "$profile:main_pages", // 资源配置,指向profile下面定义的配置文件main_pages.json
    // [StartExclude module_pages]
    "appStartup": "$profile:app_startup_config",
    // [EndExclude module_metadata]
    "metadata": [
      // [StartExclude module_metadata]
      {
        "name": "string",
        "value": "string",
        "resource": "$profile:distributionFilter_config"
      },
      // [EndExclude module_metadata]
      // [StartExclude module_all]
      {
        "name": "module_metadata",
        "value": "a test demo for module metadata",
        "resource": "$profile:shortcuts_config"
      }
      // [EndExclude module_all]
    ],
    // [StartExclude module_metadata]
    // [EndExclude module_abilities_metadata]
    // [EndExclude module_abilities_skills]
    "abilities": [
      {
        // [StartExclude module_abilities_skills]
        "name": "EntryAbility",
        "srcEntry": "./ets/entryability/EntryAbility.ets",
        // [StartExclude module_abilities_metadata]
        "description": "$string:EntryAbility_desc",
        "icon": "$media:layered_image",
        "label": "$string:EntryAbility_label",
        "startWindow": "$profile:start_window",
        "startWindowIcon": "$media:icon",
        "startWindowBackground": "$color:start_window_background",
        "exported": true,
        // [EndExclude module_abilities_skills]
        // [EndExclude module_abilities_metadata]
        "skills": [
          // [StartExclude module_all]
          // [StartExclude module_abilities_metadata]
          {
            "actions": [
              "ohos.want.action.home"
            ],
            "entities": [
              "entity.system.home"
            ],
            "uris": [
              {
                "scheme":"http",
                "host":"example.com",
                "port":"80",
                "path":"path",
                "type": "text/*",
                "linkFeature": "Login"
              }
            ],
            "permissions": [],
            "domainVerify": false
          },
          // [StartExclude module_abilities_skills]
          // [EndExclude module_all]
          // [EndExclude module_abilities_metadata]
          {
            "entities": [
              "entity.system.home"
            ],
            "actions": [
              "ohos.want.action.home"
            ]
          }
          // [EndExclude module_abilities_skills]
        ],
        // [StartExclude module_abilities_skills]
        // [StartExclude module_all]
        "metadata": [
          {
            "name": "ohos.ability.shortcuts",
            "resource": "$profile:shortcuts_config"
          }
        ],
        // [StartExclude module_abilities_metadata]
        // [EndExclude module_all]
        "continueType": [
          "continueType1"
        ],
        "continueBundleName": [
          "com.example.myapplication1",
          "com.example.myapplication2"
        ],
        // [EndExclude module_abilities_metadata]
        // [EndExclude module_abilities_skills]
      }
    ],
    // [StartExclude module_abilities_skills]
    // [StartExclude module_abilities_metadata]
    "requestPermissions": [
      {
        "name": "ohos.permission.ACCESS_BLUETOOTH",
        "reason": "$string:reason",
        "usedScene": {
          "abilities": [
            "EntryAbility"
          ],
          "when": "inuse"
        }
      }
    ],
    "querySchemes": [
      "app1Scheme",
      "app2Scheme"
    ],
    "routerMap": "$profile:router_map",
    // [EndExclude module_appEnvironments]
    "appEnvironments": [
      {
        "name": "name1",
        "value": "value1"
      }
    ],
    // [StartExclude module_appEnvironments]
    // [EndExclude module_fileContextMenu]
    "fileContextMenu": "$profile:menu", // 资源配置,指向profile下面定义的配置文件menu.json
    // [StartExclude module_fileContextMenu]
    "crossAppSharedConfig": "$profile:shared_config",
    // [StartExclude module_all]
    // [EndExclude module_systemTheme]
    "systemTheme": "$profile:theme_config", // 资源配置,指向profile下面定义的配置文件theme_config.json
    // [EndExclude module_metadata]
    // [EndExclude module_all]
    // [EndExclude module_fileContextMenu]
    // [EndExclude module_appEnvironments]
    // [EndExclude module_abilities_metadata]
    // [EndExclude module_pages]
  }
  // [EndExclude module_abilities_skills]
}
// [End module_pages]
// [End module_abilities_metadata]
// [End module_appEnvironments]
// [End module_fileContextMenu]
// [End module_systemTheme]
// [End module_abilities_skills]
// [End module_metadata]
// [End module_all]