Before integrating with the HSM Core services, you must configure your application's information in Huawei's AppGallery Connect and activate the two kits we will use:
Attention: There are similar steps you only need to perform once.
After that, to integrate HSM Core services, Huawei Developers provides a very complete and easy-to-follow guide: How to integrate HSM Core into your application
To install the Masiv Huawei SDK in your application, follow these steps:
Our MasivPushHuawei library is hosted as a public artifact on Azure DevOps. To download this library, follow these steps:
In the project-level build.gradle of your Android app, add the repository link where our library is hosted:
https://pkgs.dev.azure.com/masivPublicSdks/MasivPushSdks/_packaging/masivPushPackages/maven/v1
You should include this URL in both buildscript {} and allprojects {} sections. It should look like this:

In the app-level build.gradle, add the import of the latest version of the library:
implementation (group: 'com.masiv.pushhuaweisdk', name: 'PushHuaweiSDK', version: 'VERSION')
It should look similar to this:

In addition to the steps above, you also need to include two more libraries in your app-level build.gradle:
These are the okHttp library (used to report push notification events) and the GSON library (used by models implemented in our library).
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.9.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.8'