docs: branch and release model, a release for every version since 0.1.0
This commit is contained in:
1 parent
5a4470fc5e
commit
5b24df82c6
3 files changed
+37
-8
No files matched your search
@@ -25,6 +25,13 @@ cp app/build/outputs/apk/release/app-release.apk dist/Stitch-<version>.apk
|
|||||||
~/Android/Sdk/build-tools/35.0.0/aapt dump badging dist/Stitch-<version>.apk | head -1 # verify version
|
~/Android/Sdk/build-tools/35.0.0/aapt dump badging dist/Stitch-<version>.apk | head -1 # verify version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- Work on `develop` (or a `feature/<name>` branch off it). For a release, branch `release/<version>` from
|
||||||
|
`develop`, bump the version there, build, test, then merge into `main` and back into `develop`.
|
||||||
|
- Tag it: `v<version>-alpha.N` (tests pass), `-beta.N` (phone checklist passed), plain `v<version>` (used
|
||||||
|
on the phone without problems). Push branches and tags, then create the Gitea release (pre-release for
|
||||||
|
alpha/beta) and attach the APK. Token: `~/.config/gitea/token`, passed per command with
|
||||||
|
`-c http.extraHeader`, never stored in the repo config; send a normal User-Agent to the Gitea API
|
||||||
|
(it rejects Python's default with a 403).
|
||||||
- Bump `versionCode` **and** `versionName` in `app/build.gradle.kts` first.
|
- Bump `versionCode` **and** `versionName` in `app/build.gradle.kts` first.
|
||||||
- Never copy the APK before confirming the build succeeded (a stale copy once shipped as a new version).
|
- Never copy the APK before confirming the build succeeded (a stale copy once shipped as a new version).
|
||||||
- **Signing:** leave the default (debug key) so builds install over the owner's phone. `-PreleaseKey` switches to the real key at `~/.stitch-release-key/` and makes the APK refuse to install over the current app — only use it for the deliberate cutover in `docs/SIGNING.md`.
|
- **Signing:** leave the default (debug key) so builds install over the owner's phone. `-PreleaseKey` switches to the real key at `~/.stitch-release-key/` and makes the APK refuse to install over the current app — only use it for the deliberate cutover in `docs/SIGNING.md`.
|
||||||
|
|||||||
@@ -169,14 +169,11 @@ All times IST. All APKs are in `dist/`.
|
|||||||
| **0.3.6** | 19:39 | 54 MB | Show Markdown nicely | Built-in Markdown renderer: headings, lists, tables, code, quotes, links |
|
| **0.3.6** | 19:39 | 54 MB | Show Markdown nicely | Built-in Markdown renderer: headings, lists, tables, code, quotes, links |
|
||||||
| **0.3.7** | 19:53 | 54 MB | Couldn't remove an alarm by asking | **CRUD across the app**: list/delete alarms, cancel timer, edit reminders, edit/delete calendar events, edit/delete contacts, notes, list memories, clear notifications |
|
| **0.3.7** | 19:53 | 54 MB | Couldn't remove an alarm by asking | **CRUD across the app**: list/delete alarms, cancel timer, edit reminders, edit/delete calendar events, edit/delete contacts, notes, list memories, clear notifications |
|
||||||
| **0.3.8** | 20:27 | 54 MB | "Turn off (last) alarm" not understood; removal one minute early (8:42 vs 8:43) | Exact alarm resolution with minute rounding and snapping, "last" alarm, more phrasings, verify-then-fallback to the Clock app |
|
| **0.3.8** | 20:27 | 54 MB | "Turn off (last) alarm" not understood; removal one minute early (8:42 vs 8:43) | Exact alarm resolution with minute rounding and snapping, "last" alarm, more phrasings, verify-then-fallback to the Clock app |
|
||||||
|
| **0.3.9** | 20 Sep, 23:42 | 54 MB | Alarm removal still failed (claimed success, alarm stayed on); phone numbers garbled in messages and calls; music opened search instead of playing | Alarms turned off **on screen** in the Clock app and checked visually. Phone numbers must come from contacts or the user's own words. Music: taps the first result automatically. Conversation now survives app restarts |
|
||||||
| **0.4.0** | 21 Sep, 01:05 | 54 MB | "Build the hotword in one go; the bubble should also see what's on screen" | **Wake phrase** taught by your voice (MFCC + DTW, fully offline), listening service with battery policy, **bubble** over any app with voice + typing, Stitch registers as a **digital assistant** (power-button hold), Quick Settings tile, and the bubble can **read the app behind it** |
|
| **0.4.0** | 21 Sep, 01:05 | 54 MB | "Build the hotword in one go; the bubble should also see what's on screen" | **Wake phrase** taught by your voice (MFCC + DTW, fully offline), listening service with battery policy, **bubble** over any app with voice + typing, Stitch registers as a **digital assistant** (power-button hold), Quick Settings tile, and the bubble can **read the app behind it** |
|
||||||
| **0.3.9** | 20 Sep, 00:05 | 54 MB | Alarm removal still failed (claimed success, alarm stayed on); phone numbers garbled in messages and calls; music opened search instead of playing | Alarms turned off **on screen** in the Clock app and checked visually. Phone numbers must come from contacts or the user's own words. Music: taps the first result automatically. Conversation now survives app restarts |
|
|
||||||
| **0.4.1** | 22 Sep, 12:51 | 54 MB | Needle garbled a contact name, a typed number and an alarm time; owner asked for a tidier Settings page and tabs on the main screen | **Fixes B-26, B-27, B-28** (a slightly misspelled contact name is still found; your own typed number is used when the model mangles it; "remove the 2:14 AM alarm" reads the time from your words). **Settings** split into six categories (AI & provider, Voice & hotword, Phone control, Permissions & access, On-device model, Default apps), each on its own page with a back arrow. **Main screen tabs:** Chat, Schedule (alarms, reminders, calendar events, soonest first), Saved (notes and memories), Workflows (placeholder) |
|
| **0.4.1** | 22 Sep, 12:51 | 54 MB | Needle garbled a contact name, a typed number and an alarm time; owner asked for a tidier Settings page and tabs on the main screen | **Fixes B-26, B-27, B-28** (a slightly misspelled contact name is still found; your own typed number is used when the model mangles it; "remove the 2:14 AM alarm" reads the time from your words). **Settings** split into six categories (AI & provider, Voice & hotword, Phone control, Permissions & access, On-device model, Default apps), each on its own page with a back arrow. **Main screen tabs:** Chat, Schedule (alarms, reminders, calendar events, soonest first), Saved (notes and memories), Workflows (placeholder) |
|
||||||
|
|
||||||
| **0.4.2** | 24 Sep, 14:11 | 54 MB | Owner tested 0.4.1 on a real phone for the first time and reported back against `docs/STAGE_A_CHECKLIST.md` | **First release driven by real-phone testing.** Fixes B-29 (music now plays instead of tapping the search bar), B-30 (alarm removal), B-31 (the bubble shows the app you were in), B-32 (spoken replies can be stopped, and no longer recite tables), B-33 (wake-phrase false wakes), B-34 (Settings survives rotation). New: **backup & restore**, a **who answers you** setting (Hybrid / on-device only / always my AI), a **Phone control** Quick Settings tile for banking apps, per-recording wake-phrase scoring, and conversational replies instead of status reports |
|
| **0.4.2** | 24 Sep, 14:11 | 54 MB | Owner tested 0.4.1 on a real phone for the first time and reported back against `docs/STAGE_A_CHECKLIST.md` | **First release driven by real-phone testing.** Fixes B-29 (music now plays instead of tapping the search bar), B-30 (alarm removal), B-31 (the bubble shows the app you were in), B-32 (spoken replies can be stopped, and no longer recite tables), B-33 (wake-phrase false wakes), B-34 (Settings survives rotation). New: **backup & restore**, a **who answers you** setting (Hybrid / on-device only / always my AI), a **Phone control** Quick Settings tile for banking apps, per-recording wake-phrase scoring, and conversational replies instead of status reports |
|
||||||
|
|
||||||
| **0.4.3** | 24 Sep, 15:34 | 54 MB | Owner: "I can't save separate settings for each provider" — switching from OpenCode Zen to MiMo and back reported an invalid key | **B-36:** every provider now keeps its own API key, address and model, so you can switch freely. An upgrade moves the existing key onto whichever provider was selected. Plus an eye icon to check a key you've typed, a ✓ in the picker next to providers that are set up, and Robolectric so settings and backups can be tested without a device |
|
| **0.4.3** | 24 Sep, 15:34 | 54 MB | Owner: "I can't save separate settings for each provider" — switching from OpenCode Zen to MiMo and back reported an invalid key | **B-36:** every provider now keeps its own API key, address and model, so you can switch freely. An upgrade moves the existing key onto whichever provider was selected. Plus an eye icon to check a key you've typed, a ✓ in the picker next to providers that are set up, and Robolectric so settings and backups can be tested without a device |
|
||||||
|
|
||||||
| **0.4.4** | 28 Sep, 10:53 | 54 MB | Owner asked what could be taken from **Thinai**, an open-source on-device AI app, then asked for all of it: use Thinai as a model, its prompt-injection hardening, its web search, and its chats panel and model guide | **Chats panel** (☰): every conversation saved; new chat, switch, search, rename, delete, delete all (B-38). **Model guide**: 20 real `.litertlm` models, the phone's RAM/CPU/storage, use-case chips, "runs well / tight / too big" and a speed estimate. **Thinai preset**, and any server on the phone gets the small-model treatment. **Web search** with a Bing fallback, engine resting and a relevance filter (B-37). **Random-id wrapper** for other people's text (B-40). **Wake phrase no longer crashes the app after an update** (B-39, found while testing) |
|
| **0.4.4** | 28 Sep, 10:53 | 54 MB | Owner asked what could be taken from **Thinai**, an open-source on-device AI app, then asked for all of it: use Thinai as a model, its prompt-injection hardening, its web search, and its chats panel and model guide | **Chats panel** (☰): every conversation saved; new chat, switch, search, rename, delete, delete all (B-38). **Model guide**: 20 real `.litertlm` models, the phone's RAM/CPU/storage, use-case chips, "runs well / tight / too big" and a speed estimate. **Thinai preset**, and any server on the phone gets the small-model treatment. **Web search** with a Bing fallback, engine resting and a relevance filter (B-37). **Random-id wrapper** for other people's text (B-40). **Wake phrase no longer crashes the app after an update** (B-39, found while testing) |
|
||||||
|
|
||||||
Every build installs over the previous one: same package `app.stitch`, same signing key, and the version code goes up.
|
Every build installs over the previous one: same package `app.stitch`, same signing key, and the version code goes up.
|
||||||
@@ -253,6 +250,8 @@ All times IST.
|
|||||||
| 28 Sep, ~11:1x | 0.4.4 committed (`33be675`), merged into `master` and tagged `v0.4.4` |
|
| 28 Sep, ~11:1x | 0.4.4 committed (`33be675`), merged into `master` and tagged `v0.4.4` |
|
||||||
| 28 Sep, ~11:3x | **First off-machine copy of the project.** The owner created a private repository on their Gitea server; `master`, `release/0.4.4`, `v0.4.3` and `v0.4.4` pushed and checked against the local copy. The access token was passed per command, not stored in the repository's settings |
|
| 28 Sep, ~11:3x | **First off-machine copy of the project.** The owner created a private repository on their Gitea server; `master`, `release/0.4.4`, `v0.4.3` and `v0.4.4` pushed and checked against the local copy. The access token was passed per command, not stored in the repository's settings |
|
||||||
| 28 Sep, ~11:4x | Owner saw no releases on Gitea: tags don't create them. Created **Gitea releases** for v0.4.3 and v0.4.4 with their APKs attached (checksums verified against `dist/`), and a `release/0.4.3` branch from its tag. Versions before 0.4.3 have no source in git, so they have no branch. Gitea's API refused Python's default User-Agent with a 403; sending a normal one fixed it. `docs/SIGNING.md` gained Bitwarden backup and restore steps |
|
| 28 Sep, ~11:4x | Owner saw no releases on Gitea: tags don't create them. Created **Gitea releases** for v0.4.3 and v0.4.4 with their APKs attached (checksums verified against `dist/`), and a `release/0.4.3` branch from its tag. Versions before 0.4.3 have no source in git, so they have no branch. Gitea's API refused Python's default User-Agent with a 403; sending a normal one fixed it. `docs/SIGNING.md` gained Bitwarden backup and restore steps |
|
||||||
|
| 28 Sep, ~12:0x | Owner saved the signing key in Bitwarden, then asked for a proper branch structure. Explained that alpha, beta and staging are usually stages marked by tags, not branches; owner chose the standard model (`main`, `develop`, `feature/*`, `release/<version>`, `hotfix/*`; alpha/beta/final as tags) and renaming `master` → `main`. Done here and on Gitea, where `main` is now the default |
|
||||||
|
| 28 Sep, ~12:1x | **A branch, tag and Gitea release for every version from 0.1.0.** `dist/` checked first: 17 APKs, versionCodes 1–17 with none missing. The 15 versions before git (0.1.0–0.4.2) got archive branches that hold only their release notes and the APK's SHA-256, since their source no longer exists; their APKs are attached to their releases. All 17 uploaded APKs downloaded back and checked: all identical to `dist/`. Also fixed in this document: 0.3.9's build time (23:42, not 00:05, per the APK) and its place in the release table |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -573,7 +572,7 @@ No system packages were installed. Nothing outside the home folder and the proje
|
|||||||
| Native code | `needle_jni.cpp` + x86_64 stub |
|
| Native code | `needle_jni.cpp` + x86_64 stub |
|
||||||
| Test files / tests | 18 / 124 at 0.4.4 (0 failed, 1 live test skipped by default; 87 at 0.4.3, 80 at 0.4.2, 53 at 0.4.1, 50 at 0.4.0) |
|
| Test files / tests | 18 / 124 at 0.4.4 (0 failed, 1 live test skipped by default; 87 at 0.4.3, 80 at 0.4.2, 53 at 0.4.1, 50 at 0.4.0) |
|
||||||
| Needle eval (64 phrases, threshold 0.4) | tool 48 · tool+args 47 · on-device 24 · **wrong 0** (re-run 28 Sep at 0.4.4: identical) |
|
| Needle eval (64 phrases, threshold 0.4) | tool 48 · tool+args 47 · on-device 24 · **wrong 0** (re-run 28 Sep at 0.4.4: identical) |
|
||||||
| Version control | git, since 25 Sep. Tags `v0.4.3` and `v0.4.4` (committed 28 Sep on `release/0.4.4`, merged into `master`). `dist/` and build outputs excluded. **Online copy since 28 Sep:** private repository `thekhalidsha/stitch` on the owner's Gitea server (`git.mohammedkhalid.in`): `master`, a `release/<version>` branch per version in git (0.4.3, 0.4.4), both tags, and a Gitea release per version with its APK attached |
|
| Version control | git, since 25 Sep. Tags `v0.4.3` and `v0.4.4` (committed 28 Sep on `release/0.4.4`, merged into `main`, formerly `master`). `dist/` and build outputs excluded. **Online copy since 28 Sep:** private repository `thekhalidsha/stitch` on the owner's Gitea server (`git.mohammedkhalid.in`): `main` (default) and `develop`, a `release/<version>` branch and `v<version>` tag for **every version 0.1.0–0.4.4** (0.1.0–0.4.2 as archive entries: notes and APK fingerprint only, since their source was never kept), and a Gitea release per version with its APK attached, all 17 checked against `dist/` |
|
||||||
| On-phone model catalogue | 20 `.litertlm` models from litert-community (sizes from the Hugging Face API, 28 Sep); 8 use cases |
|
| On-phone model catalogue | 20 `.litertlm` models from litert-community (sizes from the Hugging Face API, 28 Sep); 8 use cases |
|
||||||
| Tools available to the AI | 70 |
|
| Tools available to the AI | 70 |
|
||||||
| Tools available to Needle on-device | 32 |
|
| Tools available to Needle on-device | 32 |
|
||||||
|
|||||||
@@ -83,9 +83,32 @@ Stitch currently exposes 70 Android tools through the live registry. They cover
|
|||||||
|
|
||||||
## Build it yourself
|
## Build it yourself
|
||||||
|
|
||||||
The project is a git repository as of 25 Sep 2026, starting at tag `v0.4.3`; each release from here on is
|
The project is a git repository as of 25 Sep 2026. An online copy lives in a private repository on the
|
||||||
its own commit and tag. An online copy lives in a private repository on the owner's Gitea server
|
owner's Gitea server (`https://git.mohammedkhalid.in/thekhalidsha/stitch`), with a **release for every
|
||||||
(`https://git.mohammedkhalid.in/thekhalidsha/stitch`). Build outputs and the APKs in `dist/` are deliberately not tracked, the prebuilt
|
version since 0.1.0**, each with its APK to download.
|
||||||
|
|
||||||
|
### How branches and releases work
|
||||||
|
|
||||||
|
| Branch | What it holds |
|
||||||
|
|---|---|
|
||||||
|
| `main` | Released versions only. The default branch |
|
||||||
|
| `develop` | Where new work comes together |
|
||||||
|
| `feature/<name>` | One piece of work; merged into `develop` when done |
|
||||||
|
| `release/<version>` | One per version: final checks, then merged into `main` and tagged |
|
||||||
|
| `hotfix/<version>` | An urgent fix to a released version, merged into `main` and `develop` |
|
||||||
|
|
||||||
|
Alpha, beta and final are **tags**, not branches, and show on Gitea's Releases page:
|
||||||
|
|
||||||
|
| Tag | Meaning | On Gitea |
|
||||||
|
|---|---|---|
|
||||||
|
| `v0.5.0-alpha.1` | Built, all tests pass on the computer | Pre-release |
|
||||||
|
| `v0.5.0-beta.1` | Passed the owner's phone checklist | Pre-release |
|
||||||
|
| `v0.5.0` | Used on the phone for a while with no problems | Release |
|
||||||
|
|
||||||
|
Every version up to 0.4.4 is marked pre-release, because none has yet passed the full phone checklist.
|
||||||
|
Versions 0.1.0 to 0.4.2 were made before git existed here: their `release/<version>` branches hold only
|
||||||
|
their release notes and the APK's fingerprint, and the APK itself is attached to their Gitea release.
|
||||||
|
The full source starts at `release/0.4.3`. Build outputs and the APKs in `dist/` are deliberately not tracked, the prebuilt
|
||||||
`libneedle.a` files are.
|
`libneedle.a` files are.
|
||||||
|
|
||||||
Requirements: JDK 17, Android SDK (platform 35, build-tools 35.0.0), NDK `30.0.16248370`, CMake 3.22.1. The prebuilt Needle engine needs NDK r30's C++ runtime; older NDKs fail to link. Gradle is 8.14.5 (the wrapper downloads it on first build).
|
Requirements: JDK 17, Android SDK (platform 35, build-tools 35.0.0), NDK `30.0.16248370`, CMake 3.22.1. The prebuilt Needle engine needs NDK r30's C++ runtime; older NDKs fail to link. Gradle is 8.14.5 (the wrapper downloads it on first build).
|
||||||
|
|||||||
Reference in new issue
Block a user