diff --git a/DEVELOPMENT_HISTORY.md b/DEVELOPMENT_HISTORY.md index 6cb71a5..f53793b 100644 --- a/DEVELOPMENT_HISTORY.md +++ b/DEVELOPMENT_HISTORY.md @@ -252,6 +252,7 @@ All times IST. | 28 Sep, 10:53 | **0.4.4 built**: 124 tests (0 failed), Needle eval unchanged (wrong 0), version confirmed with `aapt`, new features confirmed present in the APK | | 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: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 | --- @@ -572,7 +573,7 @@ No system packages were installed. Nothing outside the home folder and the proje | 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) | | 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`), with `master`, `release/0.4.4` and both tags | +| 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/` branch per version in git (0.4.3, 0.4.4), both tags, and a Gitea release per version with its APK attached | | 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 Needle on-device | 32 | diff --git a/docs/SIGNING.md b/docs/SIGNING.md index d17de70..8888d23 100644 --- a/docs/SIGNING.md +++ b/docs/SIGNING.md @@ -48,6 +48,39 @@ tar czf stitch-release-key-backup.tar.gz -C ~ .stitch-release-key If you lose it, every future Stitch update requires an uninstall. The key cannot be regenerated — a new key with identical details is still a different key to Android. +### Keeping it in Bitwarden (free plan works) + +Free Bitwarden accounts can't attach files, so the key file goes in as text inside a **Secure Note**. +It is 4,360 bytes, about 5,800 characters as text, well under a note's 10,000-character limit. + +In a terminal on this machine (your own terminal, so the password doesn't end up in a chat log): + +```sh +cat ~/.stitch-release-key/keystore.properties # the passwords and alias +base64 -w0 ~/.stitch-release-key/stitch-release.jks # the key file, as one long line of text +``` + +In Bitwarden: **New → Secure note**, name it `Stitch release signing key`, and add: + +| Field (type) | Value | +|---|---| +| `storePassword` (hidden) | from `keystore.properties` | +| `keyPassword` (hidden) | from `keystore.properties` | +| `keyAlias` (text) | `stitch` | +| `jks-base64` (hidden) | the whole base64 line | +| `sha256` (text) | `91ce998bf62f677b43de1890b4953f0576ed1ebc328eefde301517c58d5164cd` | + +**To restore** on a new machine: paste the base64 line into a file, then + +```sh +mkdir -p ~/.stitch-release-key && chmod 700 ~/.stitch-release-key +base64 -d pasted.txt > ~/.stitch-release-key/stitch-release.jks +sha256sum ~/.stitch-release-key/stitch-release.jks # must equal the sha256 field above +``` + +and recreate `keystore.properties` from the two passwords and the alias (same four lines as today: +`storeFile`, `storePassword`, `keyAlias`, `keyPassword`; `storeFile` is the full path to the `.jks`). + ## How the build uses it It does not, yet. In `app/build.gradle.kts`: