@mapsindoors/react-native-maps-indoors-mapbox 1.0.4 → 1.0.6
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 +5 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactlibrary/core/MapsIndoorsModule.java +1 -1
- package/ios/MapsIndoors.xcodeproj/xcuserdata/timmikkelsen.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/MapsIndoors.xcworkspace/xcuserdata/timmikkelsen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +1 -1
- package/react-native-maps-indoors-mapbox.podspec +2 -2
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/1.0.
|
|
5
|
+
Visit [our reference document site](https://app.mapsindoors.com/mapsindoors/reference/react-native/mapbox/1.0.6/index.html) to get an overview of what the MapsIndoors SDK offers.
|
|
6
6
|
|
|
7
7
|
## Getting started
|
|
8
8
|
|
|
@@ -28,20 +28,21 @@ target 'MyApp' do
|
|
|
28
28
|
|
|
29
29
|
### Android
|
|
30
30
|
|
|
31
|
-
#### Android
|
|
31
|
+
#### Android Mapbox Setup
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
To get the underlying
|
|
34
|
+
To get the underlying Mapbox to function, you need to perform the following steps:
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
1. Navigate to `android/app/src/main/res/value`.
|
|
38
|
-
2. Create a file in this folder called `
|
|
38
|
+
2. Create a file in this folder called `mapbox_access_token.xml`.
|
|
39
39
|
3. Copy and paste the below code snippet and replace `YOUR_KEY_HERE` with your Mapbox api key.
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
```xml
|
|
43
43
|
<?xml version="1.0" encoding="utf-8"?>
|
|
44
44
|
<resources>
|
|
45
|
+
<string name="mapbox_access_token" translatable="false">YOUR_KEY_HERE</string>
|
|
45
46
|
<string name="mapbox_api_key" translatable="false">YOUR_KEY_HERE</string>
|
|
46
47
|
</resources>
|
|
47
48
|
```
|
package/android/build.gradle
CHANGED
|
@@ -93,7 +93,7 @@ dependencies {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
implementation 'com.mapbox.maps:android:10.14.1'
|
|
96
|
-
implementation 'com.mapspeople.mapsindoors:mapbox:4.2.
|
|
96
|
+
implementation 'com.mapspeople.mapsindoors:mapbox:4.2.6'
|
|
97
97
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
98
98
|
implementation 'androidx.core:core-ktx:1.3.2'
|
|
99
99
|
}
|
|
@@ -121,7 +121,7 @@ public class MapsIndoorsModule extends ReactContextBaseJavaModule {
|
|
|
121
121
|
|
|
122
122
|
@ReactMethod
|
|
123
123
|
public void getLocations(final Promise promise) {
|
|
124
|
-
|
|
124
|
+
ArrayList<MPLocation> locations = new ArrayList<>(MapsIndoors.getLocations());
|
|
125
125
|
if (!locations.isEmpty()) {
|
|
126
126
|
String locationsString = gson.toJson(locations);
|
|
127
127
|
promise.resolve(locationsString);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>MapsIndoors.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
|
|
|
24
24
|
s.requires_arc = true
|
|
25
25
|
|
|
26
26
|
s.dependency "React"
|
|
27
|
-
s.dependency "MapsIndoorsMapbox", "4.2.
|
|
28
|
-
s.dependency "MapsIndoorsCodable", "4.2.
|
|
27
|
+
s.dependency "MapsIndoorsMapbox", "4.2.10"
|
|
28
|
+
s.dependency "MapsIndoorsCodable", "4.2.10"
|
|
29
29
|
end
|
|
30
30
|
|