Skip to content

Commit e93b947

Browse files
committed
Add missing compiled js files from #383.
1 parent 4b0628e commit e93b947

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/emulator-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function launchEmulator(apiLevel, target, arch, profile, cores, ramSize, heapSiz
7272
}
7373
// start emulator
7474
console.log('Starting emulator.');
75-
yield exec.exec(`sh -c \\"${process.env.ANDROID_HOME}/emulator/emulator -avd "${avdName}" ${emulatorOptions} &"`, [], {
75+
yield exec.exec(`sh -c \\"${process.env.ANDROID_HOME}/emulator/emulator -port ${port} -avd "${avdName}" ${emulatorOptions} &"`, [], {
7676
listeners: {
7777
stderr: (data) => {
7878
if (data.toString().includes('invalid command-line parameter')) {

lib/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const channel_id_mapper_1 = require("./channel-id-mapper");
4242
const fs_1 = require("fs");
4343
function run() {
4444
return __awaiter(this, void 0, void 0, function* () {
45+
let port = input_validator_1.MIN_PORT;
4546
try {
4647
console.log(`::group::Configure emulator`);
4748
let linuxSupportKVM = false;
@@ -103,7 +104,7 @@ function run() {
103104
const emulatorBootTimeout = parseInt(core.getInput('emulator-boot-timeout'), 10);
104105
console.log(`Emulator boot timeout: ${emulatorBootTimeout}`);
105106
// Emulator port to use
106-
const port = parseInt(core.getInput('emulator-port'), 10);
107+
port = parseInt(core.getInput('emulator-port'), 10);
107108
(0, input_validator_1.checkPort)(port);
108109
console.log(`emulator port: ${port}`);
109110
// emulator options
@@ -220,7 +221,7 @@ function run() {
220221
}
221222
catch (error) {
222223
// kill the emulator so the action can exit
223-
yield (0, emulator_manager_1.killEmulator)(input_validator_1.MIN_PORT);
224+
yield (0, emulator_manager_1.killEmulator)(port);
224225
core.setFailed(error instanceof Error ? error.message : error);
225226
}
226227
});

0 commit comments

Comments
 (0)