An Android application for ruffle.rs
Go to file
dependabot[bot] 2a6deec9ab build(deps): bump the rust-minor group across 1 directory with 18 updates
Bumps the rust-minor group with 15 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [tokio](https://github.com/tokio-rs/tokio) | `1.39.2` | `1.39.3` |
| [arrayvec](https://github.com/bluss/arrayvec) | `0.7.4` | `0.7.6` |
| [bytemuck](https://github.com/Lokathor/bytemuck) | `1.16.3` | `1.17.0` |
| [bytemuck_derive](https://github.com/Lokathor/bytemuck) | `1.7.0` | `1.7.1` |
| [cc](https://github.com/rust-lang/cc-rs) | `1.1.10` | `1.1.13` |
| [clap](https://github.com/clap-rs/clap) | `4.5.15` | `4.5.16` |
| [h2](https://github.com/hyperium/h2) | `0.4.5` | `0.4.6` |
| [indexmap](https://github.com/indexmap-rs/indexmap) | `2.3.0` | `2.4.0` |
| [libc](https://github.com/rust-lang/libc) | `0.2.155` | `0.2.158` |
| [reqwest](https://github.com/seanmonstar/reqwest) | `0.12.5` | `0.12.7` |
| [serde](https://github.com/serde-rs/serde) | `1.0.207` | `1.0.208` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.124` | `1.0.125` |
| [tower-layer](https://github.com/tower-rs/tower) | `0.3.2` | `0.3.3` |
| [tower-service](https://github.com/tower-rs/tower) | `0.3.2` | `0.3.3` |
| [unicode-xid](https://github.com/unicode-rs/unicode-xid) | `0.2.4` | `0.2.5` |



Updates `tokio` from 1.39.2 to 1.39.3
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.2...tokio-1.39.3)

Updates `arrayvec` from 0.7.4 to 0.7.6
- [Release notes](https://github.com/bluss/arrayvec/releases)
- [Changelog](https://github.com/bluss/arrayvec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bluss/arrayvec/compare/0.7.4...0.7.6)

Updates `bytemuck` from 1.16.3 to 1.17.0
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](https://github.com/Lokathor/bytemuck/compare/v1.16.3...v1.17.0)

Updates `bytemuck_derive` from 1.7.0 to 1.7.1
- [Changelog](https://github.com/Lokathor/bytemuck/blob/main/changelog.md)
- [Commits](https://github.com/Lokathor/bytemuck/compare/bytemuck_derive-v1.7.0...bytemuck_derive-v1.7.1)

Updates `cc` from 1.1.10 to 1.1.13
- [Release notes](https://github.com/rust-lang/cc-rs/releases)
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.1.10...cc-v1.1.13)

Updates `clap` from 4.5.15 to 4.5.16
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.15...clap_complete-v4.5.16)

Updates `h2` from 0.4.5 to 0.4.6
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.4.5...v0.4.6)

Updates `indexmap` from 2.3.0 to 2.4.0
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.3.0...2.4.0)

Updates `libc` from 0.2.155 to 0.2.158
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.158/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.155...0.2.158)

Updates `reqwest` from 0.12.5 to 0.12.7
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.5...v0.12.7)

Updates `serde` from 1.0.207 to 1.0.208
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.207...v1.0.208)

Updates `serde_derive` from 1.0.207 to 1.0.208
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.207...v1.0.208)

Updates `serde_json` from 1.0.124 to 1.0.125
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.124...1.0.125)

Updates `system-configuration` from 0.5.1 to 0.6.0
- [Changelog](https://github.com/mullvad/system-configuration-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mullvad/system-configuration-rs/compare/v0.5.1...v0.6.0)

Updates `system-configuration-sys` from 0.5.0 to 0.6.0
- [Changelog](https://github.com/mullvad/system-configuration-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mullvad/system-configuration-rs/compare/v0.5.0...v0.6.0)

Updates `tower-layer` from 0.3.2 to 0.3.3
- [Release notes](https://github.com/tower-rs/tower/releases)
- [Commits](https://github.com/tower-rs/tower/compare/tower-layer-0.3.2...tower-layer-0.3.3)

Updates `tower-service` from 0.3.2 to 0.3.3
- [Release notes](https://github.com/tower-rs/tower/releases)
- [Commits](https://github.com/tower-rs/tower/compare/tower-service-0.3.2...tower-service-0.3.3)

Updates `unicode-xid` from 0.2.4 to 0.2.5
- [Commits](https://github.com/unicode-rs/unicode-xid/compare/v0.2.4...v0.2.5)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: arrayvec
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: bytemuck
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: rust-minor
- dependency-name: bytemuck_derive
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: cc
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: clap
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: h2
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: indexmap
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: rust-minor
- dependency-name: libc
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: reqwest
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: serde
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: serde_derive
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: serde_json
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: system-configuration
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: rust-minor
- dependency-name: system-configuration-sys
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: rust-minor
- dependency-name: tower-layer
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: tower-service
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
- dependency-name: unicode-xid
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: rust-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 02:33:15 +02:00
.github build(deps): bump gradle/actions from 3 to 4 2024-08-05 13:38:15 +02:00
app Update strings.xml 2024-07-08 16:19:05 +02:00
gradle build(deps): bump androidx.test:runner in the gradle-minor group 2024-08-19 12:24:19 +02:00
src Flush shared objects before quit 2024-07-10 14:09:17 +00:00
.editorconfig Add ktlint 2024-03-18 23:40:16 +01:00
.gitignore Restructure everything, native is now top level and app is written in kotlin with new Jetpack Compose ui 2024-03-18 23:40:16 +01:00
build.gradle.kts build(deps): bump org.jetbrains.kotlin.android from 1.9.24 to 2.0.0 2024-05-27 13:49:01 +02:00
Cargo.lock build(deps): bump the rust-minor group across 1 directory with 18 updates 2024-08-20 02:33:15 +02:00
Cargo.toml build(deps): bump the rust-minor group across 1 directory with 18 updates 2024-08-20 02:33:15 +02:00
CONTRIBUTING.md Add back line about TARGE_CC, TARGET_CXX and TARGET_AR 2024-04-10 14:01:05 +02:00
gradle.properties Restructure everything, native is now top level and app is written in kotlin with new Jetpack Compose ui 2024-03-18 23:40:16 +01:00
gradlew chore: Update gradle and gradlew to 8.7 2024-05-06 13:04:54 +02:00
gradlew.bat chore: Update gradle and gradlew to 8.7 2024-05-06 13:04:54 +02:00
LICENSE.md chore: Copied MIT/Apache license from Ruffle 2024-03-14 21:29:00 +01:00
README.md Add contributing.md 2024-03-27 18:58:40 +01:00
settings.gradle.kts Add ktlint 2024-03-18 23:40:16 +01:00

This is a native Android application for Ruffle.

It is in a very early stage.

Prebuilt APKs

The latest release (here) should have a few .apk files uploaded as assets.

You can try this app by downloading and installing one of those.

  • For the vast majority of modern phones, tablets, single board computers, and small game consoles, you'll need the arm64-v8a version.

  • The armeabi-v7a version is for older, 32-bit ARM stuff.

  • The x86_64 version is for some rare Intel/Microsoft tablets and/or for Chromebooks, and/or for running on a PC on Android-x86 or in Waydroid or similar.

  • The x86 version is there mostly just for completeness.

  • The universal version should work on all 4 of the above architectures, but it's huge.

Building from source

Please see CONTRIBUTING.md for details about how to build this repository yourself.


TODO

In no particular order:

  • Ability to show the built-in virtual keyboard (softinput), for text input
  • Controller/Gamepad input?
    • Mapped to key presses and/or virtual mouse pointer
  • Own custom keyboard overlay, maybe even per-content configs
    • Not an overlay, and not per-content, but custom keyboard is there
  • Error/panic handling
  • Loading "animation" (spinner)
  • Alternative audio backend (OpenSL ES) for Android < 8
  • Proper storage backend?
  • Resolve design glitches/styling/theming (immersive mode, window insets for holes/notches/corners)
  • Publish to various app stores, maybe automatically?
  • Bundle demo animations/games
  • Add ability to load content from well known online collections? (well maybe not z0r... unless?)
  • History, favorites, other flair...?

DONE:

  • Clean up ~everything
  • Cross-platform build instructions?
    • I think gradle should take care of it now
  • UI backend (context menu)
    • Context menu works
  • Logging?
  • Navigator backend (fetch, open browser)
    • Opening links works at least
  • Touch/mouse input
  • Keyboard input: only with physical keyboard connected or through scrcpy
  • Split into a separate repo
  • Add ability to Open SWF by entered/pasted URL (or even directly from clipboard)
    • No direct clipboard open, but easy to paste into the text field...
  • Unglitchify rendering: scale, center and letterbox the content properly
  • Ask CPAL/Oboe to open a "media" type output stream instead of a "call" one
    • so the right volume slider controls it, and it uses the loud(er)speaker
    • -> solved by switching to a direct AAudio (ndk-audio) backend
  • Add building this to CI, at least to the release workflow
    • This repo has its own CI setup, which builds APKs
  • Simplify build process (hook cargo-apk into gradle, drop cargo-apk?)
    • ~cargo-apk is fine, but is only used to detect the SDK/NDK environment and run Cargo in it, and not to build an APK.~
    • actually solved by switching to cargo-ndk and the corresponding Gradle plugin
  • Somehow filter files to be picked to .swf
    • How well this works depends on the file picker, but it "should work most of the time"
  • Unglitchify audio volume (buttons unresponsive?)
  • Register Ruffle to open .swf files
    • How well this works depends on the application opening the file, but it "should work most of the time"
  • Figure out why videos are not playing (could be a seeking issue)
    • The video decoder features weren't enabled on ruffle_core...
  • Sign the APK
    • Using a very simple key for now, with just my name in it
  • Support for 32-bit ARM phones
    • Untested, but should work in theory
  • Support for x86(_64) tablets?
    • Sorted out
  • Consider not building the intermediate .apk just for the shared libraries
    • Figured out, no intermediate .apk any more, only native libs built
  • Unbreak the regular build on CI
    • No longer relevant after the repo split
  • Clean up commit history of the branch
    • No longer relevant after the repo split