Skip to content

Commit

Permalink
Fix Android support (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux authored Jan 13, 2025
1 parent 966d89a commit 742f624
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/ConsoleKitTerminal/Terminal/ANSI.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Foundation
#if canImport(Android)
import Android
#endif

/// Terminal ANSI commands
enum ANSICommand {
Expand Down
3 changes: 3 additions & 0 deletions Sources/ConsoleKitTerminal/Terminal/Console.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Foundation
#if canImport(Android)
import Android
#endif

/// Protocol for powering styled Console I/O.
///
Expand Down
3 changes: 3 additions & 0 deletions Sources/ConsoleKitTerminal/Terminal/Terminal.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Foundation
import NIOConcurrencyHelpers
#if canImport(Android)
import Android
#endif
#if os(Windows)
import WinSDK
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Android)
import Android
#elseif canImport(Musl)
import Musl
#endif
Expand Down

0 comments on commit 742f624

Please sign in to comment.