Fixed in https://github.com/badbundle/vault-app/pull/638 (merged as 3b15f4ff).
Share sheet:
- The backup's share sheet no longer offers Copy or Markup. It still offers Save to Files, Print, AirDrop and apps.
- Residual: a Copy inside Print's own options still reports a completed print. UIKit gives no way to tell it from a real print, so it's accepted.
No more backup PDFs in tmp/:
- The PDF stays in memory until Save or Print. It's written to a file only then, and deleted as soon as the share sheet closes, whether or not it was saved.
- The Backups page deletes any leftover
vault-export-*.pdffiles when it opens. - If the file can't be written, the page says so in red.
Dates: the docs were right and BackupEventLoggerImpl was wrong. backupDate is now when the backup was made, and eventDate is when it was saved. The logger's date: labels were renamed to backupDate: so the mix-up can't come back. Stored events keep their swapped dates until the next backup; the two are normally minutes apart.
Tests:
- The share-sheet exclusions.
- The temporary file being written only on share and deleted after both a completed and a cancelled share.
- Leftover cleanup.
- Event dates, with a staleness check that fails if they're swapped.
- A snapshot of the write-failure state.
Checked in the simulator:
- Save to Files still records the backup.
tmp/is empty afterwards.- A leftover PDF is swept when Backups opens.