Brent Simmons
5ca3c0f99b
Make all of AppDelegate (iOS) @MainActor.
2023-07-10 21:49:58 -07:00
Brent Simmons
1fa9fa5e10
Remove unused imports.
2023-07-09 22:45:05 -07:00
Brent Simmons
3c2d83dace
Rename bgTaskDispatchQueue to backgroundTaskDispatchQueue.
2023-07-09 22:43:24 -07:00
Brent Simmons
0611d71bfe
Replace uses of forEach with for-in loops.
2023-07-09 22:41:35 -07:00
Brent Simmons
8eca24e46f
Continue renaming webFeed to just feed.
2023-07-05 10:16:28 -07:00
Brent Simmons
d309c05cb0
Continue removing feed provider and extension point references.
2023-06-30 21:47:17 -07:00
Stuart Breckenridge
ed6ff090be
Merge branch 'ios-ui-settings-localised' into localize_strings
...
# Conflicts:
# Mac/AppDelegate.swift
# Mac/Base.lproj/Preferences.storyboard
# NetNewsWire.xcodeproj/project.pbxproj
# Shared/Localizations/LocalizedNetNewsWireError.swift
# iOS/MasterFeed/MasterFeedViewController.swift
# iOS/Settings/Appearance/ArticleThemeManagerView.swift
# iOS/Settings/Appearance/DisplayAndBehaviorsView.swift
# iOS/Settings/General/SettingsView.swift
2023-05-27 17:00:42 +08:00
Brent Simmons
7e51998a46
Continue adopting @MainActor.
2023-04-05 19:27:51 -07:00
Stuart Breckenridge
2bca08195e
Localization work
2022-12-30 21:53:07 +08:00
Stuart Breckenridge
d457b2dd53
Interim commit wth .based localisations
2022-12-24 15:01:33 +08:00
Maurice Parker
ab8611f2b2
Change the move to foreground sync to use the same date to trigger it as the label
2022-11-12 19:05:06 -06:00
Maurice Parker
c24ea4d1b5
Code cleanup
2022-11-12 12:33:25 -06:00
Maurice Parker
b7b9344e3d
Change how we handle errors when working with Themes
2022-11-08 01:36:28 -06:00
Maurice Parker
f454d76701
Merge branch 'ios-candidate'
2022-10-29 01:08:22 -05:00
Maurice Parker
169b103f6d
Change widget encoding to be more parallel and only run when going into the background
2022-10-29 00:39:03 -05:00
Maurice Parker
05561d9c1f
Change to a different debounce strategy and don't write widget data while in the background. #3567
2022-10-08 17:10:40 -05:00
Maurice Parker
0c95428b31
Merge branch 'ios-candidate'
2022-09-22 20:50:35 -05:00
Stuart Breckenridge
0dd4689bf0
Logging changes
...
- Adds `Logging` protocol
- Moves to Swift-style `OSLog` usage
os_log to Logger
os_log audit
Replacment of os.log with Logging
2022-09-04 21:31:03 +08:00
Maurice Parker
141ed4f915
Write widget data when article status changes happen. Fixes #3567
2022-07-28 17:15:36 -05:00
Ethan Wong
5e2fe5f610
Add proper OSLog argument for os_log calls.
2022-04-04 13:51:53 +08:00
Maurice Parker
298e164740
Change sync to async
2022-03-01 14:54:20 -06:00
Maurice Parker
27dd920cce
Change sync to async
2022-03-01 14:53:43 -06:00
Maurice Parker
d828925483
Merge branch 'ios-candidate'
2022-03-01 14:46:51 -06:00
Maurice Parker
f22239db36
Change task completion notification so that it blocks until NNW has completed suspending. Fixes #3200
2022-03-01 14:45:37 -06:00
Stuart Breckenridge
7a670516fb
if #available
...
Removes < iOS 15 if #available checks
2022-01-22 20:42:24 +08:00
Stuart Breckenridge
4c734d9ba3
AppDelegate
...
Updates notification presentation from `.alert` (deprecated) to `.banner`.
2022-01-21 08:54:15 +08:00
Dimitris Apostolou
94ae4d348c
Fix typos
2022-01-05 00:25:20 +02:00
Stuart Breckenridge
8b39dc4abb
Uses SceneCoordinator
...
Adds a `func` to SceneCoordinator to handle dismisses vis-a-vis using notifications.
2021-11-08 09:52:12 +08:00
Stuart Breckenridge
0db88c5f92
Fixes #3335
...
When the app is brought to the foreground from an external action (e.g., tapping on the widget, opening from a notification), a notification is posted (with a slight delay).
`MasterFeedViewController` and `SettingsViewController` are observers. `MasterFeedViewController` will dismiss any `SFSafariViewController`s that are presented, while `SettingsViewController` will dismiss itself.
2021-11-06 22:43:50 +08:00
Maurice Parker
12324bf498
Remove font debugging code
2021-11-02 05:44:21 -05:00
Maurice Parker
c16a231530
Added the Hyperlegible theme
2021-11-01 21:22:22 -05:00
Stuart Breckenridge
78e0595708
Various ThemeDownloader Updates
...
- `try` added where applicable to ArticleTheme inits
- `ArticleThemePlist` has fixed spelling of theme identifier and conforms to Equatable
- `ArticleTheme` now uses `ArticleThemePlist`
- `ArticleThemeDownloader` is now a class
- `ArticleThemeDownloader` will now download themes to Application Support/NetNewsWire/Downloads on macOS and iOS.
- `ArticleThemeDownloader` will remove downloaded themes from the Download folder when the application is closed.
- macOS app delegate now observes for theme download fails
- Error display code moved from SceneDelegate to SceneCoordinator so that it can use existing presentError on rootVC.
2021-09-21 09:10:56 +08:00
Maurice Parker
e3245f1144
Fix some incorrectly named variables
2021-09-07 20:12:21 -05:00
Maurice Parker
512e83d786
Refactor Styles to now be Themes
2021-09-07 16:58:06 -05:00
Maurice Parker
ba279d2a6e
Make the Styles folder configurable so that it can be in different places on macOS and iOS.
2021-08-24 20:20:20 -05:00
Brent Simmons
9d2c8f000f
Create and use IconImageCache. It centralizes and de-dupes logic for getting feed/article images, and it caches the results, which helps performance.
2021-05-08 12:42:44 -07:00
Maurice Parker
991297165b
Add completion callbacks so that we can ensure that unreads have been marked before determining the next unread. Fixes #2993
2021-04-12 19:42:05 -05:00
Stuart Breckenridge
3898edc8b1
widget text spacing
2020-12-23 21:16:32 +08:00
Stuart Breckenridge
8a05d2f448
handles actions from notifications
2020-12-23 20:15:25 +08:00
Stuart Breckenridge
8498e723ce
Widget Performance
2020-12-03 20:32:26 +08:00
Nate Weaver
a33d42ba66
Replace the single usage of a Log object with os_log()
2020-12-02 07:57:48 -06:00
Stuart Breckenridge
d9c39a6964
timeline refresh can now be controlled
2020-11-30 10:08:23 +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
Maurice Parker
0b170b7ff5
Merge branch 'ios-release' into main
2020-10-18 19:59:11 -05:00
Maurice Parker
bad21330f3
Revert to requesting notifications on application launch so that the badge can be configured. Issue #2447
2020-09-22 17:39:29 -05:00
Maurice Parker
b724658528
Refactor how we do Secrets to work with the new Swift Package structure
2020-07-30 17:40:45 -05:00
Stuart Breckenridge
f92b219cdc
NetNewsWire-iOS AppDefaults is now a singleton
2020-07-02 10:47:45 +08:00
Maurice Parker
7d8e49a2ee
Merge branch 'ios-release'
2020-05-18 03:05:59 -05:00
Stuart Breckenridge
6224dfad03
Notification Permission Requests
...
Fixes #2057
• On app launch, the app checks if notification permissions are granted and registers with APNS if that is the case. It will not request permissions as part of the app launch.
• When a user requests to be notified of new articles, the authorizationStatus is checked:
- if `notDetermined` or `provisional`, an authorization request is made, and if successful, the Notify of New Articles status is updated (otherwise it is reverted)
- if `denied`, an alert is thrown asking the user to enable in settings (and the change to notify of new articles is reverted)
- if `authorized` the update is made.
`WebFeedInspectorViewController` also monitors for the app entering the foreground so that it can get the latest notification auth settings.
2020-05-18 08:39:22 +08:00
Maurice Parker
85f7adaa0a
Use MainThreadOperation to prevent article status updates from interleaving
2020-05-02 10:02:58 -05:00