Commit Graph
41 Commits
Author SHA1 Message Date
Brent Simmons 2ce850441b Make AppDefaults an enum instead of singleton class. 2026-10-22 13:46:32 -07:00
Brent Simmons bfd62718e4 Respect unread count display setting in widgets. 2026-10-06 11:00:33 -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 eb82dd3ce3 Fix hang in WidgetDataEncoder by fetching async. Use count queries in places where we were fetching articles just to get counts. 2026-06-13 14:11:58 -07:00
Brent Simmons 1066ca2720 Continue post-DatabaseResult simplification. 2026-06-10 16:59:28 -07:00
Brent Simmons 9eb64f4e6c Sort feed names using localizedCaseInsensitiveCompare. Simplify ArticleSorter. 2026-05-16 17:57:08 -07:00
Brent Simmons 28bb8f7a25 Use import os rather than import os.log. 2026-03-23 11:23:15 -07:00
Brent Simmons 092283522f Refer to ArticleStringFormatter.shared instead of to previous static version. 2026-03-07 17:05:41 -08:00
Brent Simmons c9ce198eef Fixed some SwiftLint issues. 2026-01-14 21:05:05 -08:00
Stuart Breckenridge 140f5d7a2b 🚑️ Fixes widget crash and alignment issues 2026-01-13 22:22:27 +08:00
Brent Simmons 7df7a40018 Fix lint issues. 2026-01-08 09:07:53 -08:00
Stuart Breckenridge 212d3973a2 ✨ Add Lock Screen Summary Widget 2026-01-08 16:50:57 +08:00
Stuart Breckenridge 6458065e6a ⚡️ Widget encoding is syncronous
When the widget encoding is completed asynchronously and wrapped in `Task { @MainActor in }`, the app rarely (if ever) refreshes the widget unless attached to the debugger (in which case, unhelpfully, it works fine).

My thinking is that the app is being terminated _before_ `encode` is complete and therefore the call to refresh widget timelines is not happening consistently.

Moving the widget to synchronous encoding has resolved the widget refresh behaviour.
2026-01-08 13:50:36 +08:00
Stuart Breckenridge e55e5b5b3d ⚡️ Improve performance of Widget
Rewrite `encode()`:
- Remove file removal checks, writing data will replace
- Compare existing widget data to new data and determine which widgets actually need refreshed

Refactor `flushSharedContainer` to `removeStaleFaviconsFromSharedContainer`:
- No longer nuked in full
- Only favicons not accessed in the last seven days are deleted (in DEBUG builds this is 30 seconds)

Improve `writeImageDataToSharedContainer`:
- Favicons now use their md5 digest instead of a UUID (thus one image per feed, instead of one image per article)
- If the favicon exists it is not rewritten

Add `reloadTimelines`:
- Compares existing article arrays to new article arrays and will only reload specific widget timelines where there is a difference.
- `LatestArticle` now conforms to `Hashable` to make this possible.

Improve `SceneDelegate` selection logic:
- select the correct feed before selecting the article
2026-01-08 12:38:34 +08:00
Brent Simmons b681dea6fa Convert to async/await. 2025-11-16 19:59:15 -08:00
Brent Simmons 57da6ed63c Convert ArticlesDatabase to approachable concurrency. 2025-11-15 10:13:30 -08:00
Brent Simmons 1f51119aa3 Convert RSCore to approachable concurrency. 2025-11-13 17:11:34 -08:00
Brent Simmons 5e39b569a7 Merged main to branch. 2025-11-01 15:53:33 -07:00
Brent Simmons d121f9e305 Fix build error. 2025-10-02 21:18:28 -07:00
Brent Simmons a38c07a4d2 Fix build errors. 2025-10-02 20:56:23 -07:00
Brent Simmons df6d4f059e Replace OSLog with Logger. 2025-10-02 20:34:01 -07:00
Stuart Breckenridge 61a2901921 🩹 Fix #4727 by adding sort order 2025-08-19 19:43:46 +08:00
Brent Simmons 0874551cde Bring in code from previous iOS release. 2024-12-04 17:14:00 -08:00
Maurice Parker 5b00484792 Revert "Potential fix for #3200" 2021-11-13 09:38:57 -06:00
Stuart Breckenridge 4df25ae2f6 Potential fix for #3200 2021-10-16 13:20:37 +08:00
Stuart Breckenridge 1ca0df67a4 widget and unread badge counts are correct
also - counts in the widget revert back to using data available in the SmartFeedsController.
2021-03-26 11:36:20 +08:00
Stuart Breckenridge ca45ea6e05 Widget now uses limits 2021-03-24 20:30:21 +08:00
Maurice Parker 53e0354f93 Removed datePublished force unwrap 2021-02-24 16:00:01 -06:00
Stuart Breckenridge 474fbedbc3 Widget
• Hides count text when there are no articles beyond what is displayed.
• Fixes html appearing in titles.
2021-01-30 09:02:42 +08:00
Stuart Breckenridge 5780c8066d refreshTimeline removed 2020-12-03 20:41:37 +08:00
Stuart Breckenridge 8498e723ce Widget Performance 2020-12-03 20:32:26 +08:00
Stuart Breckenridge d9c39a6964 timeline refresh can now be controlled 2020-11-30 10:08:23 +08:00
Stuart Breckenridge 9f989ac07b reduces encoded article count 2020-11-29 17:38:17 +08:00
Stuart Breckenridge 9206463e46 layout fixes
• Ensure counts do not wrap
• Reduces number of articles on large widget due to increased spacing.
• Consistent vertical spacing between articles and dividers
2020-11-29 17:12:53 +08:00
Stuart Breckenridge 92c3cd52aa WidgetDataEncoder
Removed unused taskIdentifier
Added more logging
Switched to FileManager for writing data files
2020-11-22 17:57:30 +08:00
Stuart Breckenridge e8174d0070 ditched filtering 2020-11-19 20:41:05 +08:00
Stuart Breckenridge b34510eb5c changes the behaviour of the today widget 2020-11-19 20:21:04 +08:00
Maurice Parker 6784c2a705 Fixed crash due to force unwrapping publishedDate 2020-11-19 05:09:50 -06:00
Stuart Breckenridge 1bdfb3aafc Make sure there is a title 2020-11-19 15:38:50 +08:00
Stuart Breckenridge 264668a663 Widgets
simplified code
added large widgets
localised the counts
updated technotes
2020-11-18 15:43:14 +08:00
Stuart Breckenridge 58e18f4bcb Widget Bundle
• Adds small smartfeed summary widget.
• Adds medium widgets for today, unread, and starred.
2020-11-18 10:49:12 +08:00