mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Gate code that only should be used on iOS
This commit is contained in:
1 parent
c1460d3df3
commit
8f78d549c9
1 file changed
+4
@@ -159,9 +159,11 @@ class ActivityManager {
|
||||
return
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
if let article = readingArticle, activityFeedId == article.feedID {
|
||||
updateReadArticleSearchAttributes(with: article)
|
||||
}
|
||||
#endif
|
||||
|
||||
if activityFeedId == feed.feedID {
|
||||
updateSelectingActivityFeedSearchAttributes(with: feed)
|
||||
@@ -208,6 +210,7 @@ private extension ActivityManager {
|
||||
return activity
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
func updateReadArticleSearchAttributes(with article: Article) {
|
||||
|
||||
let attributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeCompositeContent as String)
|
||||
@@ -223,6 +226,7 @@ private extension ActivityManager {
|
||||
readingActivity?.needsSave = true
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
func makeKeywords(_ article: Article) -> [String] {
|
||||
let feedNameKeywords = makeKeywords(article.feed?.nameForDisplay)
|
||||
|
||||
Reference in new issue
Block a user