Commit Graph
455 Commits
Author SHA1 Message Date
Brent Simmons ad51fd4fbf Add canResume function that takes min and max limits. 2026-03-16 16:54:27 -07:00
Brent Simmons f1c37a2119 Delete account settings on deleting account. 2026-03-16 14:27:50 -07:00
Brent Simmons 4bd3da7dc5 Make refreshInProgress public. Needed for account settings control validation. 2026-03-16 11:35:50 -07:00
Brent Simmons 432468c302 Delete from the sync queue statuses that have been sent to the server, to fix a bug where all the statuses are sent every time. Fixes #5192. 2026-03-16 09:36:52 -07:00
Brent Simmons 01c3671e4d Handle app-background notification. 2026-03-14 22:00:25 -07:00
Brent Simmons 9cc400c3ec Handle renaming of function. 2026-03-14 21:52:20 -07:00
Brent Simmons 52622366c9 Create AppNotification struct. 2026-03-14 21:51:46 -07:00
Brent Simmons eb099f539b Empty Article caches on app-background and low-memory notifications. 2026-03-14 21:51:27 -07:00
Brent Simmons 16ac60ba41 Rename Notifications.swift to AppNotifications.swift. 2026-03-14 21:47:52 -07:00
Brent Simmons c38cfbb9be Import API URL properly from account settings. Add tests. 2026-03-14 10:37:20 -07:00
Brent Simmons f8980a51b5 Add Debug menu command Vacuum Databases. 2026-03-13 21:54:13 -07:00
Brent Simmons e8815abe23 Post error notifications. 2026-03-13 21:24:50 -07:00
Brent Simmons fe4b0f1219 Post appDidEncounterError notification on main thread. 2026-03-13 20:51:22 -07:00
Brent Simmons 64540dbde5 Vacuum FeedSettings and Sync databases on launch. 2026-03-13 09:01:45 -07:00
Brent Simmons 84e3167282 Call FMDatabase(extras).vacuum, which now does logging, so we know how long it takes. 2026-03-13 08:52:55 -07:00
Brent Simmons 8cf466028a Use resultSet.compactMap. 2026-03-13 08:52:25 -07:00
Brent Simmons f3ea3e496a Add logging to vacuum command. 2026-03-13 08:51:00 -07:00
Brent Simmons ba796c6c4d Vacuum error log database at startup. 2026-03-13 08:41:55 -07:00
Brent Simmons 5f77fd1273 Add logging for articlesZone.fetchChangesInZone. 2026-03-12 21:47:38 -07:00
Brent Simmons 65b3f1dbc8 Add logging for feed parser errors. 2026-03-12 21:47:18 -07:00
Brent Simmons 139ba183b9 Log credentials errors. 2026-03-12 21:30:40 -07:00
Brent Simmons d4c671e79a Add operation to error log. 2026-03-12 20:55:30 -07:00
Brent Simmons c61d2fb97a Add operation and other data to error log. 2026-03-12 20:53:59 -07:00
Brent Simmons cfb561d4b2 Add filename, functionname, linenumber to error log. 2026-03-12 20:53:26 -07:00
Brent Simmons 71ef860b09 Add operation to error log notification. 2026-03-12 20:51:39 -07:00
Brent Simmons 3587b5eba0 Add operation column that says what the app was actually doing. 2026-03-12 20:19:49 -07:00
Brent Simmons 86a64a7cde Delete AccountDidEncounterSyncError. 2026-03-12 19:42:46 -07:00
Brent Simmons eb92bac999 Post .appDidEncounterError notification. 2026-03-12 19:42:34 -07:00
Brent Simmons 90d599ef8d Add helper method for creating userInfo for error log notification. 2026-03-12 19:41:06 -07:00
Brent Simmons 4f60441b91 Add ErrorLog dependency. 2026-03-12 19:31:36 -07:00
Brent Simmons 7ca14f883e Fix a potential crash in Platform when doing unit tests. 2026-03-12 19:28:16 -07:00
Brent Simmons 5c7b8cff07 Move ErrorLog stuff to its own module. Extend it to report errors for components other than Accounts. 2026-03-12 19:27:56 -07:00
Brent Simmons 1f9075b49d Define AccountDidEncounterSyncError. Create AccountType.displayName. 2026-03-12 13:43:05 -07:00
Brent Simmons 79c5c66a52 Set up ErrorLogDatabase. Post sync errors. 2026-03-12 13:42:42 -07:00
Brent Simmons 9d88f038bf Observe errors and add entries. 2026-03-12 13:42:16 -07:00
Brent Simmons 69d6ffd831 Post sync errors. 2026-03-12 13:23:36 -07:00
Brent Simmons 9f5a874d81 Call delegate on http error and post sync error. 2026-03-12 13:06:20 -07:00
Brent Simmons 9c47a839e5 Post sync errors. 2026-03-12 13:03:12 -07:00
Brent Simmons 28209f6ab2 Add error log database. 2026-03-12 09:29:22 -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 d0020b88c2 Make accountSettings not weak. No need for it to be weak. Not a retain loop. 2026-03-10 19:58:36 -07:00
Brent Simmons c452b7b099 Create credentials dictionary only when at least one component is non-nil. 2026-03-10 16:35:43 -07:00
Brent Simmons 8556cb991f Add fetchFromSettingsFileIfNeeded for use when piece of data is unexpectedly nil. Also: set username from legacy storage only when not nil. 2026-03-10 16:35:24 -07:00
Brent Simmons 58a5ad90fe Make AccountSettings UserDefaults-backed instead of a small SQLite database. 2026-03-10 15:52:54 -07:00
Brent Simmons dc7a116d4c Update packages. 2026-03-08 20:42:02 -07:00
Brent Simmons 0591b5eed4 Skip vacuuming if running unit tests. Prevents a zillion little prefs being set in user defaults. 2026-03-08 20:40:22 -07:00
Brent Simmons 2e92347559 Add tests for account settings and feed settings importers. 2026-03-08 19:43:25 -07:00