An Android application for ruffle.rs
Go to file
dependabot[bot] 8325f0e280
Some checks failed
Build / build-native-libs (arm64-v8a, aarch64-linux-android) (push) Has been cancelled
Build / build-native-libs (armeabi-v7a, armv7-linux-androideabi) (push) Has been cancelled
Build / build-native-libs (x86, i686-linux-android) (push) Has been cancelled
Build / build-native-libs (x86_64, x86_64-linux-android) (push) Has been cancelled
Lint & Format / rust (push) Has been cancelled
Lint & Format / android (push) Has been cancelled
Build / build-apks (push) Has been cancelled
Build / Android Tests (26) (push) Has been cancelled
Build / Android Tests (34) (push) Has been cancelled
build(deps): bump the ruffle group with 9 updates
Bumps the ruffle group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [ruffle_core](https://github.com/ruffle-rs/ruffle) | ``04f5549`` | ``feeab03`` |
| [ruffle_render_wgpu](https://github.com/ruffle-rs/ruffle) | ``04f5549`` | ``feeab03`` |
| [ruffle_video_software](https://github.com/ruffle-rs/ruffle) | ``04f5549`` | ``feeab03`` |
| [ruffle_frontend_utils](https://github.com/ruffle-rs/ruffle) | ``04f5549`` | ``feeab03`` |
| ruffle_gc_arena | ``04f5549`` | ``feeab03`` |
| ruffle_macros | ``04f5549`` | ``feeab03`` |
| ruffle_render | ``04f5549`` | ``feeab03`` |
| ruffle_video | ``04f5549`` | ``feeab03`` |
| ruffle_wstr | ``04f5549`` | ``feeab03`` |


Updates `ruffle_core` from `04f5549` to `feeab03`
- [Release notes](https://github.com/ruffle-rs/ruffle/releases)
- [Commits](04f5549233...feeab03859)

Updates `ruffle_render_wgpu` from `04f5549` to `feeab03`
- [Release notes](https://github.com/ruffle-rs/ruffle/releases)
- [Commits](04f5549233...feeab03859)

Updates `ruffle_video_software` from `04f5549` to `feeab03`
- [Release notes](https://github.com/ruffle-rs/ruffle/releases)
- [Commits](04f5549233...feeab03859)

Updates `ruffle_frontend_utils` from `04f5549` to `feeab03`
- [Release notes](https://github.com/ruffle-rs/ruffle/releases)
- [Commits](04f5549233...feeab03859)

Updates `ruffle_gc_arena` from `04f5549` to `feeab03`

Updates `ruffle_macros` from `04f5549` to `feeab03`

Updates `ruffle_render` from `04f5549` to `feeab03`

Updates `ruffle_video` from `04f5549` to `feeab03`

Updates `ruffle_wstr` from `04f5549` to `feeab03`

---
updated-dependencies:
- dependency-name: ruffle_core
  dependency-type: direct:production
  dependency-group: ruffle
- dependency-name: ruffle_render_wgpu
  dependency-type: direct:production
  dependency-group: ruffle
- dependency-name: ruffle_video_software
  dependency-type: direct:production
  dependency-group: ruffle
- dependency-name: ruffle_frontend_utils
  dependency-type: direct:production
  dependency-group: ruffle
- dependency-name: ruffle_gc_arena
  dependency-type: indirect
  dependency-group: ruffle
- dependency-name: ruffle_macros
  dependency-type: indirect
  dependency-group: ruffle
- dependency-name: ruffle_render
  dependency-type: indirect
  dependency-group: ruffle
- dependency-name: ruffle_video
  dependency-type: indirect
  dependency-group: ruffle
- dependency-name: ruffle_wstr
  dependency-type: indirect
  dependency-group: ruffle
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-04 16:50:22 +01:00
.github build(deps): bump mikepenz/action-junit-report from 4 to 5 2024-11-04 12:55:01 +01:00
app Add a (super ugly) panic screen 2024-09-18 00:57:44 +02:00
gradle chore: Bump used gradle to version 8.10 2024-10-08 14:53:33 +02:00
src build(deps): bump the ruffle group with 9 updates 2024-09-30 19:17:13 +02: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 ruffle group with 9 updates 2024-11-04 16:50:22 +01:00
Cargo.toml build(deps): bump the rust-minor group with 16 updates 2024-09-23 12:02:55 +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