fix: cut 1.0.2 with versionCode 3, because Play has already used 2
Play Console rejected the 1.0.1 bundle with "Version code 2 has already been used. Try another version code." - the upload consumed code 2, so re-uploading that artifact can never succeed. The next release therefore takes versionCode 3 and versionName 1.0.2, which also gives the pending edge-to-edge fix a version of its own instead of leaving it unreleased. Rebuilt both artefacts from the new configuration and checked them rather than assuming the bump propagated: aapt2 dump badging on the release APK reports versionCode='3' versionName='1.0.2' targetSdk=36, apksigner confirms the upload certificate (AA:8C:3D:6C:...:4C:7A), and the permission set is unchanged - still no INTERNET. The AAB is 2,940,935 bytes (sha256 534e5ae9...), and the unit suite is green: 80 tests, 0 failures, 0 errors. The documents that carried versionCode 2 as the next upload are corrected: the checklist's versioning step now quotes the rejection, its artifact row carries the new size and hash, ROADMAP points at versionCode 3, and the 1.0.1 figures stay as history rather than being overwritten. The first-upload language around pricing is no longer true either, so it is rewritten: code 2 has already been uploaded, which means the Console pricing state has to be checked before this rollout instead of set from scratch. If Products > App pricing still offers "Make your app paid", it has to be done before the app is offered for free, because that switch is one-way. CHANGELOG records the new 1.0.2 section with both the versionCode explanation and the edge-to-edge fix, and the checklist gains a ready-to-paste 1.0.2 "What's new" block.
This commit is contained in:
@@ -28,9 +28,11 @@ the rest are things you must do in the Play Console / with your own accounts.
|
||||
|
||||
## 2. Versioning
|
||||
|
||||
- [x] Set `versionName` (user-visible) **[code]** — `1.0.1` in `app/build.gradle.kts`.
|
||||
- [x] `versionCode` **[code]** — currently **2**. It is the counter Play orders uploads by, so the
|
||||
first upload will be 2 and every later upload must be higher.
|
||||
- [x] Set `versionName` (user-visible) **[code]** — `1.0.2` in `app/build.gradle.kts`.
|
||||
- [x] `versionCode` **[code]** — currently **3**. It is the counter Play orders uploads by, and
|
||||
every later upload must be higher. **2 is already used**: Play rejects re-uploading the 1.0.1
|
||||
bundle with *"Version code 2 has already been used. Try another version code."* — 1 was the
|
||||
1.0.0 build, so 1.0.2 takes **3**.
|
||||
|
||||
## 3. Build the release artefacts
|
||||
|
||||
@@ -39,12 +41,14 @@ the rest are things you must do in the Play Console / with your own accounts.
|
||||
./gradlew :app:assembleRelease # -> APK for local testing
|
||||
```
|
||||
|
||||
- [x] **[code]** verified 2026-10-13: `bundleRelease` and `assembleRelease` both succeed.
|
||||
`app/build/outputs/bundle/release/app-release.aab` is 2,944,100 bytes
|
||||
(`sha256 f8e6a29a0daf60d025409e19be878c3e8f1359a06b3f9fca300bb4aec9ebb726`) and is signed with
|
||||
the upload key. The release APK reports `versionCode=2 versionName=1.0.1 targetSdk=36` and
|
||||
- [x] **[code]** verified 2026-10-18: `bundleRelease` and `assembleRelease` both succeed.
|
||||
`app/build/outputs/bundle/release/app-release.aab` is 2,940,935 bytes
|
||||
(`sha256 534e5ae9c9a62ca13c93dd2da52d8228ec72aed14a1fe830f6e0def17b22e9f5`) and is signed with
|
||||
the upload key. The release APK reports `versionCode=3 versionName=1.0.2 targetSdk=36` and
|
||||
exactly the permission set listed in step 5 — **no `INTERNET`**, so "nothing leaves the
|
||||
device" holds in the shipped artefact, not just in the source manifest.
|
||||
(The 1.0.1 build is the one Play recorded as `versionCode` 2: 2,944,100 bytes,
|
||||
`sha256 f8e6a29a…`.)
|
||||
- [ ] Upload the **`.aab`** (not the APK) to the Play Console.
|
||||
⚠️ **Expect a native-debug-symbols warning here, and ignore it.** Play scans the bundle, finds
|
||||
`base/lib/<abi>/libandroidx.graphics.path.so`, and reports *"This App Bundle contains native
|
||||
@@ -75,12 +79,13 @@ Ready-to-paste copy and the generated graphics live in
|
||||
[docs/STORE_LISTING.md](STORE_LISTING.md) (milestone M10). Everything below is a Console
|
||||
action except the items marked **[code]**.
|
||||
|
||||
- [ ] ⚠️ **App pricing — do this before the first upload; it is the one irreversible decision.**
|
||||
Play, *Set up your app's prices*: *"You can change your app from paid to free. Once your app has
|
||||
- [ ] ⚠️ **Confirm App pricing is set to paid before rolling out — it is the one irreversible
|
||||
decision.** Play, *Set up your app's prices*: *"You can change your app from paid to free. Once your app has
|
||||
been offered for free, the app can't be changed to paid. If you want to charge for the app, you
|
||||
need to create a new app with a new package name and set a price."* This release has not been
|
||||
uploaded yet (`versionCode` 2 is the first), so a paid app is still possible; after the first
|
||||
upload to any track it is not. In the Console:
|
||||
need to create a new app with a new package name and set a price."* **`versionCode` 2 (1.0.1)
|
||||
has already been uploaded and consumed**, so check *Products > App pricing* before this
|
||||
rollout: if it still offers **Make your app paid**, do it now — once the app is offered for
|
||||
free that option is gone for good. In the Console:
|
||||
1. **Set up a payments profile** with your tax rates (Play asks the first time you set a price).
|
||||
2. **Products > App pricing** → *"Your app is"* → **Make your app paid**, and enter the base price
|
||||
**€2.99** (one-time). Leave *"Default price includes tax"* off unless €2.99 is meant to be the
|
||||
@@ -497,9 +502,9 @@ action except the items marked **[code]**.
|
||||
|
||||
## 7. Release notes ("What's new") and rollout
|
||||
|
||||
⚠️ **Which block applies first:** `versionCode` is already **2** (`versionName` 1.0.1), because
|
||||
1.0.1 was cut before anything reached Play — so the *first* upload is 1.0.1 and takes the
|
||||
**initial release** block. The 1.0.1 block below applies only once 1.0.0 exists on a track.
|
||||
⚠️ **Which block applies:** `versionCode` **2** (1.0.1) is already in Play — its upload is what
|
||||
consumed the code — so the next upload is **1.0.2 / `versionCode` 3** and takes the 1.0.2 block
|
||||
below. The initial-release block is kept for the record; it was the 1.0.1 upload.
|
||||
|
||||
|
||||
Release notes are **not stored in this repo** — they are typed into the Play Console
|
||||
@@ -534,6 +539,12 @@ Ready-to-paste block for the first release:
|
||||
• No ads, no account, works fully offline
|
||||
</en-US>
|
||||
|
||||
Ready-to-paste block for **1.0.2** (the `versionCode` 3 build):
|
||||
|
||||
<en-US>
|
||||
• Maintenance release with compatibility fixes
|
||||
</en-US>
|
||||
|
||||
Ready-to-paste block for **1.0.1** (the scan-robustness patch):
|
||||
|
||||
<en-US>
|
||||
|
||||
+6
-5
@@ -30,7 +30,7 @@ Legend: ✅ done · 🚧 in progress · ⏳ not started · 💡 candidate (propo
|
||||
| ~~Large-library scan stall~~ ✅ **fixed — verified on device** | The 5,363-photo library used to freeze at *“74 / 100 · Comparing file signatures…”* (a **blocked syscall**: zero CPU, workers sleeping). `BoundedCall` now abandons a stuck provider call **and** trips a stall breaker after three consecutive timeouts. **Verified on the real test device (Android 12 / MIUI): the scan completes — 20.2 s cold, 11.0 s warm, 15 groups, 6 unreadable — where it used to hang.** Covered by `BoundedCallTest` and `ScanEngineEndToEndTest` |
|
||||
| ~~Unreleased `BoundedCall` fix~~ ✅ | The provider-call deadline shipped in **1.0.1** (`versionCode` 2) |
|
||||
| **Play Console: foreground-service declaration** | Declaring the `dataSync` type (App content › Foreground service permissions) is release-blocking. **[code]** the manifest already declares it, [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) step 5 carries all four things the form asks for (description, defer/interrupt impact, use case **Local processing: Other**, video link), and the **video now exists**: recorded on the test device on 2026-10-14 with `INSTALL=0 WARMUP=0 tools/record-fgs-demo.sh`, then verified frame by frame rather than assumed — intro at 0 s, the scan starting, **~6 s of the shade with the live "Finding duplicate photos / Looking for visually similar photos… / CANCEL" notification while the scan kept running**, and the results at the end. It is committed, and that is what published it — the link is the file's **page** in Gitea (`/src/branch/main/…`), which plays it anonymously. The `/raw/` URL is deliberately not the link: Gitea sends `Content-Security-Policy: default-src 'none'` with raw responses, so a browser navigating to the video sits on a blank tab even though the bytes are perfect. Pasting the page URL into the declaration is all that is left. Two details of the take are recorded in step 5 because they each cost an attempt: a *warm* scan is 5.4 s, shorter than the shade takes to open, so `WARMUP=0` films the cold one; and MIUI refuses `adb install` outright, so `INSTALL=0` records with the build already on the device. On a KVM-less emulator the same video cannot be made at all: every scan start dies as `am_crash … ForegroundServiceDidNotStartInTimeException` → *Force finishing activity* with no `am_kill`, i.e. emulation is too slow to reach `startForeground()` inside Android's budget (QEMU's `-icount` clock dilation made it work once, not reproducibly) |
|
||||
| **Remaining Play paperwork** | Console actions only, no code: the **first upload + Play App Signing enrolment**, the **hosted privacy policy URL** (the working copy is now published to Gitea as [`fishfacegit/foto-duplicate-finder`](https://gitea.softwareapp-hb.de/fishfacegit/foto-duplicate-finder), so the policy renders at a public, login-free URL and only the Console paste is left), **Data safety**, the **Photo/video permissions** declaration, the **content rating / audience / app access / ads / advertising ID / export** questions, and the **listing copy + the three screenshot sets** (phone, 7-inch and 10-inch, all captured), plus the **paid-app setup**: a payments profile with tax rates, the €2.99 price and the 14-day €1.49 launch sale on *Products > App pricing* — the price must be set before the first upload, because free → paid is not possible afterwards (M9). Keystore, `versionCode`, listing copy, graphics, permission audit and the signed `.aab` (`sha256 f8e6a29a…`) are all in place; rollout goes internal → closed → production. Step-by-step: [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) |
|
||||
| **Remaining Play paperwork** | Console actions only, no code: **confirm Play App Signing enrolment from the 1.0.1 upload**, the **hosted privacy policy URL** (the working copy is now published to Gitea as [`fishfacegit/foto-duplicate-finder`](https://gitea.softwareapp-hb.de/fishfacegit/foto-duplicate-finder), so the policy renders at a public, login-free URL and only the Console paste is left), **Data safety**, the **Photo/video permissions** declaration, the **content rating / audience / app access / ads / advertising ID / export** questions, and the **listing copy + the three screenshot sets** (phone, 7-inch and 10-inch, all captured), plus the **paid-app setup**: a payments profile with tax rates, the €2.99 price and the 14-day €1.49 launch sale on *Products > App pricing* — the price must be confirmed before the next rollout, because free → paid is not possible once the app has been offered for free (M9). Keystore, `versionCode`, listing copy, graphics, permission audit and the signed `.aab` (`sha256 534e5ae9…`, `versionCode` 3) are all in place; rollout goes internal → closed → production. Step-by-step: [PLAY_RELEASE_CHECKLIST](PLAY_RELEASE_CHECKLIST.md) |
|
||||
| ~~Store screenshots need one re-shoot~~ ✅ **done — verified on device** | The old captures showed the *Photo access needed* banner (an app-op is not a grant) and `03-results.png` showed the developer's own library. After a real grant the set was re-shot over the generated demo library: **01-empty** (no tap needed — results and selection live in `ScannerViewModel`, so force-stop + relaunch returns to the empty state with the grant still in place), **02-scanning** (`5353 / 5385`), **03-results** (**17 groups, 54 of 5385 photos, 83.5 MB reclaimable**; the headline group's 43.1 MB out-ranks the device's own 39.8 MB, so no real photo is in frame) and **04-options**. Captures are taken by watching for UI **text** changes, because MIUI refuses synthetic taps (`INJECT_EVENTS`). The demo library is deleted from the test device afterwards — MediaStore **5,386 → 5,364** rows, and the 22 stale rows it leaves in the hash index are pruned by `PhotoIndexStore.pruneTo` on the next scan. Deliberately not captured: the staged state and the system confirmation dialog, because staging clears the demo group and would put real photos back in frame. Details: [STORE_LISTING](STORE_LISTING.md) |
|
||||
| ~~Tablet store screenshots outstanding~~ ✅ **done — captured on AVDs** | Play has a **7-inch tablet** and a **10-inch tablet** screenshot slot of its own (asking for **≥ 4** screenshots on large screens). Both are now captured on AOSP Android 12 AVDs — `Nexus 7 2013` (1200×1920, `sw600dp`) and `medium_tablet` (1600×2560, `sw800dp`) — because this machine exposes no `/dev/kvm`: they ran in **pure software emulation** (`-accel off -no-window -gpu swiftshader_indirect`), ≈3 min to boot, with `hide_error_dialogs` on so SystemUI's ANR dialog could not sit in frame. Four screens per tablet over the same generated demo library: empty, scanning (20 / 22), results (**2 groups · 16 of 22 photos · 43.7 MB reclaimable**, 39.7 s / 53.1 s) and Options. `tools/make-store-screenshots.sh` is form-factor aware (`FORM_FACTOR=phone\|tablet-7in\|tablet-10in`) and the tablet form factors crop **0 px** of chrome, because a tablet frame is already inside Play's 2:1 cap. Recipe: [STORE_LISTING](STORE_LISTING.md) |
|
||||
| **Device-only verifications** | RAW/DNG files, a *real* iPhone HEIC with a non-upright EXIF orientation, permission revoked mid-scan, and the Android 14 “Selected photos” flow. ✅ The **index-reuse** check is done: after a scan the index holds **5,363 rows, 5,357 with a perceptual hash**, and a second scan runs in **11.0 s vs 20.2 s** cold |
|
||||
@@ -47,7 +47,8 @@ Legend: ✅ done · 🚧 in progress · ⏳ not started · 💡 candidate (propo
|
||||
## Suggested order
|
||||
|
||||
1. ✅ **Done** — the scan-stall hardening and the `BoundedCall` fix shipped as **1.0.1**
|
||||
(`versionCode` 2). Only the on-device re-check of the 5,363-photo scan remains.
|
||||
(`versionCode` 2). 1.0.2 (`versionCode` 3) is the build to upload, because Play has already
|
||||
consumed code 2. Only the on-device re-check of the 5,363-photo scan remains.
|
||||
2. Finish the Play Console paperwork and roll out through **internal → closed → production**.
|
||||
3. ✅ **Done** — **M10 store assets**: the icon and feature graphic are generated from the
|
||||
app's own vectors, the screenshot normaliser enforces Play's 2:1 limit, the listing copy is
|
||||
@@ -59,8 +60,8 @@ Legend: ✅ done · 🚧 in progress · ⏳ not started · 💡 candidate (propo
|
||||
4. **Colour signature** — the flat-colour false-positive fix.
|
||||
5. ✅ **Done** — **M9 monetisation**: decided as a **one-time paid app (€2.99, launched with a 14-day
|
||||
50% sale at €1.49)**, which needs no code at all. The remaining work is Console-only — a payments
|
||||
profile, the price and the launch sale on *Products > App pricing* — and the price must happen
|
||||
before the first upload, because free → paid stops being possible once the app has been offered
|
||||
for free.
|
||||
profile, the price and the launch sale on *Products > App pricing* — and the price has to be
|
||||
confirmed before the next rollout, because free → paid stops being possible once the app has been
|
||||
offered for free.
|
||||
|
||||
Deliberately deferred: **video support** and the **“similar shots”** section.
|
||||
|
||||
@@ -308,12 +308,13 @@ Why paid rather than free-with-a-Pro-unlock:
|
||||
- There is no ad SDK and there never will be: an ad SDK adds the `INTERNET` permission, and the
|
||||
merged-manifest and Data Safety claims below would immediately stop being true.
|
||||
|
||||
⚠️ **This is the last moment the choice is still reversible.** Play's rule, from *Set up your app's
|
||||
prices*: *“You can change your app from paid to free. Once your app has been offered for free, the
|
||||
app can't be changed to paid. If you want to charge for the app, you need to create a new app with a
|
||||
new package name and set a price.”* Nothing has been uploaded yet (`versionCode` 2 is still the first
|
||||
release), so a paid app is still possible; after the first upload to any track it is not. Going free
|
||||
later stays one click.
|
||||
⚠️ **The choice is only reversible while the app has not been offered for free.** Play's rule, from
|
||||
*Set up your app's prices*: *“You can change your app from paid to free. Once your app has been
|
||||
offered for free, the app can't be changed to paid. If you want to charge for the app, you need to
|
||||
create a new app with a new package name and set a price.”* **`versionCode` 2 (1.0.1) has already
|
||||
been uploaded and consumed**, so the pricing state has to be checked in the Console rather than set
|
||||
from scratch: if *Products > App pricing* still offers **Make your app paid**, do it before rollout;
|
||||
once the app is offered for free the option is gone. Going free later stays one click.
|
||||
|
||||
**Price: one-time, base €2.99 EUR, launched with a 14-day 50% sale at €1.49.** Both are **net** prices:
|
||||
the Console's price field excludes tax, and the buyer is shown the gross price with VAT added on top
|
||||
|
||||
Reference in New Issue
Block a user