#packages #cargo #android #building #testing #depend #cargo-subcommand

app cargo-cala

Cargo plugin for testing & building release packages that depend on cala and/or wasm

1 unstable release

0.0.1 Dec 21, 2019

#49 in #depend

Download history 1/week @ 2024-09-20 2/week @ 2024-10-11 3/week @ 2024-11-01 1/week @ 2024-11-08 10/week @ 2024-11-29 32/week @ 2024-12-06 12/week @ 2024-12-13

54 downloads per month

MIT / BSL-1.0

1MB
350 lines

Contains (APK file, 310KB) android_test/example.apk, (Zip file, 310KB) android_test/example.apk.unaligned, (ELF lib, 235KB) libnative-activity.so, (ELF lib, 220KB) libnative-activity.so, (ELF lib, 235KB) libnative-activity.so, (ELF lib, 110KB) libnative-activity.so

Graphical Software Packager (cargo-gsp)

Cargo plugin for testing & building release packages that depend on cala and/or wasm.

Linux: FlatPak

You'll need a terminal.

Install: Fedora

sudo dnf install flatpak

Install: Ubuntu

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak

Setup

flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
flatpak install gnome org.gnome.Platform//3.24

Android: APK

Use Cargo-Dist to Build APKs

Here is the script that is used, if you want to set it up manually:

rustup target add arm-linux-androideabi aarch64-linux-android armv7-linux-androideabi i686-linux-android thumbv7neon-linux-androideabi x86_64-linux-android
mkdir ~/.cargo-dist/
cd ~/.cargo-dist/
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip
wget https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip
unzip android-ndk-r19c-linux-x86_64.zip
rm android-ndk-r19c-linux-x86_64.zip
rm sdk-tools-linux-4333796.zip
mv android-ndk-r19c/ android_ndk/
./android_ndk/build/tools/make-standalone-toolchain.sh --toolchain=arm-linux-androideabi --install-dir=arm-linux-androideabi
./android_ndk/build/tools/make-standalone-toolchain.sh --toolchain=aarch64-linux-android --install-dir=aarch64-linux-android
./android_ndk/build/tools/make-standalone-toolchain.sh --toolchain=x86-linux-android --install-dir=x86-linux-android
./android_ndk/build/tools/make-standalone-toolchain.sh --toolchain=x86_64-linux-android --install-dir=x86_64-linux-android
mkdir android_sdk/
cd android_sdk/
mv ../tools .
./tools/bin/sdkmanager "platform-tools" "platforms;android-18" "build-tools;26.0.1"

Environment variables:

NDK_HOME=$HOME/.cargo-dive/android_ndk ANDROID_HOME=$HOME/.cargo-dive/android_sdk

Windows: Installer.exe

TODO

MacOS: .app

TODO

Dependencies

~31MB
~645K SLoC