harmony 鸿蒙Multi-HAP Build View

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

Multi-HAP Build View

DevEco Studio allows you to develop and build multiple HAP files in one application project, as shown below.

Figure 1 Multi-HAP build view

hap-multi-view

  1. Development view in DevEco Studio

    • AppScope folder

      • app.json5: stores application-wide configuration, such as the application bundle name, version number, application icon, application name, and dependent SDK version number.
      • resources folder: stores application icon resources and application name string resources.

      NOTE

      • The folder is automatically generated by DevEco Studio and its name cannot be changed.
      • The file names in the AppScope folder cannot be the same as those in the entry- or feature-type module folder. Otherwise, an error will be reported.
    • entry or feature folder (whose name is customizable)

      • A module folder created by the developer by following the creation wizard of DevEco Studio. It stores the service logic implementation of the application. Multiple module folders can be created. In the preceding figure, entry and feature are two created module folders.
      • resources folder: stores the resources used by the module.
      • ets folder: stores the service logic.
      • module.json5: stores module configuration, such as the module name, entry code path of the module, and component information.
  2. View after build and packaging

    • After a module is built, a HAP file for deployment is generated. Each module corresponds to a HAP file.
    • The module.json file in the HAP file is composed of the app.json5 and module.json5 files in the development view.
    • All HAP files are finally built into an Application Package (App Pack) in .app format for release to the application market.

你可能感兴趣的鸿蒙文章

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  赞