Skip to content

billtom20/hms-maps-utils

Repository files navigation

hms-maps-utils (AndroidX)

This project is derived from Maps SDK for Android Utility Library, and relies on Huawei HMS Core Map Kit and Site Kit.

Usage

  1. Add the JitPack repository to your build file
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  1. Add the dependency
dependencies {
    implementation 'com.github.billtom20:hms-maps-utils:2.4.1'
}

Usage of library module(offline, not recommended)

  1. Open Gradle, click library->Tasks->build->assemble.
  2. After Run, find hms-maps-utils-2.4.1-yyyyMMdd.aar file in library/build/outputs/aar/ path.
  3. Copy hms-maps-utils-2.4.1-yyyyMMdd.aar file to your own app/libs/ path.
  4. Add codes below in project build.gradle file.
allprojects {
	repositories {
		...
		flatDir {
			dirs 'libs'
		}
	}
}
  1. Add codes below in app build.gradle file.
dependencies {
    implementation(name: 'hms-maps-utils-2.4.1-yyyyMMdd', ext: 'aar')
    ...
}

Usage of demo module

  1. Configuring App Information in AppGallery Connect
  2. Adding the AppGallery Connect Configuration File of Your App
  3. Replace your own applicationId in build.gradle(Module:hms-maps-utils.demo), it should be the same as the package_name in agconnect-services.json file.
  4. Replace your own signingConfigs in build.gradle(Module:hms-maps-utils.demo), it should be the keystore file used to generate the SHA-256 value configured on AppGallery Connect.
  5. Replace your own API_KEY in HeatmapsSiteDemoActivity.java, it should be encoded by using URLEncoder.encode("Your apiKey", "UTF-8") method.

About

Maps SDK for Android Utility Library (Based on HMS Core)

Resources

License

Stars

Watchers

Forks

Packages

No packages published