mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add basic ExtensionPoint support.
This commit is contained in:
@@ -9,14 +9,6 @@
|
||||
import Foundation
|
||||
import RSCore
|
||||
|
||||
public enum FeedProviderType: Int, Codable {
|
||||
// Raw values should not change since they’re stored.
|
||||
case marsEdit = 1
|
||||
case microblog = 2
|
||||
case twitter = 3
|
||||
}
|
||||
|
||||
|
||||
protocol FeedProvider {
|
||||
public protocol FeedProvider {
|
||||
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
51107725243BE11800D97C8C /* RSParser.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 51107723243BE11800D97C8C /* RSParser.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
51107728243BE15D00D97C8C /* RSCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51107727243BE15D00D97C8C /* RSCore.framework */; };
|
||||
51107729243BE15D00D97C8C /* RSCore.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 51107727243BE15D00D97C8C /* RSCore.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
515A5105243D0C6B0089E588 /* TwitterFeedProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 515A5104243D0C6B0089E588 /* TwitterFeedProvider.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
@@ -47,6 +48,7 @@
|
||||
51107721243BE0DA00D97C8C /* FeedProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedProvider.swift; sourceTree = "<group>"; };
|
||||
51107723243BE11800D97C8C /* RSParser.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RSParser.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
51107727243BE15D00D97C8C /* RSCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RSCore.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
515A5104243D0C6B0089E588 /* TwitterFeedProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TwitterFeedProvider.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@@ -67,6 +69,7 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
51107721243BE0DA00D97C8C /* FeedProvider.swift */,
|
||||
515A5103243D0C230089E588 /* Twitter */,
|
||||
51107689243BCEB300D97C8C /* xcconfig */,
|
||||
51107663243BCE0400D97C8C /* Info.plist */,
|
||||
51107660243BCE0400D97C8C /* Products */,
|
||||
@@ -104,6 +107,14 @@
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
515A5103243D0C230089E588 /* Twitter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
515A5104243D0C6B0089E588 /* TwitterFeedProvider.swift */,
|
||||
);
|
||||
path = Twitter;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
@@ -211,6 +222,7 @@
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
515A5105243D0C6B0089E588 /* TwitterFeedProvider.swift in Sources */,
|
||||
51107722243BE0DA00D97C8C /* FeedProvider.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
||||
17
Frameworks/FeedProvider/Twitter/TwitterFeedProvider.swift
Normal file
17
Frameworks/FeedProvider/Twitter/TwitterFeedProvider.swift
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// TwitterFeedProvider.swift
|
||||
// FeedProvider
|
||||
//
|
||||
// Created by Maurice Parker on 4/7/20.
|
||||
// Copyright © 2020 Ranchero Software, LLC. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
public struct TwitterFeedProvider: FeedProvider {
|
||||
|
||||
public init() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user