Skip to content

Commit

Permalink
build: Improve android build (#2439)
Browse files Browse the repository at this point in the history
* build: Improve android build

* build: bump rust plugin version
  • Loading branch information
valentunn authored Feb 25, 2025
1 parent 963d698 commit 912ff4c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ 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"
classpath "org.mozilla.rust-android-gradle:plugin:0.9.6"
// uniffi wants some build-time specific info from JNA
classpath 'net.java.dev.jna:jna:5.12.1'
// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 912ff4c

Please sign in to comment.