// This file is part of Kiwix for iOS & macOS. // // Kiwix is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // any later version. // // Kiwix is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Kiwix; If not, see https://www.gnu.org/licenses/. import Defaults import Foundation extension Defaults.Keys { // // reading static let webViewTextSizeAdjustFactor = Key("webViewZoomScale", default: 1) static let webViewPageZoom = Key("webViewPageZoom", default: 1) static let externalLinkLoadingPolicy = Key( "externalLinkLoadingPolicy", default: Brand.defaultExternalLinkPolicy ) static let searchResultSnippetMode = Key( "searchResultSnippetMode", default: Brand.defaultSearchSnippetMode ) // search static let recentSearchTexts = Key<[String]>("recentSearchTexts", default: []) // library static let libraryLanguageCodes = Key>("libraryLanguageCodes", default: Set()) static let libraryETag = Key("libraryETag", default: "") static let libraryLanguageSortingMode = Key( "libraryLanguageSortingMode", default: LibraryLanguageSortingMode.byCounts ) static let libraryAutoRefresh = Key("libraryAutoRefresh", default: true) static let libraryUsingOldISOLangCodes = Key("libraryUsingOldISOLangCodes", default: true) static let libraryLastRefresh = Key("libraryLastRefresh") static let isFirstLaunch = Key("isFirstLaunch", default: true) static let downloadUsingCellular = Key("downloadUsingCellular", default: false) static let backupDocumentDirectory = Key("backupDocumentDirectory", default: false) static let categoriesToLanguages = Key<[Category: Set]>("categoriesToLanguages", default: [:]) static let hasSeenCategories = Key("hasSeenCategories", default: false) static let hotspotPortNumber = Key("hotspotPortNumber", default: Hotspot.defaultPort) #if os(macOS) // window management: static let windowURLs = Key<[URL]>("windowURLs", default: []) #endif }