react-native-steerpath-smart-map 1.13.0 → 1.14.2
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 +24 -0
- package/android/bin/src/main/java/com/steerpath/rnsmartmap/RNSmartMapManager.class +0 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/steerpath/rnsmartmap/RNSmartMapManager.java +5 -0
- package/dist/SmartMapManager.d.ts +1 -0
- package/dist/SmartMapManager.js +3 -0
- package/dist/SmartMapManager.web.d.ts +1 -0
- package/dist/SmartMapManager.web.js +7 -0
- package/ios/RNSmartMapManager.m +5 -0
- package/ios/RNSmartMapViewManager.m +1 -1
- package/package.json +1 -1
- package/react-native-steerpath-smart-map.podspec +1 -1
- package/src/SmartMapManager.ts +3 -0
- package/src/SmartMapManager.web.ts +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,30 @@ 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.14.2] - 2022-02-16
|
|
19
|
+
|
|
20
|
+
- Bump iOS Smart SDK version to 1.15.11
|
|
21
|
+
|
|
22
|
+
## [1.14.1] - 2022-02-01
|
|
23
|
+
|
|
24
|
+
- Bump iOS Smart SDK to 1.15.10 (fixes an issue where search bottom sheet was cut off from the bottom)
|
|
25
|
+
|
|
26
|
+
## [1.14.0] - 2022-01-28
|
|
27
|
+
- Added ```setLanguage()``` API which sets the language that the SDK will use in search. The method setLanguage() takes one parameter ```languageCode``` which is one of the language codes listed in the config file's ```supportedLanguages```-array.
|
|
28
|
+
```
|
|
29
|
+
"defaultLanguage": "fi-FI",
|
|
30
|
+
"supportedLanguages": [
|
|
31
|
+
"en-GB",
|
|
32
|
+
"fi-FI",
|
|
33
|
+
"sv-SE",
|
|
34
|
+
"nb-NO"
|
|
35
|
+
],
|
|
36
|
+
```
|
|
37
|
+
Example: ``` SmartMapManager.setLanguage('en-GB')```
|
|
38
|
+
## [1.13.1] - 2022-01-25
|
|
39
|
+
|
|
40
|
+
- Bump Android Smart SDK to android-smart-1.14.1
|
|
41
|
+
|
|
18
42
|
## [1.13.0] - 2022-01-24
|
|
19
43
|
|
|
20
44
|
- Bump Web Smart SDK to 2.0.2
|
|
Binary file
|
package/android/build.gradle
CHANGED
|
@@ -59,7 +59,7 @@ repositories {
|
|
|
59
59
|
|
|
60
60
|
dependencies {
|
|
61
61
|
implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
|
|
62
|
-
implementation "com.steerpath:smart:android-smart-1.14.
|
|
62
|
+
implementation "com.steerpath:smart:android-smart-1.14.2"
|
|
63
63
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
64
64
|
implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
|
|
65
65
|
}
|
|
@@ -86,4 +86,9 @@ public class RNSmartMapManager extends ReactContextBaseJavaModule {
|
|
|
86
86
|
}
|
|
87
87
|
callback.invoke(map);
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
@ReactMethod
|
|
91
|
+
public void setLanguage(String languageCode) {
|
|
92
|
+
appContext.runOnUiQueueThread(() -> SmartSDK.getInstance().setLanguage(languageCode));
|
|
93
|
+
}
|
|
89
94
|
}
|
|
@@ -29,5 +29,6 @@ export declare const SmartMapManager: {
|
|
|
29
29
|
startWithConfig(config: ConfigSDK): void;
|
|
30
30
|
setLiveConfig(config: LiveConfig | null): void;
|
|
31
31
|
fetchVersions(callback: (versions: FetchVersionResponse) => void): void;
|
|
32
|
+
setLanguage(languageCode: String): void;
|
|
32
33
|
};
|
|
33
34
|
export {};
|
package/dist/SmartMapManager.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
/* eslint-disable prefer-destructuring */
|
|
2
2
|
import { steerpath } from "steerpath-smart-sdk";
|
|
3
|
+
var smartSDKInstance = {
|
|
4
|
+
setLanguage: function () { }
|
|
5
|
+
};
|
|
3
6
|
export var SmartMapManager = {
|
|
4
7
|
start: function (apiKey, config) {
|
|
5
8
|
var smartSDK = new steerpath.SmartSDK();
|
|
9
|
+
smartSDKInstance = smartSDK;
|
|
6
10
|
smartSDK.start(apiKey, config);
|
|
7
11
|
},
|
|
12
|
+
setLanguage: function (languageCode) {
|
|
13
|
+
smartSDKInstance.setLanguage(languageCode);
|
|
14
|
+
}
|
|
8
15
|
};
|
package/ios/RNSmartMapManager.m
CHANGED
package/package.json
CHANGED
package/src/SmartMapManager.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
/* eslint-disable prefer-destructuring */
|
|
2
2
|
import { steerpath } from "steerpath-smart-sdk";
|
|
3
3
|
|
|
4
|
+
type SmartSDK = {
|
|
5
|
+
setLanguage(languageCode: String): void;
|
|
6
|
+
}
|
|
7
|
+
let smartSDKInstance: SmartSDK = {
|
|
8
|
+
setLanguage: () => {}
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
export const SmartMapManager = {
|
|
5
12
|
start(apiKey: string, config?: Record<string, unknown> | string): void {
|
|
6
13
|
const smartSDK = new steerpath.SmartSDK();
|
|
14
|
+
smartSDKInstance = smartSDK;
|
|
7
15
|
smartSDK.start(apiKey, config);
|
|
8
16
|
},
|
|
17
|
+
setLanguage(languageCode: String): void {
|
|
18
|
+
smartSDKInstance.setLanguage(languageCode);
|
|
19
|
+
}
|
|
9
20
|
};
|