Cross-platform build of Catenary Maps for iOS, Android, and Web.
(Rust is still broken rip)
cargo install flutter_rust_bridge_codegen
cargo install cargo-expand
You'll need to add android/key.properties
with a path to your signing key and it's password.
See https://docs.flutter.dev/deployment/android#signing-the-app for more information
Solution: Install Flutter to your plugins and restart Android Studio
Error:
error: no such command: `ndk`
Did you mean `add`?
View all installed commands with `cargo --list`
Solution:
- Install toolchains:
rustup target add \
aarch64-linux-android \
armv7-linux-androideabi \
x86_64-linux-android \
i686-linux-android
- Install Cargo NDK
cargo install cargo-ndk
Error:
error: Could not find any NDK.
note: Set the environment ANDROID_NDK_HOME to your NDK installation's root directory,
or install the NDK using Android Studio.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:cargoBuildDebug'.
> Process 'command 'sh'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Solution on Unix: Change the path in your bash profile file by adding lines like this. Your exact NDK path may differ
export ANDROID_NDK_HOME=/home/kyler/Android/Sdk/ndk/26.1.10909125
export PATH=$ANDROID_NDK_HOME:$PATH