Skip to content

Commit

Permalink
Merge pull request #1802 from finagolfin/droid
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoppen authored Nov 5, 2024
2 parents 87b9285 + 7016b12 commit e73e8b7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SKSupport/Process+Run.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import struct TSCBasic.ProcessResult

#if os(Windows)
import WinSDK
#elseif canImport(Android)
import Android
#endif

extension Process {
Expand Down
4 changes: 4 additions & 0 deletions Sources/sourcekit-lsp/SourceKitLSP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import SourceKitLSP
import SwiftExtensions
import ToolchainRegistry

#if canImport(Android)
import Android
#endif

public import struct TSCBasic.AbsolutePath
public import struct TSCBasic.RelativePath
public import var TSCBasic.localFileSystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import class Foundation.Pipe

#if os(Windows)
import WinSDK
#elseif canImport(Android)
import Android
#endif

class ConnectionTests: XCTestCase {
Expand Down
2 changes: 2 additions & 0 deletions Tests/SKSupportTests/AsyncUtilsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import XCTest

#if os(Windows)
import WinSDK
#elseif canImport(Android)
import Android
#endif

final class AsyncUtilsTests: XCTestCase {
Expand Down
2 changes: 2 additions & 0 deletions Tests/SourceKitLSPTests/PullDiagnosticsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import XCTest

#if os(Windows)
import WinSDK
#elseif canImport(Android)
import Android
#endif

final class PullDiagnosticsTests: XCTestCase {
Expand Down
4 changes: 4 additions & 0 deletions Tests/ToolchainRegistryTests/ToolchainRegistryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import XCTest

import enum PackageLoading.Platform

#if canImport(Android)
import Android
#endif

final class ToolchainRegistryTests: XCTestCase {
func testDefaultSingleToolchain() async throws {
let tr = ToolchainRegistry(toolchains: [Toolchain(identifier: "a", displayName: "a", path: nil)])
Expand Down

0 comments on commit e73e8b7

Please sign in to comment.