Skip to main content

amap_location_flutter 1.0.0 copy "amap_location_flutter: ^1.0.0" to clipboard
amap_location_flutter: ^1.0.0 copied to clipboard

A Flutter plugin for AMap (高德地图) location SDK, supporting both Android and iOS.

1.0.0 #

  • 包名由 amap_location_flutter_plugin 改为 amap_location_flutter(原名已被 pub.dev 上其他作者占用),准备发布到 pub.dev;主库文件同步改名为 lib/amap_location_flutter.dart
  • Dart 端主类由 AmapLocationFlutterPlugin 改名为 AmapLocationFlutter(breaking change)
  • 适配 Flutter 3.35.7:迁移到 null safety,升级 Android/iOS 工程模板(AGP 8.9.1、Gradle 8.12、iOS Deployment Target 12.0)
  • Android 端依赖升级为 com.amap.api:location:11.2.100(Maven Central),移除内置的 4.9.0 jar;该依赖声明为 compileOnly(避免和宿主 App 自带的高德 SDK 重复类冲突),接入方需要自行在 App 中添加该依赖,详见 README
  • iOS 端依赖升级为 AMapLocation ~> 2.12.2
  • 按新版 SDK 要求,在创建定位客户端前调用隐私合规接口 updatePrivacyShow/updatePrivacyAgree
  • 修复 Android 端 locationMode/geoLanguage 直接按枚举下标取值在新版 SDK 下错位的问题,改为显式映射
  • 修复 Android 端 new AMapLocationClient(context) 在新版 SDK 下声明抛出受检异常导致编译失败的问题,补充 try/catch
  • 适配 iOS 端 AMapLocationManager.reGeocodeLanguage 废弃,逆地理语言改为通过 AMapServices.sharedServices.regionLanguageType 全局设置

0.1.4 #

  • add platform condition for method getSystemAccuracyAuthorization to avoid android crash;

0.1.3 #

  • fix Android cityCode and adCode return error
  • add iOS cityCode

0.1.2 #

  • update the dependent version number of the fluent SDK

0.1.1 #

  • new features of adaptive ios14 positioning

0.1.0 #

  • init release
0
likes
140
points
115
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for AMap (高德地图) location SDK, supporting both Android and iOS.

Repository (GitHub)
View/report issues

Topics

#location #amap #gaode-map

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on amap_location_flutter

Packages that implement amap_location_flutter