Skip to content

Commit

Permalink
Try to add 32-bit ARM support
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Mar 30, 2022
1 parent f6f1196 commit 6c07028
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v2

- name: Add Android target to Rust
run: rustup target add aarch64-linux-android
run: rustup target add aarch64-linux-android armv7-linux-androideabi

# This is needed only because C++ stuff only works with NDK >= r24.
# See: https://github.com/rust-windowing/android-ndk-rs/issues/255
Expand All @@ -44,6 +44,7 @@ jobs:
run: |
mkdir app/ruffle/src/main/jniLibs
cp -r native/target/release/apk/lib/arm64-v8a app/ruffle/src/main/jniLibs/
cp -r native/target/release/apk/lib/armeabi-v7a app/ruffle/src/main/jniLibs/
- name: Build APK
run: |
Expand Down
2 changes: 1 addition & 1 deletion app/ruffle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
versionName "1.0"

ndk {
abiFilters 'arm64-v8a'
abiFilters 'arm64-v8a', 'armeabi-v7a'
}
}

Expand Down
2 changes: 1 addition & 1 deletion native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ ndk-context = "0.1.0"
cpal = "0.13.5"

[package.metadata.android]
build_targets = [ "aarch64-linux-android"] # also "armv7-linux-androideabi"
build_targets = [ "aarch64-linux-android", "armv7-linux-androideabi" ]
target_sdk_version = 29
min_sdk_version = 23

0 comments on commit 6c07028

Please sign in to comment.