Fix build error.

This commit is contained in:
Brent Simmons committed 2026-10-22 20:55:50 -07:00
1 parent 48ac4fa228
commit d9ec7df6f9
3 files changed
+11 -9

No files matched your search

@@ -1,5 +1,5 @@
//
// AppDefaults.swift
// AppDefaults+Mac.swift
// NetNewsWire
//
// Created by Brent Simmons on 9/22/17.
+9 -7
View File
@@ -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" {
@@ -1,5 +1,5 @@
//
// AppDefaults.swift
// AppDefaults+iOS.swift
// NetNewsWire
//
// Created by Brent Simmons on 9/22/17.