Fix build errors in Account.framework.

This commit is contained in:
Brent Simmons
2017-09-28 13:16:47 -07:00
parent 1ec3484a95
commit 3a4e545e22
6 changed files with 47 additions and 38 deletions

View File

@@ -52,7 +52,7 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
// MARK: - Disk Dictionary
struct Key {
private struct Key {
static let url = "url"
static let feedID = "feedID"
static let homePageURL = "homePageURL"
@@ -84,6 +84,11 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
}
}
public static func isFeedDictionary(_ d: [String: Any]) -> Bool {
return d[Key.url] != nil
}
public var dictionary: [String: Any] {
get {
var d = [String: Any]()
@@ -106,7 +111,7 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
d[Key.unreadCount] = unreadCount
}
if let conditionalGetInfo = conditionalGetInfo {
d[Key.conditionalGetInfo] = conditionalGetInfo.dOictionary
d[Key.conditionalGetInfo] = conditionalGetInfo.dictionary
}
return d