Add route to get current package
MODIFY
lib/mjsonwp/routes.js
lib/mjsonwp/routes.js
@@ -345,6 +345,9 @@ const METHOD_MAP = {
'/wd/hub/session/:sessionId/appium/device/current_activity': {
GET: {command: 'getCurrentActivity'}
},
+ '/wd/hub/session/:sessionId/appium/device/current_package': {
+ GET: {command: 'getCurrentPackage'}
+ },
'/wd/hub/session/:sessionId/appium/device/install_app': {
POST: {command: 'installApp', payloadParams: {required: ['appPath']}}
},

MODIFY
test/mjsonwp/routes-specs.js
test/mjsonwp/routes-specs.js
@@ -38,7 +38,7 @@ describe('MJSONWP', () => {
}
var hash = shasum.digest('hex').substring(0, 8);
// Modify the hash whenever the protocol has intentionally been modified.
- hash.should.equal('5165c012');
+ hash.should.equal('354f9c79');
});
});

Add route to get current package (#123)