Working on Linux support
@@ -23,4 +23,7 @@ DerivedData
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
-# Pods/
+# Pods/
+
+.build/
+Packages/
@@ -1,5 +1,8 @@
import PackageDescription
let package = Package(
- name: "Swifter"
+ name: "Swifter",
+ dependencies: [
+ .Package(url: "https://github.com/johnno1962/NSLinux.git", majorVersion: 1),
+ ]
)
@@ -6,6 +6,10 @@
import Foundation
+#if os(Linux)
+ import NSLinux
+#endif
public class HttpServer {
static let VERSION = "1.0.2";