feat(android): albums from the phone — several files shared at once are one link

Albums.encode and Grant.encode (live grants too) write what TS writes; the
album vector is resealed byte for byte from Kotlin. MediaUploader.uploadAlbum
seals and uploads one. The demo turns a multi-file share into an album and
its player lists an album's items and opens them in place. The live
cross-check uploads an album from Kotlin that TS opens.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-19 00:34:24 +02:00
parent 7d45be8712
commit 65d7a0646f
11 changed files with 202 additions and 33 deletions

View File

@@ -288,7 +288,9 @@ encrypted under a hardware-backed Keystore key.
The demo app shows the whole flow: share a video, photo, song or document to «Share to
Shade», enter the relay once and add the owner id it shows to the relay's
`--owners`; a foreground service seals and uploads with a progress notification, and
the finished notification plays the file or shares its link. Android 15 limits
the finished notification plays the file or shares its link. Several files shared at
once become one album (`uploader.uploadAlbum(Album(title, grants))`), which the player
shows as a list. Android 15 limits
`dataSync` foreground services to 6 hours a day, which is a lot of film; a killed
upload resumes when the service starts again.