Skip to content

Commit

Permalink
Merge pull request #265 from ishkawa/xcode10-swift4.2
Browse files Browse the repository at this point in the history
Support Xcode 10 and Swift 4.2
  • Loading branch information
ikesyo authored Oct 17, 2018
2 parents dc4350d + 7e2aace commit 0837a16
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ matrix:
- bash <(curl -s https://codecov.io/bash)
- os: osx
language: objective-c
osx_image: xcode9.3
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
language: objective-c
osx_image: xcode10
script:
- set -o pipefail
- xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
Expand All @@ -32,7 +42,13 @@ matrix:
- swift test
- os: osx
language: generic
osx_image: xcode9.3
osx_image: xcode9.4
script:
- swift build
- swift test
- os: osx
language: generic
osx_image: xcode10
script:
- swift build
- swift test
Expand Down
24 changes: 24 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// 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]
)
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,18 @@ public extension MultipartFormDataBodyParameters {
set { }
}

override func schedule(in aRunLoop: RunLoop, forMode mode: RunLoopMode) {
override func schedule(in aRunLoop: RunLoop, forMode mode: RunLoop.Mode) {

}

override func remove(from aRunLoop: RunLoop, forMode mode: RunLoopMode) {
override func remove(from aRunLoop: RunLoop, forMode mode: RunLoop.Mode) {

}
}
}

#if !swift(>=4.2)
extension RunLoop {
internal typealias Mode = RunLoopMode
}
#endif

0 comments on commit 0837a16

Please sign in to comment.