[Huawei Developers] Freemind R:
More information like this, you can visit HUAWEI Developer Forum​

Hey Dear Developers,

Do you have any questions with HUAWEI Drive Kit developing process?

If YES, here will give you some help.

HUAWEI Drive Kit ("Drive Kit") allows you to create apps that use the HUAWEI Drive Kit service.

Drive Kit provides cloud storage for your apps, enabling users to store files that are created while using your apps, including photos, videos, and documents, in HUAWEI Drive ("Drive") as well as download, synchronize, share, search for, and comment on these files and reply to comments.

Drive Kit also provides comprehensive data protection, empowering users to manage their data securely and conveniently.

The current core capabilities of Drive Kit include uploading, downloading, and searching for files in Drive, commenting on files, replying to comments, querying file changes, and receiving notifications.

The figure below shows the development process, and the red area represents the preparations procedures (step 1- preparations).

[IMG="https://cdn-images-1.medium.com/max/800/0*ylNeEX-JSvPEtpkO.png"]https://cdn-images-1.medium.com/max/800/0*ylNeEX-JSvPEtpkO.png[/IMG]

Furthermore, the preparation procedures will be divided into 3 parts:

1. Configuring App information in AppGallery Connect (mandatory procedures);

2. Preparing for client development;

3. Preparing for server development.

Before you start developing an app, configuring App information in AppGallery Connect (mandatory procedures):

[IMG="https://cdn-images-1.medium.com/max/800/0*QrEkSTkrn_5IaPLm.png"]https://cdn-images-1.medium.com/max/800/0*QrEkSTkrn_5IaPLm.png[/IMG]

l Registering as a Developer:

Before you get started, you must register as a HUAWEI developer and complete identity verification on the HUAWEI Developer website. For details, please refer to Register a HUAWEI ID.

l Creating an App:

Create an app by referring to Creating an App at the AppGallery Connect and upload a temporary APK.

Set the following parameters as described:

Ø Package type: APK (Android app)

Ø Device: Mobile phone

Ø App category: App

NOTICE：

AppGallery Connect reads the temporary APK to obtain the app package name. Therefore, the temporary APK name must be the same as the released APK name.

l Generating a Signing Certificate Fingerprint:

A signing certificate fingerprint is used to verify the authenticity of an app when it attempts to access an HMS Core service through the HMS SDK. Before using the HMS service, you must locally generate a signing certificate fingerprint and configure it in AppGallery Connect.

Please ensure that the following conditions are met:

Ø You have created the app's signature file.

Ø The JDK has been installed on your PC.

Perform the following steps:

Ø Open the command line tool (using the cmd command) and run the cd command to go to the directory where keytool.exe is located.In the following example, the Java program is installed in Program Files (x86) in the C drive.

[IMG="https://cdn-images-1.medium.com/max/800/0*PX0L24YGs9fB0h4d.png"]https://cdn-images-1.medium.com/max/800/0*PX0L24YGs9fB0h4d.png[/IMG]

Ø Run keytool -list -v -keystore <keystore-file> and respond as prompted.

In the preceding command, <keystore-file> is the complete path to the app's signature file.

Example:

C:\Program Files (x86)\Java\jdk1.7.0_25\bin>keytool -list -v -keystore
E:\HMS_SDK_2.5.1.300\Sample\HMSSdkSample_2.5.1.300_AS\HmsSample\android.keystore.jks

Ø Obtain the SHA-256 fingerprint from the result.

[IMG="https://cdn-images-1.medium.com/max/800/0*BV9IYRXsd_Ox7P0_.png"]https://cdn-images-1.medium.com/max/800/0*BV9IYRXsd_Ox7P0_.png[/IMG]

Configuring the Signing Certificate Fingerprint:

1.Sign in to AppGallery Connect and select My apps.

2.Find your app from the list and click the link under Android App in the Mobile phone column.

3.Go to Develop > Overview > App information and set SHA-256 certificate fingerprint to the SHA-256 fingerprint that is generated from the preceding section of Generating a Signing Certificate Fingerprint.

[IMG="https://cdn-images-1.medium.com/max/800/0*HD0qkynYvr28qRyT.png"]https://cdn-images-1.medium.com/max/800/0*HD0qkynYvr28qRyT.png[/IMG]

4.After completing configuration, click √

Enabling Required Services:

1.Log on to AppGallery Connect and select My apps.

2.Click the product to which your app belongs. The app information page is displayed.

3.Click the Develop tab, click the icon next to Overview, and then select Manage APIs.

[IMG="https://cdn-images-1.medium.com/max/800/0*L5qxF1h0JbEEBumj.png"]https://cdn-images-1.medium.com/max/800/0*L5qxF1h0JbEEBumj.png[/IMG]

4.Enable the required services.

[IMG="https://cdn-images-1.medium.com/max/800/0*1Suk1sTI_ELzMLnP.png"]https://cdn-images-1.medium.com/max/800/0*1Suk1sTI_ELzMLnP.png[/IMG]

For more details, please refer to Enabling Services.

'Preparing for client development & server development' are coming soon…

More information:

https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/drivekit-introduction