react-native-google-maps-plus 1.7.0-dev.14 → 1.7.0-dev.15

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.
@@ -136,6 +136,6 @@ dependencies {
136
136
  implementation "com.google.android.gms:play-services-base:${getExtOrDefault('googlePlayServicesBaseVersion')}"
137
137
  implementation "com.google.android.gms:play-services-maps:${getExtOrDefault('googlePlayServicesMapsVersion')}"
138
138
  implementation "com.google.android.gms:play-services-location:${getExtOrDefault('googlePlayServicesLocationVersion')}"
139
- implementation 'com.google.maps.android:android-maps-utils:3.10.0'
139
+ implementation "com.google.maps.android:android-maps-utils:${getExtOrDefault('mapsUtilsVersion')}"
140
140
  implementation 'com.caverock:androidsvg-aar:1.4'
141
141
  }
@@ -3,6 +3,7 @@ RNGoogleMapsPlus_minSdkVersion=26
3
3
  RNGoogleMapsPlus_targetSdkVersion=36
4
4
  RNGoogleMapsPlus_compileSdkVersion=36
5
5
  RNGoogleMapsPlus_ndkVersion=27.1.12297006
6
- RNGoogleMapsPlus_googlePlayServicesBaseVersion=18.8.0
6
+ RNGoogleMapsPlus_googlePlayServicesBaseVersion=18.9.0
7
7
  RNGoogleMapsPlus_googlePlayServicesMapsVersion=19.2.0
8
8
  RNGoogleMapsPlus_googlePlayServicesLocationVersion=21.3.0
9
+ RNGoogleMapsPlus_mapsUtilsVersion=3.19.0
@@ -178,7 +178,7 @@ class MapMarkerBuilder(
178
178
  }
179
179
 
180
180
  if (!prev.markerStyleEquals(next)) {
181
- buildIconAsync(marker.id, next) { icon ->
181
+ buildIconAsync(next) { icon ->
182
182
  marker.setIcon(icon)
183
183
  if (!prev.anchorEquals(next)) {
184
184
  marker.setAnchor(
@@ -242,11 +242,10 @@ class MapMarkerBuilder(
242
242
  }
243
243
 
244
244
  fun buildIconAsync(
245
- id: String,
246
245
  m: RNMarker,
247
246
  onReady: (BitmapDescriptor?) -> Unit,
248
247
  ) {
249
- jobsById[id]?.cancel()
248
+ jobsById[m.id]?.cancel()
250
249
 
251
250
  m.iconSvg ?: return onReady(null)
252
251
 
@@ -275,11 +274,11 @@ class MapMarkerBuilder(
275
274
  iconCache.evictAll()
276
275
  } catch (_: Throwable) {
277
276
  } finally {
278
- jobsById.remove(id)
277
+ jobsById.remove(m.id)
279
278
  }
280
279
  }
281
280
 
282
- jobsById[id] = job
281
+ jobsById[m.id] = job
283
282
  }
284
283
 
285
284
  fun cancelIconJob(id: String) {
@@ -151,7 +151,7 @@ class RNGoogleMapsPlusView(
151
151
  val prev = prevById[id]
152
152
  when {
153
153
  prev == null ->
154
- markerBuilder.buildIconAsync(id, next) { icon ->
154
+ markerBuilder.buildIconAsync(next) { icon ->
155
155
  view.addMarker(
156
156
  id,
157
157
  markerBuilder.build(next, icon),
@@ -142,11 +142,10 @@ final class MapMarkerBuilder {
142
142
 
143
143
  @MainActor
144
144
  func buildIconAsync(
145
- _ id: String,
146
145
  _ m: RNMarker,
147
146
  onReady: @escaping (UIImage?) -> Void
148
147
  ) {
149
- tasks[id]?.cancel()
148
+ tasks[m.id]?.cancel()
150
149
 
151
150
  if m.iconSvg == nil {
152
151
  onReady(nil)
@@ -161,7 +160,7 @@ final class MapMarkerBuilder {
161
160
 
162
161
  let task = Task(priority: .userInitiated) { [weak self] in
163
162
  guard let self else { return }
164
- defer { self.tasks.removeValue(forKey: id) }
163
+ defer { self.tasks.removeValue(forKey: m.id) }
165
164
 
166
165
  let scale = UIScreen.main.scale
167
166
  let img = await self.renderUIImage(m, scale)
@@ -175,7 +174,7 @@ final class MapMarkerBuilder {
175
174
  }
176
175
  }
177
176
 
178
- tasks[id] = task
177
+ tasks[m.id] = task
179
178
  }
180
179
 
181
180
  @MainActor
@@ -146,7 +146,7 @@ final class RNGoogleMapsPlusView: HybridRNGoogleMapsPlusViewSpec {
146
146
  }
147
147
  }
148
148
  } else {
149
- self.markerBuilder.buildIconAsync(next.id, next) { icon in
149
+ self.markerBuilder.buildIconAsync(next) { icon in
150
150
  let marker = self.markerBuilder.build(next, icon: icon)
151
151
  self.impl.addMarker(id: id, marker: marker)
152
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-maps-plus",
3
- "version": "1.7.0-dev.14",
3
+ "version": "1.7.0-dev.15",
4
4
  "description": "React Native wrapper for Android & iOS Google Maps SDK",
5
5
  "main": "./lib/module/index.js",
6
6
  "module": "./lib/module/index.js",