Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): builtin dev server should also be forwarded for Android #10600

Merged
merged 5 commits into from
Aug 14, 2024

Conversation

lucasfernog
Copy link
Member

This changes the CLI to persist the "merge config" across mobile command usage (required to pull this config on the xcode and android studio build scripts). This is required because the builtin dev server makes modifications to the Tauri config (devUrl rewrite) and we need to detect that to forward the dev URL port to Android using ADB.

Also adds a warning on iOS when using dev --open: you need the --host option to run on physical devices.

This changes the CLI to persist the "merge config" across mobile command usage (required to pull this config on the xcode and android studio build scripts).
This is required because the builtin dev server makes modifications to the Tauri config (devUrl rewrite) and we need to detect that to forward the dev URL port to Android using ADB.

Also adds a warning on iOS when using `dev --open`: you need the `--host` option to run on physical devices.
@lucasfernog lucasfernog requested a review from a team as a code owner August 13, 2024 19:15
Copy link
Contributor

github-actions bot commented Aug 13, 2024

Package Changes Through 6f050b4

There are 7 changes which include tauri-build with prepatch, tauri-codegen with prerelease, tauri-utils with prerelease, tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri-bundler with prerelease, tauri with prerelease

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.0.0-rc.2 2.0.0-rc.3
tauri-bundler 2.0.1-rc.1 2.0.1-rc.2
tauri-runtime 2.0.0-rc.2 2.0.0-rc.3
tauri-runtime-wry 2.0.0-rc.2 2.0.0-rc.3
tauri-codegen 2.0.0-rc.2 2.0.0-rc.3
tauri-macros 2.0.0-rc.2 2.0.0-rc.3
tauri-plugin 2.0.0-rc.2 2.0.0-rc.3
tauri-build 2.0.0-rc.2 2.0.1-rc.0
tauri 2.0.0-rc.2 2.0.0-rc.3
@tauri-apps/cli 2.0.0-rc.3 2.0.0-rc.4
tauri-cli 2.0.0-rc.3 2.0.0-rc.4

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog lucasfernog merged commit f4cd68f into dev Aug 14, 2024
14 of 15 checks passed
@lucasfernog lucasfernog deleted the fix/dev-server-localhost branch August 14, 2024 00:11
lucasfernog added a commit that referenced this pull request Aug 14, 2024
just applying the change from #10600 to xcode to fix the linked issue :)
lucasfernog added a commit that referenced this pull request Aug 15, 2024
…10605)

just applying the change from #10600 to xcode to fix the linked issue :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants