harmony 鸿蒙Differences in Configuration Files

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

Differences in Configuration Files

The FA model uses the config.json file to describe the basic information about an application. An application can have multiple modules, and each module has a config.json file. The config.json file consists of three parts: app, deviceConfig, and module. The app tag is used to configure application-level attributes. If an application has multiple modules, the app configuration in each config.json file must be consistent.

The stage model uses the app.json5 and module.json files to describe the basic information about an application. An application can have multiple modules but only one app.json5 file. This file is used to configure application-level attributes and the configuration applies to all the modules. Each module has a module.json5 file, which is used to configure module-level attributes and the configuration applies only for the current module.

Figure 1 Configuration file differences

comparison-of-configuration-file

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit

harmony 鸿蒙Obtaining Reasons for Abnormal Application Exits

harmony 鸿蒙UIAbility Backup and Restore

harmony 鸿蒙Using Explicit Want to Start an Application Component

harmony 鸿蒙Introduction to Ability Kit

harmony 鸿蒙AbilityStage Component Container

harmony 鸿蒙Accessing a DataAbility

harmony 鸿蒙Accessing a DataShareExtensionAbility from the FA Model

harmony 鸿蒙Common action and entities Values (Not Recommended)

harmony 鸿蒙API Switching Overview

0  赞