@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 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.4/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/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 Gooogle Maps Setup
31
+ #### Android Mapbox Setup
32
32
 
33
33
  ​
34
- To get the underlying Google Map to function, you need to perform the following steps:
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 `mapbox_api_key.xml`.
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
  ```
@@ -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.3'
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
- List<MPLocation> locations = MapsIndoors.getLocations();
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>
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": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "description": "React Native MapsIndoors component with mapbox",
6
6
  "react-native": "index.ts",
7
7
  "files": [
@@ -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.6"
28
- s.dependency "MapsIndoorsCodable", "4.2.6"
27
+ s.dependency "MapsIndoorsMapbox", "4.2.10"
28
+ s.dependency "MapsIndoorsCodable", "4.2.10"
29
29
  end
30
30