feat(android): Share to Shade — a video from the gallery is sealed on the phone and uploaded

ShadeUpload turns a shared content:// URI into meta and an upload job;
KeystoreSecretFile keeps the owner seed under a Keystore key. The demo app
takes SEND/SEND_MULTIPLE of video, images, audio and documents, uploads in a
foreground service with progress, and its done notification plays the file
or shares the link; the player gets a Share button. The live cross-check
also uploads a content:// share under Robolectric.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-19 00:28:36 +02:00
parent b53dcd7813
commit 0a706cdb47
16 changed files with 733 additions and 11 deletions

View File

@@ -122,6 +122,13 @@ New package **`@shade/media`** — see `docs/media.md`.
(against a new grant-encode vector). `scripts/media-live-kotlin.ts` runs it
against a real TS relay with a lost answer and a refused piece injected;
TS reads the film back byte for byte.
- **Share to Shade (Android).** `UploadJobs` lets an upload survive the app
being killed (sealed once, resumed with the same media id, one link per
shared file); `ShadeUpload` seals a shared `content://` URI with its name,
type, duration and picture size; `KeystoreSecretFile` keeps the owner seed
under a Keystore key. The demo app takes shares from the gallery, uploads
them in a foreground service with progress, and offers the link to play or
share. Its minSdk is now 28.
### Fixed