Repository navigation
Build the launcher for Android (test builds) - #613
Merged
Merged
Conversation
The Rust core now builds for Android with Tauri's Android support. What only a PC has (tray, global shortcuts, single instance, Discord status, picture clipboard, SDL controllers) is left out there; mobile.rs gives the desktop-only window calls a do-nothing stand-in so shared code stays as it is on PC. Adds the Android Studio project and a workflow that builds a test APK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The RAR unpacker uses lutimes, which Android's C library has from Android 8.0 (API 26), and installing other apps needs 8.0 too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Ruben · project thread
What this changes
First step toward an Android version: the launcher now builds as an Android app (APK) for testing. Nothing changes for the PC launcher.
navigator.getGamepads, the fallback the PC window already has).src-tauri/src/mobile.rsgives the window calls a phone doesn't have (minimise, maximise, full screen, frameless or always-on-top windows, the tray) a do-nothing stand-in, so the shared code stays exactly as it is on PC.pads_mobile.rsandtray_mobile.rsstand in forpads.rsandtray.rs.Cargo.toml.bundle.android.minSdkVersion26): the RAR unpacker useslutimes, which Android's C library has from 8.0.build.rsgives unrar an emptylibpthread.aon Android, where threads live in libc.src-tauri/gen/android, with the launcher's icon) and an Android workflow that builds a test APK when the Android parts change, or by hand. The APK is kept for one day.docs/BUILDING.mdhas a short Android section.This is the base only: the Android screens, installing Android games and the Android catalog come in their own pull requests.
How you tested it
cargo test --libon Linux: 1260 passed, 0 failed.node --test tests/*.test.cjs: 1044 passed.PR checks pass on Windows, macOS, Ubuntu, Arch, Flatpak and Nix.
The Android workflow builds the APK (arm64).
npm testpassesnode --test tests/*.test.cjspassesTried it in the launcher (
npm run dev)Checklist
recomplauncher.json