Filtered out the AmiiboClient client and the AmiiboService service from Linux platform with pre-compiler processors.

This commit is contained in:
Javier Cicchelli 2023-04-29 01:35:28 +02:00
parent b62c3c415b
commit a93e5a1cb2
5 changed files with 10 additions and 0 deletions

View File

@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
import Communications
import Foundation
@ -76,3 +77,4 @@ private extension AmiiboClient {
}
}
#endif

View File

@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
import Foundation
/// This service provides the interface to make remote API calls to the [Amiibo API](https://www.amiiboapi.com) and, subsequently, handle its responses.
@ -125,3 +126,4 @@ extension AmiiboService: Service {
}
}
#endif

View File

@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
import Communications
import Foundation
import XCTest
@ -155,3 +156,4 @@ final class AmiiboClientTests: XCTestCase {
}
}
#endif

View File

@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
import Communications
import Foundation
@ -22,3 +23,4 @@ extension MockURLRequest {
}
}
#endif

View File

@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===//
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
import Communications
import Foundation
import XCTest
@ -521,3 +522,4 @@ final class AmiiboServiceTests: XCTestCase {
}
}
#endif