From b0b10ae5f08c1dfb3dd5c2b926e128d01e45401a Mon Sep 17 00:00:00 2001
From: lau <chn.lyzasd@gmail.com>
Date: Tue, 2 Apr 2019 11:05:20 +0800
Subject: [PATCH 01/17] Support Swift 5.0

---
 .gitmodules                                   |  3 --
 APIKit.xcodeproj/project.pbxproj              | 28 +++++++++----------
 .../xcshareddata/xcschemes/APIKit.xcscheme    |  2 +-
 APIKit.xcworkspace/contents.xcworkspacedata   |  3 --
 Cartfile                                      |  1 -
 Cartfile.resolved                             |  1 -
 Carthage/Checkouts/Result                     |  1 -
 README.md                                     | 12 ++++----
 .../MultipartFormDataBodyParameters.swift     |  2 +-
 Sources/APIKit/Info.plist                     |  2 +-
 Sources/APIKit/Request.swift                  | 19 ++++++-------
 Sources/APIKit/Session.swift                  |  1 -
 Sources/APIKit/Unavailable.swift              |  2 --
 Tests/APIKitTests/SessionTests.swift          |  1 -
 .../APIKitTests/TestComponents/HTTPStub.swift |  1 -
 15 files changed, 33 insertions(+), 46 deletions(-)
 delete mode 100644 Cartfile
 delete mode 100644 Cartfile.resolved
 delete mode 160000 Carthage/Checkouts/Result

diff --git a/.gitmodules b/.gitmodules
index 00f2c4d7..e69de29b 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +0,0 @@
-[submodule "Carthage/Checkouts/Result"]
-	path = Carthage/Checkouts/Result
-	url = https://github.com/antitypical/Result.git
diff --git a/APIKit.xcodeproj/project.pbxproj b/APIKit.xcodeproj/project.pbxproj
index 0e672020..6f193f5d 100644
--- a/APIKit.xcodeproj/project.pbxproj
+++ b/APIKit.xcodeproj/project.pbxproj
@@ -7,9 +7,6 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		141F12201C1C9ABE0026D415 /* Result.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD5115241B1FFBA900514240 /* Result.framework */; };
-		141F12311C1C9AC70026D415 /* Result.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD5115241B1FFBA900514240 /* Result.framework */; };
-		141F12361C1C9AC70026D415 /* Result.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = CD5115241B1FFBA900514240 /* Result.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
 		7F698E501D9D680C00F1561D /* FormURLEncodedBodyParametersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F698E3C1D9D680C00F1561D /* FormURLEncodedBodyParametersTests.swift */; };
 		7F698E511D9D680C00F1561D /* JSONBodyParametersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F698E3D1D9D680C00F1561D /* JSONBodyParametersTests.swift */; };
 		7F698E521D9D680C00F1561D /* MultipartFormDataParametersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F698E3E1D9D680C00F1561D /* MultipartFormDataParametersTests.swift */; };
@@ -56,7 +53,7 @@
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
-		7F4A73AC1CA839AE002554B1 /* PBXContainerItemProxy */ = {
+		BDFB151A2253060A00D8C94B /* PBXContainerItemProxy */ = {
 			isa = PBXContainerItemProxy;
 			containerPortal = 7F45FCD41A94D02C006863BB /* Project object */;
 			proxyType = 1;
@@ -72,7 +69,6 @@
 			dstPath = "";
 			dstSubfolderSpec = 10;
 			files = (
-				141F12361C1C9AC70026D415 /* Result.framework in Copy Frameworks */,
 			);
 			name = "Copy Frameworks";
 			runOnlyForDeploymentPostprocessing = 0;
@@ -129,7 +125,6 @@
 		7F7048F21D9D8A1F003C99F6 /* URLEncodedSerialization.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = URLEncodedSerialization.swift; path = Sources/APIKit/Serializations/URLEncodedSerialization.swift; sourceTree = SOURCE_ROOT; };
 		7F8ECDFD1B6A799E00234E04 /* Demo.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Demo.playground; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
 		7FA1690C1D9D8C80006C982B /* HTTPStub.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HTTPStub.swift; sourceTree = "<group>"; };
-		CD5115241B1FFBA900514240 /* Result.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Result.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		ECA831471DE4DDBF004EB1B5 /* ProtobufDataParser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ProtobufDataParser.swift; path = Sources/APIKit/DataParser/ProtobufDataParser.swift; sourceTree = SOURCE_ROOT; };
 		ECA831491DE4DEBE004EB1B5 /* ProtobufDataParserTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ProtobufDataParserTests.swift; sourceTree = "<group>"; };
 		ECA8314B1DE4E677004EB1B5 /* ProtobufBodyParameters.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ProtobufBodyParameters.swift; path = Sources/APIKit/BodyParameters/ProtobufBodyParameters.swift; sourceTree = SOURCE_ROOT; };
@@ -141,7 +136,6 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				141F12201C1C9ABE0026D415 /* Result.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -149,7 +143,6 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				141F12311C1C9AC70026D415 /* Result.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -308,7 +301,6 @@
 			children = (
 				7F7048C61D9D89BE003C99F6 /* APIKit.h */,
 				7F7048C91D9D89BE003C99F6 /* Info.plist */,
-				CD5115241B1FFBA900514240 /* Result.framework */,
 			);
 			name = "Supporting Files";
 			sourceTree = "<group>";
@@ -388,7 +380,7 @@
 			buildRules = (
 			);
 			dependencies = (
-				7F4A73AD1CA839AE002554B1 /* PBXTargetDependency */,
+				BDFB151B2253060A00D8C94B /* PBXTargetDependency */,
 			);
 			name = Tests;
 			productName = APIKitTests;
@@ -402,7 +394,7 @@
 			isa = PBXProject;
 			attributes = {
 				LastSwiftUpdateCheck = 0730;
-				LastUpgradeCheck = 0930;
+				LastUpgradeCheck = 1020;
 				ORGANIZATIONNAME = "Yosuke Ishikawa";
 				TargetAttributes = {
 					141F12161C1C9ABE0026D415 = {
@@ -415,7 +407,7 @@
 			};
 			buildConfigurationList = 7F45FCD71A94D02C006863BB /* Build configuration list for PBXProject "APIKit" */;
 			compatibilityVersion = "Xcode 3.2";
-			developmentRegion = English;
+			developmentRegion = en;
 			hasScannedForEncodings = 0;
 			knownRegions = (
 				en,
@@ -509,10 +501,10 @@
 /* End PBXSourcesBuildPhase section */
 
 /* Begin PBXTargetDependency section */
-		7F4A73AD1CA839AE002554B1 /* PBXTargetDependency */ = {
+		BDFB151B2253060A00D8C94B /* PBXTargetDependency */ = {
 			isa = PBXTargetDependency;
 			target = 141F12161C1C9ABE0026D415 /* APIKit */;
-			targetProxy = 7F4A73AC1CA839AE002554B1 /* PBXContainerItemProxy */;
+			targetProxy = BDFB151A2253060A00D8C94B /* PBXContainerItemProxy */;
 		};
 /* End PBXTargetDependency section */
 
@@ -524,8 +516,10 @@
 				CLANG_ENABLE_MODULES = YES;
 				DEFINES_MODULE = YES;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+				MACOSX_DEPLOYMENT_TARGET = 10.11;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+				SWIFT_VERSION = 5.0;
 			};
 			name = Debug;
 		};
@@ -536,8 +530,10 @@
 				CLANG_ENABLE_MODULES = YES;
 				DEFINES_MODULE = YES;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+				MACOSX_DEPLOYMENT_TARGET = 10.11;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+				SWIFT_VERSION = 5.0;
 			};
 			name = Release;
 		};
@@ -546,6 +542,7 @@
 			baseConfigurationReference = 141F12401C1C9EA30026D415 /* Tests.xcconfig */;
 			buildSettings = {
 				INFOPLIST_FILE = Tests/APIKitTests/Info.plist;
+				SWIFT_VERSION = 5.0;
 			};
 			name = Debug;
 		};
@@ -555,6 +552,7 @@
 			buildSettings = {
 				INFOPLIST_FILE = Tests/APIKitTests/Info.plist;
 				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+				SWIFT_VERSION = 5.0;
 			};
 			name = Release;
 		};
@@ -562,6 +560,7 @@
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 141F12101C1C96820026D415 /* Debug.xcconfig */;
 			buildSettings = {
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
 				CLANG_WARN_COMMA = YES;
 				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
@@ -583,6 +582,7 @@
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 141F12111C1C96820026D415 /* Release.xcconfig */;
 			buildSettings = {
+				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
 				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
 				CLANG_WARN_COMMA = YES;
 				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
diff --git a/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit.xcscheme b/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit.xcscheme
index 8125e06b..762479b4 100644
--- a/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit.xcscheme
+++ b/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit.xcscheme
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <Scheme
-   LastUpgradeVersion = "0930"
+   LastUpgradeVersion = "1020"
    version = "1.3">
    <BuildAction
       parallelizeBuildables = "YES"
diff --git a/APIKit.xcworkspace/contents.xcworkspacedata b/APIKit.xcworkspace/contents.xcworkspacedata
index 2ebcccad..d0fd9ef5 100644
--- a/APIKit.xcworkspace/contents.xcworkspacedata
+++ b/APIKit.xcworkspace/contents.xcworkspacedata
@@ -4,7 +4,4 @@
    <FileRef
       location = "container:APIKit.xcodeproj">
    </FileRef>
-   <FileRef
-      location = "group:Carthage/Checkouts/Result/Result.xcodeproj">
-   </FileRef>
 </Workspace>
diff --git a/Cartfile b/Cartfile
deleted file mode 100644
index e9bc3ad0..00000000
--- a/Cartfile
+++ /dev/null
@@ -1 +0,0 @@
-github "antitypical/Result" ~> 4.0
diff --git a/Cartfile.resolved b/Cartfile.resolved
deleted file mode 100644
index 23aa9709..00000000
--- a/Cartfile.resolved
+++ /dev/null
@@ -1 +0,0 @@
-github "antitypical/Result" "4.0.0"
diff --git a/Carthage/Checkouts/Result b/Carthage/Checkouts/Result
deleted file mode 160000
index 8fc088dc..00000000
--- a/Carthage/Checkouts/Result
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 8fc088dcf72802801efeecba76ea8fb041fb773d
diff --git a/README.md b/README.md
index 6dd793e3..f9036697 100644
--- a/README.md
+++ b/README.md
@@ -30,28 +30,30 @@ Session.send(request) { result in
 
 ## Requirements
 
-- Swift 3.0 or later
+- Swift 5.0 or later
 - iOS 8.0 or later
-- Mac OS 10.10 or later
+- Mac OS 10.11 or later
 - watchOS 2.0 or later
 - tvOS 9.0 or later
 
 If you use Swift 2.2 or 2.3, try [APIKit 2.0.5](https://github.com/ishkawa/APIKit/tree/2.0.5).
 
+If you use Swift 4.2 or before, try [APIKit 4.1.0](https://github.com/ishkawa/APIKit/tree/release/4.1.0).
+
 ## Installation
 
 #### [Carthage](https://github.com/Carthage/Carthage)
 
-- Insert `github "ishkawa/APIKit" ~> 3.1` to your Cartfile.
+- Insert `github "ishkawa/APIKit" ~> 5.0` to your Cartfile.
 - Run `carthage update`.
 - Link your app with `APIKit.framework` and `Result.framework` in `Carthage/Build`.
 
 #### [CocoaPods](https://github.com/cocoapods/cocoapods)
 
-- Insert `pod 'APIKit', '~> 3.1'` to your Podfile.
+- Insert `pod 'APIKit', '~> 5.0'` to your Podfile.
 - Run `pod install`.
 
-Note: CocoaPods 1.1.0 is required to install APIKit 3.
+Note: CocoaPods 1.1.0 is required to install APIKit 5.
 
 ## Documentation
 
diff --git a/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift b/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift
index 0b1e2d2d..d1337978 100644
--- a/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift
+++ b/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift
@@ -58,7 +58,7 @@ public struct MultipartFormDataBodyParameters: BodyParameters {
 
 public extension MultipartFormDataBodyParameters {
     /// Part represents single part of multipart/form-data.
-    public struct Part {
+    struct Part {
         public enum Error: Swift.Error {
             case illegalValue(Any)
             case illegalFileURL(URL)
diff --git a/Sources/APIKit/Info.plist b/Sources/APIKit/Info.plist
index 0e9f1f71..ebe40223 100644
--- a/Sources/APIKit/Info.plist
+++ b/Sources/APIKit/Info.plist
@@ -15,7 +15,7 @@
 	<key>CFBundlePackageType</key>
 	<string>FMWK</string>
 	<key>CFBundleShortVersionString</key>
-	<string>4.0.0</string>
+	<string>5.0.0</string>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<key>CFBundleVersion</key>
diff --git a/Sources/APIKit/Request.swift b/Sources/APIKit/Request.swift
index e65e3819..efe68c97 100644
--- a/Sources/APIKit/Request.swift
+++ b/Sources/APIKit/Request.swift
@@ -1,5 +1,4 @@
 import Foundation
-import Result
 
 /// `Request` protocol represents a request for Web API.
 /// Following 5 items must be implemented.
@@ -62,11 +61,11 @@ public protocol Request {
 }
 
 public extension Request {
-    public var parameters: Any? {
+    var parameters: Any? {
         return nil
     }
 
-    public var queryParameters: [String: Any]? {
+    var queryParameters: [String: Any]? {
         guard let parameters = parameters as? [String: Any], method.prefersQueryParameters else {
             return nil
         }
@@ -74,7 +73,7 @@ public extension Request {
         return parameters
     }
 
-    public var bodyParameters: BodyParameters? {
+    var bodyParameters: BodyParameters? {
         guard let parameters = parameters, !method.prefersQueryParameters else {
             return nil
         }
@@ -82,19 +81,19 @@ public extension Request {
         return JSONBodyParameters(JSONObject: parameters)
     }
 
-    public var headerFields: [String: String] {
+    var headerFields: [String: String] {
         return [:]
     }
 
-    public var dataParser: DataParser {
+    var dataParser: DataParser {
         return JSONDataParser(readingOptions: [])
     }
 
-    public func intercept(urlRequest: URLRequest) throws -> URLRequest {
+    func intercept(urlRequest: URLRequest) throws -> URLRequest {
         return urlRequest
     }
 
-    public func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
+    func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any {
         guard 200..<300 ~= urlResponse.statusCode else {
             throw ResponseError.unacceptableStatusCode(urlResponse.statusCode)
         }
@@ -103,7 +102,7 @@ public extension Request {
 
     /// Builds `URLRequest` from properties of `self`.
     /// - Throws: `RequestError`, `Error`
-    public func buildURLRequest() throws -> URLRequest {
+    func buildURLRequest() throws -> URLRequest {
         let url = path.isEmpty ? baseURL : baseURL.appendingPathComponent(path)
         guard var components = URLComponents(url: url, resolvingAgainstBaseURL: true) else {
             throw RequestError.invalidBaseURL(baseURL)
@@ -140,7 +139,7 @@ public extension Request {
 
     /// Builds `Response` from response `Data`.
     /// - Throws: `ResponseError`, `Error`
-    public func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
+    func parse(data: Data, urlResponse: HTTPURLResponse) throws -> Response {
         let parsedObject = try dataParser.parse(data: data)
         let passedObject = try intercept(object: parsedObject, urlResponse: urlResponse)
         return try response(from: passedObject, urlResponse: urlResponse)
diff --git a/Sources/APIKit/Session.swift b/Sources/APIKit/Session.swift
index 72a9405e..606531a6 100644
--- a/Sources/APIKit/Session.swift
+++ b/Sources/APIKit/Session.swift
@@ -1,5 +1,4 @@
 import Foundation
-import Result
 
 private var taskRequestKey = 0
 
diff --git a/Sources/APIKit/Unavailable.swift b/Sources/APIKit/Unavailable.swift
index 92765230..2c05f7f6 100644
--- a/Sources/APIKit/Unavailable.swift
+++ b/Sources/APIKit/Unavailable.swift
@@ -6,8 +6,6 @@
 //  Copyright © 2016 Yosuke Ishikawa. All rights reserved.
 //
 
-import Result
-
 // MARK: - Protocols
 
 @available(*, unavailable, renamed: "Request")
diff --git a/Tests/APIKitTests/SessionTests.swift b/Tests/APIKitTests/SessionTests.swift
index 138fdf9f..d65a235e 100644
--- a/Tests/APIKitTests/SessionTests.swift
+++ b/Tests/APIKitTests/SessionTests.swift
@@ -1,7 +1,6 @@
 import Foundation
 import APIKit
 import XCTest
-import Result
 
 class SessionTests: XCTestCase {
     var adapter: TestSessionAdapter!
diff --git a/Tests/APIKitTests/TestComponents/HTTPStub.swift b/Tests/APIKitTests/TestComponents/HTTPStub.swift
index b56ff6d5..6170d79f 100644
--- a/Tests/APIKitTests/TestComponents/HTTPStub.swift
+++ b/Tests/APIKitTests/TestComponents/HTTPStub.swift
@@ -1,6 +1,5 @@
 import Foundation
 import Dispatch
-import Result
 
 class HTTPStub: URLProtocol {
     static var stubResult: Result<Data, NSError> = .success(Data())

From c2832defe67521c24e3aa880bc589834ef40cc4f Mon Sep 17 00:00:00 2001
From: lau <chn.lyzasd@gmail.com>
Date: Tue, 2 Apr 2019 14:52:44 +0800
Subject: [PATCH 02/17] edit podspec file

---
 APIKit.podspec | 8 +++-----
 Package.swift  | 4 ++--
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/APIKit.podspec b/APIKit.podspec
index 4a32f309..c0a36453 100644
--- a/APIKit.podspec
+++ b/APIKit.podspec
@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name     = "APIKit"
-  s.version  = "4.0.0"
+  s.version  = "5.0.0"
   s.summary  = "Type-safe networking abstraction layer that associates request type with response type."
   s.homepage = "https://github.com/ishkawa/APIKit"
 
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
   }
 
   s.ios.deployment_target = "8.0"
-  s.osx.deployment_target = "10.10"
+  s.osx.deployment_target = "10.11"
   if s.respond_to?(:watchos)
     s.watchos.deployment_target = "2.0"
   end
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
       :tag => "#{s.version}",
   }
 
-  s.swift_version = "4.0"
+  s.swift_version = "5.0"
 
   s.license = {
     :type => "MIT",
@@ -34,6 +34,4 @@ Pod::Spec.new do |s|
       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     LICENSE
   }
-
-  s.dependency "Result", "~> 4.0"
 end
diff --git a/Package.swift b/Package.swift
index 0b9f1c72..747e0c65 100644
--- a/Package.swift
+++ b/Package.swift
@@ -7,7 +7,7 @@ let package = Package(
         .library(name: "APIKit", targets: ["APIKit"]),
     ],
     dependencies: [
-        .package(url: "https://github.com/antitypical/Result.git", from: "4.0.0"),
+        .package(url: "https://github.com/antitypical/Result.git", from: "5.0.0"),
     ],
     targets: [
         .target(
@@ -20,5 +20,5 @@ let package = Package(
             dependencies: ["APIKit"]
         ),
     ],
-    swiftLanguageVersions: [4]
+    swiftLanguageVersions: [5]
 )

From e80306f22b93f29c3f10feb36a7dfefd79c51635 Mon Sep 17 00:00:00 2001
From: lau <chn.lyzasd@gmail.com>
Date: Mon, 8 Apr 2019 10:32:30 +0800
Subject: [PATCH 03/17] update

---
 APIKit.xcodeproj/project.pbxproj | 4 ++--
 Package.swift                    | 6 +-----
 README.md                        | 2 +-
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/APIKit.xcodeproj/project.pbxproj b/APIKit.xcodeproj/project.pbxproj
index 6f193f5d..6f4ec7b0 100644
--- a/APIKit.xcodeproj/project.pbxproj
+++ b/APIKit.xcodeproj/project.pbxproj
@@ -574,7 +574,7 @@
 				ENABLE_TESTABILITY = YES;
 				GCC_NO_COMMON_BLOCKS = YES;
 				ONLY_ACTIVE_ARCH = YES;
-				SWIFT_VERSION = 4.0;
+				SWIFT_VERSION = 5.0;
 			};
 			name = Debug;
 		};
@@ -594,7 +594,7 @@
 				CLANG_WARN_STRICT_PROTOTYPES = YES;
 				CLANG_WARN_SUSPICIOUS_MOVE = YES;
 				GCC_NO_COMMON_BLOCKS = YES;
-				SWIFT_VERSION = 4.0;
+				SWIFT_VERSION = 5.0;
 			};
 			name = Release;
 		};
diff --git a/Package.swift b/Package.swift
index 747e0c65..e0cb808f 100644
--- a/Package.swift
+++ b/Package.swift
@@ -6,13 +6,9 @@ let package = Package(
     products: [
         .library(name: "APIKit", targets: ["APIKit"]),
     ],
-    dependencies: [
-        .package(url: "https://github.com/antitypical/Result.git", from: "5.0.0"),
-    ],
     targets: [
         .target(
-            name: "APIKit", 
-            dependencies: ["Result"],
+            name: "APIKit",
             exclude: ["BodyParameters/AbstractInputStream.m"]
         ),
          .testTarget(
diff --git a/README.md b/README.md
index f9036697..0df78d17 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ If you use Swift 4.2 or before, try [APIKit 4.1.0](https://github.com/ishkawa/AP
 - Insert `pod 'APIKit', '~> 5.0'` to your Podfile.
 - Run `pod install`.
 
-Note: CocoaPods 1.1.0 is required to install APIKit 5.
+Note: CocoaPods 1.4.0 is required to install APIKit 5.
 
 ## Documentation
 

From 55ba93da64e221635e0fa79f27cd218730309935 Mon Sep 17 00:00:00 2001
From: lau <chn.lyzasd@gmail.com>
Date: Mon, 8 Apr 2019 11:09:13 +0800
Subject: [PATCH 04/17] Merge pull request #270

---
 .travis.yml                                   | 52 +++++++------------
 APIKit.podspec                                |  2 +-
 APIKit.xcodeproj/project.pbxproj              |  4 +-
 .../ProtobufBodyParametersTests.swift         |  3 ++
 .../ProtobufDataParserTests.swift             |  3 ++
 5 files changed, 29 insertions(+), 35 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 53d24f72..cc4bfba4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,29 +4,16 @@ env:
 
 matrix:
   include:
-    - os: osx
+    - &podspec
+      os: osx
       language: objective-c
-      osx_image: xcode9.2
+      osx_image: xcode10.2
       script:
-        - set -o pipefail
-        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
-        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c
-        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
-      after_success:
-        - bash <(curl -s https://codecov.io/bash)
-    - os: osx
-      language: objective-c
-      osx_image: xcode9.4
-      script:
-        - set -o pipefail
-        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
-        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c
-        - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
-      after_success:
-        - bash <(curl -s https://codecov.io/bash)
-    - os: osx
+        - pod lib lint --allow-warnings
+    - &xcode
+      os: osx
       language: objective-c
-      osx_image: xcode10
+      osx_image: xcode9.2
       script:
         - set -o pipefail
         - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
@@ -34,24 +21,25 @@ matrix:
         - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
       after_success:
         - bash <(curl -s https://codecov.io/bash)
-    - os: osx
+    - <<: *xcode
+      osx_image: xcode9.4
+    - <<: *xcode
+      osx_image: xcode10.1
+    - <<: *xcode
+      osx_image: xcode10.2
+    - &swiftpm
+      os: osx
       language: generic
       osx_image: xcode9.2
       script:
         - swift build
         - swift test
-    - os: osx
-      language: generic
+    - <<: *swiftpm
       osx_image: xcode9.4
-      script:
-        - swift build
-        - swift test
-    - os: osx
-      language: generic
-      osx_image: xcode10
-      script:
-        - swift build
-        - swift test
+    - <<: *swiftpm
+      osx_image: xcode10.1
+    - <<: *swiftpm
+      osx_image: xcode10.2
 
 notifications:
   email: false
diff --git a/APIKit.podspec b/APIKit.podspec
index c0a36453..ac95ba79 100644
--- a/APIKit.podspec
+++ b/APIKit.podspec
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
   }
 
   s.ios.deployment_target = "8.0"
-  s.osx.deployment_target = "10.11"
+  s.osx.deployment_target = "10.10"
   if s.respond_to?(:watchos)
     s.watchos.deployment_target = "2.0"
   end
diff --git a/APIKit.xcodeproj/project.pbxproj b/APIKit.xcodeproj/project.pbxproj
index 6f4ec7b0..2795a54a 100644
--- a/APIKit.xcodeproj/project.pbxproj
+++ b/APIKit.xcodeproj/project.pbxproj
@@ -516,7 +516,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				DEFINES_MODULE = YES;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
-				MACOSX_DEPLOYMENT_TARGET = 10.11;
+				MACOSX_DEPLOYMENT_TARGET = 10.10;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
 				SWIFT_VERSION = 5.0;
@@ -530,7 +530,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				DEFINES_MODULE = YES;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
-				MACOSX_DEPLOYMENT_TARGET = 10.11;
+				MACOSX_DEPLOYMENT_TARGET = 10.10;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
 				SWIFT_VERSION = 5.0;
diff --git a/Tests/APIKitTests/BodyParametersType/ProtobufBodyParametersTests.swift b/Tests/APIKitTests/BodyParametersType/ProtobufBodyParametersTests.swift
index 844ea00d..e58102d3 100644
--- a/Tests/APIKitTests/BodyParametersType/ProtobufBodyParametersTests.swift
+++ b/Tests/APIKitTests/BodyParametersType/ProtobufBodyParametersTests.swift
@@ -4,6 +4,8 @@ import APIKit
 
 class ProtobufBodyParametersTests: XCTestCase {
     func testProtobufSuccess() {
+        // Temporarily gated due to https://openradar.appspot.com/49262697
+        if #available(macOS 10.11, *) {
         let object = NSKeyedArchiver.archivedData(withRootObject: ["foo": 1, "bar": 2, "baz": 3])
         let parameters = ProtobufBodyParameters(protobufObject: object)
         XCTAssertEqual(parameters.contentType, "application/protobuf")
@@ -21,5 +23,6 @@ class ProtobufBodyParametersTests: XCTestCase {
         } catch {
             XCTFail()
         }
+        }
     }
 }
diff --git a/Tests/APIKitTests/DataParserType/ProtobufDataParserTests.swift b/Tests/APIKitTests/DataParserType/ProtobufDataParserTests.swift
index e517e5c7..968b31e0 100644
--- a/Tests/APIKitTests/DataParserType/ProtobufDataParserTests.swift
+++ b/Tests/APIKitTests/DataParserType/ProtobufDataParserTests.swift
@@ -9,6 +9,8 @@ class ProtobufDataParserTests: XCTestCase {
     }
     
     func testProtobufSuccess() {
+        // Temporarily gated due to https://openradar.appspot.com/49262697
+        if #available(macOS 10.11, *) {
         let data = NSKeyedArchiver.archivedData(withRootObject: ["foo": 1, "bar": 2, "baz": 3])
         let parser = ProtobufDataParser()
         
@@ -21,5 +23,6 @@ class ProtobufDataParserTests: XCTestCase {
         } catch {
             XCTFail()
         }
+        }
     }
 }

From bb985f10dfb6b2f1fce69aa13d09e78bb923c1f7 Mon Sep 17 00:00:00 2001
From: commandZi <chn.lyzasd@gmail.com>
Date: Mon, 8 Apr 2019 11:13:25 +0800
Subject: [PATCH 05/17] Update README.md

Fixed requirements.
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 0df78d17..56c38bdd 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ Session.send(request) { result in
 
 - Swift 5.0 or later
 - iOS 8.0 or later
-- Mac OS 10.11 or later
+- Mac OS 10.10 or later
 - watchOS 2.0 or later
 - tvOS 9.0 or later
 

From 723c099bc55bd77adbc2951a903815289ff5e58a Mon Sep 17 00:00:00 2001
From: lau <chn.lyzasd@gmail.com>
Date: Tue, 9 Apr 2019 15:53:23 +0800
Subject: [PATCH 06/17] Remove the `.swift-version` file which is now
 deprecated.

---
 .swift-version | 1 -
 1 file changed, 1 deletion(-)
 delete mode 100644 .swift-version

diff --git a/.swift-version b/.swift-version
deleted file mode 100644
index 5186d070..00000000
--- a/.swift-version
+++ /dev/null
@@ -1 +0,0 @@
-4.0

From f775ccb97f1311a1cfb7bc472ebfc60acbe53125 Mon Sep 17 00:00:00 2001
From: lau <chn.lyzasd@gmail.com>
Date: Wed, 10 Apr 2019 12:17:28 +0800
Subject: [PATCH 07/17] Revert "Remove the `.swift-version` file which is now
 deprecated."

This reverts commit 723c099bc55bd77adbc2951a903815289ff5e58a.
---
 .swift-version | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 .swift-version

diff --git a/.swift-version b/.swift-version
new file mode 100644
index 00000000..5186d070
--- /dev/null
+++ b/.swift-version
@@ -0,0 +1 @@
+4.0

From 9867fc3aa8e7cea970a986a020fb92054d7a0b8f Mon Sep 17 00:00:00 2001
From: lau <chn.lyzasd@gmail.com>
Date: Wed, 10 Apr 2019 14:19:53 +0800
Subject: [PATCH 08/17] Fix .swift-version file

---
 .swift-version | 2 +-
 Package.swift  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.swift-version b/.swift-version
index 5186d070..819e07a2 100644
--- a/.swift-version
+++ b/.swift-version
@@ -1 +1 @@
-4.0
+5.0
diff --git a/Package.swift b/Package.swift
index e0cb808f..13644d4f 100644
--- a/Package.swift
+++ b/Package.swift
@@ -16,5 +16,5 @@ let package = Package(
             dependencies: ["APIKit"]
         ),
     ],
-    swiftLanguageVersions: [5]
+    swiftLanguageVersions: [.v5]
 )

From 92a498316b89c02ed9198bc39144547533592937 Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 20:38:11 +0900
Subject: [PATCH 09/17] Update .travis.yml

---
 .travis.yml | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index cc4bfba4..9e4550f1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,7 @@ matrix:
     - &xcode
       os: osx
       language: objective-c
-      osx_image: xcode9.2
+      osx_image: xcode10.2
       script:
         - set -o pipefail
         - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
@@ -21,25 +21,13 @@ matrix:
         - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
       after_success:
         - bash <(curl -s https://codecov.io/bash)
-    - <<: *xcode
-      osx_image: xcode9.4
-    - <<: *xcode
-      osx_image: xcode10.1
-    - <<: *xcode
-      osx_image: xcode10.2
     - &swiftpm
       os: osx
       language: generic
-      osx_image: xcode9.2
+      osx_image: xcode10.2
       script:
         - swift build
         - swift test
-    - <<: *swiftpm
-      osx_image: xcode9.4
-    - <<: *swiftpm
-      osx_image: xcode10.1
-    - <<: *swiftpm
-      osx_image: xcode10.2
 
 notifications:
   email: false

From a476ca91c24304de4982db7cc1e62cae31efacdf Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 20:39:48 +0900
Subject: [PATCH 10/17] Remove target level SWIFT_VERSION build settings

---
 APIKit.xcodeproj/project.pbxproj | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/APIKit.xcodeproj/project.pbxproj b/APIKit.xcodeproj/project.pbxproj
index 2795a54a..76d608d8 100644
--- a/APIKit.xcodeproj/project.pbxproj
+++ b/APIKit.xcodeproj/project.pbxproj
@@ -519,7 +519,6 @@
 				MACOSX_DEPLOYMENT_TARGET = 10.10;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
-				SWIFT_VERSION = 5.0;
 			};
 			name = Debug;
 		};
@@ -533,7 +532,6 @@
 				MACOSX_DEPLOYMENT_TARGET = 10.10;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
-				SWIFT_VERSION = 5.0;
 			};
 			name = Release;
 		};
@@ -542,7 +540,6 @@
 			baseConfigurationReference = 141F12401C1C9EA30026D415 /* Tests.xcconfig */;
 			buildSettings = {
 				INFOPLIST_FILE = Tests/APIKitTests/Info.plist;
-				SWIFT_VERSION = 5.0;
 			};
 			name = Debug;
 		};
@@ -552,7 +549,6 @@
 			buildSettings = {
 				INFOPLIST_FILE = Tests/APIKitTests/Info.plist;
 				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
-				SWIFT_VERSION = 5.0;
 			};
 			name = Release;
 		};

From 8b1c2bea2d7f482fe866eb08c2be943adf60fd63 Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 20:49:04 +0900
Subject: [PATCH 11/17] Remove empty .gitmodules

---
 .gitmodules | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 delete mode 100644 .gitmodules

diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index e69de29b..00000000

From 868117fe528bf10e5b89dd7970d74114e2e5398a Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 20:53:24 +0900
Subject: [PATCH 12/17] Revert unnecessary changes

---
 APIKit.xcodeproj/project.pbxproj | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/APIKit.xcodeproj/project.pbxproj b/APIKit.xcodeproj/project.pbxproj
index 76d608d8..1f476eb1 100644
--- a/APIKit.xcodeproj/project.pbxproj
+++ b/APIKit.xcodeproj/project.pbxproj
@@ -53,7 +53,7 @@
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
-		BDFB151A2253060A00D8C94B /* PBXContainerItemProxy */ = {
+		7F4A73AC1CA839AE002554B1 /* PBXContainerItemProxy */ = {
 			isa = PBXContainerItemProxy;
 			containerPortal = 7F45FCD41A94D02C006863BB /* Project object */;
 			proxyType = 1;
@@ -380,7 +380,7 @@
 			buildRules = (
 			);
 			dependencies = (
-				BDFB151B2253060A00D8C94B /* PBXTargetDependency */,
+				7F4A73AD1CA839AE002554B1 /* PBXTargetDependency */,
 			);
 			name = Tests;
 			productName = APIKitTests;
@@ -501,10 +501,10 @@
 /* End PBXSourcesBuildPhase section */
 
 /* Begin PBXTargetDependency section */
-		BDFB151B2253060A00D8C94B /* PBXTargetDependency */ = {
+		7F4A73AD1CA839AE002554B1 /* PBXTargetDependency */ = {
 			isa = PBXTargetDependency;
 			target = 141F12161C1C9ABE0026D415 /* APIKit */;
-			targetProxy = BDFB151A2253060A00D8C94B /* PBXContainerItemProxy */;
+			targetProxy = 7F4A73AC1CA839AE002554B1 /* PBXContainerItemProxy */;
 		};
 /* End PBXTargetDependency section */
 

From 7a92725fda2ddfcbda76ee62a6f1770f36c43d22 Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 20:54:54 +0900
Subject: [PATCH 13/17] Remove unnecessary target level
 MACOSX_DEPLOYMENT_TARGET

---
 APIKit.xcodeproj/project.pbxproj | 2 --
 1 file changed, 2 deletions(-)

diff --git a/APIKit.xcodeproj/project.pbxproj b/APIKit.xcodeproj/project.pbxproj
index 1f476eb1..11a6bbc0 100644
--- a/APIKit.xcodeproj/project.pbxproj
+++ b/APIKit.xcodeproj/project.pbxproj
@@ -516,7 +516,6 @@
 				CLANG_ENABLE_MODULES = YES;
 				DEFINES_MODULE = YES;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
 			};
@@ -529,7 +528,6 @@
 				CLANG_ENABLE_MODULES = YES;
 				DEFINES_MODULE = YES;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
 				SWIFT_OBJC_BRIDGING_HEADER = "";
 				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
 			};

From af39702140e54d68c775bffc50d007c3478472ce Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 20:56:34 +0900
Subject: [PATCH 14/17] Fix README

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 56c38bdd..d927057a 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ Session.send(request) { result in
 
 If you use Swift 2.2 or 2.3, try [APIKit 2.0.5](https://github.com/ishkawa/APIKit/tree/2.0.5).
 
-If you use Swift 4.2 or before, try [APIKit 4.1.0](https://github.com/ishkawa/APIKit/tree/release/4.1.0).
+If you use Swift 4.2 or before, try [APIKit 4.1.0](https://github.com/ishkawa/APIKit/tree/4.1.0).
 
 ## Installation
 

From d06fce0898384881d19a79277b3a656a24d94e79 Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 20:59:15 +0900
Subject: [PATCH 15/17] Fix up Package.swift

---
 Package.resolved        | 16 ----------------
 Package.swift           |  6 ++++--
 Package@swift-4.2.swift | 24 ------------------------
 3 files changed, 4 insertions(+), 42 deletions(-)
 delete mode 100644 Package.resolved
 delete mode 100644 Package@swift-4.2.swift

diff --git a/Package.resolved b/Package.resolved
deleted file mode 100644
index dc09c894..00000000
--- a/Package.resolved
+++ /dev/null
@@ -1,16 +0,0 @@
-{
-  "object": {
-    "pins": [
-      {
-        "package": "Result",
-        "repositoryURL": "https://github.com/antitypical/Result.git",
-        "state": {
-          "branch": null,
-          "revision": "8fc088dcf72802801efeecba76ea8fb041fb773d",
-          "version": "4.0.0"
-        }
-      }
-    ]
-  },
-  "version": 1
-}
diff --git a/Package.swift b/Package.swift
index 13644d4f..3f30b4ef 100644
--- a/Package.swift
+++ b/Package.swift
@@ -1,4 +1,4 @@
-// swift-tools-version:4.0
+// swift-tools-version:5.0
 import PackageDescription
 
 let package = Package(
@@ -6,9 +6,11 @@ let package = Package(
     products: [
         .library(name: "APIKit", targets: ["APIKit"]),
     ],
+    dependencies: [],
     targets: [
         .target(
-            name: "APIKit",
+            name: "APIKit", 
+            dependencies: [],
             exclude: ["BodyParameters/AbstractInputStream.m"]
         ),
          .testTarget(
diff --git a/Package@swift-4.2.swift b/Package@swift-4.2.swift
deleted file mode 100644
index 9021d1eb..00000000
--- a/Package@swift-4.2.swift
+++ /dev/null
@@ -1,24 +0,0 @@
-// swift-tools-version:4.2
-import PackageDescription
-
-let package = Package(
-    name: "APIKit",
-    products: [
-        .library(name: "APIKit", targets: ["APIKit"]),
-    ],
-    dependencies: [
-        .package(url: "https://github.com/antitypical/Result.git", from: "4.0.0"),
-    ],
-    targets: [
-        .target(
-            name: "APIKit", 
-            dependencies: ["Result"],
-            exclude: ["BodyParameters/AbstractInputStream.m"]
-        ),
-         .testTarget(
-            name: "APIKitTests",
-            dependencies: ["APIKit"]
-        ),
-    ],
-    swiftLanguageVersions: [.v4, .v4_2]
-)

From 8ebce4272998e39bb556b12820bdf0a7dae20ff7 Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 21:02:15 +0900
Subject: [PATCH 16/17] [CI] Add name to build matrix

---
 .travis.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 9e4550f1..5835af9b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,12 +5,14 @@ env:
 matrix:
   include:
     - &podspec
+      name: CocoaPods Lint
       os: osx
       language: objective-c
       osx_image: xcode10.2
       script:
         - pod lib lint --allow-warnings
     - &xcode
+      name: Xcode 10.2 / Swift 5.0
       os: osx
       language: objective-c
       osx_image: xcode10.2
@@ -22,6 +24,7 @@ matrix:
       after_success:
         - bash <(curl -s https://codecov.io/bash)
     - &swiftpm
+      name: SwiftPM / Darwin / Swift 5.0
       os: osx
       language: generic
       osx_image: xcode10.2

From 5f4b96bd81f9475cce28bfa2cd1655a9f8d86e7c Mon Sep 17 00:00:00 2001
From: Sho Ikeda <suicaicoca@gmail.com>
Date: Fri, 12 Apr 2019 21:17:13 +0900
Subject: [PATCH 17/17] Add platforms to Package.swift

---
 Package.swift | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Package.swift b/Package.swift
index 3f30b4ef..9ce875e0 100644
--- a/Package.swift
+++ b/Package.swift
@@ -3,6 +3,9 @@ import PackageDescription
 
 let package = Package(
     name: "APIKit",
+    platforms: [
+        .macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v2)
+    ],
     products: [
         .library(name: "APIKit", targets: ["APIKit"]),
     ],