Skip to content

Commit 5a218d3

Browse files
committed
remove logging from xcrun shim
1 parent 4f0e2b9 commit 5a218d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/vscode-extension/shims/maestro/xcrun

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ done
1414

1515
# If the subcommand is 'simctl', inject --set $__RADON_CUSTOM_DEVICE_SET after 'simctl'
1616
if [[ "$1" == "simctl" ]]; then
17-
echo "[xcrun-shim] $(date +%s) - simctl called with args: ${@:2}" >>"$HOME/maestro-shim.log"
1817
# When launching the app, we may need to pass the metro port as well
1918
if [[ $2 == "launch" && "$*" == *"$__RADON_APP_ID"* ]]; then
2019
exec "$REAL_XCRUN" "$1" --set "$__RADON_CUSTOM_DEVICE_SET" "${@:2}" $__RADON_LAUNCH_ARGS

packages/vscode-extension/src/devices/AndroidDevice.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,9 @@ export abstract class AndroidDevice extends DeviceBase implements Disposable {
192192
]);
193193
}
194194

195-
public async forwardDevicePort(port: number) {
196-
await exec(ADB_PATH, ["-s", this.serial, "reverse", `tcp:${port}`, `tcp:${port}`]);
195+
public async forwardDevicePort(hostPort: number, devicePort?: number) {
196+
devicePort ??= hostPort;
197+
await exec(ADB_PATH, ["-s", this.serial, "reverse", `tcp:${devicePort}`, `tcp:${hostPort}`]);
197198
}
198199

199200
public setUpKeyboard() {

0 commit comments

Comments
 (0)