|
| 1 | +--- |
| 2 | +authors: [lucasfernog] |
| 3 | +image: ./tauri_2_0_0_alpha_0/header.png |
| 4 | +description: Tauri mobile is here! The first alpha release 2.0.0-alpha.0 has been published. |
| 5 | +--- |
| 6 | + |
| 7 | +import Tabs from '@theme/Tabs' |
| 8 | +import TabItem from '@theme/TabItem' |
| 9 | +import iOSPreview from './tauri_2_0_0_alpha_0/ios-preview.png' |
| 10 | +import androidPreview from './tauri_2_0_0_alpha_0/android-preview.png' |
| 11 | + |
| 12 | +# Announcing the Tauri Mobile Alpha Release |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +Tauri mobile is here! The first alpha release 2.0.0-alpha.0 has been published. |
| 17 | + |
| 18 | +<!--truncate--> |
| 19 | + |
| 20 | +## Updating dependencies |
| 21 | + |
| 22 | +Make sure to update both NPM and Cargo dependencies to the 2.0.0-alpha.0 release. You can update the NPM dependencies with: |
| 23 | + |
| 24 | +<Tabs groupId="package-manager"> |
| 25 | + <TabItem value="npm"> |
| 26 | + |
| 27 | +```shell |
| 28 | +npm install @tauri-apps/cli@next @tauri-apps/api@next |
| 29 | +``` |
| 30 | + |
| 31 | + </TabItem> |
| 32 | + <TabItem value="Yarn Classic"> |
| 33 | + |
| 34 | +```shell |
| 35 | +yarn upgrade @tauri-apps/cli@next @tauri-apps/api@next |
| 36 | +``` |
| 37 | + |
| 38 | + </TabItem> |
| 39 | + <TabItem value="Yarn Berry"> |
| 40 | + |
| 41 | +```shell |
| 42 | +yarn up @tauri-apps/cli@next @tauri-apps/api@next |
| 43 | +``` |
| 44 | + |
| 45 | + </TabItem> |
| 46 | + <TabItem value="pnpm"> |
| 47 | + |
| 48 | +```shell |
| 49 | +pnpm update @tauri-apps/cli@next @tauri-apps/api@next |
| 50 | +``` |
| 51 | + |
| 52 | + </TabItem> |
| 53 | +</Tabs> |
| 54 | + |
| 55 | +To update the Cargo dependencies, run the following in the `src-tauri` folder: |
| 56 | + |
| 57 | +```shell |
| 58 | + |
| 59 | +cargo add [email protected] --build |
| 60 | +cargo install tauri-cli --version "^2.0.0-alpha" |
| 61 | +``` |
| 62 | + |
| 63 | +## Preview |
| 64 | + |
| 65 | +You can adapt your existing desktop application to run on mobile or start a fresh project. |
| 66 | +Tauri runs on the connected device or starts an emulator if available. |
| 67 | + |
| 68 | +<div |
| 69 | + style={{ |
| 70 | + display: 'flex', |
| 71 | + 'flex-direction': 'column', |
| 72 | + 'align-items': 'center', |
| 73 | + gap: '16px', |
| 74 | + }} |
| 75 | +> |
| 76 | + <img className="transparent" src={iOSPreview} alt="iOS preview" /> |
| 77 | + <img className="transparent" src={androidPreview} alt="Android preview" /> |
| 78 | +</div> |
| 79 | + |
| 80 | +<br></br> |
| 81 | + |
| 82 | +Read the complete guide on the [next documentation website](https://next--tauri.netlify.app/next/mobile/). |
| 83 | + |
| 84 | +## Known issues |
| 85 | + |
| 86 | +- TLS support has been moved behind a Cargo feature until we figure out how to cross compile OpenSSL on Windows. |
| 87 | +- Currently running on a device is not supported when using Xcode 14. |
0 commit comments