Open vtodo.crowdersoup.com links in the Android app (App Links) #150

Merged
CrowderSoup merged 2 commits from crowdersoup/android-app-links into main 2026-12-03 02:19:07 +00:00 AGit
Owner

Closes vTodo task #679: links to https://vtodo.crowdersoup.com open the Android app instead of the browser.

Android

  • autoVerify https intent filter for /, /home/, /my-work/, /board/, /list/, /calendar/, /projects/ and /workspaces/. Sign-in, OAuth (/o/), the API and Settings stay in the browser.
  • ?task=<id> (the website's task link format) opens that task, but only when the link is for the server the phone is signed in to. Anything else opens the task list.
  • AppLink.kt holds the parsing, with unit tests in AppLinkTest.kt.

Server

  • /.well-known/assetlinks.json (config/app_links.py) is built from ANDROID_APP_LINK_FINGERPRINTS. It returns a 404 while that's unset.
  • config/deploy.yml sets the fingerprint to the SHA-256 of the release key CI signs with, read from a CI-built vtodo.apk.

Tests

  • The Django tests (949) pass locally against SQLite.
  • The Android tests and build weren't run locally because this machine has no JDK, so they rely on CI.

After merge
Install the new CI APK after the deploy. Then run adb shell pm get-app-links com.crowdersoup.vtodo, which should show the host as verified, and tap a task link from vJournal.

Closes vTodo task #679: links to https://vtodo.crowdersoup.com open the Android app instead of the browser. **Android** - `autoVerify` https intent filter for `/`, `/home/`, `/my-work/`, `/board/`, `/list/`, `/calendar/`, `/projects/` and `/workspaces/`. Sign-in, OAuth (`/o/`), the API and Settings stay in the browser. - `?task=<id>` (the website's task link format) opens that task, but only when the link is for the server the phone is signed in to. Anything else opens the task list. - `AppLink.kt` holds the parsing, with unit tests in `AppLinkTest.kt`. **Server** - `/.well-known/assetlinks.json` (`config/app_links.py`) is built from `ANDROID_APP_LINK_FINGERPRINTS`. It returns a 404 while that's unset. - `config/deploy.yml` sets the fingerprint to the SHA-256 of the release key CI signs with, read from a CI-built `vtodo.apk`. **Tests** - The Django tests (949) pass locally against SQLite. - The Android tests and build weren't run locally because this machine has no JDK, so they rely on CI. **After merge** Install the new CI APK after the deploy. Then run `adb shell pm get-app-links com.crowdersoup.vtodo`, which should show the host as verified, and tap a task link from vJournal.
Open vtodo.crowdersoup.com links in the Android app (App Links)
All checks were successful
tests / pytest (push) Successful in 1m25s
android / apk (push) Successful in 10m9s
7357eaa570
The app claims the pages it can show (My work, board, list, calendar,
projects, workspaces) with an autoVerify intent filter, and ?task=<id>
opens that task. Sign-in, OAuth, the API and Settings stay in the browser.
A task only opens when the link is for the server the phone signs in to.

The server serves /.well-known/assetlinks.json from
ANDROID_APP_LINK_FINGERPRINTS, and a 404 while that's unset.
Serve the release key's fingerprint in assetlinks.json
All checks were successful
tests / pytest (push) Successful in 1m28s
03e666f33a
Sign in to join this conversation.
No description provided.