The project's first commit, six days and 16 releases after it started. Everything up to this point existed only as files on one machine, with no history and no undo. Contents: single Gradle module, 62 Kotlin files (11,244 lines) and the Needle 2 JNI bridge, 70 tools, 87 passing unit tests, and the five documents in docs/ plus DEVELOPMENT_HISTORY.md and README.md. Not tracked: build outputs (build/, .cxx/, .gradle/), the release APKs in dist/ (~800 MB, rebuildable), local.properties, and .claude/settings.local.json — all machine-specific. The prebuilt libneedle.a files (38 MB) *are* tracked on purpose, so a checkout builds without depending on Hugging Face still serving them.
2.0 KiB
2.0 KiB
Stitch — working rules
Keep the documentation current (standing rule)
Updating the docs is part of finishing a change, not an optional extra. In the same turn as any feature, bug fix, or release:
DEVELOPMENT_HISTORY.md— update whichever of these the change touches:- Release history table (version, time, trigger, content)
- Timeline
- Problems, blockers and fixes — symptom → root cause → fix → version. Record failed attempts and process mistakes too; the audit trail is the point.
- Testing & verification audit — what was tested, and what is still untested
- Project metrics — re-measure (tests, tools, eval), never estimate
- Known limitations & open risks
README.md— when setup or user-facing behaviour changes.- Mention the doc update in one line at the end of the report to the owner.
Keep the plain-language style: the owner is not an Android developer.
Release checklist
export JAVA_HOME=~/.jdks/jdk-17.0.20.1+1
./gradlew testDebugUnitTest assembleRelease # tests must pass
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
- Bump
versionCodeandversionNameinapp/build.gradle.ktsfirst. - 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.
-PreleaseKeyswitches 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 indocs/SIGNING.md. - Emulator:
./gradlew assembleDebug -Pemulator(x86_64 Needle stub); grant/dev/kvmwithsetfacland remove it afterwards. - Needle eval:
python3 tools-dev/needle/run_eval.py ~/.cache/stitch-dl/needle/linux-x86_64/needle app/build/needle-tools.json 0.4— "wrong" must stay 0.