Skip to content

Commit 7016b12

Browse files
committed
Import new Android overlay in more places
1 parent 87b9285 commit 7016b12

File tree

6 files changed

+16
-0
lines changed

6 files changed

+16
-0
lines changed

Sources/SKSupport/Process+Run.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import struct TSCBasic.ProcessResult
3030

3131
#if os(Windows)
3232
import WinSDK
33+
#elseif canImport(Android)
34+
import Android
3335
#endif
3436

3537
extension Process {

Sources/sourcekit-lsp/SourceKitLSP.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ import SourceKitLSP
2626
import SwiftExtensions
2727
import ToolchainRegistry
2828

29+
#if canImport(Android)
30+
import Android
31+
#endif
32+
2933
public import struct TSCBasic.AbsolutePath
3034
public import struct TSCBasic.RelativePath
3135
public import var TSCBasic.localFileSystem

Tests/LanguageServerProtocolJSONRPCTests/ConnectionTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import class Foundation.Pipe
1919

2020
#if os(Windows)
2121
import WinSDK
22+
#elseif canImport(Android)
23+
import Android
2224
#endif
2325

2426
class ConnectionTests: XCTestCase {

Tests/SKSupportTests/AsyncUtilsTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import XCTest
1818

1919
#if os(Windows)
2020
import WinSDK
21+
#elseif canImport(Android)
22+
import Android
2123
#endif
2224

2325
final class AsyncUtilsTests: XCTestCase {

Tests/SourceKitLSPTests/PullDiagnosticsTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import XCTest
2020

2121
#if os(Windows)
2222
import WinSDK
23+
#elseif canImport(Android)
24+
import Android
2325
#endif
2426

2527
final class PullDiagnosticsTests: XCTestCase {

Tests/ToolchainRegistryTests/ToolchainRegistryTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import XCTest
1717

1818
import enum PackageLoading.Platform
1919

20+
#if canImport(Android)
21+
import Android
22+
#endif
23+
2024
final class ToolchainRegistryTests: XCTestCase {
2125
func testDefaultSingleToolchain() async throws {
2226
let tr = ToolchainRegistry(toolchains: [Toolchain(identifier: "a", displayName: "a", path: nil)])

0 commit comments

Comments
 (0)