DevEco Studio Hongmeng (HarmonyOS) project structure
1. Operating environment
Operating system: Windows 10 Professional
IDE: DevEco Studio 3.1
SDK:HarmonyOS 3.1
2. Project structure
Create a simple Hello World mobile application project structure as shown below
Explain the function of each folder from top to bottom
.hvigor: Stores build configuration file information.
.idea: stores the configuration information of the project.
AppScope: Global shared resource storage directory.
entry:HarmonyOS project core module, compile and build to generate a HAP package. HAP files are also stored here.
hvigor:Build configuration file information. It is a new front-end construction task orchestration tool based on TS. Combined with the npm package management mechanism, it mainly provides task management mechanism and task registration orchestration. , engineering model management, configuration management and other key capabilities are more in line with the development habits of ArkTS/JS developers.
oh_modules: used to store third-party library dependency information.
.gitignore:git filter configuration.
build-profile.json5:Application-level configuration information, including signatures, product configurations, etc.
hvigorfile.ts:Application-level compilation and build task script.
hvigorw and hvigorw.bat:ohpm compile and build tools.
local.properties:A file that stores local properties.
oh-package.json5:Dependency configuration, you can set third-party package dependencies.
Okay, let’s stop writing this!
Please come to my house often to see me when you have time. Thank you for being here...
My home site: Ya Ding No.
Finally, I give you a poem:
The mountains are high, the roads are far away and the pits are deep,
The army is galloping in all directions,
Who dares to stand upright with a sword?
Just like and follow the army.