Commit Graph

57 Commits

Author SHA1 Message Date
Brent Simmons acd26f1a28 Enable strict concurrency. 2024-04-16 21:49:20 -07:00
Brent Simmons 6db1d40597 Replace forEach for for-in. 2024-04-07 17:06:39 -07:00
Brent Simmons cf855466b3 Delete ArticlesDatabaseCompatibility.swift 2024-04-05 18:04:38 -07:00
Brent Simmons cc276dad2a Mark RetentionStyle as Sendable. 2024-04-04 22:06:56 -07:00
Brent Simmons 9f67b3f498 Convert account.update to async await. 2024-04-04 22:05:46 -07:00
Brent Simmons a88d57952e Convert update methods to async await. 2024-04-04 21:15:13 -07:00
Brent Simmons 3f2db0ef12 Make .mark functions async await. 2024-04-04 20:47:13 -07:00
Brent Simmons 7f71223387 Delete completion version of fetchArticleIDsForStatusesWithoutArticlesNewerThanCutoffDate. 2024-04-04 18:45:12 -07:00
Brent Simmons e523e06efe Convert createStatusesIfNeeded to async await. 2024-04-04 17:37:13 -07:00
Brent Simmons 1824c15ddc Delete fetchStarredArticleIDsAsync. 2024-04-03 22:42:32 -07:00
Brent Simmons 186b9fbfba Delete fetchUnreadArticleIDsAsync. 2024-04-03 22:24:36 -07:00
Brent Simmons 0607b55258 Convert completion-based delete method to async await. 2024-04-03 22:06:08 -07:00
Brent Simmons f0634d7ab0 Delete no-longer-used fetchStarredAndUnreadCount completion block version. 2024-04-03 21:53:11 -07:00
Brent Simmons 2eeb0050e2 Remove some no-longer-used completion-based API. 2024-04-03 21:49:52 -07:00
Brent Simmons 40abf257a6 Make RSParser a local module and rename it to Parser. 2024-04-02 21:43:06 -07:00
Brent Simmons 2461e937bf Replace RSCore with several local modules. Update code as needed. 2024-03-20 20:49:15 -07:00
Brent Simmons b2d3128b2d Fix build errors. 2024-03-19 10:15:30 -07:00
Brent Simmons 5c6e5807d9 Change markAndFetchNew to just mark and get rid of the return value
which wasn’t used anywhere.
2024-03-18 21:39:13 -07:00
Brent Simmons e58f8ada42 Fix many build errors. 2024-03-18 21:08:37 -07:00
Brent Simmons 6725bedc64 Fix several build errors. 2024-03-13 21:03:52 -07:00
Brent Simmons 9906fbc295 Add ArticlesDatabase scheme. 2024-03-13 20:18:08 -07:00
Brent Simmons 2737091151 Simplify Package.swift. 2024-03-13 20:16:09 -07:00
Brent Simmons 9b1aa8fc7f Make ArticlesDatabase an actor. No serial dispatch queue. 2024-03-12 23:01:35 -07:00
Brent Simmons 13403df8f1 Create new FMDatabase+Extras.swift and FMResultSet+Extras.swift. Rename DatabaseError.isSuspended to DatabaseError.suspended. 2024-03-10 18:42:54 -07:00
Brent Simmons 917d433deb Fix several build issues. 2024-03-10 18:17:04 -07:00
Brent Simmons 7f7aebc3a9 Add some missing `import FMDB`. 2024-03-10 16:44:16 -07:00
Brent Simmons b662ad8ad3 Make local Database and FMDB modules. Stop using RSDatabase. 2024-03-10 16:39:38 -07:00
Brent Simmons 4c866b7230 Rename WebFeed and webFeed to Feed and feed. 2024-02-25 23:12:21 -08:00
Maurice Parker 5bf5706ac9 Restrict RSCore version so that we don't pick up version 1.1 when it happens 2022-11-01 20:26:14 -05:00
Ethan Wong 8c9e4dff49 use .package(path:) for local package dependencies to resolve Xcode 14 errors. 2022-10-02 17:35:41 -05:00
Duncan Babbage cc855f3832 link and URL vars for Article. Storage as rawLink
link and externalLink fall back to providing the raw stored value if URLs cannot be created even with repair.
2021-09-30 16:51:59 +13:00
Maurice Parker f9af3c786b Merge branch 'ios-candidate' 2021-05-25 20:12:50 -05:00
Brent Simmons 6d0ac71e21 Use RSParser 2.0.2 and higher — make sure we have latest bug fixes. 2021-05-23 13:22:53 -07:00
Maurice Parker cc6449ed2a Merge branch 'ios-candidate' into main 2021-04-03 11:10:04 -05:00
Maurice Parker ea6cece955 Merge branch 'mac-release' into main 2021-04-03 09:30:42 -05:00
Maurice Parker c35dabbc55 Change so that we don't join with the articles table when finding starred or unread article ids. Fixes #2915 2021-03-27 19:27:23 -05:00
Maurice Parker e73b174473 Change so that we don't join with the articles table when finding starred or unread article ids. Fixes #2915 2021-03-27 19:12:30 -05:00
Maurice Parker 9c761c80df Add an optional limit parameter to the smart feeds. Fixes #2627 2021-03-24 05:43:07 -05:00
Fábio Oliveira ddf9f41145 Re add code and clean up
- Re add code reverted earlier
- Clean up code that builds `authorsNames` based on model objects
- Applied the right indentation
2021-02-11 22:59:45 +01:00
Fábio Oliveira 3e082f938a
Merge branch 'main' into pr/1695 2021-02-11 01:37:01 +01:00
Fábio Oliveira b4e150044b Add author information to indexed body
- Restore old code for database model
- Modified `bodyForIndex` function to return `authorsNames` in it
2021-02-11 01:31:36 +01:00
Fábio Oliveira 6903db357a Update ArticlesDatabase.swift
Delete code that forced rebuilding the search index
2021-02-11 00:26:26 +01:00
Maurice Parker 53b3046635
Revert "Adds author name as a searchable field" 2021-02-10 16:54:28 -06:00
Maurice Parker 6d72bc0c19
Merge pull request #2802 from banaslee/pr/1695
Adds author name as a searchable field
2021-02-10 16:43:28 -06:00
Maurice Parker c063880c48 Upgraded to production releases of RS libraries 2021-02-10 16:19:26 -06:00
Fábio Oliveira 408e5d0ba0 Clean code
- Extract statements to create `search` table so it can be reused during database migration
- Rename `authors` as `authorsNames` for consistency
- Extract code to improve readability
2021-02-10 20:25:21 +01:00
Fábio Oliveira cf1be33044 Add code to migrate database model
Add code to migrate database model when `authors` column is not present in the index
This recreates `search` table and resets the articles index
Added missing or code in error
2021-02-10 19:46:16 +01:00
Fábio Oliveira 5636ca0a01 Add authors names to article search index
Add authors to search table;
Add authors names to ArticleSearchInfo and modified code to retrieve it correctly.

Needs some cleaning up before being ready to merge.
2021-02-09 14:13:24 +01:00
Maurice Parker 91ce7ff189 Update to the latest RSCore 2021-02-07 20:26:30 -06:00
Brent Simmons 57e63c1385 Add database query and assertion to check for missing statuses. Only runs when running a DEBUG build.
Also: remove unused function existingStatusesForArticleIDs.
2021-01-07 20:31:19 -08:00