harmony 鸿蒙Differences in Configuration Files
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
你可能感兴趣的鸿蒙文章
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
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦