From d9ec7df6f92c53dcd4bc0d9a26d14d9c0716bf8b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 22 Oct 2026 20:55:50 -0700 Subject: [PATCH] Fix build error. --- Mac/{AppDefaults.swift => AppDefaults+Mac.swift} | 2 +- Shared/AppDefaults.swift | 16 +++++++++------- iOS/{AppDefaults.swift => AppDefaults+iOS.swift} | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) rename Mac/{AppDefaults.swift => AppDefaults+Mac.swift} (99%) rename iOS/{AppDefaults.swift => AppDefaults+iOS.swift} (99%) diff --git a/Mac/AppDefaults.swift b/Mac/AppDefaults+Mac.swift similarity index 99% rename from Mac/AppDefaults.swift rename to Mac/AppDefaults+Mac.swift index 2e6cb89e0..e7d95dba5 100644 --- a/Mac/AppDefaults.swift +++ b/Mac/AppDefaults+Mac.swift @@ -1,5 +1,5 @@ // -// AppDefaults.swift +// AppDefaults+Mac.swift // NetNewsWire // // Created by Brent Simmons on 9/22/17. diff --git a/Shared/AppDefaults.swift b/Shared/AppDefaults.swift index 2ea02e72b..d20a10cc3 100644 --- a/Shared/AppDefaults.swift +++ b/Shared/AppDefaults.swift @@ -7,7 +7,7 @@ import Foundation -/// Settings common to Mac and iOS. Platform-specific settings are in extensions in Mac/AppDefaults.swift and iOS/AppDefaults.swift. +/// Settings common to Mac and iOS. Platform-specific settings are in extensions in AppDefaults+Mac.swift and AppDefaults+iOS.swift. enum AppDefaults { static let defaultThemeName = "Default" @@ -26,12 +26,14 @@ enum AppDefaults { } /// Registered by both platforms. Each platform’s registerDefaults adds its own. - static let commonRegisteredDefaults: [String: Any] = [ - Key.timelineSortDirection: ComparisonResult.orderedDescending.rawValue, - Key.timelineGroupByFeed: false, - Key.currentThemeName: defaultThemeName, - Key.articleContentJavascriptEnabled: true - ] + static var commonRegisteredDefaults: [String: Any] { + [ + Key.timelineSortDirection: ComparisonResult.orderedDescending.rawValue, + Key.timelineGroupByFeed: false, + Key.currentThemeName: defaultThemeName, + Key.articleContentJavascriptEnabled: true + ] + } static let isDeveloperBuild: Bool = { if let dev = Bundle.main.object(forInfoDictionaryKey: "DeveloperEntitlements") as? String, dev == "-dev" { diff --git a/iOS/AppDefaults.swift b/iOS/AppDefaults+iOS.swift similarity index 99% rename from iOS/AppDefaults.swift rename to iOS/AppDefaults+iOS.swift index 0207ad8c0..ea625abe7 100644 --- a/iOS/AppDefaults.swift +++ b/iOS/AppDefaults+iOS.swift @@ -1,5 +1,5 @@ // -// AppDefaults.swift +// AppDefaults+iOS.swift // NetNewsWire // // Created by Brent Simmons on 9/22/17.