@situm/react-native 3.18.24 → 3.18.25

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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Situm Technologies
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,144 @@
1
+ <p align="center"> <img width="233" src="https://situm.com/wp-content/themes/situm/img/logo-situm.svg" style="margin-bottom:1rem" /> <h1 align="center">Situm React Native SDK sample app</h1> </p>
2
+
3
+ <div align="center" style="text-align:center">
4
+
5
+ A sample React-Native application to start learning the power of [Situm's React Native SDK Plugin](../README.md).
6
+
7
+ </div>
8
+
9
+ <div align="center" style="text-align:center">
10
+
11
+ [![npm](https://img.shields.io/npm/dm/react-native-situm-plugin.svg)](https://www.npmjs.com/package/react-native-situm-plugin) [![npm](https://img.shields.io/npm/v/react-native-situm-plugin.svg)](https://www.npmjs.com/package/react-native-situm-plugin) [![TypeScript](https://badges.frapsoft.com/typescript/code/typescript.svg?v=101)](https://github.com/ellerbrock/typescript-badges/)
12
+
13
+ </div>
14
+
15
+ ## Getting Started
16
+
17
+ <div align="center" style="display: flex; gap: 1rem;">
18
+ <img src="./docs/assets/home_preview.jpg" width="33%" alt="home_preview">
19
+ <img src="./docs/assets/map_preview.jpg" width="33%" alt="map_preview">
20
+ <img src="./docs/assets/navigation_preview.jpg" width="33%" alt="navigation_preview">
21
+ </div>
22
+
23
+ ## What's in here <a name="whatsinhere"/>
24
+
25
+ Situm SDK is a set of utilities that allow any developer to build location based apps using Situm's indoor positioning system.
26
+ Among many other capabilities, apps developed with Situm SDK will be able to:
27
+
28
+ 1. Obtain information related to buildings where Situm's positioning system is already configured:
29
+ floor plans, points of interest, geotriggered events, etc.
30
+ 2. Retrieve the location of the smartphone inside these buildings (position, orientation, and floor
31
+ where the smartphone is).
32
+ 3. Compute a route from a point A (e.g. where the smartphone is) to a point B (e.g. any point of
33
+ interest within the building).
34
+
35
+ ## How to run the app <a name="howtorun"/>
36
+
37
+ ### Step 1: Install the dependencies <a name="dependencies"/>
38
+
39
+ The first step is to download this repo:
40
+
41
+ ```bash
42
+ git clone https://github.com/situmtech/react-native.git
43
+ ```
44
+
45
+ This repository uses [yarn workspaces](https://yarnpkg.com/features/workspaces) and [yarn 4](https://yarnpkg.com/blog/release/4.0), so you will need to install [Corepack](https://github.com/nodejs/corepack#readme) and prepare yarn:
46
+
47
+ ```bash
48
+ cd react-native/
49
+ npm install -g corepack
50
+ corepack enable
51
+ corepack prepare yarn@4.0.1 --activate
52
+ ```
53
+
54
+ Then install the plugin dependencies alongside the example/ app dependecies as follows:
55
+
56
+ ```bash
57
+ yarn install && yarn workspace example install
58
+ ```
59
+
60
+ - **iOS**
61
+ In case you are using iOS, the last step is to install de dependencies specified in [`example/ios/Podfile`](./ios/Podfile) with:
62
+
63
+ ```bash
64
+ cd ios/
65
+ pod install
66
+ ```
67
+
68
+ ### Step 2: Set your credentials <a name="config"/>
69
+
70
+ For this step you must create a situm account, so [setup your account](../README.md#setup-your-account) before continuing.
71
+ After creating your situm account, you must set your credentials on the properties of `src/situm.tsx`, like so:
72
+
73
+ ```js
74
+ export const SITUM_EMAIL = "";
75
+ export const SITUM_API_KEY = "";
76
+ export const SITUM_BUILDING_ID = ""; // Identifier of the building to be loaded using MapView.
77
+ export const SITUM_API_DOMAIN = "https://api.situm.com";
78
+ ```
79
+
80
+ You can use the contents of [`src/situm.tsx.example`](./src/situm.tsx.example) as example.
81
+ For security reasons, the file `situm.tsx` is ignored in this repository.
82
+
83
+ **NOTE**: You should also fill the [SITUM_BUILDING_ID](https://situm.com/docs/sdk-cartography/#building-identifier) variable so the MapView is able to work as expected. In case you haven't created POIs or paths yet, learn [how to create these cartography elements](https://situm.com/docs/sdk-cartography/#sdk-a-basic-complete-cartography-example).
84
+
85
+ ### Step 3: Run the app <a name="runapplication"></a>
86
+
87
+ #### Android
88
+
89
+ - **Run from command line:**
90
+
91
+ 1. Initialize the metro terminal with `$ yarn workspace example start`.
92
+ 2. Then (in another terminal) compile and run this app in your device with `$ yarn example android`.
93
+
94
+ - **Run from Android Studio:** Open `example/android` folder in Android Studio and run project.
95
+
96
+ #### iOS
97
+
98
+ - **Run from command line:**
99
+
100
+ 1. Initialize the metro terminal with `$ yarn workspace example start`
101
+ 2. Then (in another terminal) compile and run this app in your device with `$ yarn example ios`.
102
+
103
+ - **Run from XCode:** Go to `example/ios` folder and open `SitumReactNativeExample.xcworkspace`.
104
+
105
+ ## Documentation <a name="documentation"/>
106
+
107
+ More information on how to use the official React Native plugin and the set of APIs, the functions, parameters and results each function accepts and provides can be found in our [Cordova JSDoc](https://developers.situm.com/sdk_documentation/cordova/jsdoc/latest/situm) which shares interfaces.
108
+
109
+ ### Examples
110
+
111
+ In case you want to learn how to use our plugin, you may want to take a look at our code samples of the basics functionalities:
112
+
113
+ - **Showcasing our SDK**
114
+ - [**HomeScreen**](./src/screens/HomeScreen.tsx)
115
+ - **Positioning**: Learn how to start positioning and get the user location by using our listener.
116
+ - **Map Interaction**: Learn how to interact with `MapView` from a different screen.
117
+ - **Fetch Resources**: Learn how to fetch information about Situm cartography elements, such as buildings, POIs, and geofences.
118
+ - [**WayfindingScreen**](./src/screens/WayfindingScreen.tsx)
119
+ - **MapView**: Learn how to integrate `MapView` for a complete wayfinding experience.
120
+ - Learn how to interact with the map, such as selecting a POI or starting navigation.
121
+
122
+ ## Versioning
123
+
124
+ We use [SemVer](http://semver.org/) for versioning.
125
+
126
+ Please refer to [CHANGELOG.md](../CHANGELOG.md) for a list of notables changes for each version of the library.
127
+
128
+ You can also see the [tags on this repository](https://github.com/situmtech/situm-react-native-plugin/tags).
129
+
130
+ ## Submitting Contributions <a name="contributions"/>
131
+
132
+ You will need to sign a Contributor License Agreement (CLA) before making a submission. [Learn more here.](https://situm.com/contributions/)
133
+
134
+ ## License
135
+
136
+ This project is licensed under the MIT - see the [LICENSE](../LICENSE) file for details.
137
+
138
+ ## More information <a name="more-info"/>
139
+
140
+ More info is available at our [Developers Page](https://situm.com/docs/01-introduction/).
141
+
142
+ ## Support information <a name="support"/>
143
+
144
+ For any question or bug report, please send an email to [support@situm.es](mailto:support@situm.es)
package/ios/SitumPlugin.m CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@situm/react-native",
3
- "version": "3.18.24",
3
+ "version": "3.18.25",
4
4
  "description": "Situm Wayfinding for React Native. Integrate plug&play navigation experience with indoor maps, routes and turn-by-turn directions in no time. With the power of Situm.",
5
5
  "repository": "https://github.com/situmtech/react-native",
6
6
  "author": "Situm Technologies <mobile@situm.com>",
@@ -103,7 +103,7 @@
103
103
  "engines": {
104
104
  "node": ">= 16.0.0"
105
105
  },
106
- "packageManager": "yarn@1.22.15",
106
+ "packageManager": "yarn@4.15.0",
107
107
  "jest": {
108
108
  "preset": "react-native",
109
109
  "setupFilesAfterEnv": [
@@ -156,7 +156,7 @@
156
156
  "lib/"
157
157
  ],
158
158
  "sdkVersions": {
159
- "android": "3.36.7@aar",
159
+ "android": "3.37.0@aar",
160
160
  "ios": "3.39.4"
161
161
  }
162
- }
162
+ }