mirror of
https://github.com/ruffle-rs/ruffle-android.git
synced 2024-11-23 05:39:38 +00:00
An Android application for ruffle.rs
.github/workflows | ||
app | ||
native | ||
README.md |
Prerequisite
Install Android Sudio with at least the Platform SDK (e.g. 28) and the NDK Tools.
Also:
cargo install cargo-apk
rustup target add aarch64-linux-android
Build Steps
NOTE: First a sacrificial APK is built, then the native library it produces is used to build the proper APK.
Substitute the appropriate locations and ndk version in the variables set for the cargo-apk
command.
cd native
ANDROID_SDK_ROOT=$HOME/Android/Sdk/ ANDROID_NDK_ROOT=$HOME/Android/Sdk/ndk/24.0.8215888/ cargo apk build --release
cp -r target/release/apk/lib/arm64-v8a ../app/ruffle/src/main/jniLibs/
cd ../app
./gradlew build
The final APK should be at:
app/ruffle/build/outputs/apk/release/ruffle-release-unsigned.apk
After the first step, simply opening the app
project in Android Studio for development also works.
32-bit ARM and x86_64 support is TBD.