@glympse-inc/com.glympse.enroute 2.109.298 → 2.109.299

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glympse-inc/com.glympse.enroute",
3
- "version": "2.109.298",
3
+ "version": "2.109.299",
4
4
  "description": "Glympse En Route Cordova Plugin",
5
5
  "cordova": {
6
6
  "id": "com.glympse.enroute",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" id="com.glympse.enroute" version="2.109.298">
2
+ <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" id="com.glympse.enroute" version="2.109.299">
3
3
 
4
4
  <name>Glympse En Route</name>
5
5
 
@@ -232,7 +232,7 @@
232
232
  <source url="https://github.com/CocoaPods/Specs.git"/>
233
233
  </config>
234
234
  <pods use-frameworks="true">
235
- <pod name="EnRouteApi" spec="~> 2.109.298"/>
235
+ <pod name="EnRouteApi" spec="~> 2.109.299"/>
236
236
  </pods>
237
237
  </podspec>
238
238
  <!-- RELEASE END -->
@@ -1209,6 +1209,7 @@ public class EnRoutePlugin extends CordovaPlugin implements GListener
1209
1209
 
1210
1210
  long sessionId = args.optLong(0, -1);
1211
1211
  long taskId = args.optLong(1, -1);
1212
+ String statusCode = args.optString(2, "");
1212
1213
  GSession session = sessionManager.findSessionById(sessionId);
1213
1214
  if ( null == session )
1214
1215
  {
@@ -1221,7 +1222,7 @@ public class EnRoutePlugin extends CordovaPlugin implements GListener
1221
1222
  return;
1222
1223
  }
1223
1224
 
1224
- sessionManager.departTaskForSession(session, task);
1225
+ sessionManager.departTaskForSession(session, task, statusCode);
1225
1226
  }
1226
1227
 
1227
1228
  private synchronized void completeSession(final JSONArray args, final CallbackContext callbackContext)
@@ -17,7 +17,7 @@ android {
17
17
  }
18
18
 
19
19
  dependencies {
20
- def GLYMPSE_VERSION = '2.109.298'
20
+ def GLYMPSE_VERSION = '2.109.299'
21
21
  implementation "com.glympse:enrouteapi:$GLYMPSE_VERSION"
22
22
  implementation "com.glympse:glympseapi:$GLYMPSE_VERSION"
23
23
  implementation "com.glympse:glympseapi-push:$GLYMPSE_VERSION"
@@ -688,6 +688,8 @@
688
688
  {
689
689
  Glympse::int64 sessionId = [[command argumentAtIndex:0] longLongValue];
690
690
  Glympse::int64 taskId = [[command argumentAtIndex:1] longLongValue];
691
+ NSString *statusCode = (NSString *)[command argumentAtIndex:2];
692
+
691
693
  Glympse::EnRoute::GSession session = [EnRouteWrapper instance].manager->getSessionManager()->findSessionById(sessionId);
692
694
  if ( NULL == session )
693
695
  {
@@ -700,7 +702,7 @@
700
702
  return;
701
703
  }
702
704
 
703
- [EnRouteWrapper instance].manager->getSessionManager()->departTaskForSession(session, task);
705
+ [EnRouteWrapper instance].manager->getSessionManager()->departTaskForSession(session, task, [GETHelpers toGString:statusCode]);
704
706
  }
705
707
 
706
708
  - (void) completeSession:(CDVInvokedUrlCommand *)command
package/www/Native.js CHANGED
@@ -136,8 +136,8 @@ module.exports = {
136
136
  cordova.exec(successCallback, errorCallback, "EnRoutePlugin", "arriveTaskForSession", [sessionId, taskId]);
137
137
  },
138
138
 
139
- departTaskForSession: function(sessionId, taskId, successCallback, errorCallback) {
140
- cordova.exec(successCallback, errorCallback, "EnRoutePlugin", "departTaskForSession", [sessionId, taskId]);
139
+ departTaskForSession: function(sessionId, taskId, statusCode, successCallback, errorCallback) {
140
+ cordova.exec(successCallback, errorCallback, "EnRoutePlugin", "departTaskForSession", [sessionId, taskId, statusCode]);
141
141
  },
142
142
 
143
143
  completeSession: function(sessionId, successCallback, errorCallback) {
@@ -444,8 +444,8 @@
444
444
  Native.arriveTaskForSession(session.getId(), task.getId(), _noop, _noop);
445
445
  },
446
446
 
447
- departTaskForSession: function(session, task) {
448
- Native.departTaskForSession(session.getId(), task.getId(), _noop, _noop);
447
+ departTaskForSession: function(session, task, statusCode) {
448
+ Native.departTaskForSession(session.getId(), task.getId(), statusCode, _noop, _noop);
449
449
  },
450
450
 
451
451
  completeSession: function(session) {