Repository navigation
docs: document Coil's dormant transitive OkHttp dependency - #464
Conversation
Confirmed Coil never issues a real network request anywhere in this app's actual usage (every AsyncImage/rememberAsyncImagePainter call site is fed a local file://content:// URI, CoilMarkdownImageTransformer explicitly refuses http(s):// links, and no manifest on any flavor declares INTERNET), so the transitive OkHttp dependency it drags onto the F-Droid classpath is present but structurally unable to be used. Also fixes a stale KNOWN_LIMITATIONS.md line describing INTERNET as "stripped from app/src/fdroid/AndroidManifest.xml" — that file (and app/src/play) don't exist; no flavor has ever declared the permission.
QA verdict: PASSAcceptance criteria (issue #463)Issue #463 was a triage request, not a feature checklist. Its "suggested next step" was: (1) confirm whether Coil ever issues a real network request in actual app usage, and (2) if not, document that explicitly in
What I ran
Non-blocking observation (not a fail condition)
AGENTS.md conventionsBranch name ( QA verdict: PASS |
Principal review — verdict:
|
Summary
Issue #463 asked for a triage pass to confirm whether Coil (used app-wide for cover art) ever issues a real network request in this app's actual usage, given that it transitively pulls
com.squareup.okhttp3:okhttp:4.12.0onto the F-Droid runtime classpath.Finding: no. Verified by reading every call site:
AsyncImage/rememberAsyncImagePaintermodel in this app (LibraryItemCard,ContinueCard,PlayerScreen,MiniPlayerBar) is a localfile:///content://URI derived fromcoverArtPath, whichMetadataExtractorpopulates from embedded cover bytes written to local storage — never a URL.CoilMarkdownImageTransformer(used for Markdown reader images) explicitly refuses to resolvehttp(s)://links by design (see its doc comment andresolveMarkdownAssetPath).AndroidManifest.xmlanywhere in the tree (app/src/main,core/tts) declares theINTERNETpermission, and neither doesapp/src/fdroidorapp/src/play— because neither of those source-set directories exists. So even a hypothetical future code path handing Coil a remote URL would have the OS refuse the socket before OkHttp could act.What changed
KNOWN_LIMITATIONS.md: added a bullet documenting Coil/OkHttp as present-but-dormant, per the issue's suggested next step. Also fixed an adjacent stale bullet claimingINTERNETis "stripped fromapp/src/fdroid/AndroidManifest.xml" — that file doesn't exist (never has, pergit log), and the same is true forapp/src/play; no flavor has ever declared the permission. Also updated the outdated "Donations are BTC/XMR addresses only, copy-pasted by the user" line — that flow was replaced by an external-link handoff (seeSupportLink.kt's own doc comment, which independently confirms "this app makes zero network calls of any kind").docs/threat-model.md: added a short section naming the same finding, so it's discoverable from the security-model doc, not just the limitations list.Docs-only change, no code touched, no tests needed per
AGENTS.md's trivial-change exemption.Closes #463