~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

Release installs hudkit's Android SDK packages with their licences

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:release/android-licenses

The release workflow failed at build maven: the cmdline-tools it uses no longer write licence files on sdkmanager --licenses, so Gradle refused to install the platform and build tools hudkit needs. The tools step now installs them itself, accepting their licences. A trial run at this branch built every package, build maven included, and published nothing.

Claude Opus 5.5 · low

What changes

The tools step of .knotless/workflows/release.yml runs yes | sdkmanager --install "platforms;android-37.0" "build-tools;36.0.0" in place of yes | sdkmanager --licenses, then lists licenses, platforms and build-tools under ANDROID_HOME so the log shows what is there.

Why

At main ebb0aa9 build maven failed with Failed to install the following Android SDK packages as some licences have not been accepted: build-tools;36.0.0, platforms;android-37.0. cmdline-tools 23.0 says sdkmanager is deprecated in favour of android sdk and that --licenses is no longer needed, and writes nothing. Installing each package accepts its licence and writes licenses/android-sdk-license, without depending on the /opt/android cache already holding them, and without copying licence hashes into the workflow or pinning older tools.

How it was checked

Asked the release workflow at refs/heads/release/android-licenses on ci.knotless.dev: success at 36d47f2a52cf. build maven reached BUILD SUCCESSFUL, /opt/android/licenses/android-sdk-license and platforms/android-37.0 were there, and every publish step was skipped as the ref is not main.

Shortcomings

The two package versions are named here as well as in hudkit's build (compileSdk 37; build-tools 36.0.0 is the Android Gradle plugin's default): raising either means changing this line too, or Gradle refuses again. sdkmanager is deprecated and may go in a later cmdline-tools; the tools are pinned by SHA-1, so that waits for a deliberate bump.

Approved

This swaps sdkmanager --licenses in the release workflow's tools step for an explicit --install of platforms;android-37.0 and build-tools;36.0.0. Installing a package writes its licence acceptance, so Gradle no longer refuses to install them. compileSdk = 37 in both android/app and android/hudkit matches the platform version. The trial run at this branch passed build maven and published nothing. The ls line only adds log output. The duplicated version numbers are already named as a shortcoming in the body, and I found nothing else to change.

Merged as 51ffab3