diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..5186d07 --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +4.0 diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a217898 --- /dev/null +++ b/Package.swift @@ -0,0 +1,19 @@ +// swift-tools-version:4.0 +import PackageDescription + +#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) +let dependencies: [Package.Dependency] = [] +#else +let dependencies: [Package.Dependency] = [.package(url: "https://github.com/IBM-Swift/CZlib.git", .exact("0.1.2"))] +#endif + +let package = Package( + name: "GzipMiddleware", + products: [ + .library(name: "GzipMiddleware", targets: ["GzipMiddleware"]) + ], + dependencies: dependencies, + targets: [ + .target(name: "GzipMiddleware"), + ] +) diff --git a/Sources/GzipMiddleware/GzipMiddleware.swift b/Sources/GzipMiddleware/GzipMiddleware.swift new file mode 100644 index 0000000..e69de29 diff --git a/Sources/GzipMiddleware/GzipStream.swift b/Sources/GzipMiddleware/GzipStream.swift new file mode 100644 index 0000000..e69de29