Skip to content

Add Web Share Target support and Android AAB build workflow#27

Merged
dubsector merged 2 commits into
mainfrom
share-target-android-build
Jul 7, 2026
Merged

Add Web Share Target support and Android AAB build workflow#27
dubsector merged 2 commits into
mainfrom
share-target-android-build

Conversation

@dubsector

Copy link
Copy Markdown
Owner

Summary

  • Adds Web Share Target API support so users can share videos to Video Shrinker directly from apps like Google Photos, via the OS share sheet
  • Switches the PWA from generateSW to injectManifest (custom src/sw.ts) to intercept the share_target POST, cache the incoming file, then hand it back to the app on the next load — the app still requires the user to pick a target size and hit Convert, it never auto-converts
  • Adds a manual (workflow_dispatch-only) GitHub Actions workflow using Bubblewrap to build a signed Android App Bundle (.aab) for Play Store distribution as a Trusted Web Activity

Test plan

  • npm run build and npm run lint pass cleanly
  • Verified in browser preview: seeded the share-target cache the way the service worker would, navigated to the landing URL, confirmed the file loads into the dropzone with correct name/type, URL is cleaned up, and the cache entry is consumed afterward
  • Real-device test: install the deployed PWA on Android and share a video from Google Photos
  • Trigger the Build Android AAB workflow manually and upload the resulting .aab to Play Console internal testing

Lets other apps (e.g. Google Photos) share video files directly into
Video Shrinker via the OS share sheet. Switches the PWA to a custom
injectManifest service worker to intercept the share_target POST,
stash the file in a cache, and hand it back to the app on next load.

Also adds a manual Bubblewrap workflow to build the signed Android
App Bundle for Play Store distribution as a TWA.
Comment thread .github/workflows/android-build.yml Fixed
CodeQL flagged the workflow for not scoping GITHUB_TOKEN permissions.
@dubsector
dubsector merged commit 7a2b28a into main Jul 7, 2026
4 checks passed
@dubsector
dubsector deleted the share-target-android-build branch July 7, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants