Files
archived-tauri/.changes/enhance-android-port-forwarding.md
Lucas Fernandes Nogueira a08e6ffa6f feat(cli): enhance Android dev port forwarding, use host IP for android devices, closes #11137 (#11185)
* feat(cli): enhance Android dev port forwarding, closes #11137

this changes the `android dev` port forwarding (that is actually handled by the `android-studio-script` command - triggered by our Gradle plugin) with some enhancements:

- make the whole process more resilient by checking if the port was actually forwarded and rerunning the `adb reverse` command until it tells us the forward is ready
- if the `adb devices` list is empty, retry a few times (waiting a few seconds) to tolerate devices being booted - slows down "raw builds" (Build Project Android Studio menu for instance) that shouldn't happen often anyway - if you're running `android dev` you're usually running the app on a device instead of simply testing builds

* use host IP to run on android physical device
2024-10-02 07:01:29 -03:00

180 B

tauri-cli, @tauri-apps/cli
tauri-cli @tauri-apps/cli
patch:enhance patch:enhance

Enhance port forwarding on android dev to be more resilient and tolerate delays when booting up devices.