summaryrefslogtreecommitdiff
path: root/FDROID.md
blob: a1cb97b1638ad53ff074451968ae1d90420aafa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# RECCoon — F-Droid submission and release notes

This file is a handoff/runbook. The git log covers the code changes; this covers
everything around the F-Droid submission that is not in the code.

## Status

- App: **RECCoon**, application id `com.tomcooks.reccoon`, version **1.0.0**
  (versionCode 1).
- Source: <https://git.tomcooks.com/reccoon> (cgit; push over SSH as `wuhei`).
- F-Droid MR: <https://gitlab.com/fdroid/fdroiddata/-/merge_requests/51981>
  ("mostly ready", waiting for F-Droid's own test; pipeline is green).
- Release tag: `v1.0.0` → `4b237348a7e7b026e43353d8ea48f8a01ecedae3`.
- Signed APK: `releases/RECCoon-1.0.0.apk`, served at
  <https://git.tomcooks.com/reccoon/plain/releases/RECCoon-1.0.0.apk>.
- fdroiddata metadata (reference copy): `f-droid/com.tomcooks.reccoon.yml`.
- Last upstream pipeline `2936171473`: all 9 jobs green, but it ran on
  `c21010b8` — **before** the R8 shrink and the review fixes. The current head
  (`00b56226`) has no pipeline yet: the fork cannot run CI, so a maintainer has
  to re-trigger it. `detailed_merge_status` currently reads `unchecked`.

## Signing key — DO NOT LOSE

- Keystore: `/home/wuhei/dev/reccoon-keystore/reccoon-release.jks`, alias `reccoon`.
- Password: in `/home/wuhei/dev/reccoon-keystore/README-BACKUP.txt` and the
  git-ignored `/home/wuhei/dev/reccoon/keystore.properties`.
- Certificate SHA-256 (the value in `AllowedAPKSigningKeys`):
  `98ae9f44c34702e9e65bdc6b5bd7098936566be18ac19f96a9eab3dd66347f00`.
- Backed up to KeePassDX on the phone (attachment + password in the entry).
- Losing this key means no more updates under the same app id.

## Releasing a new version

1. Bump `versionCode` / `versionName` in `app/build.gradle.kts`.
2. `./tools/build-release.sh` — builds an **unsigned** release, signs it
   v2/v3-only with preserved alignment, and writes `releases/RECCoon-<v>.apk`
   (also copied to `dist/`).
3. `git add -A && git commit`, then tag `v<version>` and push `main` + the tag:
   `git tag -a v1.0.1 -m "RECCoon 1.0.1" && git push origin main v1.0.1`.
4. Update `commit:` in `f-droid/com.tomcooks.reccoon.yml` to the new tag hash and
   push it to the fdroiddata MR (edit the file on branch `reccoon`), or run
   `./tools/submit-to-fdroid.sh` if starting a fresh MR.
5. Comment on the MR and ask `linsui` to re-trigger the pipeline.

## Signing / build gotchas (why it is set up this way)

These caused real pipeline failures; do not undo them.

- **AGP adds a "Dependency metadata" (PKDS) signing block** that F-Droid's scanner
  rejects. Therefore the release is built **unsigned** and signed afterward with
  the SDK `apksigner` (`tools/build-release.sh`).
- **`META-INF/version-control-info.textproto`** embeds the git revision and breaks
  reproducibility. Disabled with `buildTypes.release.vcsInfo { include = false }`.
- **v1/JAR signing** adds `META-INF/*.SF`/`*.RSA` and changes the bytes. Sign
  **v2/v3 only** (`--v1-signing-enabled false`).
- **apksigner re-aligns the ZIP by default**, changing the bytes. Use
  `--alignment-preserved`.
- **Push the tag** to the source repo — `checkupdates` fails with "No tags found"
  otherwise.
- fdroiddata needs **`subdir: app`** and a **full commit hash** in `commit:`.
- **R8** is enabled with keep rules for the sherpa-onnx JNI classes and custom
  views (`app/proguard-rules.pro`).
- The app id was renamed from `com.wuhei.reccoon`; the app prefers the
  app-specific external model folder and best-effort migrates the old one.

## Review feedback addressed (MR !51981)

- `POST_NOTIFICATIONS` is now requested on Android 13+ (recording/download
  notifications were silent).
- Model download wording changed from "over Wi-Fi" to "over the internet".
- Parakeet model download pinned to a fixed Hugging Face revision.
- `NonFreeNet` anti-feature added, with an `en-US` reason.

Open, offered but not done: metered-connection check, SHA-256 model validation
(currently size-only), and cleaning the stale `cache/reccoon_recording.wav` after a
recording that is killed mid-way.

## Merge-request helper

- `tools/submit-to-fdroid.sh` forks `fdroid/fdroiddata`, adds the metadata on a
  branch and opens the MR. It reads a GitLab token from `~/.config/gitlab-token`
  (never committed). Revoke the token when done.
- The fork's own CI cannot run jobs (GitLab identity verification); F-Droid's
  maintainers trigger the real pipeline. The fork CI is currently disabled to
  avoid empty-pipeline notification noise.

## Model / evaluation notes

- The app now ships **only** the NVIDIA Parakeet v3 model (Whisper removed).
- Evaluation harness and results (Whisper vs Parakeet vs Whistle):
  `tools/whistle-eval/README.md`.
- Desktop model download/side-loading: `tools/download-parakeet.sh`.

## Also done while waiting (goodwill for the queue)

Smoke-tested and commented on: Box Breathing `!51970`, Sun Piano `!52095`,
Zahlenschatzjagd `!52111`.