@mapsindoors/react-native-maps-indoors-mapbox 2.0.7 → 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 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.7/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/2.1.0/index.html) to get an overview of what the MapsIndoors SDK offers.
6
6
 
7
7
  ## Getting started
8
8
 
@@ -92,7 +92,7 @@ dependencies {
92
92
  }
93
93
  }
94
94
 
95
- implementation 'com.mapbox.maps:android:11.4.0'
95
+ implementation 'com.mapbox.maps:android:11.7.0'
96
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'
@@ -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
- let mapView = MapView(frame: CGRect(x: 0, y: 0, width: 64, height: 64), mapInitOptions: options)
25
+ mapView = MapView(frame: CGRect(x: 0, y: 0, width: 64, height: 64), mapInitOptions: options)
23
26
 
24
27
 
25
28
  MapsIndoorsData.reset()
26
- MapsIndoorsData.sharedInstance.mapView = MapBoxView(mapboxView: mapView)
27
- return mapView
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
  }
@@ -5,5 +5,7 @@
5
5
  RCT_EXTERN_METHOD(requiresMainQueueSetup)
6
6
 
7
7
  RCT_EXTERN_METHOD(create:(nonnull NSNumber) node
8
- nodeAgain:(nonnull NSNumber) nodeAgain)
8
+ nodeAgain:(nonnull NSNumber) nodeAgain
9
+ camera: (NSString*) camera
10
+ showCompass: (BOOL) showCompass)
9
11
  @end
@@ -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:(NSUInteger) 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: UInt, resolver resolve: RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock) {
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)
@@ -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
@@ -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.0.7",
4
+ "version": "2.1.0",
5
5
  "description": "React Native MapsIndoors component with mapbox",
6
6
  "react-native": "index.ts",
7
7
  "files": [
@@ -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');
@@ -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