Skip to content

Commit 432fea9

Browse files
committed
feat: remove dup
1 parent 2adc79a commit 432fea9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Sources/SnapshotTesting/Plug-ins/PluginRegistry.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
#if canImport(SwiftUI) && canImport(ObjectiveC)
22
import ImageSerializationPlugin
3+
import SnapshotTestingPlugin
34

4-
@objc
5-
public protocol SnapshotTestingPlugin {
6-
static var identifier: String { get }
7-
init()
8-
}
9-
5+
// MARK: - PluginRegistry
106
public class PluginRegistry {
117
public static let shared = PluginRegistry()
128
private var plugins: [String: AnyObject] = [:]
@@ -30,9 +26,9 @@ public class PluginRegistry {
3026
}
3127
}
3228

29+
// MARK: - Plugin AutoRegistry
3330
// If we are not on macOS the autoregistration mechanism won't work.
3431
#if canImport(ObjectiveC.runtime)
35-
// MARK: - AutoRegistry
3632
import Foundation
3733
import ObjectiveC.runtime
3834

0 commit comments

Comments
 (0)