Skip to content

Commit

Permalink
Merge branch 'multi-forward-port'
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-scarsella committed Jan 23, 2025
2 parents 91703dc + c839635 commit 26e336b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/android/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function runAndroid(
const nativeRunArgs = ['android', '--app', apkPath, '--target', target.id];

if (selectedPorts) {
nativeRunArgs.push('--forward', `${selectedPorts}`);
selectedPorts.forEach((selectedPort) => nativeRunArgs.push('--forward', `${selectedPort}`));
}

debug('Invoking native-run with args: %O', nativeRunArgs);
Expand Down
2 changes: 1 addition & 1 deletion cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export function runProgram(config: Config): void {
.addOption(new Option('--json').hideHelp())
.option('--target <id>', 'use a specific target')
.option('--no-sync', `do not run ${c.input('sync')}`)
.option('--forwardPorts <port:port>', 'Automatically run "adb reverse" for better live-reloading support')
.option('--forwardPorts <port:port...>', 'Automatically run "adb reverse" for better live-reloading support')
.option('-l, --live-reload', 'Enable Live Reload')
.option('--host <host>', 'Host used for live reload')
.option('--port <port>', 'Port used for live reload')
Expand Down
2 changes: 1 addition & 1 deletion cli/src/tasks/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface RunCommandOptions {
json?: boolean;
target?: string;
sync?: boolean;
forwardPorts?: string;
forwardPorts?: string[];
liveReload?: boolean;
host?: string;
port?: string;
Expand Down

0 comments on commit 26e336b

Please sign in to comment.