https://github.com/tauri-apps/wry-mobile
https://github.com/tauri-apps/wry-mobile
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tauri-apps/wry-mobile
- Owner: tauri-apps
- Archived: true
- Created: 2022-01-19T15:32:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-26T08:05:33.000Z (almost 4 years ago)
- Last Synced: 2024-04-14T04:27:08.869Z (about 2 years ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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