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

refactor!: use localhost for development on Android devices and emulators or iOS simulators #10437

Merged
merged 7 commits into from
Aug 2, 2024

Conversation

lucasfernog
Copy link
Member

@lucasfernog lucasfernog commented Jul 31, 2024

ios dev and android dev now uses localhost for the development server unless running on an iOS device,
which still requires connecting to the public network address. To conditionally check this on your frontend
framework's configuration you can check for the existence of the TAURI_DEV_PUBLIC_NETWORK_HOST_REQUIRED
environment variable instead of checking if the target is iOS or Android (previous recommendation).

@lucasfernog lucasfernog requested a review from a team as a code owner July 31, 2024 15:51
Copy link
Contributor

github-actions bot commented Jul 31, 2024

Package Changes Through 3110b2e

There are 6 changes which include tauri with prerelease, tauri-codegen with prerelease, tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri-plugin with prerelease, tauri-utils 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-beta.19 2.0.0-beta.20
tauri-bundler 2.0.1-beta.19 2.0.1-beta.20
tauri-runtime 2.0.0-beta.21 2.0.0-beta.22
tauri-runtime-wry 2.0.0-beta.21 2.0.0-beta.22
tauri-codegen 2.0.0-beta.19 2.0.0-beta.20
tauri-macros 2.0.0-beta.19 2.0.0-beta.20
tauri-plugin 2.0.0-beta.19 2.0.0-beta.20
tauri-build 2.0.0-beta.19 2.0.0-beta.20
tauri 2.0.0-beta.25 2.0.0-beta.26
@tauri-apps/cli 2.0.0-beta.23 2.0.0-beta.24
tauri-cli 2.0.0-beta.23 2.0.0-beta.24

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


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

Copy link

socket-security bot commented Jul 31, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@esbuild/linux-riscv64@0.21.5 None 0 9.24 MB evanw
npm/@esbuild/linux-s390x@0.21.5 None 0 10.2 MB evanw
npm/@esbuild/linux-x64@0.21.5 None 0 9.71 MB evanw
npm/@esbuild/netbsd-x64@0.21.5 None 0 9.69 MB evanw
npm/@esbuild/openbsd-x64@0.21.5 None 0 9.73 MB evanw
npm/@esbuild/sunos-x64@0.21.5 None 0 9.69 MB evanw
npm/@esbuild/win32-arm64@0.21.5 None 0 9.08 MB evanw
npm/@esbuild/win32-ia32@0.21.5 None 0 9.56 MB evanw
npm/@esbuild/win32-x64@0.21.5 None 0 9.91 MB evanw
npm/@rollup/rollup-android-arm-eabi@4.18.0 None 0 1.7 MB lukastaegert
npm/@rollup/rollup-android-arm64@4.18.0 None 0 2.57 MB lukastaegert
npm/@rollup/rollup-darwin-arm64@4.18.0 None 0 2.49 MB lukastaegert
npm/@rollup/rollup-darwin-x64@4.18.0 None 0 2.64 MB lukastaegert
npm/@rollup/rollup-linux-arm-gnueabihf@4.18.0 None 0 2.53 MB lukastaegert
npm/@rollup/rollup-linux-arm-musleabihf@4.18.0 None 0 2.52 MB lukastaegert
npm/@rollup/rollup-linux-arm64-gnu@4.18.0 None 0 2.55 MB lukastaegert
npm/@rollup/rollup-linux-arm64-musl@4.18.0 None 0 2.43 MB lukastaegert
npm/@rollup/rollup-linux-powerpc64le-gnu@4.18.0 None 0 3.15 MB lukastaegert
npm/@rollup/rollup-linux-riscv64-gnu@4.18.0 None 0 2.64 MB lukastaegert
npm/@rollup/rollup-linux-s390x-gnu@4.18.0 None 0 4.33 MB lukastaegert
npm/@rollup/rollup-linux-x64-gnu@4.18.0 None 0 2.79 MB lukastaegert
npm/@rollup/rollup-linux-x64-musl@4.18.0 None 0 2.79 MB lukastaegert
npm/@rollup/rollup-win32-arm64-msvc@4.18.0 None 0 3.06 MB lukastaegert
npm/@rollup/rollup-win32-ia32-msvc@4.18.0 None 0 2.73 MB lukastaegert
npm/@rollup/rollup-win32-x64-msvc@4.18.0 None 0 3.6 MB lukastaegert
npm/@tauri-apps/api@2.0.0-beta.15 None 0 565 kB tauri-apps-ci-user

🚮 Removed packages: npm/@tauri-apps/api@2.0.0-beta.13, npm/cidr-regex@4.0.3, npm/cidr-tools@6.4.2, npm/clone-regexp@3.0.0, npm/convert-hrtime@5.0.0, npm/default-gateway@7.2.2, npm/execa@7.2.0, npm/function-timeout@0.1.1, npm/human-signals@4.3.1, npm/internal-ip@8.0.0, npm/ip-bigint@7.3.0, npm/ip-regex@5.0.0, npm/is-ip@5.0.1, npm/is-regexp@3.1.0, npm/is-stream@3.0.0, npm/mimic-fn@4.0.0, npm/npm-run-path@5.3.0, npm/onetime@6.0.0, npm/p-event@5.0.1, npm/p-timeout@5.1.0, npm/path-key@4.0.0, npm/string-natural-compare@3.0.1, npm/strip-final-newline@3.0.0, npm/super-regex@0.2.0, npm/time-span@5.1.0, npm/tslib@2.4.1, npm/typescript@4.8.4, npm/undici@5.12.0, npm/universalify@2.0.0, npm/util-deprecate@1.0.2, npm/vite-plugin-static-copy@0.11.1, npm/vite-plugin-top-level-await@1.2.1, npm/vite-plugin-wasm@3.1.0, npm/vite@3.2.2, npm/wasm@0.1.0, npm/webidl-conversions@3.0.1, npm/whatwg-url@5.0.0, npm/wide-align@1.1.5, npm/worktop@0.8.0-next.14, npm/yallist@4.0.0

View full report↗︎

@lucasfernog lucasfernog merged commit 7ba67b4 into dev Aug 2, 2024
19 checks passed
@lucasfernog lucasfernog deleted the feat/mobile-localhost branch August 2, 2024 10:35
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.

1 participant