Skip to content

Commit

Permalink
📝 adds mobile app readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chriamue committed Oct 4, 2023
1 parent 08366f3 commit 492f013
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions docs/MobileApp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Mobile App

## Introduction

The mobile app is a Yew app that is compiled to WebAssembly and runs in Tauri.

## Development

### Prerequisites

- [Rust](https://www.rust-lang.org/tools/install)
- [Tauri](https://next--tauri.netlify.app/next/mobile/)

```bash
cargo install create-tauri-app
cargo create-tauri-app
cargo install [email protected]
```

### Build

```bash
cd app
cargo tauri android init
cargo tauri build
cargo tauri android build
```

### Run

```bash
cargo tauri android dev
```

### Deploy

```bash
cargo tauri android build
keytool -genkey -v -keystore release.keystore -alias app -keyalg RSA -keysize 2048 -validity 10000
$ANDROID_HOME/build-tools/33.0.1/apksigner sign --ks release.keystore --out app.apk src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk
adb install -r app.apk
```

0 comments on commit 492f013

Please sign in to comment.