harmony 鸿蒙Multi-HAP Usage Rules

  • 2023-02-03
  • 浏览 (555)

Multi-HAP Usage Rules

  • The App Pack cannot be directly installed on a device. It is only used to be released to the application market.

  • All HAP files in the App Pack must share the same bundleName value in the configuration files.

  • All HAP files in the App Pack must share the same versionCode value in the configuration files.

  • In an App Pack, each type of device supports only one HAP file of the entry type and zero, one, or more HAP files of the feature type.

  • Each HAP file in the App Pack must have moduleName configured. Among HAP files of the same device type, the moduleName value must be unique.

  • The signing certificates of all HAP files in the same application must be the same. Applications are released to the application market in the form of App Pack after being signed. Before distribution, the application market splits an App Pack into HAP files and resigns them to ensure the consistency of HAP file signing certificates. Before installing HAP files on a device through the CLI or DevEco Studio for debugging, ensure that their signing certificates are the same. Otherwise, the installation will fail.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Quick Start

harmony 鸿蒙app.json5 Configuration File

harmony 鸿蒙Internal Structure of the app Tag

harmony 鸿蒙Application Configuration File Overview (FA Model)

harmony 鸿蒙Application Configuration File Overview (Stage Model)

harmony 鸿蒙Application Installation and Uninstallation Process

harmony 鸿蒙Application Package Overview

harmony 鸿蒙Application Package Structure in FA Model

harmony 鸿蒙Application Package Structure in Stage Model

harmony 鸿蒙Application Package Update Process

0  赞