@mapsindoors/react-native-maps-indoors-mapbox 2.0.6 → 2.1.0
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 +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/mapsindoorsrn/MapsIndoorsViewManager.java +26 -1
- package/android/src/main/java/com/mapsindoorsrn/core/README.md +1 -90
- package/ios/MapsIndoorsViewManager.swift +34 -6
- package/ios/MapsIndoorsViewManagerBridge.m +3 -1
- package/ios/core/DirectionsRendererModule.swift +14 -13
- package/ios/core/DirectionsServiceModule.swift +15 -13
- package/ios/core/MPDisplayRuleBridge.m +1 -1
- package/ios/core/MPDisplayRuleModule.swift +2 -2
- package/ios/core/MapsIndoorsData.swift +5 -1
- package/ios/core/README.md +1 -90
- package/package.json +1 -1
- package/react-native-maps-indoors-mapbox.podspec +2 -2
- package/src/core/MPLocation.ts +5 -1
- package/src/core/MapView.tsx +8 -6
- package/src/core/README.md +1 -90
- package/android/.gradle/7.4/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.4/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -18
- package/android/.idea/jarRepositories.xml +0 -60
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/other.xml +0 -263
- package/android/.idea/vcs.xml +0 -8
- package/android/local.properties +0 -8
- package/ios/MapsIndoors.xcodeproj/xcuserdata/timmikkelsen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/MapsIndoors.xcworkspace/xcuserdata/timmikkelsen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
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.0
|
|
5
|
+
Visit [our reference document site](https://app.mapsindoors.com/mapsindoors/reference/react-native/mapbox/2.1.0/index.html) to get an overview of what the MapsIndoors SDK offers.
|
|
6
6
|
|
|
7
7
|
## Getting started
|
|
8
8
|
|
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-v11:4.8.
|
|
95
|
+
implementation 'com.mapbox.maps:android:11.7.0'
|
|
96
|
+
implementation 'com.mapspeople.mapsindoors:mapbox-v11:4.8.9'
|
|
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'
|
|
@@ -14,11 +14,15 @@ import com.facebook.react.common.MapBuilder;
|
|
|
14
14
|
import com.facebook.react.uimanager.ThemedReactContext;
|
|
15
15
|
import com.facebook.react.uimanager.ViewGroupManager;
|
|
16
16
|
import com.facebook.react.uimanager.annotations.ReactPropGroup;
|
|
17
|
+
import com.google.gson.Gson;
|
|
18
|
+
import com.mapbox.geojson.Point;
|
|
17
19
|
import com.mapbox.maps.CameraOptions;
|
|
20
|
+
import com.mapbox.maps.CameraState;
|
|
18
21
|
import com.mapbox.maps.MapInitOptions;
|
|
19
|
-
import com.mapbox.maps.MapOptions;
|
|
20
22
|
import com.mapbox.maps.MapView;
|
|
23
|
+
import com.mapbox.maps.plugin.compass.CompassUtils;
|
|
21
24
|
import com.mapsindoors.core.OnResultReadyListener;
|
|
25
|
+
import com.mapsindoorsrn.core.models.MPCameraPosition;
|
|
22
26
|
|
|
23
27
|
import java.util.Map;
|
|
24
28
|
|
|
@@ -28,6 +32,7 @@ public class MapsIndoorsViewManager extends ViewGroupManager<MapView> {
|
|
|
28
32
|
|
|
29
33
|
private int propWidth;
|
|
30
34
|
private int propHeight;
|
|
35
|
+
private Gson gson;
|
|
31
36
|
|
|
32
37
|
private MapView view;
|
|
33
38
|
|
|
@@ -37,6 +42,7 @@ public class MapsIndoorsViewManager extends ViewGroupManager<MapView> {
|
|
|
37
42
|
public MapsIndoorsViewManager(ReactApplicationContext reactContext, OnResultReadyListener onMapReadyCallback) {
|
|
38
43
|
mReactContext = reactContext;
|
|
39
44
|
mOnMapReadyCallback = onMapReadyCallback;
|
|
45
|
+
gson = new Gson();
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
@NonNull
|
|
@@ -68,6 +74,25 @@ public class MapsIndoorsViewManager extends ViewGroupManager<MapView> {
|
|
|
68
74
|
|
|
69
75
|
if (commandIdInt == COMMAND_CREATE) {
|
|
70
76
|
createMapFragment(root, reactNativeViewId);
|
|
77
|
+
|
|
78
|
+
if (!args.isNull(1)) {
|
|
79
|
+
MPCameraPosition cameraPosition = gson.fromJson(args.getString(1), MPCameraPosition.class);
|
|
80
|
+
CameraState cameraState = view.getMapboxMap().getCameraState();
|
|
81
|
+
view.getMapboxMap().setCamera(new CameraOptions.Builder()
|
|
82
|
+
.center(Point.fromLngLat(cameraPosition.target.getLng(), cameraPosition.target.getLat()))
|
|
83
|
+
.zoom(cameraPosition.zoom != null ? Double.valueOf(cameraPosition.zoom) : cameraState.getZoom())
|
|
84
|
+
.pitch(cameraPosition.tilt != null ? Double.valueOf(cameraPosition.tilt) : cameraState.getPitch())
|
|
85
|
+
.bearing(cameraPosition.bearing != null ? Double.valueOf(cameraPosition.bearing) : cameraState.getBearing())
|
|
86
|
+
.build());
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!args.isNull(2)) {
|
|
90
|
+
if (args.getBoolean(2)) {
|
|
91
|
+
CompassUtils.getCompass(view).setEnabled(true);
|
|
92
|
+
}else {
|
|
93
|
+
CompassUtils.getCompass(view).setEnabled(false);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
71
96
|
}
|
|
72
97
|
}
|
|
73
98
|
|
|
@@ -1,92 +1,3 @@
|
|
|
1
1
|
# react-native-mapsindoors-core-android
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
-
|
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
-
|
|
11
|
-
## Add your files
|
|
12
|
-
|
|
13
|
-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
cd existing_repo
|
|
18
|
-
git remote add origin https://git.rtx.mapspeople.com/timi/react-native-mapsindoors-core-android.git
|
|
19
|
-
git branch -M main
|
|
20
|
-
git push -uf origin main
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Integrate with your tools
|
|
24
|
-
|
|
25
|
-
- [ ] [Set up project integrations](https://git.rtx.mapspeople.com/timi/react-native-mapsindoors-core-android/-/settings/integrations)
|
|
26
|
-
|
|
27
|
-
## Collaborate with your team
|
|
28
|
-
|
|
29
|
-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
-
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
-
|
|
35
|
-
## Test and Deploy
|
|
36
|
-
|
|
37
|
-
Use the built-in continuous integration in GitLab.
|
|
38
|
-
|
|
39
|
-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
# Editing this README
|
|
48
|
-
|
|
49
|
-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
-
|
|
51
|
-
## Suggestions for a good README
|
|
52
|
-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
53
|
-
|
|
54
|
-
## Name
|
|
55
|
-
Choose a self-explaining name for your project.
|
|
56
|
-
|
|
57
|
-
## Description
|
|
58
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
59
|
-
|
|
60
|
-
## Badges
|
|
61
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
62
|
-
|
|
63
|
-
## Visuals
|
|
64
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
65
|
-
|
|
66
|
-
## Installation
|
|
67
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
68
|
-
|
|
69
|
-
## Usage
|
|
70
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
71
|
-
|
|
72
|
-
## Support
|
|
73
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
74
|
-
|
|
75
|
-
## Roadmap
|
|
76
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
77
|
-
|
|
78
|
-
## Contributing
|
|
79
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
|
80
|
-
|
|
81
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
82
|
-
|
|
83
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
84
|
-
|
|
85
|
-
## Authors and acknowledgment
|
|
86
|
-
Show your appreciation to those who have contributed to the project.
|
|
87
|
-
|
|
88
|
-
## License
|
|
89
|
-
For open source projects, say how it is licensed.
|
|
90
|
-
|
|
91
|
-
## Project status
|
|
92
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
3
|
+
Android core logic for the React Native MapsIndoors packages
|
|
@@ -9,7 +9,10 @@ import MapboxMaps
|
|
|
9
9
|
@objc(MapsIndoorsViewManager)
|
|
10
10
|
class MapsIndoorsViewManager : RCTViewManager {
|
|
11
11
|
@objc override static func requiresMainQueueSetup() -> Bool {return false}
|
|
12
|
+
|
|
13
|
+
var mapView: MapView? = nil
|
|
12
14
|
|
|
15
|
+
|
|
13
16
|
override func view() -> UIView! {
|
|
14
17
|
MapboxOptions.accessToken = Bundle.main.object(forInfoDictionaryKey: "MBXAccessToken") as? String ?? ""
|
|
15
18
|
let cameraOptions = CameraOptions(
|
|
@@ -19,15 +22,41 @@ class MapsIndoorsViewManager : RCTViewManager {
|
|
|
19
22
|
)
|
|
20
23
|
let options = MapInitOptions(cameraOptions: cameraOptions)
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
mapView = MapView(frame: CGRect(x: 0, y: 0, width: 64, height: 64), mapInitOptions: options)
|
|
23
26
|
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
MapsIndoorsData.sharedInstance.mapView = MapBoxView(mapboxView: mapView)
|
|
27
|
-
return mapView
|
|
28
|
+
MapsIndoorsData.reset()
|
|
29
|
+
MapsIndoorsData.sharedInstance.mapView = MapBoxView(mapboxView: mapView!)
|
|
30
|
+
return mapView!
|
|
28
31
|
}
|
|
29
32
|
|
|
30
|
-
@objc func create(_ node: NSNumber, nodeAgain: NSNumber) {
|
|
33
|
+
@objc func create(_ node: NSNumber, nodeAgain: NSNumber, camera: String, showCompass: Bool) {
|
|
34
|
+
let decoder = JSONDecoder()
|
|
35
|
+
|
|
36
|
+
DispatchQueue.main.async {
|
|
37
|
+
if showCompass {
|
|
38
|
+
self.mapView?.ornaments.options.compass.visibility = OrnamentVisibility.adaptive
|
|
39
|
+
}else {
|
|
40
|
+
self.mapView?.ornaments.options.compass.visibility = OrnamentVisibility.hidden
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
guard let position = try? decoder.decode(CameraPosition.self, from: camera.data(using: .utf8)!) else {
|
|
45
|
+
return
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
DispatchQueue.main.async {
|
|
49
|
+
var update: CameraOptions
|
|
50
|
+
if let mapCamera = self.mapView?.mapboxMap.cameraState {
|
|
51
|
+
update = CameraOptions(cameraState: mapCamera)
|
|
52
|
+
update.center = position.target.coordinate
|
|
53
|
+
update.bearing = CLLocationDirection(position.bearing)
|
|
54
|
+
update.zoom = CGFloat(position.zoom)
|
|
55
|
+
update.pitch = CGFloat(position.tilt)
|
|
56
|
+
|
|
57
|
+
self.mapView?.mapboxMap.setCamera(to: update)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
31
60
|
}
|
|
32
61
|
}
|
|
33
62
|
|
|
@@ -140,5 +169,4 @@ class MapBoxView: RCMapView {
|
|
|
140
169
|
}
|
|
141
170
|
return mapConfig
|
|
142
171
|
}
|
|
143
|
-
|
|
144
172
|
}
|
|
@@ -36,8 +36,9 @@ public class DirectionsRendererModule: RCTEventEmitter {
|
|
|
36
36
|
return doReject(reject, message: "directions renderer null. MapControl needs to have been instantiated first")
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
DispatchQueue.main.
|
|
39
|
+
DispatchQueue.main.async {
|
|
40
40
|
directionsRenderer.clear()
|
|
41
|
+
directionsRenderer.route = nil
|
|
41
42
|
}
|
|
42
43
|
return resolve(nil)
|
|
43
44
|
}
|
|
@@ -76,13 +77,13 @@ public class DirectionsRendererModule: RCTEventEmitter {
|
|
|
76
77
|
|
|
77
78
|
directionsRenderer.padding = MapsIndoorsData.sharedInstance.mapView!.getMapControl()!.mapPadding
|
|
78
79
|
|
|
79
|
-
DispatchQueue.main.
|
|
80
|
+
DispatchQueue.main.async {
|
|
80
81
|
let succes = directionsRenderer.nextLeg()
|
|
81
82
|
|
|
82
83
|
if succes {
|
|
83
|
-
directionsRenderer.animate(duration: animationDuration.doubleValue)
|
|
84
|
-
if (isListeningForLegChanges) {
|
|
85
|
-
sendEvent(withName: MapsIndoorsData.Event.onLegSelected.rawValue, body: ["leg": directionsRenderer.routeLegIndex])
|
|
84
|
+
directionsRenderer.animate(duration: self.animationDuration.doubleValue)
|
|
85
|
+
if (self.isListeningForLegChanges) {
|
|
86
|
+
self.sendEvent(withName: MapsIndoorsData.Event.onLegSelected.rawValue, body: ["leg": directionsRenderer.routeLegIndex])
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -103,13 +104,13 @@ public class DirectionsRendererModule: RCTEventEmitter {
|
|
|
103
104
|
|
|
104
105
|
directionsRenderer.padding = MapsIndoorsData.sharedInstance.mapView!.getMapControl()!.mapPadding
|
|
105
106
|
|
|
106
|
-
DispatchQueue.main.
|
|
107
|
+
DispatchQueue.main.async {
|
|
107
108
|
let succes = directionsRenderer.previousLeg()
|
|
108
109
|
|
|
109
110
|
if succes {
|
|
110
|
-
directionsRenderer.animate(duration: animationDuration.doubleValue)
|
|
111
|
-
if (isListeningForLegChanges) {
|
|
112
|
-
sendEvent(withName: MapsIndoorsData.Event.onLegSelected.rawValue, body: ["leg": directionsRenderer.routeLegIndex])
|
|
111
|
+
directionsRenderer.animate(duration: self.animationDuration.doubleValue)
|
|
112
|
+
if (self.isListeningForLegChanges) {
|
|
113
|
+
self.sendEvent(withName: MapsIndoorsData.Event.onLegSelected.rawValue, body: ["leg": directionsRenderer.routeLegIndex])
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
}
|
|
@@ -143,13 +144,13 @@ public class DirectionsRendererModule: RCTEventEmitter {
|
|
|
143
144
|
|
|
144
145
|
directionsRenderer.padding = MapsIndoorsData.sharedInstance.mapView!.getMapControl()!.mapPadding
|
|
145
146
|
|
|
146
|
-
DispatchQueue.main.
|
|
147
|
+
DispatchQueue.main.async {
|
|
147
148
|
directionsRenderer.routeLegIndex = legIndex.intValue
|
|
148
149
|
|
|
149
|
-
directionsRenderer.animate(duration: animationDuration.doubleValue)
|
|
150
|
+
directionsRenderer.animate(duration: self.animationDuration.doubleValue)
|
|
150
151
|
|
|
151
|
-
if isListeningForLegChanges {
|
|
152
|
-
sendEvent(withName: MapsIndoorsData.Event.onLegSelected.rawValue, body: ["leg": directionsRenderer.routeLegIndex])
|
|
152
|
+
if self.isListeningForLegChanges {
|
|
153
|
+
self.sendEvent(withName: MapsIndoorsData.Event.onLegSelected.rawValue, body: ["leg": directionsRenderer.routeLegIndex])
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
return resolve(nil)
|
|
@@ -110,20 +110,22 @@ public class DirectionsServiceModule: NSObject {
|
|
|
110
110
|
query.travelMode = directionsVars.travelMode
|
|
111
111
|
|
|
112
112
|
Task {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
113
|
+
do {
|
|
114
|
+
if let route = try await MPMapsIndoors.shared.directionsService.routingWith(query: query) {
|
|
115
|
+
if let routeData = try? JSONEncoder().encode(route as? MPRouteInternal) {
|
|
116
|
+
let routeRoute = String(data: routeData, encoding: String.Encoding.utf8)
|
|
117
|
+
var map = Dictionary<String, String>()
|
|
118
|
+
map["route"] = routeRoute
|
|
119
|
+
map["error"] = "null"
|
|
120
|
+
return resolve(map)
|
|
121
|
+
} else {
|
|
122
|
+
return doReject(reject, message: "Route could not be parsed")
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
return resolve(nil)
|
|
124
126
|
}
|
|
125
|
-
}
|
|
126
|
-
return
|
|
127
|
+
} catch {
|
|
128
|
+
return doReject(reject, message: (error as? MPError)?.description ?? error.localizedDescription)
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
131
|
}
|
|
@@ -165,7 +165,7 @@ RCT_EXTERN_METHOD(requiresMainQueueSetup)
|
|
|
165
165
|
|
|
166
166
|
// SetterBridge setLabelMaxWidth->labelMaxWidth
|
|
167
167
|
RCT_EXTERN_METHOD(setLabelMaxWidth: (NSString *) displayRuleId
|
|
168
|
-
value:(
|
|
168
|
+
value:(NSInteger) value
|
|
169
169
|
resolver:(RCTPromiseResolveBlock) resolve
|
|
170
170
|
rejecter:(RCTPromiseRejectBlock) reject)
|
|
171
171
|
|
|
@@ -437,13 +437,13 @@ public class MPDisplayRuleModule: NSObject {
|
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
// Setter setLabelMaxWidth->labelMaxWidth
|
|
440
|
-
@objc public func setLabelMaxWidth(_ displayRuleId: String, value:
|
|
440
|
+
@objc public func setLabelMaxWidth(_ displayRuleId: String, value: Int, resolver resolve: RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock) {
|
|
441
441
|
guard let displayRule = getRule(name: displayRuleId) else {
|
|
442
442
|
return doReject(reject, displayRuleId: displayRuleId)
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
if (value != -1) {
|
|
446
|
-
displayRule.labelMaxWidth = value
|
|
446
|
+
displayRule.labelMaxWidth = UInt(value)
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
return resolve(nil)
|
|
@@ -8,7 +8,11 @@ protocol LiveDataDelegate {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class MapsIndoorsData {
|
|
11
|
-
public static var sharedInstance = MapsIndoorsData()
|
|
11
|
+
public static var sharedInstance: MapsIndoorsData = MapsIndoorsData()
|
|
12
|
+
|
|
13
|
+
public static func reset() {
|
|
14
|
+
sharedInstance = MapsIndoorsData()
|
|
15
|
+
}
|
|
12
16
|
|
|
13
17
|
public var mapView: RCMapView?
|
|
14
18
|
public var directionsRenderer: MPDirectionsRenderer? = nil
|
package/ios/core/README.md
CHANGED
|
@@ -1,92 +1,3 @@
|
|
|
1
1
|
# react-native-mapsindoors-core-ios
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
-
|
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
-
|
|
11
|
-
## Add your files
|
|
12
|
-
|
|
13
|
-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
cd existing_repo
|
|
18
|
-
git remote add origin https://git.rtx.mapspeople.com/timi/react-native-mapsindoors-core-ios.git
|
|
19
|
-
git branch -M main
|
|
20
|
-
git push -uf origin main
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Integrate with your tools
|
|
24
|
-
|
|
25
|
-
- [ ] [Set up project integrations](https://git.rtx.mapspeople.com/timi/react-native-mapsindoors-core-ios/-/settings/integrations)
|
|
26
|
-
|
|
27
|
-
## Collaborate with your team
|
|
28
|
-
|
|
29
|
-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
-
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
-
|
|
35
|
-
## Test and Deploy
|
|
36
|
-
|
|
37
|
-
Use the built-in continuous integration in GitLab.
|
|
38
|
-
|
|
39
|
-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
# Editing this README
|
|
48
|
-
|
|
49
|
-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
-
|
|
51
|
-
## Suggestions for a good README
|
|
52
|
-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
53
|
-
|
|
54
|
-
## Name
|
|
55
|
-
Choose a self-explaining name for your project.
|
|
56
|
-
|
|
57
|
-
## Description
|
|
58
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
59
|
-
|
|
60
|
-
## Badges
|
|
61
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
62
|
-
|
|
63
|
-
## Visuals
|
|
64
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
65
|
-
|
|
66
|
-
## Installation
|
|
67
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
68
|
-
|
|
69
|
-
## Usage
|
|
70
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
71
|
-
|
|
72
|
-
## Support
|
|
73
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
74
|
-
|
|
75
|
-
## Roadmap
|
|
76
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
77
|
-
|
|
78
|
-
## Contributing
|
|
79
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
|
80
|
-
|
|
81
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
82
|
-
|
|
83
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
84
|
-
|
|
85
|
-
## Authors and acknowledgment
|
|
86
|
-
Show your appreciation to those who have contributed to the project.
|
|
87
|
-
|
|
88
|
-
## License
|
|
89
|
-
For open source projects, say how it is licensed.
|
|
90
|
-
|
|
91
|
-
## Project status
|
|
92
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
3
|
+
iOS core logic for the React Native MapsIndoors packages
|
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 "MapsIndoorsMapbox11", "4.5.
|
|
28
|
-
s.dependency "MapsIndoorsCodable", "4.5.
|
|
27
|
+
s.dependency "MapsIndoorsMapbox11", "4.5.15"
|
|
28
|
+
s.dependency "MapsIndoorsCodable", "4.5.15"
|
|
29
29
|
end
|
|
30
30
|
|
package/src/core/MPLocation.ts
CHANGED
|
@@ -120,11 +120,15 @@ export default class MPLocation extends MPEntity {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
if (object && object.properties && Platform.OS === 'ios') {
|
|
124
|
+
object.properties.locationSettings = object.locationSettings
|
|
125
|
+
}
|
|
126
|
+
|
|
123
127
|
return new MPLocation(
|
|
124
128
|
object?.id,
|
|
125
129
|
object?.restrictions,
|
|
126
130
|
geo,
|
|
127
|
-
MPPropertyData.create(object?.properties),
|
|
131
|
+
MPPropertyData.create(object?.properties, object?.id),
|
|
128
132
|
);
|
|
129
133
|
|
|
130
134
|
}
|
package/src/core/MapView.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
3
|
import { Platform, UIManager, findNodeHandle, requireNativeComponent } from "react-native";
|
|
4
|
+
import MPCameraPosition from './MPCameraPosition';
|
|
4
5
|
|
|
5
|
-
const createFragment = (viewId: number | null) => {
|
|
6
|
+
const createFragment = (viewId: number | null, camera?: MPCameraPosition, showCompass?: boolean) => {
|
|
6
7
|
let command = (UIManager as any).MapsIndoorsView.Commands.create;
|
|
7
8
|
if (Platform.OS === 'android') {
|
|
8
9
|
command = command.toString();
|
|
@@ -11,22 +12,23 @@ const createFragment = (viewId: number | null) => {
|
|
|
11
12
|
viewId,
|
|
12
13
|
// we are calling the 'create' command
|
|
13
14
|
command,
|
|
14
|
-
[viewId],
|
|
15
|
+
[viewId, JSON.stringify(camera), showCompass],
|
|
15
16
|
);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
const MapView = ({ style }: { style: any }) => {
|
|
19
|
+
const MapView = ({ style, camera, showCompass }: { style: any, camera?: MPCameraPosition, showCompass?: boolean}) => {
|
|
20
20
|
const ref = useRef(null);
|
|
21
21
|
|
|
22
22
|
useEffect(() => {
|
|
23
23
|
const viewId = findNodeHandle(ref.current);
|
|
24
|
-
createFragment(viewId);
|
|
24
|
+
createFragment(viewId, camera, showCompass !== undefined ? showCompass : true);
|
|
25
25
|
}, []);
|
|
26
26
|
|
|
27
27
|
return (<MapsIndoorsViewManager
|
|
28
28
|
style={style}
|
|
29
|
-
ref={ref}
|
|
29
|
+
ref={ref}
|
|
30
|
+
camera={camera}
|
|
31
|
+
showCompass={showCompass} />);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
const MapsIndoorsViewManager = requireNativeComponent('MapsIndoorsView');
|
package/src/core/README.md
CHANGED
|
@@ -1,92 +1,3 @@
|
|
|
1
1
|
# react-native-mapsindoors-core
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
-
|
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
-
|
|
11
|
-
## Add your files
|
|
12
|
-
|
|
13
|
-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
cd existing_repo
|
|
18
|
-
git remote add origin https://git.rtx.mapspeople.com/timi/react-native-mapsindoors-core.git
|
|
19
|
-
git branch -M main
|
|
20
|
-
git push -uf origin main
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Integrate with your tools
|
|
24
|
-
|
|
25
|
-
- [ ] [Set up project integrations](https://git.rtx.mapspeople.com/timi/react-native-mapsindoors-core/-/settings/integrations)
|
|
26
|
-
|
|
27
|
-
## Collaborate with your team
|
|
28
|
-
|
|
29
|
-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
-
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
-
|
|
35
|
-
## Test and Deploy
|
|
36
|
-
|
|
37
|
-
Use the built-in continuous integration in GitLab.
|
|
38
|
-
|
|
39
|
-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
# Editing this README
|
|
48
|
-
|
|
49
|
-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
-
|
|
51
|
-
## Suggestions for a good README
|
|
52
|
-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
53
|
-
|
|
54
|
-
## Name
|
|
55
|
-
Choose a self-explaining name for your project.
|
|
56
|
-
|
|
57
|
-
## Description
|
|
58
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
59
|
-
|
|
60
|
-
## Badges
|
|
61
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
62
|
-
|
|
63
|
-
## Visuals
|
|
64
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
65
|
-
|
|
66
|
-
## Installation
|
|
67
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
68
|
-
|
|
69
|
-
## Usage
|
|
70
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
71
|
-
|
|
72
|
-
## Support
|
|
73
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
74
|
-
|
|
75
|
-
## Roadmap
|
|
76
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
77
|
-
|
|
78
|
-
## Contributing
|
|
79
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
|
80
|
-
|
|
81
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
82
|
-
|
|
83
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
84
|
-
|
|
85
|
-
## Authors and acknowledgment
|
|
86
|
-
Show your appreciation to those who have contributed to the project.
|
|
87
|
-
|
|
88
|
-
## License
|
|
89
|
-
For open source projects, say how it is licensed.
|
|
90
|
-
|
|
91
|
-
## Project status
|
|
92
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
3
|
+
Core logic for react native mapsindoors sdk
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
package/android/.idea/gradle.xml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleMigrationSettings" migrationVersion="1" />
|
|
4
|
-
<component name="GradleSettings">
|
|
5
|
-
<option name="linkedExternalProjectsSettings">
|
|
6
|
-
<GradleProjectSettings>
|
|
7
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
-
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
9
|
-
<option name="modules">
|
|
10
|
-
<set>
|
|
11
|
-
<option value="$PROJECT_DIR$" />
|
|
12
|
-
</set>
|
|
13
|
-
</option>
|
|
14
|
-
<option name="resolveExternalAnnotations" value="false" />
|
|
15
|
-
</GradleProjectSettings>
|
|
16
|
-
</option>
|
|
17
|
-
</component>
|
|
18
|
-
</project>
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="RemoteRepositoriesConfiguration">
|
|
4
|
-
<remote-repository>
|
|
5
|
-
<option name="id" value="central" />
|
|
6
|
-
<option name="name" value="Maven Central repository" />
|
|
7
|
-
<option name="url" value="https://repo1.maven.org/maven2" />
|
|
8
|
-
</remote-repository>
|
|
9
|
-
<remote-repository>
|
|
10
|
-
<option name="id" value="jboss.community" />
|
|
11
|
-
<option name="name" value="JBoss Community repository" />
|
|
12
|
-
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
|
13
|
-
</remote-repository>
|
|
14
|
-
<remote-repository>
|
|
15
|
-
<option name="id" value="MavenLocal" />
|
|
16
|
-
<option name="name" value="MavenLocal" />
|
|
17
|
-
<option name="url" value="file:$USER_HOME$/.m2/repository/" />
|
|
18
|
-
</remote-repository>
|
|
19
|
-
<remote-repository>
|
|
20
|
-
<option name="id" value="MavenRepo" />
|
|
21
|
-
<option name="name" value="MavenRepo" />
|
|
22
|
-
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
|
23
|
-
</remote-repository>
|
|
24
|
-
<remote-repository>
|
|
25
|
-
<option name="id" value="maven2" />
|
|
26
|
-
<option name="name" value="maven2" />
|
|
27
|
-
<option name="url" value="file:$PROJECT_DIR$/../node_modules/jsc-android/dist/" />
|
|
28
|
-
</remote-repository>
|
|
29
|
-
<remote-repository>
|
|
30
|
-
<option name="id" value="maven" />
|
|
31
|
-
<option name="name" value="maven" />
|
|
32
|
-
<option name="url" value="file:$PROJECT_DIR$/../node_modules/react-native/android/" />
|
|
33
|
-
</remote-repository>
|
|
34
|
-
<remote-repository>
|
|
35
|
-
<option name="id" value="Google" />
|
|
36
|
-
<option name="name" value="Google" />
|
|
37
|
-
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
|
38
|
-
</remote-repository>
|
|
39
|
-
<remote-repository>
|
|
40
|
-
<option name="id" value="maven" />
|
|
41
|
-
<option name="name" value="maven" />
|
|
42
|
-
<option name="url" value="https://maven.mapsindoors.com/" />
|
|
43
|
-
</remote-repository>
|
|
44
|
-
<remote-repository>
|
|
45
|
-
<option name="id" value="maven3" />
|
|
46
|
-
<option name="name" value="maven3" />
|
|
47
|
-
<option name="url" value="file:$USER_HOME$/React%20Native%20with%20submodules/react-native-mapsindoors-mapbox/node_modules/jsc-android/dist/" />
|
|
48
|
-
</remote-repository>
|
|
49
|
-
<remote-repository>
|
|
50
|
-
<option name="id" value="maven4" />
|
|
51
|
-
<option name="name" value="maven4" />
|
|
52
|
-
<option name="url" value="https://api.mapbox.com/downloads/v2/releases/maven" />
|
|
53
|
-
</remote-repository>
|
|
54
|
-
<remote-repository>
|
|
55
|
-
<option name="id" value="maven2" />
|
|
56
|
-
<option name="name" value="maven2" />
|
|
57
|
-
<option name="url" value="file:$USER_HOME$/React%20Native%20with%20submodules/react-native-mapsindoors-mapbox/node_modules/react-native/android/" />
|
|
58
|
-
</remote-repository>
|
|
59
|
-
</component>
|
|
60
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<project version="4">
|
|
2
|
-
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
3
|
-
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
|
4
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ProjectType">
|
|
7
|
-
<option name="id" value="Android" />
|
|
8
|
-
</component>
|
|
9
|
-
</project>
|
package/android/.idea/other.xml
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="direct_access_persist.xml">
|
|
4
|
-
<option name="deviceSelectionList">
|
|
5
|
-
<list>
|
|
6
|
-
<PersistentDeviceSelectionData>
|
|
7
|
-
<option name="api" value="27" />
|
|
8
|
-
<option name="brand" value="DOCOMO" />
|
|
9
|
-
<option name="codename" value="F01L" />
|
|
10
|
-
<option name="id" value="F01L" />
|
|
11
|
-
<option name="manufacturer" value="FUJITSU" />
|
|
12
|
-
<option name="name" value="F-01L" />
|
|
13
|
-
<option name="screenDensity" value="360" />
|
|
14
|
-
<option name="screenX" value="720" />
|
|
15
|
-
<option name="screenY" value="1280" />
|
|
16
|
-
</PersistentDeviceSelectionData>
|
|
17
|
-
<PersistentDeviceSelectionData>
|
|
18
|
-
<option name="api" value="28" />
|
|
19
|
-
<option name="brand" value="DOCOMO" />
|
|
20
|
-
<option name="codename" value="SH-01L" />
|
|
21
|
-
<option name="id" value="SH-01L" />
|
|
22
|
-
<option name="manufacturer" value="SHARP" />
|
|
23
|
-
<option name="name" value="AQUOS sense2 SH-01L" />
|
|
24
|
-
<option name="screenDensity" value="480" />
|
|
25
|
-
<option name="screenX" value="1080" />
|
|
26
|
-
<option name="screenY" value="2160" />
|
|
27
|
-
</PersistentDeviceSelectionData>
|
|
28
|
-
<PersistentDeviceSelectionData>
|
|
29
|
-
<option name="api" value="31" />
|
|
30
|
-
<option name="brand" value="samsung" />
|
|
31
|
-
<option name="codename" value="a51" />
|
|
32
|
-
<option name="id" value="a51" />
|
|
33
|
-
<option name="manufacturer" value="Samsung" />
|
|
34
|
-
<option name="name" value="Galaxy A51" />
|
|
35
|
-
<option name="screenDensity" value="420" />
|
|
36
|
-
<option name="screenX" value="1080" />
|
|
37
|
-
<option name="screenY" value="2400" />
|
|
38
|
-
</PersistentDeviceSelectionData>
|
|
39
|
-
<PersistentDeviceSelectionData>
|
|
40
|
-
<option name="api" value="34" />
|
|
41
|
-
<option name="brand" value="google" />
|
|
42
|
-
<option name="codename" value="akita" />
|
|
43
|
-
<option name="id" value="akita" />
|
|
44
|
-
<option name="manufacturer" value="Google" />
|
|
45
|
-
<option name="name" value="Pixel 8a" />
|
|
46
|
-
<option name="screenDensity" value="420" />
|
|
47
|
-
<option name="screenX" value="1080" />
|
|
48
|
-
<option name="screenY" value="2400" />
|
|
49
|
-
</PersistentDeviceSelectionData>
|
|
50
|
-
<PersistentDeviceSelectionData>
|
|
51
|
-
<option name="api" value="33" />
|
|
52
|
-
<option name="brand" value="samsung" />
|
|
53
|
-
<option name="codename" value="b0q" />
|
|
54
|
-
<option name="id" value="b0q" />
|
|
55
|
-
<option name="manufacturer" value="Samsung" />
|
|
56
|
-
<option name="name" value="Galaxy S22 Ultra" />
|
|
57
|
-
<option name="screenDensity" value="600" />
|
|
58
|
-
<option name="screenX" value="1440" />
|
|
59
|
-
<option name="screenY" value="3088" />
|
|
60
|
-
</PersistentDeviceSelectionData>
|
|
61
|
-
<PersistentDeviceSelectionData>
|
|
62
|
-
<option name="api" value="32" />
|
|
63
|
-
<option name="brand" value="google" />
|
|
64
|
-
<option name="codename" value="bluejay" />
|
|
65
|
-
<option name="id" value="bluejay" />
|
|
66
|
-
<option name="manufacturer" value="Google" />
|
|
67
|
-
<option name="name" value="Pixel 6a" />
|
|
68
|
-
<option name="screenDensity" value="420" />
|
|
69
|
-
<option name="screenX" value="1080" />
|
|
70
|
-
<option name="screenY" value="2400" />
|
|
71
|
-
</PersistentDeviceSelectionData>
|
|
72
|
-
<PersistentDeviceSelectionData>
|
|
73
|
-
<option name="api" value="29" />
|
|
74
|
-
<option name="brand" value="samsung" />
|
|
75
|
-
<option name="codename" value="crownqlteue" />
|
|
76
|
-
<option name="id" value="crownqlteue" />
|
|
77
|
-
<option name="manufacturer" value="Samsung" />
|
|
78
|
-
<option name="name" value="Galaxy Note9" />
|
|
79
|
-
<option name="screenDensity" value="420" />
|
|
80
|
-
<option name="screenX" value="2220" />
|
|
81
|
-
<option name="screenY" value="1080" />
|
|
82
|
-
</PersistentDeviceSelectionData>
|
|
83
|
-
<PersistentDeviceSelectionData>
|
|
84
|
-
<option name="api" value="34" />
|
|
85
|
-
<option name="brand" value="samsung" />
|
|
86
|
-
<option name="codename" value="dm3q" />
|
|
87
|
-
<option name="id" value="dm3q" />
|
|
88
|
-
<option name="manufacturer" value="Samsung" />
|
|
89
|
-
<option name="name" value="Galaxy S23 Ultra" />
|
|
90
|
-
<option name="screenDensity" value="600" />
|
|
91
|
-
<option name="screenX" value="1440" />
|
|
92
|
-
<option name="screenY" value="3088" />
|
|
93
|
-
</PersistentDeviceSelectionData>
|
|
94
|
-
<PersistentDeviceSelectionData>
|
|
95
|
-
<option name="api" value="33" />
|
|
96
|
-
<option name="brand" value="google" />
|
|
97
|
-
<option name="codename" value="felix" />
|
|
98
|
-
<option name="id" value="felix" />
|
|
99
|
-
<option name="manufacturer" value="Google" />
|
|
100
|
-
<option name="name" value="Pixel Fold" />
|
|
101
|
-
<option name="screenDensity" value="420" />
|
|
102
|
-
<option name="screenX" value="2208" />
|
|
103
|
-
<option name="screenY" value="1840" />
|
|
104
|
-
</PersistentDeviceSelectionData>
|
|
105
|
-
<PersistentDeviceSelectionData>
|
|
106
|
-
<option name="api" value="33" />
|
|
107
|
-
<option name="brand" value="google" />
|
|
108
|
-
<option name="codename" value="felix_camera" />
|
|
109
|
-
<option name="id" value="felix_camera" />
|
|
110
|
-
<option name="manufacturer" value="Google" />
|
|
111
|
-
<option name="name" value="Pixel Fold (Camera-enabled)" />
|
|
112
|
-
<option name="screenDensity" value="420" />
|
|
113
|
-
<option name="screenX" value="2208" />
|
|
114
|
-
<option name="screenY" value="1840" />
|
|
115
|
-
</PersistentDeviceSelectionData>
|
|
116
|
-
<PersistentDeviceSelectionData>
|
|
117
|
-
<option name="api" value="33" />
|
|
118
|
-
<option name="brand" value="samsung" />
|
|
119
|
-
<option name="codename" value="gts8uwifi" />
|
|
120
|
-
<option name="id" value="gts8uwifi" />
|
|
121
|
-
<option name="manufacturer" value="Samsung" />
|
|
122
|
-
<option name="name" value="Galaxy Tab S8 Ultra" />
|
|
123
|
-
<option name="screenDensity" value="320" />
|
|
124
|
-
<option name="screenX" value="1848" />
|
|
125
|
-
<option name="screenY" value="2960" />
|
|
126
|
-
</PersistentDeviceSelectionData>
|
|
127
|
-
<PersistentDeviceSelectionData>
|
|
128
|
-
<option name="api" value="34" />
|
|
129
|
-
<option name="brand" value="google" />
|
|
130
|
-
<option name="codename" value="husky" />
|
|
131
|
-
<option name="id" value="husky" />
|
|
132
|
-
<option name="manufacturer" value="Google" />
|
|
133
|
-
<option name="name" value="Pixel 8 Pro" />
|
|
134
|
-
<option name="screenDensity" value="390" />
|
|
135
|
-
<option name="screenX" value="1008" />
|
|
136
|
-
<option name="screenY" value="2244" />
|
|
137
|
-
</PersistentDeviceSelectionData>
|
|
138
|
-
<PersistentDeviceSelectionData>
|
|
139
|
-
<option name="api" value="30" />
|
|
140
|
-
<option name="brand" value="motorola" />
|
|
141
|
-
<option name="codename" value="java" />
|
|
142
|
-
<option name="id" value="java" />
|
|
143
|
-
<option name="manufacturer" value="Motorola" />
|
|
144
|
-
<option name="name" value="G20" />
|
|
145
|
-
<option name="screenDensity" value="280" />
|
|
146
|
-
<option name="screenX" value="720" />
|
|
147
|
-
<option name="screenY" value="1600" />
|
|
148
|
-
</PersistentDeviceSelectionData>
|
|
149
|
-
<PersistentDeviceSelectionData>
|
|
150
|
-
<option name="api" value="33" />
|
|
151
|
-
<option name="brand" value="google" />
|
|
152
|
-
<option name="codename" value="lynx" />
|
|
153
|
-
<option name="id" value="lynx" />
|
|
154
|
-
<option name="manufacturer" value="Google" />
|
|
155
|
-
<option name="name" value="Pixel 7a" />
|
|
156
|
-
<option name="screenDensity" value="420" />
|
|
157
|
-
<option name="screenX" value="1080" />
|
|
158
|
-
<option name="screenY" value="2400" />
|
|
159
|
-
</PersistentDeviceSelectionData>
|
|
160
|
-
<PersistentDeviceSelectionData>
|
|
161
|
-
<option name="api" value="31" />
|
|
162
|
-
<option name="brand" value="google" />
|
|
163
|
-
<option name="codename" value="oriole" />
|
|
164
|
-
<option name="id" value="oriole" />
|
|
165
|
-
<option name="manufacturer" value="Google" />
|
|
166
|
-
<option name="name" value="Pixel 6" />
|
|
167
|
-
<option name="screenDensity" value="420" />
|
|
168
|
-
<option name="screenX" value="1080" />
|
|
169
|
-
<option name="screenY" value="2400" />
|
|
170
|
-
</PersistentDeviceSelectionData>
|
|
171
|
-
<PersistentDeviceSelectionData>
|
|
172
|
-
<option name="api" value="33" />
|
|
173
|
-
<option name="brand" value="google" />
|
|
174
|
-
<option name="codename" value="panther" />
|
|
175
|
-
<option name="id" value="panther" />
|
|
176
|
-
<option name="manufacturer" value="Google" />
|
|
177
|
-
<option name="name" value="Pixel 7" />
|
|
178
|
-
<option name="screenDensity" value="420" />
|
|
179
|
-
<option name="screenX" value="1080" />
|
|
180
|
-
<option name="screenY" value="2400" />
|
|
181
|
-
</PersistentDeviceSelectionData>
|
|
182
|
-
<PersistentDeviceSelectionData>
|
|
183
|
-
<option name="api" value="31" />
|
|
184
|
-
<option name="brand" value="samsung" />
|
|
185
|
-
<option name="codename" value="q2q" />
|
|
186
|
-
<option name="id" value="q2q" />
|
|
187
|
-
<option name="manufacturer" value="Samsung" />
|
|
188
|
-
<option name="name" value="Galaxy Z Fold3" />
|
|
189
|
-
<option name="screenDensity" value="420" />
|
|
190
|
-
<option name="screenX" value="1768" />
|
|
191
|
-
<option name="screenY" value="2208" />
|
|
192
|
-
</PersistentDeviceSelectionData>
|
|
193
|
-
<PersistentDeviceSelectionData>
|
|
194
|
-
<option name="api" value="34" />
|
|
195
|
-
<option name="brand" value="samsung" />
|
|
196
|
-
<option name="codename" value="q5q" />
|
|
197
|
-
<option name="id" value="q5q" />
|
|
198
|
-
<option name="manufacturer" value="Samsung" />
|
|
199
|
-
<option name="name" value="Galaxy Z Fold5" />
|
|
200
|
-
<option name="screenDensity" value="420" />
|
|
201
|
-
<option name="screenX" value="1812" />
|
|
202
|
-
<option name="screenY" value="2176" />
|
|
203
|
-
</PersistentDeviceSelectionData>
|
|
204
|
-
<PersistentDeviceSelectionData>
|
|
205
|
-
<option name="api" value="30" />
|
|
206
|
-
<option name="brand" value="google" />
|
|
207
|
-
<option name="codename" value="r11" />
|
|
208
|
-
<option name="id" value="r11" />
|
|
209
|
-
<option name="manufacturer" value="Google" />
|
|
210
|
-
<option name="name" value="Pixel Watch" />
|
|
211
|
-
<option name="screenDensity" value="320" />
|
|
212
|
-
<option name="screenX" value="384" />
|
|
213
|
-
<option name="screenY" value="384" />
|
|
214
|
-
<option name="type" value="WEAR_OS" />
|
|
215
|
-
</PersistentDeviceSelectionData>
|
|
216
|
-
<PersistentDeviceSelectionData>
|
|
217
|
-
<option name="api" value="30" />
|
|
218
|
-
<option name="brand" value="google" />
|
|
219
|
-
<option name="codename" value="redfin" />
|
|
220
|
-
<option name="id" value="redfin" />
|
|
221
|
-
<option name="manufacturer" value="Google" />
|
|
222
|
-
<option name="name" value="Pixel 5" />
|
|
223
|
-
<option name="screenDensity" value="440" />
|
|
224
|
-
<option name="screenX" value="1080" />
|
|
225
|
-
<option name="screenY" value="2340" />
|
|
226
|
-
</PersistentDeviceSelectionData>
|
|
227
|
-
<PersistentDeviceSelectionData>
|
|
228
|
-
<option name="api" value="34" />
|
|
229
|
-
<option name="brand" value="google" />
|
|
230
|
-
<option name="codename" value="shiba" />
|
|
231
|
-
<option name="id" value="shiba" />
|
|
232
|
-
<option name="manufacturer" value="Google" />
|
|
233
|
-
<option name="name" value="Pixel 8" />
|
|
234
|
-
<option name="screenDensity" value="420" />
|
|
235
|
-
<option name="screenX" value="1080" />
|
|
236
|
-
<option name="screenY" value="2400" />
|
|
237
|
-
</PersistentDeviceSelectionData>
|
|
238
|
-
<PersistentDeviceSelectionData>
|
|
239
|
-
<option name="api" value="33" />
|
|
240
|
-
<option name="brand" value="google" />
|
|
241
|
-
<option name="codename" value="tangorpro" />
|
|
242
|
-
<option name="id" value="tangorpro" />
|
|
243
|
-
<option name="manufacturer" value="Google" />
|
|
244
|
-
<option name="name" value="Pixel Tablet" />
|
|
245
|
-
<option name="screenDensity" value="320" />
|
|
246
|
-
<option name="screenX" value="1600" />
|
|
247
|
-
<option name="screenY" value="2560" />
|
|
248
|
-
</PersistentDeviceSelectionData>
|
|
249
|
-
<PersistentDeviceSelectionData>
|
|
250
|
-
<option name="api" value="29" />
|
|
251
|
-
<option name="brand" value="samsung" />
|
|
252
|
-
<option name="codename" value="x1q" />
|
|
253
|
-
<option name="id" value="x1q" />
|
|
254
|
-
<option name="manufacturer" value="Samsung" />
|
|
255
|
-
<option name="name" value="Galaxy S20" />
|
|
256
|
-
<option name="screenDensity" value="480" />
|
|
257
|
-
<option name="screenX" value="1440" />
|
|
258
|
-
<option name="screenY" value="3200" />
|
|
259
|
-
</PersistentDeviceSelectionData>
|
|
260
|
-
</list>
|
|
261
|
-
</option>
|
|
262
|
-
</component>
|
|
263
|
-
</project>
|
package/android/.idea/vcs.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="VcsDirectoryMappings">
|
|
4
|
-
<mapping directory="$USER_HOME$" vcs="Git" />
|
|
5
|
-
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
|
6
|
-
<mapping directory="$PROJECT_DIR$/src/main/java/com/mapsindoorsrn/core" vcs="Git" />
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/android/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Thu Feb 02 14:40:07 CET 2023
|
|
8
|
-
sdk.dir=/Users/timmikkelsen/Library/Android/sdk
|
|
@@ -1,14 +0,0 @@
|
|
|
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>
|