mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
Update the README and fix some typos (#199)
* Updated the readme with the additional targets and fixed some typos * fix spacing with macos-11 * fix more typos
This commit is contained in:
committed by
GitHub
parent
cc46524d3f
commit
d15e7110de
@@ -89,7 +89,7 @@ function launchEmulator(apiLevel, target, arch, profile, cores, ramSize, sdcardP
|
||||
}
|
||||
exports.launchEmulator = launchEmulator;
|
||||
/**
|
||||
* Kills the running emulator on the defaut port.
|
||||
* Kills the running emulator on the default port.
|
||||
*/
|
||||
function killEmulator() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
@@ -110,7 +110,7 @@ function waitForDevice() {
|
||||
let booted = false;
|
||||
let attempts = 0;
|
||||
const retryInterval = 2; // retry every 2 seconds
|
||||
const maxAttemps = EMULATOR_BOOT_TIMEOUT_SECONDS / 2;
|
||||
const maxAttempts = EMULATOR_BOOT_TIMEOUT_SECONDS / 2;
|
||||
while (!booted) {
|
||||
try {
|
||||
let result = '';
|
||||
@@ -130,7 +130,7 @@ function waitForDevice() {
|
||||
catch (error) {
|
||||
console.warn(error.message);
|
||||
}
|
||||
if (attempts < maxAttemps) {
|
||||
if (attempts < maxAttempts) {
|
||||
yield delay(retryInterval * 1000);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user