@rnmapbox/maps 10.0.14 → 10.0.15-rc.1

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 = "maplibre"
2
- def defaultMapboxMapsVersion = "10.15.1"
2
+ def defaultMapboxMapsVersion = "10.16.0"
3
3
 
4
4
  def safeExtGet(prop, fallback) {
5
5
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -229,11 +229,11 @@ abstract class RCTLayer<T : Layer?>(protected var mContext: Context) : AbstractS
229
229
  mLayer?.let { layer ->
230
230
  mAboveLayerID?.also {
231
231
  addAbove(mapView, it)
232
- } ?: { mBelowLayerID?.also {
232
+ } ?: run { mBelowLayerID?.also {
233
233
  addBelow(mapView, it)
234
- } ?: { mLayerIndex?.also {
234
+ } ?: run { mLayerIndex?.also {
235
235
  addAtIndex(it)
236
- } ?: {
236
+ } ?: run {
237
237
  add ()
238
238
  } } }
239
239
  }
@@ -264,7 +264,7 @@ class RCTMGLStyleValue {
264
264
  }
265
265
  let valueObj = RCTMGLStyleValue.convert(value["stylevalue"] as! [String:Any])
266
266
 
267
- if let num = value as? Int {
267
+ if let num = valueObj as? Int {
268
268
  let uicolor = uicolor(num)
269
269
  return StyleColor(uicolor)
270
270
  } else {
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.0.14",
4
+ "version": "10.0.15-rc.1",
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.15.0'
23
+ rnMapboxMapsDefaultMapboxVersion = '~> 10.16.0'
24
24
  rnMapboxMapsDefaultMapboxGLVersion = '~> 5.9.0'
25
25
  rnMapboxMapsDefaultMapLibreVersion = 'exactVersion 5.12.1'
26
26