Skip to content

Commit 8878c64

Browse files
committed
Just use protocol
1 parent 9abcd66 commit 8878c64

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Sources/CEExtensionKit/ExtensionInterface.swift

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,7 @@ import Foundation
1111
public protocol ExtensionInterface {
1212
}
1313

14-
open class ExtensionBuilder: NSObject {
15-
required public override init() {
16-
super.init()
17-
}
18-
19-
/// Builds extension with API
20-
/// - Parameter withAPI: the API implementation itself
21-
open func build(withAPI api: ExtensionAPI) -> ExtensionInterface {
22-
fatalError("You should override ExtensionBuilder.build")
23-
}
14+
public protocol ExtensionBuilderProtocol: NSObject {
15+
init()
16+
func build(withAPI api: ExtensionAPI) -> ExtensionInterface
2417
}

0 commit comments

Comments
 (0)