Skip to content

feat(mobile): add isolated native targets and Android debug CI (M2) - #384

Closed
Facilier wants to merge 10 commits into
feat/mobilefrom
feat/mobile-native
Closed

Facilier wants to merge 10 commits into
feat/mobilefrom
feat/mobile-native

Conversation

@Facilier

@Facilier Facilier commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

M2 adds Android/iOS targets to the existing Tauri project. Mobile registers only platform identity and documentation links. Engine discovery/startup, local auth/config, Git, worktrees, editors and file drops are compiled out with their host dependencies. The shared React UI stays unchanged from M1; mobile is deliberately disconnected until maintainer S2/ADR-0015 enrollment and S4 TLS land.

Android CI builds an arm64 debug APK on Ubuntu 24.04 using Java 17, SDK 36, build-tools 36.0.0 and NDK 28.2.13676358. Cargo resolution is locked and the actual target dependency graph is checked for host engine/auth/config crates. Both debug and release manifests disable cleartext traffic. Android and iOS projects are checked in; icons derive from the existing QQ SVG. iOS was scaffolded on macOS 15 with Tauri CLI 2.12.1, without a development team or signing identity. No iOS build or store-upload job is enabled.

Stack: M0 is #381; M1 is #382. Every PR targets feat/mobile. This branch includes M1 so the native build uses its platform checks; merge #382 first to leave this PR's native target/build changes. The main and feat/desktop-app branches are untouched. Most native source churn is moving the existing desktop composition into desktop.rs; the engine crates and generated protocol DTOs are unchanged.

Verified on final head c1592c9:

  • Windows and Android CI passed: native fmt, clippy --locked --all-targets -- -D warnings, cargo test --locked (31 tests plus generated-contract drift), desktop build; UI pnpm typecheck, pnpm test (35 passed), pnpm build and pnpm check:version (0.1.8). Android APK build passed in 5m21s.
  • Repository gate passed. Local cargo xtask check --base feat/mobile also passed; this clone uses upstream rather than origin.
  • Download qq-android-debug. APK: 127,991,060 bytes (debug, arm64); inspected archive contains libqq_desktop_lib.so and no engine executable. Lockfiles did not change because dependency versions did not change.
  • M1's shared UI was exercised in Edge headless at 375×812 for Android/iOS fixture modes: drawers, full-height Goal/Changes/Settings sheets, 44px buttons, no page overflow; composer visible at simulated 375×450 keyboard space. At 1280×800, desktop app pixels matched the baseline except the fixture's variable render-time counter.

Not tested: Android emulator/physical device, iOS compilation/device, real keyboards/notches, enrollment or live remote operations. Existing native dependency warnings and the >500 kB UI chunk warning remain (704.51 kB JS, gzip 216.36 kB); no mobile release-size budget is claimed from a debug build.

No engine/protocol changes are included. Maintainer proposals remain S2's enrollment/revocation contract and S4 TLS exposure with tailscale serve. No loopback token export, non-loopback HTTP fallback, relay or push service was added. M3/M4 and subsequent release qualification remain blocked on those maintainer-owned prerequisites; signing and app-store publication require maintainer inputs and authorization.

Open questions for maintainers:

  • Which Apple developer team and macOS runner should own future iOS builds/signing?
  • Which Android/iOS physical devices should qualify keyboard, safe-area and foreground-resume behavior?
  • Who owns S2 and S4, and when will their merged contracts be ready for mobile integration?

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-21T20:11:34.782565Z
We couldn’t complete this review. Comment @codex review to try again.
c8dbc81 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 05f4bdd8c7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/desktop.yml Outdated
Comment on lines +112 to +114
if [ ! -d src-tauri/gen/android ]; then
pnpm tauri android init --ci --skip-targets-install
fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Regenerate Android before uploading the scaffold

On every mobile-scaffold dispatch, the checkout already contains src-tauri/gen/android, so this condition skips initialization and the workflow uploads the checked-in directory unchanged. That artifact is incomplete: gen/android/settings.gradle applies tauri.settings.gradle, while that generated file is ignored and absent from the repository. Consequently, the advertised Android scaffold artifact cannot be opened or built as a standalone Gradle project; run initialization for scaffold dispatches before uploading it.

Useful? React with 👍 / 👎.

@lg2m
lg2m marked this pull request as draft October 21, 2026 03:05
@Facilier
Facilier marked this pull request as ready for review October 21, 2026 20:11
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Facilier and others added 10 commits October 23, 2026 23:29
…ndroid

- Show why QQ could not start when the native platform lookup fails,
  instead of a blank window; never fall back to desktop features.
- Let Vite listen on TAURI_DEV_HOST so `tauri android dev` can reach it.
- Run clippy for the Android target, which compiles the cfg(mobile) entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…blets

- Fold the menu bar into one phone menu without desktop-only items
  (edit commands, zoom, keyboard shortcuts, the sidebar toggle).
- Render the real phone title bar in the fixture and add `?welcome`.
- Resolve the Tauri window lazily so the browser fixture can mount it.
- Show Goal/Changes as a right-hand sheet on tablets at 1024px and wider.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…phone crates

- Remove the template's Android TV launcher entries.
- Drop the bottom safe-area inset while the on-screen keyboard is open.
- Fail the Android dependency check on any workspace crate other than
  qq-client and qq-protocol, instead of a fixed list of four.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Like the desktop capability, opener:allow-open-url without a URL scope
refuses every link. Scope it to http and https, and check every
capability that grants it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GRYErk9fViNsoLT93Ywcne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants