@mapsindoors/react-native-maps-indoors-mapbox 2.5.1 → 2.5.3

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Documentation
4
4
 
5
- Visit [our reference document site](https://app.mapsindoors.com/mapsindoors/reference/react-native/mapbox/2.5.0/index.html) to get an overview of what the MapsIndoors SDK offers.
5
+ Visit [our reference document site](https://app.mapsindoors.com/mapsindoors/reference/react-native/mapbox/2.5.2/index.html) to get an overview of what the MapsIndoors SDK offers.
6
6
 
7
7
  ## Getting started
8
8
 
@@ -10,11 +10,11 @@ Visit [our reference document site](https://app.mapsindoors.com/mapsindoors/refe
10
10
 
11
11
  ### iOS
12
12
 
13
- The MapsIndoors SDK requires iOS 14, so make sure that your podfile is configured for iOS 14.
13
+ The MapsIndoors SDK requires iOS 15.6, so make sure that your podfile is configured for iOS 15.6.
14
14
  Disable flipper and add !use_frameworks as well as adding config.build_settings to post install script.
15
15
 
16
16
  ```pod
17
- platform :ios, '14.0
17
+ platform :ios, '15.6
18
18
 
19
19
  flipper_config = FlipperConfiguration.disabled
20
20
 
@@ -25,7 +25,7 @@ target 'MyApp' do
25
25
  ...
26
26
  installer.pods_project.targets.each do |target|
27
27
  target.build_configurations.each do |config|
28
- config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
28
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.6'
29
29
  end
30
30
  end
31
31
  end
@@ -121,7 +121,7 @@ To enable it, you need to add the configuration in your expo configuration.
121
121
  "expo-build-properties",
122
122
  {
123
123
  "ios": {
124
- "deploymentTarget": "14.0"
124
+ "deploymentTarget": "15.1"
125
125
  }
126
126
  }
127
127
  ],
@@ -92,8 +92,8 @@ dependencies {
92
92
  }
93
93
  }
94
94
 
95
- implementation 'com.mapbox.maps:android:11.11.0'
96
- implementation 'com.mapspeople.mapsindoors:mapbox-v11:4.12.0'
95
+ implementation 'com.mapbox.maps:android:11.13.5'
96
+ implementation 'com.mapspeople.mapsindoors:mapbox-v11:4.14.0'
97
97
  implementation 'com.facebook.react:react-native:+' // From node_modules
98
98
  implementation 'androidx.core:core-ktx:1.3.2'
99
99
  implementation 'com.github.bumptech.glide:glide:4.16.0'
package/app.plugin.js CHANGED
@@ -181,7 +181,7 @@ const {
181
181
  `post_install do |installer|\n
182
182
  installer.pods_project.targets.each do |target|
183
183
  target.build_configurations.each do |config|
184
- config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
184
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.6'
185
185
  end
186
186
  end\n`
187
187
  );
@@ -8,7 +8,7 @@ import MapboxMaps
8
8
 
9
9
  @objc(MapsIndoorsViewManager)
10
10
  class MapsIndoorsViewManager : RCTViewManager {
11
- @objc override static func requiresMainQueueSetup() -> Bool {return false}
11
+ @objc override static func requiresMainQueueSetup() -> Bool {return true}
12
12
 
13
13
  var mapView: MapView? = nil
14
14
 
@@ -142,27 +142,27 @@ class MapBoxView: RCMapView {
142
142
  return update
143
143
  }
144
144
 
145
- func animateCamera(cameraUpdate: CameraUpdate, duration: Int) throws {
146
- let cameraOption: CameraOptions
147
-
148
- cameraOption = try makeCameraUpdate(cameraUpdate: cameraUpdate)
149
-
145
+ func animateCamera(cameraUpdate: CameraUpdate, duration: Int) {
150
146
  DispatchQueue.main.async { [self] in
147
+ let cameraOption = try? makeCameraUpdate(cameraUpdate: cameraUpdate)
148
+ if cameraOption == nil {
149
+ return
150
+ }
151
151
  if (duration != 0) {
152
- mapboxView.camera.ease(to: cameraOption, duration: TimeInterval(duration/1000))
152
+ mapboxView.camera.ease(to: cameraOption!, duration: TimeInterval(duration/1000))
153
153
  } else {
154
- mapboxView.mapboxMap.setCamera(to: cameraOption)
154
+ mapboxView.mapboxMap.setCamera(to: cameraOption!)
155
155
  }
156
156
  }
157
157
  }
158
158
 
159
- func moveCamera(cameraUpdate: CameraUpdate) throws {
160
- let cameraOption: CameraOptions
161
-
162
- cameraOption = try makeCameraUpdate(cameraUpdate: cameraUpdate)
163
-
159
+ func moveCamera(cameraUpdate: CameraUpdate) {
164
160
  DispatchQueue.main.async { [self] in
165
- mapboxView.mapboxMap.setCamera(to: cameraOption)
161
+ let cameraOption = try? makeCameraUpdate(cameraUpdate: cameraUpdate)
162
+ if cameraOption == nil {
163
+ return
164
+ }
165
+ mapboxView.mapboxMap.setCamera(to: cameraOption!)
166
166
  }
167
167
  }
168
168
 
@@ -2,8 +2,6 @@
2
2
  #import <React/RCTViewManager.h>
3
3
 
4
4
  @interface RCT_EXTERN_MODULE(MapsIndoorsViewManager, RCTViewManager)
5
- RCT_EXTERN_METHOD(requiresMainQueueSetup)
6
-
7
5
  RCT_EXTERN_METHOD(create:(nonnull NSNumber) node
8
6
  nodeAgain:(nonnull NSNumber) nodeAgain
9
7
  camera: (NSString*) camera
@@ -10,8 +10,6 @@
10
10
 
11
11
  @interface RCT_EXTERN_MODULE(DirectionsRenderer, RCTEventEmitter)
12
12
 
13
- RCT_EXTERN_METHOD(requiresMainQueueSetup)
14
-
15
13
  RCT_EXTERN_METHOD(clear: (RCTPromiseResolveBlock) resolve
16
14
  rejecter:(RCTPromiseRejectBlock) reject)
17
15
 
@@ -9,8 +9,6 @@
9
9
 
10
10
  @interface RCT_EXTERN_MODULE(DirectionsService, NSObject)
11
11
 
12
- RCT_EXTERN_METHOD(requiresMainQueueSetup)
13
-
14
12
  RCT_EXTERN_METHOD(create: (RCTPromiseResolveBlock) resolve
15
13
  rejecter:(RCTPromiseRejectBlock) reject)
16
14
 
@@ -3,8 +3,6 @@
3
3
  @interface RCT_EXTERN_MODULE(DisplayRule, NSObject)
4
4
  // End of head
5
5
 
6
- RCT_EXTERN_METHOD(requiresMainQueueSetup)
7
-
8
6
  // GetterBridge isVisible->visible
9
7
  RCT_EXTERN_METHOD(isVisible: (NSString *) displayRuleId
10
8
  resolver:(RCTPromiseResolveBlock) resolve
@@ -3,8 +3,6 @@
3
3
 
4
4
  @interface RCT_EXTERN_MODULE(MapControlModule, RCTEventEmitter)
5
5
 
6
- RCT_EXTERN_METHOD(requiresMainQueueSetup)
7
-
8
6
  RCT_EXTERN_METHOD(supportedEvents)
9
7
 
10
8
 
@@ -2,8 +2,6 @@
2
2
 
3
3
  @interface RCT_EXTERN_MODULE(MapsIndoorsModule, NSObject)
4
4
 
5
- RCT_EXTERN_METHOD(requiresMainQueueSetup)
6
-
7
5
  RCT_EXTERN_METHOD(loadMapsIndoors:(NSString *)apiKey
8
6
  optionalStrings:(NSArray<NSString *> _Nullable)optionalStrings
9
7
  resolver:(RCTPromiseResolveBlock)resolve
@@ -8,8 +8,6 @@
8
8
  #import <React/RCTBridgeModule.h>
9
9
 
10
10
  @interface RCT_EXTERN_MODULE(UtilsModule, NSObject)
11
- RCT_EXTERN_METHOD(requiresMainQueueSetup)
12
-
13
11
  RCT_EXTERN_METHOD(venueHasGraph: (NSString *) venueId
14
12
  resolver:(RCTPromiseResolveBlock) resolve
15
13
  rejecter:(RCTPromiseRejectBlock) reject)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapsindoors/react-native-maps-indoors-mapbox",
3
3
  "title": "React Native MapsIndoors Mapbox",
4
- "version": "2.5.1",
4
+ "version": "2.5.3",
5
5
  "description": "React Native MapsIndoors component with mapbox",
6
6
  "react-native": "index.ts",
7
7
  "files": [
@@ -17,13 +17,13 @@ Pod::Spec.new do |s|
17
17
  # optional - use expanded license entry instead:
18
18
  # s.license = { :type => "MIT", :file => "LICENSE" }
19
19
  s.authors = { 'MapsPeople' => 'info@mapspeople.com' }
20
- s.platforms = { :ios => "14.0" }
20
+ s.platforms = { :ios => "15.6" }
21
21
  s.source = { :git => "https://github.com/github_account/react-native-maps-indoors-mapbox.git", :tag => "#{s.version}" }
22
22
 
23
23
  s.source_files = "ios/**/*.{h,c,cc,cpp,m,mm,swift}"
24
24
  s.requires_arc = true
25
25
 
26
26
  s.dependency "React"
27
- s.dependency "MapsIndoorsMapbox11", "4.11.0"
28
- s.dependency "MapsIndoorsCodable", "4.11.0"
27
+ s.dependency "MapsIndoorsMapbox11", "4.13.2"
28
+ s.dependency "MapsIndoorsCodable", "4.13.2"
29
29
  end
@@ -103,73 +103,82 @@ export default class MPRouteStep {
103
103
  */
104
104
  export interface MPRouteStepParams {
105
105
  /**
106
- * Description placeholder.
106
+ * The distance of the route step.
107
107
  *
108
108
  * @type {?MPRouteProperty}
109
109
  */
110
110
  distance?: MPRouteProperty,
111
111
  /**
112
- * Description placeholder.
112
+ * The duration of the route step.
113
113
  *
114
114
  * @type {?MPRouteProperty}
115
115
  */
116
116
  duration?: MPRouteProperty,
117
117
  /**
118
- * Description placeholder.
118
+ * An array of sub-steps for the route step.
119
119
  *
120
120
  * @type {?MPRouteStep[]}
121
121
  */
122
122
  steps?: MPRouteStep[],
123
123
  /**
124
- * Description placeholder.
124
+ * An array of coordinates representing the geometry of the route step.
125
125
  *
126
126
  * @type {?MPRouteCoordinate[]}
127
127
  */
128
128
  geometry?: MPRouteCoordinate[],
129
129
  /**
130
- * Description placeholder.
130
+ * The highway associated with the route step.
131
131
  *
132
132
  * @type {?string}
133
133
  */
134
134
  highway?: string,
135
135
  /**
136
- * Description placeholder.
136
+ * The abutters associated with the route step.
137
137
  *
138
138
  * @type {?string}
139
139
  */
140
140
  abutters?: string,
141
141
  /**
142
- * Description placeholder.
142
+ * The maneuver associated with the route step.
143
+ *
144
+ * Possible values incldue:
145
+ * - "turn-left"
146
+ * - "turn-right"
147
+ * - "straight"
148
+ * - "uturn-left"
149
+ * - "uturn-right"
150
+ * - "turn-sharp-left"
151
+ * - "turn-sharp-right"
143
152
  *
144
153
  * @type {?string}
145
154
  */
146
155
  maneuver?: string,
147
156
  /**
148
- * Description placeholder.
157
+ * The starting location of the route step.
149
158
  *
150
159
  * @type {?MPRouteCoordinate}
151
160
  */
152
161
  start_location?: MPRouteCoordinate,
153
162
  /**
154
- * Description placeholder.
163
+ * The ending location of the route step.
155
164
  *
156
165
  * @type {?MPRouteCoordinate}
157
166
  */
158
167
  end_location?: MPRouteCoordinate,
159
168
  /**
160
- * Description placeholder.
169
+ * Textual instructions for the step
161
170
  *
162
171
  * @type {?string}
163
172
  */
164
173
  html_instructions?: string,
165
174
  /**
166
- * Description placeholder.
175
+ * The travel mode for the route step.
167
176
  *
168
177
  * @type {?string}
169
178
  */
170
179
  travel_mode?: string,
171
180
  /**
172
- * Description placeholder.
181
+ * An array of available travel modes for the route step.
173
182
  *
174
183
  * @type {?string[]}
175
184
  */