Skip to content

feat(alpha-native): add opt-in native Kotlin/Compose suite slice 1 (#1865) - #2397

Draft
NubsCarson wants to merge 1 commit into
developfrom
feat/alpha-next-native-suite-slice1
Draft

NubsCarson wants to merge 1 commit into
developfrom
feat/alpha-next-native-suite-slice1

Conversation

@NubsCarson

Copy link
Copy Markdown
Collaborator

Summary

Opt-in Slice 1 draft PR for #1865 introducing the pure native Kotlin + Jetpack Compose Material 3 Android APK suite, AOSP native-suite prebuilt packaging, and curated OKLCH theme definitions on top of develop with zero changes to the shipping monolith launcher (ai.alphacompute.alphaphone), existing AOSP .mk files, apps/app/scripts/aosp.ts, apps/app/android/host.json, spec/lock.json, or eliza.lock.json.

Included Modules (Pure Additive)

  • Native Kotlin/Compose Suite (apps/app/android/alpha-native/):
    • 6 standalone APKs unified in settings.gradle.kts (zero WebViews, zero Capacitor runtime):
      • :alpha-os-settings (ai.alphacompute.os.settings): IA_SETTINGS homepage entry for Agent, Phone Use, Notification Summaries, Sandboxed Play, and Themes & Navigation.
      • :alpha-overlay (ai.alphacompute.os.overlay): Translucent Ask Alpha system bottom sheet, QS_TILE, live Binder IPC protocol, receipt store, and Phone Use HUD.
      • :alpha-apps:assistant (ai.alphacompute.native.assistant): Native Material 3 Assistant app.
      • :alpha-apps:phone (ai.alphacompute.native.phone): Native Dialer / InCallService (ROLE_DIALER) & Contacts app.
      • :alpha-apps:messages (ai.alphacompute.native.messages): Native SMS/RCS (ROLE_SMS) Messages app.
      • :alpha-apps:notes (ai.alphacompute.native.notes): Native Notes & checklists app.
    • Shared native libraries: :native-ui (Material 3 OKLCH tokens), :native-ipc (Binder IPC client), :alpha-apps:common (shared transport/theme base), plus bridge-play / bridge-theme Gradle wrappers.
    • Standalone build gating: alpha-native/settings.gradle.kts auto-gates :native-ipc, :alpha-os-settings, and Phase 1 bridge subprojects (:alpha-notifications, :alpha-play-bridge, :alpha-theme-bridge, Control v2) until Slices 2-3 land, so Slice 1 compiles and passes all standalone JVM unit tests cleanly on develop today with zero modifications to monolith alpha-control.
  • AOSP Native Suite Packaging (apps/app/aosp/native-suite/):
    • Android.bp, native-suite.mk, least-privilege privapp-permissions-alpha-native-suite.xml (zero Google/Vending grants, zero binaries committed), README.md, and test_native_suite_plan.py.
    • Renamed the native dialer Soong module from AlphaPhone to AlphaNativePhone (keeping Android package ai.alphacompute.native.phone) with explicit regression assertions in test_native_suite_plan.py so there is zero Soong module collision with /product/priv-app/AlphaPhone when coexisting.
  • Design System Themes (packages/design-system/themes/, packages/design-system/package.json):
    • Added curated OKLCH theme catalog, color helpers, CSS packs, and RRO generator (catalog.ts, color.ts, index.ts, packs.css, rro.ts), exported via . and ./themes.css in packages/design-system/package.json.

Verification

  • Gradle JVM unit tests (apps/app/android/alpha-native, ./gradlew testDebugUnitTest --rerun-tasks --no-daemon): BUILD SUCCESSFUL (156/156 tasks executed), 44/44 JUnit tests passed (0 failed, 0 errors, 0 skipped: native-ui 4, alpha-overlay 11, alpha-apps/common 7, alpha-apps/assistant 4, alpha-apps/phone 6, alpha-apps/messages 6, alpha-apps/notes 6).
  • AOSP native-suite plan verification (python3 apps/app/aosp/native-suite/test_native_suite_plan.py -v): 6/6 tests passed (including AlphaNativePhone non-collision checks, zero committed binaries, and zero WebView/Capacitor imports in all .kt files).
  • @repo/design-system: build, check, strict tsc --noEmit, eslint --max-warnings 0, stylelint, jscpd --threshold 0 (0 clones), madge --circular (0 cycles), knip (0 unused files/exports in packages/design-system), and pnpm no-bun all passed.
  • Zero existing monolith launcher, aosp.ts, host.json, spec/lock.json, or eliza.lock.json files modified.

Relates to #1865.

…1865)

Add opt-in Slice 1 of the pure native Kotlin/Compose Material 3 Android suite (apps/app/android/alpha-native/), AOSP native-suite prebuilt packaging (apps/app/aosp/native-suite/), and design-system OKLCH theme definitions (packages/design-system/themes/) with zero modifications to the shipping monolith launcher, aosp.ts, host.json, or spec/lock.json.

Key safety guards:
- Rename the dialer Soong module from AlphaPhone to AlphaNativePhone (keeping package ai.alphacompute.native.phone) with regression assertions in test_native_suite_plan.py to avoid any collision with /product/priv-app/AlphaPhone.
- Gate Phase 1 bridge subprojects and alpha-os-settings in alpha-native/settings.gradle.kts until Slices 2-3 land so standalone Gradle JVM unit tests pass cleanly on develop today (44/44 JUnit tests + 6/6 native-suite plan tests).
- Export themes via . and ./themes.css in packages/design-system/package.json so knip, eslint, stylelint, tsc, madge, and jscpd pass cleanly.

This branch was previously deployed

1 inactive deployment
turbo-cache-read — aaf4a9cd Deployed Dec 4, 2026 by NubsCarson via selftest-a #1624
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.

1 participant