@mapsindoors/react-native-maps-indoors-mapbox 2.5.2 → 2.5.4

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
@@ -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.4'
95
+ implementation 'com.mapbox.maps:android-ndk27:11.16.1'
96
+ implementation 'com.mapspeople.mapsindoors:mapbox-ndk27:4.15.5'
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.2",
4
+ "version": "2.5.4",
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.12.2"
28
- s.dependency "MapsIndoorsCodable", "4.12.2"
27
+ s.dependency "MapsIndoorsMapbox11", "4.15.1"
28
+ s.dependency "MapsIndoorsCodable", "4.15.1"
29
29
  end