Build your application for OpenHarmony
Optimize distribution size
Export an OpenHarmony project
If you need more control over the build pipeline, you can export a Tuanjie project as a hvigor project and import that into DevEco Studio. This is useful if you want more control over the build pipeline, want to see or modify the OpenHarmony App Module that Tuanjie generates for your application.
Exporting by default
To export a Tuanjie project for DevEco Studio:
- Select File > Build Settings.
- From the list of platforms in the Platform pane, select OpenHarmony.
Note: If OpenHarmony is greyed out, set up your project for OpenHarmony development.
- Enable Export Project. Select Default option in
Export Project Type
drop down list.
- Click Export.
- Select the destination folder and click Select Folder to start the export process.
After Tuanjie exports the hvigor project, you can import the hvigor project into DevEco Studio. For information on the file structure of the exported hvigor project, refer to Hvigor project structure.
Use as A Library (UAAL)
To use Tuanjie as a library is as simple as exporting a normal project:
- Enable Export Project.
- Select Use As A Library(Recommanded) option in
Export Project Type
drop down list.
- Click Export.
- Select the destination folder and click Select Folder to start the export process.
- The exported project is a minimal project that shows use Tuanjie as a library. Open the project with DevEco Studio and enjoy it.
Other resource
Build your application for OpenHarmony
Optimize distribution size