Skip to content

Commit d9be952

Browse files
committed
fix: Android emulators not booting when platform is set to 'both' (#1457)
1 parent e2b2b5a commit d9be952

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugin.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ class DevicePlugin extends BasePlugin {
205205
registerProxyMiddlware(expressApp, cliArgs, externalModule.getMiddleWares());
206206

207207
externalModule.updateServer(expressApp, httpServer);
208-
if (hasEmulators && pluginArgs.platform.toLowerCase() === 'android') {
208+
if (
209+
hasEmulators &&
210+
(pluginArgs.platform.toLowerCase() === 'android' ||
211+
pluginArgs.platform.toLowerCase() === 'both')
212+
) {
209213
log.info('Emulators will be booted!!');
210214
const adb = await enhancedADBManager.getLocalADB();
211215
const array = pluginArgs.emulators || [];

0 commit comments

Comments
 (0)