Skip to content

Commit 8f04338

Browse files
committed
wip
1 parent 7ab75a3 commit 8f04338

File tree

8 files changed

+12
-3
lines changed

8 files changed

+12
-3
lines changed

Sources/IssueReporting/Internal/AppHostWarning.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if canImport(Foundation)
12
import Foundation
23

34
extension String? {
@@ -77,3 +78,4 @@ extension String {
7778
}
7879
#endif
7980
}
81+
#endif

Sources/IssueReporting/Internal/FailureObserver.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if canImport(Foundation)
12
import Foundation
23

34
@usableFromInline
@@ -19,3 +20,4 @@ final class FailureObserver: @unchecked Sendable {
1920
return body(&count)
2021
}
2122
}
23+
#endif

Sources/IssueReporting/Internal/LockIsolated.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if canImport(Foundation)
12
import Foundation
23

34
@usableFromInline
@@ -19,3 +20,4 @@ final class LockIsolated<Value>: @unchecked Sendable {
1920
return try operation(&value)
2021
}
2122
}
23+
#endif

Sources/IssueReporting/Internal/SwiftTesting.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import Foundation
2-
31
#if canImport(WinSDK)
42
import WinSDK
53
#endif

Sources/IssueReporting/Internal/XCTest.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if canImport(Foundation)
12
#if _runtime(_ObjC)
23
import Foundation
34
#endif
@@ -124,3 +125,4 @@ func _XCTExpectFailure<R>(
124125
@TaskLocal public static var isInFailingBlock = false
125126
}
126127
#endif
128+
#endif

Sources/IssueReporting/IssueReporters/RuntimeWarningReporter.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
#if canImport(Foundation)
12
import Foundation
3+
#endif
24

35
#if canImport(os)
46
import os

Sources/XCTestDynamicOverlay/Internal/Deprecations.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
#if canImport(Foundation)
12
import Foundation
3+
#endif
24

35
#if canImport(FoundationNetworking)
46
import FoundationNetworking

Tests/XCTestDynamicOverlayTests/TestHelpers.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Foundation
21
import XCTestDynamicOverlay
32

43
func MyXCTFail(_ message: String) {

0 commit comments

Comments
 (0)