Access to Huawei's HMS Game service based on Cocos SDKHub—Package and shelf process

After completing the development of the Cocos game, we can choose to put the developed game on the AGC.

Version build

In the Cocos Creator panel, select "Project"> "Build Release", several configurations need to be noted:

  • Choose HUAWEI AppGellery Connect as the publishing platform

  • Package name: end with *.huawei (Huawei intermodal requirements)

  • Keystore: Configure the keystore information used in the previous document

  • SDKHub configuration: select the required Huawei AGC configuration set

  • Debugging magic: It is not recommended to choose; Huawei SDK interfaces involve signature verification. If the debugging mode is turned on, the compiler will not sign by default.

Version compilation

There are two ways: one is to open the project with AS and compile it in AS; the other is to compile with Cocos development tools.

  1. Cocos development tool compilation

    After the build is completed, click Compile.

    After the compilation is complete, the version is saved in $ProjectHome\build\jsb-link\publish\android

Insert picture description here

  1. Android Studio compilation

    Open the following directory in Android Studio, and then perform synchronous compilation normally.

$ProjectHome \build\jsb-link\frameworks\runtime-src\proj.android-studio

Version upload

There are two ways to upload the version: one is Cocos Creator to construct, compile and upload, and the other is to manually upload the compiled version to the AGC Web page.

Method 1: After the compilation is complete, directly select the "Upload" button. Here, I use the OAuth method as the login method. The application ID is the Appid generated when you create the game on Huawei AGC. Fill in the other information according to the facts. After filling in, confirm the upload. In the pop-up window, confirm to log in to the Huawei account and authorize. After confirming OK, the version will be uploaded to AGC, and the page of "My Application>Distribution>Version Information" is displayed.
Insert picture description here

Method two, log in to the AGC website, select the software package management on the "My Application> Distribution> Version Information" page, and upload the version according to the page guidance.
Insert picture description here

For details, see:

Access to Huawei HMS Game service based on Cocos SDKHub-access SDKHub:https://developer.huawei.com/consumer/cn/forum/topic/0204387779830930037?fid=0101271690375130218

AGC release application:https://developer.huawei.com/consumer/cn/doc/distribution/app/agc-release_app


Original link:https://developer.huawei.com/consumer/cn/forum/topic/0201388295004340052?fid=18
Author: Drum Chao

Guess you like

Origin blog.51cto.com/14772288/2544464