Skip to content

Commit

Permalink
remove some foundations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Aug 26, 2024
1 parent 467deff commit 3cadfd2
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Sources/CustomDump/Conformances/Foundation.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if canImport(Foundation)
import Foundation

#if canImport(FoundationNetworking)
Expand Down Expand Up @@ -321,3 +322,4 @@ extension UUID: CustomDumpStringConvertible {
"UUID(\(self.uuidString))"
}
}
#endif
2 changes: 0 additions & 2 deletions Sources/CustomDump/Conformances/KeyPath.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation

extension AnyKeyPath: CustomDumpStringConvertible {
public var customDumpDescription: String {
if #available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *) {
Expand Down
2 changes: 0 additions & 2 deletions Sources/CustomDump/Conformances/Swift.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation

extension Character: CustomDumpRepresentable {
public var customDumpValue: Any {
String(self)
Expand Down
2 changes: 0 additions & 2 deletions Sources/CustomDump/Internal/String.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Foundation

extension String {
init?(stringProtocol value: Any) {
guard let value = value as? any StringProtocol else { return nil }
Expand Down
4 changes: 4 additions & 0 deletions Sources/CustomDump/Internal/Unordered.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#if canImport(Foundation)
import Foundation
#endif

public protocol _UnorderedCollection {}
#if canImport(Foundation)
extension Dictionary: _UnorderedCollection {}
extension NSDictionary: _UnorderedCollection {}
extension NSSet: _UnorderedCollection {}
#endif
extension Set: _UnorderedCollection {}
1 change: 0 additions & 1 deletion Tests/CustomDumpTests/Conformances/FoundationTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import CustomDump
import Foundation
import XCTest

#if canImport(FoundationNetworking)
Expand Down
1 change: 0 additions & 1 deletion Tests/CustomDumpTests/ExpectNoDifferenceTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import CustomDump
import Foundation
import XCTest

#if canImport(Testing)
Expand Down

0 comments on commit 3cadfd2

Please sign in to comment.