From 76c24323b3a846509ee911d5f99d5a859e6a7c81 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sat, 6 Oct 2018 21:24:35 +0200 Subject: [PATCH] Set up initial structure --- .swift-version | 1 + Package.swift | 19 +++++++++++++++++++ Sources/GzipMiddleware/GzipMiddleware.swift | 0 Sources/GzipMiddleware/GzipStream.swift | 0 4 files changed, 20 insertions(+) create mode 100644 .swift-version create mode 100644 Package.swift create mode 100644 Sources/GzipMiddleware/GzipMiddleware.swift create mode 100644 Sources/GzipMiddleware/GzipStream.swift 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