Add an Android home-screen launcher built with ultra

examples/launcher is the home screen as an ultra app: clock, app search
(Enter opens the first match), icon grid and a pinned dock kept in
localStorage. android/ is a dependency-free Java shell that serves it to
a transparent WebView over the wallpaper, answers apps.json and icon
PNGs from LauncherApps, and bridges launch/app info/settings/wallpaper.
CI builds the APK and publishes it as the launcher-latest release.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
This commit is contained in:
Claude committed 2026-10-21 15:36:59 +00:00
1 parent 7c6a68b26e
commit 9443761b4a
24 files changed
+2068

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
name: Android launcher
on:
push:
branches: [main]
paths: ["android/**", "examples/launcher/**", ".github/workflows/android.yml"]
pull_request:
paths: ["android/**", "examples/launcher/**", ".github/workflows/android.yml"]
workflow_dispatch:
permissions:
contents: write
jobs:
apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4
- name: Build the APK
working-directory: android
run: ./gradlew --no-daemon assembleDebug
- uses: actions/upload-artifact@v4
with:
name: ultra-launcher-apk
path: android/app/build/outputs/apk/debug/app-debug.apk
# Keep a "launcher-latest" prerelease with the newest APK, so a phone can download it directly.
- name: Publish the launcher-latest release
if: github.event_name != 'pull_request'
env:
GH_TOKEN: ${{ github.token }}
run: |
cp android/app/build/outputs/apk/debug/app-debug.apk ultra-launcher.apk
gh release delete launcher-latest --yes --cleanup-tag || true
gh release create launcher-latest ultra-launcher.apk --prerelease --target "$GITHUB_SHA" \
--title "ultra launcher (latest build)" \
--notes "Debug-signed APK of android/ built from $GITHUB_SHA. Install it, press Home, and pick ultra Home."