capacitor
capacitor copied to clipboard
feat: Add --forwardPorts option to Capacitor CLI
Exposes the --forwardPorts
option from native-run to the Capacitor CLI. When an npx cap run android --forwardPorts 8000:8000
is run, the following happens.
- A Capacitor Sync
- Device Boot & Connection
-
adb reverse tcp:${port} tcp:${port}
- Install and run a debug APK
Opening as a Draft PR because
- changes may be needed in native-run to work properly
- maybe a
--live-reload
flag with the port in the config makes more sense?