diff --git a/docs/native/modules/android/others.md b/docs/native/modules/android/others.md index f29086bcfa40f205de2100b2b618b597b6c9d8d9..ae6e145543d00f50788cc059a64be741e44df0b1 100644 --- a/docs/native/modules/android/others.md +++ b/docs/native/modules/android/others.md @@ -68,3 +68,5 @@ defaultConfig { [uni-verify](/native/modules/android/uni-verify.md) [uni-payment](/native/modules/android/uni-payment.md) + +[uni-map-tencent](/native/modules/android/uni-map-tencent.md) \ No newline at end of file diff --git a/docs/native/modules/android/uni-map-tencent.md b/docs/native/modules/android/uni-map-tencent.md new file mode 100644 index 0000000000000000000000000000000000000000..5509d514947018dff9e66ab17da49c640f2843d1 --- /dev/null +++ b/docs/native/modules/android/uni-map-tencent.md @@ -0,0 +1,64 @@ +## uni-map-tencent + + +### Gradle配置 + +首先需在项目根目录下的build.gradle增加仓库源 + +``` +allprojects { + repositories { + jcenter() + google() + maven{ + url "https://oss.sonatype.org/content/groups/public" + } + } +} +``` + +项目应用下的build.gradle + +``` + +android { + defaultConfig { + buildConfigField 'String', 'UTSEasyCom', '\"[{\\\"class\\\":\\\"uts.sdk.modules.DCloudUniMapTencent.UniMapTencentExtApiComponentsRegister\\\",\\\"method\\\":\\\"register\\\"}]\"' + } +} + +dependencies { + implementation 'com.tencent.map:tencent-map-vector-sdk:5.6.0' + implementation 'com.tencent.map:sdk-utilities:1.0.9' + implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.5.4.3' + implementation 'com.github.bumptech.glide:glide:4.16.0' +} +``` + +### 本地依赖库 + +|名称 |备注| +|:-- |:--| +|uni-map-tencent-release.aar || + +将本地依赖库复制到app项目的libs下。 + + +### AndroidManifest.xml配置 + +首先在腾讯位置服务官网申请api key, [文档](https://lbs.qq.com/mobile/androidMapSDK/developerGuide/getKey) + +在AndroidManifest.xml中添加api key,如下: + +``` + + + + + + + + +``` + +