This section of the documentation explains how to install and set up the OpenHarmony SDK Kits package so that you can use it to integrate account & game service, in-app payment service, push service, and ads service within the Tuanjie Editor.
To add the OpenHarmony SDK Kits package to your project, use the Tuanjie Package Manager. For information on how to add the OpenHarmony SDK Kits package, see Adding and removing packages.
The package name is com.tuanjie.openharmony.sdkkit and the display name is OpenHarmony SDK Kits.
After completing the installation, you can access guide window in Tuanjie Editor through the “OpenHarmonySDKKits” option at the top. If this menu does not appear, please ensure that the OpenHarmony platform is loaded.
After opening Windows, please check whether the demo scenes have been imported. If not, import them manually in the package manager.
Before integrating kits, the basic and common configuration needs to be filled in completely. You need to fill in the following configuration:
These configuration information need to be applied on the AppGallery Connect and make sure to fill them out correctly, otherwise the service cannot be connected as expected.
Note: client_id
and app_id
can also be modified in Player Settings > Publishing Settings > OpenHarmony Module Configuration
. The modifications on both sides are synchronized.
When the OpenHarmony SDK Kits package is imported and the settings window is opened for the first time, the service kits is not checked by default. You can check the service kit you need to integrate to your OpenHarmony application and the content that needs to be configured for each service kit will be expanded.
For more information about the configuration and operation of each kit after checking, refer to:
For each service kit, we provide a simple demo scene, which includes the interfaces and processes that must be called to access the toolkit, helping you quickly get started and complete the interface access. You can refer to the demo scenes to learn how to integrate the service kit, or you can also perform subsequent development based on the scenes.