node-simctl
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -164,7 +164,21 @@ 'use strict'; | ||
return _regeneratorRuntime.async(function launch$(context$1$0) { | ||
var _this3 = this; | ||
while (1) switch (context$1$0.prev = context$1$0.next) { | ||
case 0: | ||
context$1$0.next = 2; | ||
return _regeneratorRuntime.awrap(simExec('launch', 0, [udid, bundleId])); | ||
return _regeneratorRuntime.awrap((0, _asyncbox.retryInterval)(5, 1000, function callee$1$0() { | ||
return _regeneratorRuntime.async(function callee$1$0$(context$2$0) { | ||
while (1) switch (context$2$0.prev = context$2$0.next) { | ||
case 0: | ||
context$2$0.next = 2; | ||
return _regeneratorRuntime.awrap(simExec('launch', 0, [udid, bundleId])); | ||
case 2: | ||
case 'end': | ||
return context$2$0.stop(); | ||
} | ||
}, null, _this3); | ||
})); | ||
case 2: | ||
@@ -248,3 +262,3 @@ case 'end': | ||
return _regeneratorRuntime.async(function createDevice$(context$1$0) { | ||
var _this3 = this; | ||
var _this4 = this; | ||
@@ -413,3 +427,3 @@ while (1) switch (context$1$0.prev = context$1$0.next) { | ||
} | ||
}, null, _this3, [[6, 45, 49, 57], [13, 28, 32, 40], [33,, 35, 39], [50,, 52, 56]]); | ||
}, null, _this4, [[6, 45, 49, 57], [13, 28, 32, 40], [33,, 35, 39], [50,, 52, 56]]); | ||
})); | ||
@@ -445,3 +459,3 @@ | ||
return _regeneratorRuntime.async(function eraseDevice$(context$1$0) { | ||
var _this4 = this; | ||
var _this5 = this; | ||
@@ -455,3 +469,3 @@ while (1) switch (context$1$0.prev = context$1$0.next) { | ||
context$2$0.next = 2; | ||
return _regeneratorRuntime.awrap(simExec('erase', 4000, [udid])); | ||
return _regeneratorRuntime.awrap(simExec('erase', 10000, [udid])); | ||
@@ -462,3 +476,3 @@ case 2: | ||
} | ||
}, null, _this4); | ||
}, null, _this5); | ||
}; | ||
@@ -700,2 +714,2 @@ | ||
// otherwise return all the sdk -> device mappings. | ||
//# sourceMappingURL=data:application/json;base64,eyJ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ucHVzaCh7XG4gICAgICAgIG5hbWU6IGxpbmVNYXRjaFsxXSxcbiAgICAgICAgdWRpZDogbGluZU1hdGNoWzJdLFxuICAgICAgICBzdGF0ZTogbGluZU1hdGNoWzNdLFxuICAgICAgfSk7XG4gICAgfVxuICB9XG5cbiAgLy8gaWYgYSBgZm9yU2RrYCB3YXMgcGFzc2VkIGluLCByZXR1cm4gb25seSB0aGUgY29ycmVzcG9uZGluZyBsaXN0XG4gIGlmIChmb3JTZGspIHtcbiAgICBpZiAoIWRldmljZXNbZm9yU2RrXSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBTZGsgJyR7Zm9yU2RrfScgd2FzIG5vdCBpbiBsaXN0IG9mIHNpbWN0bCBzZGtzYCk7XG4gICAgfVxuICAgIHJldHVybiBkZXZpY2VzW2ZvclNka107XG4gIH1cblxuICAvLyBvdGhlcndpc2UgcmV0dXJuIGFsbCB0aGUgc2RrIC0+IGRldmljZSBtYXBwaW5ncy5cbiAgcmV0dXJuIGRldmljZXM7XG59XG5cbmV4cG9ydCB7IGluc3RhbGxBcHAsIHJlbW92ZUFwcCwgbGF1bmNoLCBzcGF3biwgc3Bhd25TdWJQcm9jZXNzLCBvcGVuVXJsLCBzaHV0ZG93biwgY3JlYXRlRGV2aWNlLFxuICAgICAgICAgZGVsZXRlRGV2aWNlLCBlcmFzZURldmljZSwgZ2V0RGV2aWNlcyB9O1xuIl19 |
@@ -50,3 +50,5 @@ import { exec, SubProcess } from 'teen_process'; | ||
async function launch (udid:string, bundleId:string):void { | ||
await simExec('launch', 0, [udid, bundleId]); | ||
await retryInterval(5, 1000, async () => { | ||
await simExec('launch', 0, [udid, bundleId]); | ||
}); | ||
} | ||
@@ -113,3 +115,3 @@ | ||
let loopFn:Function = async () => { | ||
await simExec('erase', 4000, [udid]); | ||
await simExec('erase', 10000, [udid]); | ||
}; | ||
@@ -116,0 +118,0 @@ // retry erase with a sleep in between because it's flakey |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"author": "https://github.com/appium", | ||
@@ -12,0 +12,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67708
1028