expo-gaode-map 2.2.26 → 2.2.27-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@
30
30
  - ✅ 高测试覆盖率(75.7%,207 个单元测试)
31
31
  - ✅ 支持自定义Marker覆盖物
32
32
  - ✅ 默认实现了优化地图加载,减少内存占用
33
- - ✅ 几何运算(距离计算、面积计算等,由 C++ 实现)
33
+ - ✅ 几何运算(距离/面积、点在圆/多边形、质心/边界、路径长度/抽稀、GeoHash、瓦片/像素坐标转换、最近点、热力网格等,由 C++ 实现)
34
34
  - ✅ 丰富的使用案例
35
35
  - ✅ 提供AI编程助手,帮助开发者快速集成和使用(https://TomWq.github.io/expo-gaode-map/guide/ai-skills.html)
36
36
  - ✅ 更多内容和功能请查看 [完整文档](https://TomWq.github.io/expo-gaode-map/)
@@ -31,6 +31,9 @@ if (useManagedAndroidSdkVersions) {
31
31
  }
32
32
  }
33
33
 
34
+ logger.warn("[expo-gaode-map] Thank you for using expo-gaode-map ❤️")
35
+ logger.warn("[expo-gaode-map] If you enjoy using expo-gaode-map, please consider sponsoring this project: https://github.com/TomWq")
36
+
34
37
  android {
35
38
  namespace "expo.modules.gaodemap"
36
39
  defaultConfig {
@@ -35,9 +35,6 @@ class ExpoGaodeMapModule : Module() {
35
35
  val context = appContext.reactContext!!
36
36
  SDKInitializer.restorePrivacyState(context)
37
37
 
38
- // 初始化预加载管理器(注册内存监听)
39
- MapPreloadManager.initialize(context)
40
-
41
38
  // 尝试从 AndroidManifest.xml 读取并设置 API Key
42
39
  val apiKey = context.packageManager
43
40
  .getApplicationInfo(context.packageName, android.content.pm.PackageManager.GET_META_DATA)
@@ -49,16 +46,15 @@ class ExpoGaodeMapModule : Module() {
49
46
  com.amap.api.location.AMapLocationClient.setApiKey(apiKey)
50
47
 
51
48
 
52
- // 只有在 API Key 已设置的情况下才启动预加载
53
- android.os.Handler(android.os.Looper.getMainLooper()).postDelayed({
54
- android.util.Log.i("ExpoGaodeMap", "🚀 自动启动地图预加载")
55
- MapPreloadManager.startPreload(context, poolSize = 1)
56
- }, 2000)
49
+ android.util.Log.i(
50
+ "ExpoGaodeMap",
51
+ " Android API Key 已加载(core Android 已关闭自动预加载,避免隐藏 MapView 与实际 TextureMapView 并存)"
52
+ )
57
53
  } catch (e: Exception) {
58
54
  android.util.Log.w("ExpoGaodeMap", "设置 API Key 失败: ${e.message}")
59
55
  }
60
56
  } else {
61
- android.util.Log.w("ExpoGaodeMap", "⚠️ AndroidManifest.xml 未找到 API Key,跳过自动预加载")
57
+ android.util.Log.w("ExpoGaodeMap", "⚠️ AndroidManifest.xml 未找到 API Key")
62
58
  }
63
59
 
64
60
  } catch (e: Exception) {
@@ -82,8 +78,6 @@ class ExpoGaodeMapModule : Module() {
82
78
  // 打印当前 SDK 版本信息,便于验证依赖来源
83
79
  android.util.Log.i("ExpoGaodeMap", "✅ SDK 初始化完成 - Version: ${MapsInitializer.getVersion()}")
84
80
 
85
- // 初始化成功后自动触发一次预加载
86
- MapPreloadManager.startPreload(appContext.reactContext!!, poolSize = 1)
87
81
  } catch (e: SecurityException) {
88
82
  android.util.Log.e("ExpoGaodeMap", "隐私协议未同意: ${e.message}")
89
83
  throw expo.modules.kotlin.exception.CodedException("PRIVACY_NOT_AGREED", e.message ?: "用户未同意隐私协议", e)
@@ -2,6 +2,9 @@ require 'json'
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
4
4
 
5
+ Pod::UI.puts "[expo-gaode-map] Thank you for using expo-gaode-map ❤️"
6
+ Pod::UI.puts "[expo-gaode-map] If you enjoy using expo-gaode-map, please consider sponsoring this project: https://github.com/TomWq"
7
+
5
8
  Pod::Spec.new do |s|
6
9
  s.name = 'ExpoGaodeMap'
7
10
  s.version = package['version']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-gaode-map",
3
- "version": "2.2.26",
3
+ "version": "2.2.27-next.0",
4
4
  "description": "A full-featured AMap (Gaode Map) React Native component library built with Expo Modules, providing map display, location services, overlays, and more.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",