mirror of
https://github.com/tauri-apps/wry-mobile.git
synced 2026-02-04 02:41:19 +01:00
47 lines
962 B
Markdown
47 lines
962 B
Markdown
# wry-mobile
|
|
|
|
This is the mobile template setup by cargo mobile.
|
|
|
|
## Cargo mobile
|
|
|
|
Build with [cargo mobile](https://github.com/BrainiumLLC/cargo-mobile) for our tests and simplicity of use.
|
|
|
|
```bash
|
|
cargo install --git https://github.com/BrainiumLLC/cargo-mobile
|
|
```
|
|
|
|
## Init the template
|
|
|
|
Move into this repo and then:
|
|
|
|
```
|
|
cargo mobile init
|
|
```
|
|
|
|
If you don't know your apple team id yet. Best way for now is create another directory and init the mobile project to find it. And then replace it in `mobile.toml`.
|
|
|
|
## iOS
|
|
|
|
### Open the project in XCode
|
|
|
|
```bash
|
|
cargo apple open
|
|
```
|
|
|
|
**Important: You need to link Webview Framework in build settings**
|
|
|
|
wry-mobile > General > Frameworks, Libraries, and Embedded Content > Webkit.framework
|
|
|
|
### Run on your connected phone
|
|
|
|
```bash
|
|
cargo apple run
|
|
```
|
|
|
|
If you haven't trusted the device, go to Settings > General > VPN 與裝置管理(what's the english name of this lol) to trust the device.
|
|
|
|
## Android
|
|
|
|
TODO
|
|
|