We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2adc79a commit 432fea9Copy full SHA for 432fea9
Sources/SnapshotTesting/Plug-ins/PluginRegistry.swift
@@ -1,12 +1,8 @@
1
#if canImport(SwiftUI) && canImport(ObjectiveC)
2
import ImageSerializationPlugin
3
+import SnapshotTestingPlugin
4
-@objc
5
-public protocol SnapshotTestingPlugin {
6
- static var identifier: String { get }
7
- init()
8
-}
9
-
+// MARK: - PluginRegistry
10
public class PluginRegistry {
11
public static let shared = PluginRegistry()
12
private var plugins: [String: AnyObject] = [:]
@@ -30,9 +26,9 @@ public class PluginRegistry {
30
26
}
31
27
32
28
29
+// MARK: - Plugin AutoRegistry
33
// If we are not on macOS the autoregistration mechanism won't work.
34
#if canImport(ObjectiveC.runtime)
35
-// MARK: - AutoRegistry
36
import Foundation
37
import ObjectiveC.runtime
38
0 commit comments