mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Fix build error.
This commit is contained in:
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.
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user