File tree Expand file tree Collapse file tree 5 files changed +17
-19
lines changed Expand file tree Collapse file tree 5 files changed +17
-19
lines changed Original file line number Diff line number Diff line change 8
8
//
9
9
10
10
#if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
11
- #if (os(Linux) || os(Android))
12
- @testable import Foundation
13
- #else
11
+ #if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
14
12
@testable import SwiftFoundation
13
+ #else
14
+ @testable import Foundation
15
15
#endif
16
16
#endif
17
17
Original file line number Diff line number Diff line change 8
8
//
9
9
10
10
#if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
11
- #if (os(Linux) || os(Android))
12
- @testable import Foundation
13
- #else
11
+ #if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
14
12
@testable import SwiftFoundation
13
+ #else
14
+ @testable import Foundation
15
15
#endif
16
16
#endif
17
17
Original file line number Diff line number Diff line change 9
9
10
10
// Centralized conditional imports for all test sources
11
11
12
- #if DEPLOYMENT_RUNTIME_OBJC || os(Linux) || os(Android)
13
- @_exported import Foundation
14
- @_exported import XCTest
15
- #else
12
+ #if !DEPLOYMENT_RUNTIME_OBJC && canImport(SwiftFoundation) && canImport(SwiftXCTest)
16
13
@_exported import SwiftFoundation
17
14
@_exported import SwiftXCTest
15
+ #else
16
+ @_exported import Foundation
17
+ @_exported import XCTest
18
18
#endif
Original file line number Diff line number Diff line change 7
7
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
- #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
11
- #if canImport(SwiftFoundation)
12
- @testable import SwiftFoundation
13
- #else
14
- @testable import Foundation
15
- #endif
10
+ #if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
11
+ @testable import SwiftFoundation
12
+ #else
13
+ @testable import Foundation
16
14
#endif
17
15
18
16
Original file line number Diff line number Diff line change 7
7
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
- #if DEPLOYMENT_RUNTIME_OBJC || os(Linux) || os(Android)
11
- import Foundation
12
- #else
10
+ #if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
13
11
import SwiftFoundation
12
+ #else
13
+ import Foundation
14
14
#endif
15
15
16
16
enum HelperCheckStatus : Int32 {
You can’t perform that action at this time.
0 commit comments