@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.
package/android/build.gradle
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
def defaultMapboxMapsImpl = "mapbox"
|
|
2
|
-
def defaultMapboxMapsVersion = "10.18.
|
|
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
|
-
|
|
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
package/rnmapbox-maps.podspec
CHANGED
|
@@ -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.
|
|
23
|
+
rnMapboxMapsDefaultMapboxVersion = '~> 10.19.0'
|
|
24
24
|
|
|
25
25
|
rnMapboxMapsDefaultImpl = 'mapbox'
|
|
26
26
|
|