目录

Build Products

HAP and HSP Build Products

HAP and HSP build products in release mode typically include the following files:

  • The resources.index file contains plaintext information. To prevent information leakage, do not configure sensitive information in plaintext within resource files, such as string.json.
  • In the src/main/ets directory of a module, only .ets, .ts, and .js files are processed during compilation. Other files are packaged as resource files in the build product, without obfuscation or encryption. Do not store sensitive information in this directory.
  • In HAP or HSP files built with debug mode, the ets directory contains sourceMaps.map files with source code mapping information. For details about the format and parsing process of sourceMaps.map, see ArkTS Stack Trace Analysis Principles.
  • Lite wearables use standard JavaScript runtime. Therefore, the build product in release mode contains JavaScript source code. Take appropriate measures to protect your code assets.

HAR Build Products

For details, see Building a HAR.

App Pack Build Products

The following figure shows an example of the App Pack build products. The package name depends on the module name in your project, which may be different from that shown below.