Skip to content

Commit

Permalink
build: Improve android build
Browse files Browse the repository at this point in the history
  • Loading branch information
valentunn committed Feb 24, 2025
1 parent 905506c commit 0668746
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Any data transfer from or to the app happens using QR code. By doing so, the mos

Please read our documentation before using Vault for the first time or before upgrading. It covers the main use-cases such as installing on a new phone, creating keys, upgrading and adding new networks:

👉 https://docs.novawallet.io/nova-wallet-wiki/wallet-management/hardware-wallets/polkadot-vault
👉 https://docs.novawallet.io/nova-wallet-wiki/wallet-management/hardware-wallets/polkadot-vault

# Project Structure

Expand Down Expand Up @@ -154,6 +154,16 @@ Enable "Show package details" checkmark to select specific version.

**10.** Run the project (`Ctrl+R`). It should build the Rust core library automatically.

### Troubleshooting

#### "no such file or directory" error when invoking cargo/rustc/uniffi-bindgen
1. Ensure rust and uniffi-bindgen are installed
2. Sometimes launching Android Studio from the Finder might result in Android Studio not seeing all env needed variables
Try launching Studio from the shell (command assumes you are in the "Applications" folder)
```shell
./Android\ Studio.app/Contents/MacOS/studio
```

# Release Android

- Create PR with new app version updated
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.0'
classpath 'com.android.tools.build:gradle:8.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.mozilla.rust-android-gradle:plugin:0.9.3"
// uniffi wants some build-time specific info from JNA
Expand Down

0 comments on commit 0668746

Please sign in to comment.