@situm/cordova 3.5.7 → 3.5.8
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_UNRELEASED.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@situm/cordova",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.8",
|
|
4
4
|
"description": "Situm Wayfinding for Capacitor and Cordova. Integrate plug&play indoor navigation experience with floorplans, POIs, routes and turn-by-turn directions in no time. With the power of Situm.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": "https://github.com/situmtech/cordova",
|
package/plugin.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
id="@situm/cordova"
|
|
5
|
-
version="3.5.
|
|
5
|
+
version="3.5.8">
|
|
6
6
|
<name>Situm Cordova plugin Official</name>
|
|
7
7
|
<description>This is the stable branch.</description>
|
|
8
8
|
<license>MIT</license>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<config>
|
|
91
91
|
</config>
|
|
92
92
|
<pods use-frameworks="false">
|
|
93
|
-
<pod name="SitumSDK" spec="~> 3.
|
|
93
|
+
<pod name="SitumSDK" spec="~> 3.13.0"/>
|
|
94
94
|
</pods>
|
|
95
95
|
</podspec>
|
|
96
96
|
|
package/src/ios/Podfile
CHANGED
|
@@ -590,6 +590,33 @@ static NSString *DEFAULT_SITUM_LOG = @"SitumSDK >>: ";
|
|
|
590
590
|
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
+
- (void) updateNavigationState:(CDVInvokedUrlCommand *)command {
|
|
594
|
+
|
|
595
|
+
if (command.arguments.count > 0) {
|
|
596
|
+
NSDictionary *data = (NSDictionary*) [command.arguments objectAtIndex:0];
|
|
597
|
+
NSString *messageType = (NSString*)[data objectForKey:@"messageType"];
|
|
598
|
+
NSDictionary *payload = (NSDictionary*)[data objectForKey:@"payload"];
|
|
599
|
+
SITExternalNavigation *externalNavigation;
|
|
600
|
+
if ([messageType isEqual:@"NavigationStarted"]) {
|
|
601
|
+
externalNavigation = [[SITExternalNavigation alloc] initWithMessageType:kSITNavigationStarted
|
|
602
|
+
payload:payload];
|
|
603
|
+
} else if ([messageType isEqual:@"NavigationUpdated"]) {
|
|
604
|
+
externalNavigation = [[SITExternalNavigation alloc] initWithMessageType:kSITNavigationUpdated
|
|
605
|
+
payload:payload];
|
|
606
|
+
} else if ([messageType isEqual:@"DestinationReached"]) {
|
|
607
|
+
externalNavigation = [[SITExternalNavigation alloc] initWithMessageType:kSITDestinationReached
|
|
608
|
+
payload:payload];
|
|
609
|
+
} else if ([messageType isEqual:@"OutsideRoute"]) {
|
|
610
|
+
externalNavigation = [[SITExternalNavigation alloc] initWithMessageType:kSITOutsideRoute
|
|
611
|
+
payload:payload];
|
|
612
|
+
} else if ([messageType isEqual:@"NavigationCancelled"]) {
|
|
613
|
+
externalNavigation = [[SITExternalNavigation alloc] initWithMessageType:kSITNavigationCancelled
|
|
614
|
+
payload:payload];
|
|
615
|
+
}
|
|
616
|
+
[[SITNavigationManager sharedManager] updateNavigationState:externalNavigation];
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
593
620
|
- (void) removeNavigationUpdates:(CDVInvokedUrlCommand *)command {
|
|
594
621
|
[[SITNavigationManager sharedManager] removeUpdates];
|
|
595
622
|
}
|
|
@@ -405,9 +405,6 @@ class MapViewControllerImpl {
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
_sendNavigationConfig(navigationType) {
|
|
408
|
-
if (window.cordova.platformId !== 'android') {
|
|
409
|
-
return;
|
|
410
|
-
}
|
|
411
408
|
this._sendMessageToViewer('app.set_config_item', [{key:'internal.navigationLibrary',value:navigationType}]);
|
|
412
409
|
}
|
|
413
410
|
|