mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire
This commit is contained in:
commit
90aaf2e632
15 files changed
+157
-17
No files matched your search
@@ -6,6 +6,23 @@
|
||||
<description>Most recent NetNewsWire changes with links to updates.</description>
|
||||
<language>en</language>
|
||||
|
||||
<item>
|
||||
<title>NetNewsWire 7.3b8</title>
|
||||
<description><![CDATA[
|
||||
<ul>
|
||||
<li>Added Gray theme — inspired by newsprint design but not meant to be a literal copy
|
||||
<li>Added Plum theme — uses the same layout as the Gray theme but with color
|
||||
<li>Added an optional grayscaleIcon key to theme Info.plist files — when true, the feed icon or author avatar in the article view is grayscale. The Gray theme uses this new feature
|
||||
<li>Fixed a crash in the timeline (too many layout passes) caused by row-height measurement mixing up same articles from different accounts
|
||||
<li>Fixed bug where deleting a feed could remove the wrong row (usually the next row) from the sidebar
|
||||
<li>Fixed bug where restoring with no article selected, then clicking an article, would auto-scroll the article view
|
||||
</ul>
|
||||
]]></description>
|
||||
<pubDate>Wed, 11 Nov 2026 17:30:00 -0800</pubDate>
|
||||
<enclosure url="https://github.com/Ranchero-Software/NetNewsWire/releases/download/mac-7.3b8/NetNewsWire7.3b8.zip" sparkle:version="7235" sparkle:shortVersionString="7.3b8" length="10472470" type="application/zip" />
|
||||
<sparkle:minimumSystemVersion>15.0</sparkle:minimumSystemVersion>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>NetNewsWire 7.3b7</title>
|
||||
<description><![CDATA[
|
||||
|
||||
@@ -6,6 +6,23 @@
|
||||
<description>Most recent NetNewsWire changes with links to updates.</description>
|
||||
<language>en</language>
|
||||
|
||||
<item>
|
||||
<title>NetNewsWire 7.3b8</title>
|
||||
<description><![CDATA[
|
||||
<ul>
|
||||
<li>Added Gray theme — inspired by newsprint design but not meant to be a literal copy
|
||||
<li>Added Plum theme — uses the same layout as the Gray theme but with color
|
||||
<li>Added an optional grayscaleIcon key to theme Info.plist files — when true, the feed icon or author avatar in the article view is grayscale. The Gray theme uses this new feature
|
||||
<li>Fixed a crash in the timeline (too many layout passes) caused by row-height measurement mixing up same articles from different accounts
|
||||
<li>Fixed bug where deleting a feed could remove the wrong row (usually the next row) from the sidebar
|
||||
<li>Fixed bug where restoring with no article selected, then clicking an article, would auto-scroll the article view
|
||||
</ul>
|
||||
]]></description>
|
||||
<pubDate>Wed, 11 Nov 2026 17:30:00 -0800</pubDate>
|
||||
<enclosure url="https://github.com/Ranchero-Software/NetNewsWire/releases/download/mac-7.3b8/NetNewsWire7.3b8.zip" sparkle:version="7235" sparkle:shortVersionString="7.3b8" length="10472470" type="application/zip" />
|
||||
<sparkle:minimumSystemVersion>15.0</sparkle:minimumSystemVersion>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>NetNewsWire 7.3b7</title>
|
||||
<description><![CDATA[
|
||||
|
||||
@@ -498,7 +498,15 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
|
||||
// MARK: - Actions
|
||||
|
||||
@objc func openArticleInBrowser(_ sender: Any?) {
|
||||
if let link = oneSelectedArticle?.preferredLink {
|
||||
let article: Article?
|
||||
|
||||
if let tableView = sender as? NSTableView, tableView === self.tableView, let clickedArticle = articles.articleAtRow(tableView.clickedRow) {
|
||||
article = clickedArticle
|
||||
} else {
|
||||
article = oneSelectedArticle
|
||||
}
|
||||
|
||||
if let link = article?.preferredLink {
|
||||
Browser.open(link, invertPreference: NSApp.currentEvent?.modifierFlags.contains(.shift) ?? false)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -612,6 +612,26 @@ import RSParser
|
||||
#expect(summary.contains("<p>Hello <em>world</em>.</p>"))
|
||||
}
|
||||
|
||||
@Test func xhtmlTitleWithCDATA() throws {
|
||||
// <https://github.com/Ranchero-Software/NetNewsWire/issues/5484>
|
||||
let xml = """
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>t</title><id>urn:t</id>
|
||||
<entry>
|
||||
<id>urn:t:1</id>
|
||||
<title type="xhtml"><![CDATA[Wheels within (mouse) wheels]]></title>
|
||||
<updated>2020-05-01T00:00:00Z</updated>
|
||||
<content>Body.</content>
|
||||
</entry>
|
||||
</feed>
|
||||
"""
|
||||
let d = ParserData(url: "http://example.com/", data: Data(xml.utf8))
|
||||
let feed = try #require(try FeedParser.parse(d))
|
||||
let item = try #require(feed.items.first)
|
||||
#expect(item.title == "Wheels within (mouse) wheels")
|
||||
}
|
||||
|
||||
@Test func contentTypeDefault() throws {
|
||||
// No `type` attribute — RFC 4287 specifies default is "text". The
|
||||
// parser treats it as plain text (same path as `type="text"`).
|
||||
|
||||
@@ -1157,6 +1157,12 @@
|
||||
"Scanning iCloud storage" : {
|
||||
"comment" : "Scan status text while fetching"
|
||||
},
|
||||
"Scroll Down" : {
|
||||
"comment" : "Scroll Down"
|
||||
},
|
||||
"Scroll Up" : {
|
||||
"comment" : "Scroll Up"
|
||||
},
|
||||
"Search" : {
|
||||
"comment" : "Search"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# Mac Release Notes
|
||||
|
||||
### 7.3b8 7235 11 Nov 2026 - branch: main tag: mac-7.3b8
|
||||
|
||||
Added Gray theme — inspired by newsprint design but not meant to be a literal copy
|
||||
Added Plum theme — uses the same layout as the Gray theme but with color
|
||||
Added an optional grayscaleIcon key to theme Info.plist files — when true, the feed icon or author avatar in the article view is grayscale. The Gray theme uses this new feature
|
||||
Fixed a crash in the timeline (too many layout passes) caused by row-height measurement mixing up same articles from different accounts
|
||||
Fixed bug where deleting a feed could remove the wrong row (usually the next row) from the sidebar
|
||||
Fixed bug where restoring with no article selected, then clicking an article, would auto-scroll the article view
|
||||
|
||||
### 7.3b7 7234 9 Nov 2026 - branch: main tag: mac-7.3b7
|
||||
|
||||
Make image cache eviction less aggressive, which should fix a loop where images get evicted, re-cached, evicted, re-cached, etc. (See this Discourse forum post <https://discourse.netnewswire.com/t/favicons-disappear-in-7-3b3/481>.)
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# iOS Release Notes
|
||||
|
||||
### 7.3 build 7236 12 Nov 2026 - branch: main tag: iOS-7.3-7236
|
||||
|
||||
Added Gray theme — inspired by newsprint design but not meant to be a literal copy
|
||||
Added Plum theme — uses the same layout as the Gray theme but with color
|
||||
Added an optional grayscaleIcon key to theme Info.plist files — when true, the feed icon or author avatar in the article view is grayscale. The Gray theme uses this new feature
|
||||
Fixed bug where folder icons weren’t grayscale when Grayscale Feed Icons is on
|
||||
Added an entry to the Errors Log when a tap in the timeline is ignored
|
||||
|
||||
### 7.3 build 7233 9 Nov 2026 - branch: main tag: iOS-7.3-7233
|
||||
|
||||
Added Show Today, Show All Unread, and Show Starred settings, to hide smart feeds
|
||||
|
||||
+2
-2
@@ -16,5 +16,5 @@ https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.3-7233
|
||||
Mac shipping: 7.2.1
|
||||
https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2.1
|
||||
|
||||
Mac beta: 7.3b7
|
||||
https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.3b7
|
||||
Mac beta: 7.3b8
|
||||
https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.3b8
|
||||
@@ -120,6 +120,9 @@ final class ArticleViewController: UIViewController {
|
||||
override var keyCommands: [UIKeyCommand]? {
|
||||
return keyboardManager.keyCommands
|
||||
}
|
||||
override var canBecomeFirstResponder: Bool {
|
||||
true
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
@@ -412,10 +415,19 @@ final class ArticleViewController: UIViewController {
|
||||
coordinator.navigateToTimeline()
|
||||
}
|
||||
|
||||
@objc func scrollLineDown(_ sender: Any?) {
|
||||
currentWebViewController?.scrollLineDown()
|
||||
}
|
||||
|
||||
@objc func scrollLineUp(_ sender: Any?) {
|
||||
currentWebViewController?.scrollLineUp()
|
||||
}
|
||||
|
||||
// MARK: API
|
||||
|
||||
// Focus this view controller rather than the web view, since the web view is replaced on each article change.
|
||||
func focus() {
|
||||
currentWebViewController?.focus()
|
||||
becomeFirstResponder()
|
||||
}
|
||||
|
||||
func canScrollDown() -> Bool {
|
||||
|
||||
@@ -22,6 +22,8 @@ import Images
|
||||
|
||||
final class WebViewController: UIViewController {
|
||||
|
||||
private static let arrowKeyScrollDistance: CGFloat = 60
|
||||
|
||||
private struct MessageName {
|
||||
static let imageWasClicked = "imageWasClicked"
|
||||
static let imageWasShown = "imageWasShown"
|
||||
@@ -222,10 +224,6 @@ final class WebViewController: UIViewController {
|
||||
}
|
||||
}
|
||||
|
||||
func focus() {
|
||||
webView?.becomeFirstResponder()
|
||||
}
|
||||
|
||||
func canScrollDown() -> Bool {
|
||||
guard let webView = webView else { return false }
|
||||
return webView.scrollView.contentOffset.y < finalScrollPosition(scrollingUp: false)
|
||||
@@ -242,8 +240,16 @@ final class WebViewController: UIViewController {
|
||||
}
|
||||
|
||||
let overlap = 2 * UIFont.systemFont(ofSize: UIFont.systemFontSize).lineHeight * windowScene.screen.scale
|
||||
let scrollDistance = webView.scrollView.layoutMarginsGuide.layoutFrame.height - overlap
|
||||
scroll(up: scrollingUp, distance: scrollDistance)
|
||||
}
|
||||
|
||||
private func scroll(up scrollingUp: Bool, distance scrollDistance: CGFloat) {
|
||||
guard let webView else {
|
||||
return
|
||||
}
|
||||
|
||||
let scrollToY: CGFloat = {
|
||||
let scrollDistance = webView.scrollView.layoutMarginsGuide.layoutFrame.height - overlap
|
||||
let fullScroll = webView.scrollView.contentOffset.y + (scrollingUp ? -scrollDistance : scrollDistance)
|
||||
let final = finalScrollPosition(scrollingUp: scrollingUp)
|
||||
return (scrollingUp ? fullScroll > final : fullScroll < final) ? fullScroll : final
|
||||
@@ -262,6 +268,14 @@ final class WebViewController: UIViewController {
|
||||
scrollPage(up: true)
|
||||
}
|
||||
|
||||
func scrollLineDown() {
|
||||
scroll(up: false, distance: Self.arrowKeyScrollDistance)
|
||||
}
|
||||
|
||||
func scrollLineUp() {
|
||||
scroll(up: true, distance: Self.arrowKeyScrollDistance)
|
||||
}
|
||||
|
||||
func hideClickedImage() {
|
||||
webView?.evaluateJavaScript("hideClickedImage();")
|
||||
}
|
||||
|
||||
@@ -29,8 +29,11 @@ enum KeyboardType: String, Sendable {
|
||||
switch type {
|
||||
case .sidebar:
|
||||
_keyCommands.append(contentsOf: KeyboardManager.hardcodeFeedKeyCommands())
|
||||
case .timeline, .detail:
|
||||
case .timeline:
|
||||
_keyCommands.append(contentsOf: KeyboardManager.hardcodeArticleKeyCommands())
|
||||
case .detail:
|
||||
_keyCommands.append(contentsOf: KeyboardManager.hardcodeArticleKeyCommands())
|
||||
_keyCommands.append(contentsOf: KeyboardManager.hardcodeDetailKeyCommands())
|
||||
default:
|
||||
break
|
||||
}
|
||||
@@ -215,4 +218,16 @@ private extension KeyboardManager {
|
||||
return keys
|
||||
}
|
||||
|
||||
static func hardcodeDetailKeyCommands() -> [UIKeyCommand] {
|
||||
var keys = [UIKeyCommand]()
|
||||
|
||||
let scrollDownTitle = NSLocalizedString("Scroll Down", comment: "Scroll Down")
|
||||
keys.append(KeyboardManager.createKeyCommand(title: scrollDownTitle, action: "scrollLineDown:", input: UIKeyCommand.inputDownArrow, modifiers: []))
|
||||
|
||||
let scrollUpTitle = NSLocalizedString("Scroll Up", comment: "Scroll Up")
|
||||
keys.append(KeyboardManager.createKeyCommand(title: scrollUpTitle, action: "scrollLineUp:", input: UIKeyCommand.inputUpArrow, modifiers: []))
|
||||
|
||||
return keys
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,6 +13,9 @@ final class RootSplitViewController: UISplitViewController {
|
||||
|
||||
var coordinator: SceneCoordinator!
|
||||
|
||||
/// True during rotation, window resizes, and background snapshots, when UIKit changes the display mode on its own.
|
||||
private(set) var isTransitioningSize = false
|
||||
|
||||
override var prefersStatusBarHidden: Bool {
|
||||
return coordinator.prefersStatusBarHidden
|
||||
}
|
||||
@@ -26,6 +29,14 @@ final class RootSplitViewController: UISplitViewController {
|
||||
coordinator.resetFocus()
|
||||
}
|
||||
|
||||
override func viewWillTransition(to size: CGSize, with transitionCoordinator: UIViewControllerTransitionCoordinator) {
|
||||
isTransitioningSize = true
|
||||
super.viewWillTransition(to: size, with: transitionCoordinator)
|
||||
transitionCoordinator.animate(alongsideTransition: nil) { [weak self] _ in
|
||||
self?.isTransitioningSize = false
|
||||
}
|
||||
}
|
||||
|
||||
/// Show a column for programmatic navigation.
|
||||
/// Pass `bypassDisplayModeRestriction: true` for user-initiated navigation, so it can
|
||||
/// reveal a column the display-mode suppression below would otherwise keep hidden.
|
||||
|
||||
@@ -95,7 +95,6 @@ struct SidebarItemNode: Hashable, Sendable {
|
||||
|
||||
var isTimelineViewControllerPending = false
|
||||
var isArticleViewControllerPending = false
|
||||
private var hasReportedIgnoredTap = false
|
||||
|
||||
/// `Bool` to track whether a refresh is scheduled.
|
||||
private var isNavigationBarSubtitleRefreshScheduled: Bool = false
|
||||
@@ -1242,13 +1241,11 @@ struct SidebarItemNode: Hashable, Sendable {
|
||||
}
|
||||
|
||||
/// Selecting the current article while the article view isn’t showing does nothing, which is never expected.
|
||||
/// Log it once per launch to the Errors log.
|
||||
/// <https://github.com/Ranchero-Software/NetNewsWire/issues/5516>
|
||||
private func reportIgnoredSelection(of article: Article?) {
|
||||
guard let article, !hasReportedIgnoredTap, isRootSplitCollapsed, !isArticleViewControllerShowing else {
|
||||
guard let article, isRootSplitCollapsed, !isArticleViewControllerShowing else {
|
||||
return
|
||||
}
|
||||
hasReportedIgnoredTap = true
|
||||
|
||||
let selectedItemCount = mainTimelineViewController?.collectionView?.indexPathsForSelectedItems?.count ?? 0
|
||||
let navigationStackDepth = mainTimelineViewController?.navigationController?.viewControllers.count ?? 0
|
||||
@@ -1846,7 +1843,13 @@ extension SceneCoordinator: UISplitViewControllerDelegate {
|
||||
}
|
||||
|
||||
func splitViewController(_ svc: UISplitViewController, willChangeTo displayMode: UISplitViewController.DisplayMode) {
|
||||
AppDefaults.splitViewPreferredDisplayMode = displayMode.rawValue
|
||||
// Save only user-initiated changes. UIKit also changes the display mode during
|
||||
// rotation, window resizes, and background snapshots, and those must not be saved.
|
||||
// <https://github.com/Ranchero-Software/NetNewsWire/issues/5524>
|
||||
let isSceneActive = svc.view.window?.windowScene?.activationState == .foregroundActive
|
||||
if isSceneActive && !svc.isCollapsed && !rootSplitViewController.isTransitioningSize {
|
||||
AppDefaults.splitViewPreferredDisplayMode = displayMode.rawValue
|
||||
}
|
||||
mainTimelineViewController?.updateToolbarProgressView(for: displayMode)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "./NetNewsWire_version.xcconfig"
|
||||
|
||||
// High Level Settings common to both the Mac application and any extensions we bundle with it
|
||||
MARKETING_VERSION = 7.3b7
|
||||
MARKETING_VERSION = 7.3b8
|
||||
|
||||
APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen$(APP_GROUP_SUFFIX)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
CURRENT_PROJECT_VERSION = 7234
|
||||
CURRENT_PROJECT_VERSION = 7236
|
||||
Reference in new issue
Block a user