Dioxus integration with Tauri's wry
template. Preconfigured with Tailwind CSS and DaisyUI.
Runs on mobile1, desktop and web.
Tools needed:
- tauri-mobile
- An NPM package manager and
npx
- trunk, wasm-bindgen-cli and wasm-opt (for web)
- Necessary mobile frameworks (Xcode, Android Studio)
npm install # or yarn, pnpm install, etc.
cargo mobile init
cargo run # desktop
cargo android run # Android
cargo apple run # Apple
trunk serve # web
Original:
From my setup, I also need to add
abiFilters += listOf("arm64-v8a")
undercreate("arm")
branch in:app
's 'build.gradle.kts
.This is probably different from users env, so I didn't add to the script.
Original:
Must run Xcode on rosetta. Goto Application > Right Click Xcode > Get Info > Open in Rosetta.
If you are using M1, you will have to run
cargo build --target x86_64-apple-ios
instead ofcargo apple build
if you want to run in simulator.Otherwise, it's all
cargo apple run
when running in actual device.
Footnotes
-
Only tested on Android. ↩