Revert "Release channel support (#239)"

This reverts commit 7d0eb8c61e.
This commit is contained in:
naturecodevoid
2023-02-02 08:09:15 -08:00
parent 7d0eb8c61e
commit fcfeea35da
8 changed files with 34 additions and 75 deletions

View File

@@ -32,15 +32,6 @@ public class NewsItem: NSManagedObject, Decodable, Fetchable
@NSManaged public var storeApp: StoreApp?
@NSManaged public var source: Source?
@objc public var isDuplicate: Bool {
if self.source == nil { return false }
// Hide news from sources that begin with the SideStore identifier, and aren't from the same source as the current SideStore source
if self.source!.identifier.starts(with: Bundle.Info.appbundleIdentifier) && self.source!.identifier != Source.altStoreIdentifier { return true }
return false
}
private enum CodingKeys: String, CodingKey
{
case identifier
@@ -95,9 +86,6 @@ public extension NewsItem
{
@nonobjc class func fetchRequest() -> NSFetchRequest<NewsItem>
{
let fetchRequest = NSFetchRequest<NewsItem>(entityName: "NewsItem")
fetchRequest.predicate = NSPredicate(format: "%K == NO",
#keyPath(NewsItem.isDuplicate))
return fetchRequest
return NSFetchRequest<NewsItem>(entityName: "NewsItem")
}
}