harmony 鸿蒙Differences in Configuration Files

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

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 鸿蒙Application Models

harmony 鸿蒙Using Explicit Want to Start an Application Component

harmony 鸿蒙Using Implicit Want to Open a Website

harmony 鸿蒙AbilityStage Component Container

harmony 鸿蒙Accessing a DataAbility

harmony 鸿蒙Accessing a DataShareExtensionAbility from the FA Model

harmony 鸿蒙AccessibilityExtensionAbility

harmony 鸿蒙Common action and entities Values

harmony 鸿蒙API Switching Overview

harmony 鸿蒙Switching of app and deviceConfig

0  赞