From 433558509f4bfe72e7df29f5044d94d6413caeb2 Mon Sep 17 00:00:00 2001 From: 0xb10c Date: Wed, 29 Nov 2023 10:57:27 +0100 Subject: [PATCH] add cargo-apk and aarch64-linux-android target I tried the nix-shell and that's what was missing for me to build the apk. The desktop app worked out of the box. Closes: https://github.com/damus-io/android/pull/1 Reviewed-by: William Casarin Signed-off-by: William Casarin --- README.md | 6 +++++- shell.nix | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8b4767bc..7a0eb5ea 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,11 @@ Once you have your dev shell setup, you can build with this command: $ cargo apk run --release ``` -This will build and run the app on your android device. +This will build and run the app on your android device. If you don't have the `aarch64-linux-android` rust target yet, you can install it with: + +``` +$ rustup target add aarch64-linux-android +``` You can also just type diff --git a/shell.nix b/shell.nix index a3301c0f..ae9617d8 100644 --- a/shell.nix +++ b/shell.nix @@ -25,7 +25,7 @@ mkShell ({ heaptrack - ] ++ pkgs.lib.optional use_android [ jre openssl libiconv androidsdk ] ; + ] ++ pkgs.lib.optional use_android [ jre openssl libiconv androidsdk cargo-apk ] ; LD_LIBRARY_PATH="${x11libs}"; } // (if !use_android then {} else {