To create a Tuanjie application for OpenHarmony, you first need to set up your Tuanjie project to support OpenHarmony. To support OpenHarmony, a Tuanjie project requires the following dependencies:
Before you get started, check Tuanjie’s Requirements and compatibility documentation for OpenHarmony to make sure you’re aware of any limitations for developing a Tuanjie application for OpenHarmony.
Tuanjie distributes dependencies as modules which means you use the Tuanjie Hub to install them. You can install them either when you install a new Tuanjie Editor version, or add them to an existing Tuanjie Editor install. To install modules:
The four modules to install are:
Tuanjie installs OpenHarmony SDK & Node.js SDK and OpenJDK respectively in the SDK
, nodejs
, and OpenJDK
folders under /Tuanjie/Hub/Editor/[EditorVersion]/Editor/Data/PlaybackEngines/OpenHarmonyPlayer/
.
You should use the Tuanjie Hub to install OpenHarmony SDK & Node.js tools and OpenJDK to ensure that you receive the correct versions and configurations. However, there are situations where it’s useful to change the SDK, Node.js, or JDK that Tuanjie uses to build applications for OpenHarmony. For example, if you have multiple versions of Tuanjie with the same dependencies and you don’t want to duplicate the installation of the SDK, Node.js, and JDK, you can specify a shared location.
To make Tuanjie use a custom version of a dependency: