@rnmapbox/maps 10.1.32-rc.0 → 10.1.32-rc.2

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.
@@ -1,5 +1,5 @@
1
1
  def defaultMapboxMapsImpl = "mapbox"
2
- def defaultMapboxMapsVersion = "10.18.0"
2
+ def defaultMapboxMapsVersion = "10.18.4"
3
3
 
4
4
  def safeExtGet(prop, fallback) {
5
5
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -163,7 +163,7 @@ dependencies {
163
163
  } else {
164
164
  msg = '@rnmapbox/maps: RNMapboxMapsImpl has invalid value - only mapbox supported - see https://github.com/rnmapbox/maps/wiki/Deprecated-RNMapboxImpl-Maplibre#android'
165
165
  logger.error(msg)
166
- throw new GradleException(msg)
166
+ throw new GradleException(msg)
167
167
  }
168
168
  }
169
169
 
@@ -188,4 +188,4 @@ dependencies {
188
188
 
189
189
  tasks.withType(Test).configureEach {
190
190
  useJUnitPlatform()
191
- }
191
+ }
@@ -12,6 +12,7 @@ import com.rnmapbox.rnmbx.modules.RNMBXOfflineModule
12
12
  import com.rnmapbox.rnmbx.modules.RNMBXLocationModule
13
13
  import com.facebook.react.bridge.ReactMethod
14
14
  import com.facebook.react.common.MapBuilder
15
+ import com.mapbox.bindgen.None
15
16
  import com.mapbox.common.*
16
17
  import com.mapbox.maps.MapView
17
18
  import com.mapbox.maps.MapboxMap
@@ -137,7 +138,11 @@ class RNMBXModule(private val mReactContext: ReactApplicationContext) : ReactCon
137
138
  mReactContext.runOnUiQueueThread {
138
139
  MapboxMap.clearData(mReactContext) {
139
140
  if (it.isValue) {
140
- promise.resolve(it.value)
141
+ if (it.value == None.getInstance()) {
142
+ promise.resolve(null)
143
+ } else {
144
+ promise.resolve(it.value)
145
+ }
141
146
  } else {
142
147
  promise.reject("error", "RNMBXModule.clearError ${it.error}")
143
148
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rnmapbox/maps",
3
3
  "description": "A Mapbox react native module for creating custom maps",
4
- "version": "10.1.32-rc.0",
4
+ "version": "10.1.32-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -20,7 +20,7 @@ require 'json'
20
20
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
21
21
 
22
22
  ## Warning: these lines are scanned by autogenerate.js
23
- rnMapboxMapsDefaultMapboxVersion = '~> 10.18.2'
23
+ rnMapboxMapsDefaultMapboxVersion = '~> 10.19.0'
24
24
 
25
25
  rnMapboxMapsDefaultImpl = 'mapbox'
26
26