This project is derived from Maps SDK for Android Utility Library, and relies on Huawei HMS Core Map Kit and Site Kit.
- Open Gradle, click library->Tasks->build->assemble.
- After Run, find
3rd-maps-utils-2.3.0-yyyyMMdd.aar
file inlibrary/build/outputs/aar/
path. - Copy
3rd-maps-utils-2.3.0-yyyyMMdd.aar
file to your ownapp/libs/
path. - Add codes below in project build.gradle file.
allprojects {
repositories {
...
flatDir {
dirs 'libs'
}
}
}
- Add codes below in app build.gradle file.
dependencies {
implementation(name: '3rd-maps-utils-2.3.0-yyyyMMdd', ext: 'aar')
...
}
- Configuring App Information in AppGallery Connect
- Adding the AppGallery Connect Configuration File of Your App
- Replace your own applicationId in
build.gradle(Module:3rd-maps-utils.demo)
, it should be the same as the package_name inagconnect-services.json
file. - Replace your own signingConfigs in
build.gradle(Module:3rd-maps-utils.demo)
, it should be the keystore file used to generate the SHA-256 value configured on AppGallery Connect. - Replace your own API_KEY in
HeatmapsSiteDemoActivity.java
, it should be encoded by usingURLEncoder.encode("Your apiKey", "UTF-8")
method.