Commit Graph
30 Commits
Author SHA1 Message Date
Dave MarquardandIngmar Stein ba63d58712 Add native Miniflux account type and sync support
Adds Miniflux as a first-class account type alongside Feedbin, Feedly,
NewsBlur, and Reader API accounts, on both macOS and iOS.

Refreshes are incremental: the changed_after parameter means read and
starred status ride along with the entries in a single pass instead of
needing separate status scans. Articles missing locally are backfilled by
ID via GET /v1/entries/{id}; a 404 means the entry is gone server-side, so
its statuses are deleted and it is not requested again on every refresh.
Starred changes go out as idempotent batch updates.

Requires Miniflux 2.0.49 or newer. The server version is detected at
runtime via GET /v1/version and persisted in AccountSettings. Servers
older than 2.3.2 have no /v1/entries/ids and no batch starred updates, so
those paths fall back transparently to paged /v1/entries and per-entry
bookmark toggles.

Both HTTP Basic and API-token authentication are supported, selectable in
the account sheet on either platform. Entered URLs are normalized (scheme
added, trailing slash and /v1 suffix stripped), and adding a second
account for a server that already has one is rejected.

Tests cover folder sync, model decoding, version parsing, the pre-2.3.2
fallback paths, and duplicate-endpoint detection, with JSON fixtures for
the API responses.

The runtime version detection and the duplicate-endpoint check were
informed by IngmarStein's independent Miniflux implementation in #5335.

Written with help from Claude Code.

Co-Authored-By: Ingmar Stein <490610+IngmarStein@users.noreply.github.com>
2026-11-22 07:06:11 -08:00
Brent Simmons c70a7ab4a7 Make iOS 18 the minimum target. 2026-10-21 19:05:11 -07:00
Brent Simmons a76f59c389 Remove test account credentials from Keychain when deleting account. 2026-09-16 09:16:44 -07:00
Brent Simmons 6d259827f0 Use a constant logging system name instead of getting it from Bundle. 2026-08-02 10:33:23 -07:00
Brent Simmons 4a2c62cc6c Make app run on iOS 17 and up. 2026-03-29 21:31:02 -07:00
Brent Simmons 8f28489d38 Fix bug storing credentials in Keychain when there's a previous item. 2026-03-18 15:46:51 -07:00
Brent Simmons e8815abe23 Post error notifications. 2026-03-13 21:24:50 -07:00
Brent Simmons bb790f2a60 Add a delay between retries that gets longer each time Add logging. 2026-03-11 15:13:08 -07:00
Brent Simmons 3702421637 Provide an error description for CredentialsError which includes human-readable details plus the system error code (when there is one). 2026-03-11 14:55:46 -07:00
Brent Simmons 70e2bffdfa Expand CredentialsError to cover the different keychain operations. 2026-03-10 22:06:33 -07:00
Brent Simmons 1ed84ac4e6 Add and use new CredentialsError cases. 2026-03-10 20:11:31 -07:00
Brent Simmons 4b00d41923 Retry calls to SecItemCopyMatching after a short delay to handle transient Keychain errors. 2026-03-07 21:03:05 -08:00
Brent Simmons 66e99faafe Throw the error for the attempt just made not the earlier one. 2026-03-07 20:42:58 -08:00
Brent Simmons 74baa602f4 Set macOS deployment target to macOS 15 and make the app compatible. 2026-02-27 10:26:19 -08:00
Brent Simmons 4a383fff1f Ignore package.resolved in modules. 2026-02-27 10:25:48 -08:00
Brent Simmons 36956c0345 Fix various SwiftLint warnings. 2026-01-02 10:17:41 -08:00
Brent Simmons 4fd16aadc9 Convert from default MainActor isolation to unspecified default isolation. 2025-11-17 21:20:48 -08:00
Brent Simmons ffccb12d7d Require macOS and iOS 26. 2025-11-10 22:05:10 -08:00
Brent Simmons 94aacab419 Convert Secrets and SyncDatabase to approachable concurrency. 2025-11-10 20:45:05 -08:00
Brent Simmons e801d11d81 Simplify Secrets — get rid of the protocol. 2025-11-10 11:04:49 -08:00
Brent Simmons ccb3320e87 Rename Id to ID in Secrets. 2025-11-10 10:05:00 -08:00
Brent Simmons 2fdc011a07 Convert to async/await. 2025-11-08 22:26:17 -08:00
Brent Simmons 502a36787b Convert to async/await. 2025-11-08 12:34:14 -08:00
Brent Simmons 9efde554d4 Clean whitespace-only lines. 2025-11-05 11:22:10 -08:00
Brent Simmons 4b7ea6d920 Mark classes as final when they can be, to communicate intent (don’t subclass these). Fix #4751. 2025-09-16 10:21:29 -07:00
Brent Simmons 69466f2a06 Edit comment to show correct filename. 2025-04-23 21:52:44 -07:00
Brent Simmons acf9de5901 Exclude SecretKey.swift.gyb. 2025-04-23 21:35:15 -07:00
Brent Simmons 6a6c51e27b Ignore SecretKey.swift. 2025-04-23 21:32:08 -07:00
Brent Simmons 6f05edb233 Move Secrets.swift to Secrets package. 2025-04-23 21:19:38 -07:00
Brent Simmons adb6c51a96 Move modules to Modules folder. 2025-04-23 17:13:24 -07:00