react-native-steerpath-smart-map 1.22.1 → 1.23.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/CHANGELOG.md +7 -0
- package/android/build.gradle +1 -1
- package/dist/SmartLocationManager.d.ts +9 -0
- package/dist/SmartLocationManager.js +21 -0
- package/dist/SmartLocationManager.web.d.ts +4 -0
- package/dist/SmartLocationManager.web.js +4 -0
- package/package.json +1 -1
- package/react-native-steerpath-smart-map.podspec +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,13 @@ This package is built on top of Steerpath's Smart SDK, and most of releases are
|
|
|
15
15
|
- [iOS](https://s3-eu-west-1.amazonaws.com/steerpath/ios/releases/smart-sdk-changelog/index.html)
|
|
16
16
|
- [Web](https://s3-eu-west-1.amazonaws.com/steerpath-web-sdk/documentation/smart/latest/index.html)
|
|
17
17
|
|
|
18
|
+
## [1.23.0] - 2023-05-25
|
|
19
|
+
|
|
20
|
+
- New icons!
|
|
21
|
+
- Bump Android Smart SDK to version android-smart-1.21.0
|
|
22
|
+
- Bump iOS Smart SDK to version 1.17.0
|
|
23
|
+
|
|
24
|
+
|
|
18
25
|
## [1.22.1] - 2023-05-09
|
|
19
26
|
|
|
20
27
|
- Bump iOS Smart SDK to version 1.16.6 to resolve crashes happening when cancelling user tasks
|
package/android/build.gradle
CHANGED
|
@@ -53,7 +53,7 @@ repositories {
|
|
|
53
53
|
|
|
54
54
|
dependencies {
|
|
55
55
|
implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
|
|
56
|
-
implementation "com.steerpath:smart:android-smart-1.
|
|
56
|
+
implementation "com.steerpath:smart:android-smart-1.21.0"
|
|
57
57
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
58
58
|
implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
|
|
59
59
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NativeModules, NativeEventEmitter } from "react-native";
|
|
2
|
+
var RNSmartLocationManager = NativeModules.RNSmartLocationManager;
|
|
3
|
+
var smartLocationManagerEmitter = new NativeEventEmitter(RNSmartLocationManager);
|
|
4
|
+
function createSmartLocationManager() {
|
|
5
|
+
var eventListenerRegistered = false;
|
|
6
|
+
return {
|
|
7
|
+
addLocationChangedListener: function (listener) {
|
|
8
|
+
if (!eventListenerRegistered) {
|
|
9
|
+
eventListenerRegistered = true;
|
|
10
|
+
smartLocationManagerEmitter.addListener('locationChanged', function (payload) {
|
|
11
|
+
listener(payload);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
removeLocationChangedListener: function () {
|
|
16
|
+
eventListenerRegistered = false;
|
|
17
|
+
smartLocationManagerEmitter.removeListener('locationChanged', function () { });
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export var SmartLocationManager = createSmartLocationManager();
|
package/package.json
CHANGED