Skip to content

Commit

Permalink
feat: remove dup
Browse files Browse the repository at this point in the history
  • Loading branch information
mackoj committed Sep 11, 2024
1 parent 2adc79a commit 432fea9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Sources/SnapshotTesting/Plug-ins/PluginRegistry.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#if canImport(SwiftUI) && canImport(ObjectiveC)
import ImageSerializationPlugin
import SnapshotTestingPlugin

@objc
public protocol SnapshotTestingPlugin {
static var identifier: String { get }
init()
}

// MARK: - PluginRegistry
public class PluginRegistry {
public static let shared = PluginRegistry()
private var plugins: [String: AnyObject] = [:]
Expand All @@ -30,9 +26,9 @@ public class PluginRegistry {
}
}

// MARK: - Plugin AutoRegistry
// If we are not on macOS the autoregistration mechanism won't work.
#if canImport(ObjectiveC.runtime)
// MARK: - AutoRegistry
import Foundation
import ObjectiveC.runtime

Expand Down

0 comments on commit 432fea9

Please sign in to comment.