An Android application for ruffle.rs
Go to file
2022-03-30 02:24:20 +02:00
.github/workflows Add GitHub Actions setup, delete unneeded CMakeLists.txt, cargo update 2022-03-30 02:24:20 +02:00
app Add GitHub Actions setup, delete unneeded CMakeLists.txt, cargo update 2022-03-30 02:24:20 +02:00
native Add GitHub Actions setup, delete unneeded CMakeLists.txt, cargo update 2022-03-30 02:24:20 +02:00
README.md Initial commit. 2022-03-26 04:06:30 +01:00

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.