Skip to content
Permalink
Browse files

remove platform availability again (#1042)

Motivation:

The platform availability that we recently introduced caused problems
because it would require all downstream projects to define the same or
narrower platform availability to still compile with NIO which would
make this very disrupting and also SemVer major.

Modifications:

Remove the platform availability declarations.

Result:

No SemVer breakages.
  • Loading branch information...
weissi committed Jun 18, 2019
1 parent 3e7198f commit 7829542cc5aead18732d38090ba5f71bb6cf578c
Showing with 5 additions and 4 deletions.
  1. +0 −3 Package.swift
  2. +5 −1 Tests/NIOTests/TestUtils.swift
@@ -77,9 +77,6 @@ var targets: [PackageDescription.Target] = [

let package = Package(
name: "swift-nio",
platforms: [
.macOS(.v10_12), .iOS(.v10), .watchOS(.v3), .tvOS(.v10),
],
products: [
.executable(name: "NIOEchoServer", targets: ["NIOEchoServer"]),
.executable(name: "NIOEchoClient", targets: ["NIOEchoClient"]),
@@ -106,7 +106,11 @@ var temporaryDirectory: String {
#elseif os(Linux)
return "/tmp"
#else
return FileManager.default.temporaryDirectory.path
if #available(OSX 10.12, *) {
return FileManager.default.temporaryDirectory.path
} else {
return "/tmp"
}
#endif
}
}

0 comments on commit 7829542

Please sign in to comment.
You can’t perform that action at this time.