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 <jb55@jb55.com> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -16,7 +16,11 @@ Once you have your dev shell setup, you can build with this command:
|
|||||||
$ cargo apk run --release
|
$ 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
|
You can also just type
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ mkShell ({
|
|||||||
|
|
||||||
heaptrack
|
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}";
|
LD_LIBRARY_PATH="${x11libs}";
|
||||||
} // (if !use_android then {} else {
|
} // (if !use_android then {} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user