Skip to content

Commit

Permalink
docs: add examples for android env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Dec 30, 2022
1 parent dfe6a5e commit fea5b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ WebView2 provided by Microsoft Edge Chromium is used. So wry supports Windows 7,
We have experimental support of mobile ends. If you are interested in playing or hacking it, please follow this [note](https://hackmd.io/XIcEwk4GSxy8APZhSa0UnA?view).

When building for Android, WRY generates kotlin files that are needed to run WRY on Android and you have to set the following environment variables:
- `WRY_ANDROID_PACKAGE`
- `WRY_ANDROID_LIBRARY`
- `WRY_ANDROID_KOTLIN_FILES_OUT_DIR`
- `WRY_ANDROID_PACKAGE` which is usually a reversed domain name, for example: `com.wry.example`
- `WRY_ANDROID_LIBRARY` for example: `wry_app`
- `WRY_ANDROID_KOTLIN_FILES_OUT_DIR` for example: `path/to/app/src/main/kotlin/com/wry/example`

You can skip setting these environment variables if you are using the WRY template from our [`cargo-mobile`](https://github.com/tauri-apps/cargo-mobile) fork.

Expand Down

0 comments on commit fea5b96

Please sign in to comment.