Notes

3 min read

The first app on a phone

A small task list, written once, ran on the Android emulator as a real Jetpack Compose app.

Our first proof was deliberately small: a task list with a text field, an Add button, filters and a counter.

Burret wrote it as a standard Android project in Jetpack Compose. We built it with the usual Android tools and ran it on the emulator: two tasks added, one ticked, “1 task left”.

It set the rule we still work by: nothing counts until it runs.

Why a task list

A task list looks too simple to prove anything. It is chosen for exactly that reason. It holds the small set of things nearly every app does. It takes text from the person. It keeps a list that grows and shrinks. It has a button that changes the data and a counter that follows the data. It has filters, so the screen shows different things from the same list. If a tool cannot do these, it cannot do much else.

It is also small enough to read in a few minutes. When something goes wrong, there is little to search through, and when it goes right, nobody has to take our word for it.

What Burret wrote

Burret wrote the app as a standard Android project, in Jetpack Compose, Google’s own toolkit for Android screens. It was not a web page inside a shell and not a drawn-from-scratch engine. The project is the ordinary kind that Android’s usual tools open, build and run. That matters for the promise we make about owning your code: if the project is ordinary, you can take it anywhere, because nothing in it needs Burret to keep it alive.

The project writer itself came across from earlier work on 11 November, when this version of Burret started from a written plan. The task list project it writes was checked against the earlier one and came out byte for byte the same, and the app’s own desktop tests passed, three of three.

The run

We built the app with the usual Android tools and installed it on the emulator, a virtual phone on the computer. We typed a task and tapped Add, then added a second. We ticked one of them, and the counter read “1 task left”. That is what the app did when we used it, and it is the whole of the claim.

A release build

A phone app that only runs in debug mode is not yet an app people can install from a store. So we added the release path for Android. Burret now writes a release build that shrinks the code and its resources, and signs it with an upload key. The key is made once for each app, kept on the builder’s own computer, and its password is never printed.

Later we ran it on the emulator. The signed bundle was about 4.0 MB and the signed install file about 1.6 MB. We installed the release file, opened it, typed “Milk”, tapped Add, closed the app and opened it again: the list still showed “Milk” and “1 task left”. That check mattered, because shrinking can break an app at launch, and this one did not break.

One more honest note. Burret’s own review before release still reports a required thing missing: the app has no icon yet, so no app can pass that review today. We recorded it and did not hide it.

The rule it set

From this first run we took a rule that every later note follows: nothing counts until it runs. A feature is not done because the code for it exists, or because a test is written, or because it works on one phone and is expected to work on the other. It is done when it has run, and we can say what we ran, what passed and what we did not run.

That is why these notes say “checked on a PC, not yet run on a Mac” for the iPhone work, and “not built yet” for what is not. It is also the reason the first proof was small: a small proof that really ran is worth more than a large one that did not.

What came after

A week later the same app was written again in Burret’s own language, as plain text, and ran on the emulator keeping its data across a restart. The note “From a description to a running app”, tells that part.

Read next

Why we are building Burret

Read it