Oka — one typed Dart surface to build, run, patch, and distribute apps

TL;DR — Oka is a declarative application platform: one typed Dart file
you own (tool/oka_pipeline.dart) composes the whole loop — build without
Gradle, run on devices, patch running programs live, supervise processes,
and publish to stores. Humans and agents operate it identically: every
operation has a plan you can read (oka explain), a probe you can run
(oka debug step), and failures that name the fix.
oka init → oka build apk → oka run device.
Who it's for: Flutter teams and release engineers who want a single
inspectable build surface; agents and CI that need oka explain and
actionable errors; anyone shipping store-free updates to installed apps.
Not a full Gradle/AGP emulator — see FAQ and
charter.
Four pillars, one surface
Oka started as a no-Gradle Android build system. The same laws — typed
values, validated plans, evidence over demos — now carry three more
pillars, each at a different, honestly-labeled maturity:
| Pillar | What it does | Maturity |
|---|
| Build | No-Gradle APK/AAB: flutter assemble + direct SDK tools, provenance on every artifact, byte-equivalence gates | Production — on pub.dev (oka 0.12.x train) |
| Distribute | Play / AppGallery / RuStore / web stores, multiple developer accounts, white-label brands — dry-run by default | Production — on pub.dev |
| Update | Live per-unit patching of running programs: the oka run dev session, oka ship store-free air channel, AOT slots | Gate-proven experimental — runs from a checkout |
| Operate | Declarative supervisor, process leases, session-state, content-addressed artifact store with delta chains | Production — supervisor at adoption rung L0 |
The design laws are constant across pillars: configuration is typed Dart
you own, every chain validates before any tool runs, and an agent can set
up and fix things from oka's messages alone. The full north star,
invariants, and expansion gates live in the
charter.
Why oka is different
Your app is one codebase — but building it is scattered across Gradle DSL,
XML manifests, plists, proguard rules, and per-store index.html surgery.
None of it typed, all of it drifting. Oka collapses all of that into one
typed, copyable Dart file that both humans and AI agents can run, inspect,
and fix.
| Gradle + AGP | Oka |
|---|
| Config | 5+ formats, hidden defaults | One typed Dart file, in your repo |
| Every build pays | ~30s daemon/configuration tax | Direct SDK tools, ~23s incremental |
| First build | Works by convention, breaks mysteriously | oka explain shows the whole plan before any tool runs |
| When it fails | Generated glue hides the cause | The error names the failing step and the fix |
| Stores & accounts | Per-store branches and gradle flavors | More targets in the same file — dry-run by default |
| AI agents | Fight the build | Built for them: plans, probes, byte-equivalence gates |
Three words carry the design: