Skip to content

Android: Modernise builds and enable experimental Play testing #4009

In progress

Description

@pljones

What is the current behaviour and why should it be changed?

Android builds are experimental. The existing CI build uses Qt 5.15.2 and older Android build tools, and produces an APK through a CI-oriented script. It does not provide the proposed Qt 6 build or a Play testing upload workflow. There are also separate open issues for Qt 6 permissions (#2528), signing (#2404), version-code portability (#3087), and updating Oboe (#3762).

I've also noted #4008, as changing the Android package name (which happens currently on each build, as far as I'm aware) requires uninstall, loss of settings and reinstall.

A more maintainable local and CI build process, a path to newer toolchains, and reproducibly signed packages would help develop and test Android builds. Play distribution also needs an AAB, an appropriate application identity, signing and versioning.

Describe possible approaches

Continue with the existing Qt 5 APK build and address the individual issues separately, or modernise the build in stages. The latter would support newer tooling and testing channels, but adds build and deployment complexity and requires Android device testing.

Draft PR #4006 explores the following approach:

  • Share a configurable Android build driver between local builds and CI, with separate toolchain profiles; retain Qt 5 multi-ABI APKs and add experimental Qt 6 per-ABI APKs.
  • Update Oboe to 1.10.0 and use Qt 6 microphone-permission handling when building with Qt 6.5 or later.
  • Support stable release signing and configurable application IDs and version codes, and provide an opt-in Qt 5 AAB build and GitHub workflow upload to the Play internal testing track. Keep debug and release identities distinct and document the required credentials and setup.

Before agreeing the scope, decide whether the Play workflow and Qt 6 build belong in the same effort or should be separate changes. In particular, agree on the official application ID and signing identities: changing either can prevent updates to existing installations, and Play and side-loaded signing may differ. The draft PR reports UI problems on Qt 6 and on Qt 5 targeting Android API 36; these need investigation and device testing rather than treating a successful build or upload as validation. The Qt 5 Play profile is experimental, and Qt 6 qmake builds in the draft produce APKs rather than a Play AAB.

Has this feature been discussed and generally agreed?

Not as an overall specification, as far as I know. #4006 is a draft implementation for discussion; the related issues above cover parts of the work. The intended scope, compatibility, release process, and testing requirements still need agreement.

🤖 Used AI: Copilot SDK in VS Code, to inspect the branch and draft this issue. I reviewed the draft before posting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    • Status
      In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions