Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 07cd7cb

Browse files
FIX use canImport instead of swift(>=5.1) && os(Linux)
1 parent c136e22 commit 07cd7cb

8 files changed

+8
-8
lines changed

Sources/LambdaSwiftSprinter/LambdaAPI.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919

Sources/LambdaSwiftSprinter/LambdaApiCURL.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919

Sources/LambdaSwiftSprinter/LambdaHandler.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919

Sources/LambdaSwiftSprinter/LambdaRuntimeAPIUrlBuilder.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414
import Foundation
15-
#if swift(>=5.1) && os(Linux)
15+
#if canImport(FoundationNetworking)
1616
import FoundationNetworking
1717
#endif
1818

Tests/LambdaSwiftSprinterTests/LambdaAPIMock.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919
@testable import LambdaSwiftSprinter

Tests/LambdaSwiftSprinterTests/LambdaApiCURLTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@testable import LambdaSwiftSprinter
1616
import Foundation
17-
#if swift(>=5.1) && os(Linux)
17+
#if canImport(FoundationNetworking)
1818
import FoundationNetworking
1919
#endif
2020
import XCTest

Tests/LambdaSwiftSprinterTests/LambdaRuntimeAPIUrlBuilderTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919
import XCTest

Tests/LambdaSwiftSprinterTests/URLProtocolMock.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
#if swift(>=5.1) && os(Linux)
16+
#if canImport(FoundationNetworking)
1717
import FoundationNetworking
1818
#endif
1919

0 commit comments

Comments
 (0)