Make Database.framework build. Doesn’t work, but it builds.

This commit is contained in:
Brent Simmons
2017-08-21 13:31:14 -07:00
parent 4010011b5a
commit 5860f774bd
5 changed files with 58 additions and 19 deletions

View File

@@ -32,12 +32,17 @@ extension Article {
let bannerImageURL = row.string(forColumn: DatabaseKey.bannerImageURL)
let datePublished = row.date(forColumn: DatabaseKey.datePublished)
let dateModified = row.date(forColumn: DatabaseKey.dateModified)
let authors: [Author]? = nil
let tags: Set<String>? = nil
let attachments: [Attachment]? = nil
let accountInfo: [String: Any]? = nil
// let authors = PropertyListTransformer.authorsWithRow(row)
// let tags = PropertyListTransformer.tagsWithRow(row)
// let attachments = PropertyListTransformer.attachmentsWithRow(row)
// let accountInfo = accountInfoWithRow(row)
self.init(account: account, feedID: feedID, uniqueID: uniqueID, title: title, contentHTML: contentHTML, contentText: contentText, url: url, externalURL: externalURL, summary: summary, imageURL: imageURL, bannerImageURL: bannerImageURL, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: tags, attachments: attachments, accountInfo: accountInfo)
self.init(account: account, articleID: articleID, feedID: feedID, uniqueID: uniqueID, title: title, contentHTML: contentHTML, contentText: contentText, url: url, externalURL: externalURL, summary: summary, imageURL: imageURL, bannerImageURL: bannerImageURL, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: tags, attachments: attachments, accountInfo: accountInfo)
}
func databaseDictionary() -> NSDictionary {
@@ -67,6 +72,6 @@ extension Set where Element == Article {
func articleIDs() -> Set<String> {
return Set(map { $0.databaseID })
return Set<String>(map { $0.databaseID })
}
}