@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 +4 -4
- package/android/build.gradle +2 -2
- package/app.plugin.js +1 -1
- package/ios/MapsIndoorsViewManager.swift +14 -14
- package/ios/MapsIndoorsViewManagerBridge.m +0 -2
- package/ios/core/DirectionsRendererBridge.m +0 -2
- package/ios/core/DirectionsServiceBridge.m +0 -2
- package/ios/core/MPDisplayRuleBridge.m +0 -2
- package/ios/core/MapControlBridge.m +0 -2
- package/ios/core/MapsIndoorsBridge.m +0 -2
- package/ios/core/UtilsBridge.m +0 -2
- package/package.json +1 -1
- package/react-native-maps-indoors-mapbox.podspec +3 -3
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
|
|
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, '
|
|
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'] = '
|
|
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": "
|
|
124
|
+
"deploymentTarget": "15.1"
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
],
|
package/android/build.gradle
CHANGED
|
@@ -92,8 +92,8 @@ dependencies {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
implementation 'com.mapbox.maps:android:11.
|
|
96
|
-
implementation 'com.mapspeople.mapsindoors:mapbox-
|
|
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'] = '
|
|
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
|
|
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)
|
|
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
|
|
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)
|
|
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
|
-
|
|
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
|
|
@@ -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
|
package/ios/core/UtilsBridge.m
CHANGED
|
@@ -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
|
@@ -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 => "
|
|
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.
|
|
28
|
-
s.dependency "MapsIndoorsCodable", "4.
|
|
27
|
+
s.dependency "MapsIndoorsMapbox11", "4.15.1"
|
|
28
|
+
s.dependency "MapsIndoorsCodable", "4.15.1"
|
|
29
29
|
end
|