Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Support Xcode10, Swift4.2 #22

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,19 @@ matrix:
- set -o pipefail
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit | xcpretty -c
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk iphonesimulator -destination "name=iPhone SE" | xcpretty -c
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk appletvsimulator -destination "name=Apple TV 1080p" | xcpretty -c
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk appletvsimulator -destination "name=Apple TV 4K (at 1080p)" | xcpretty -c
- xcodebuild build -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk watchsimulator | xcpretty -c
- os: osx
osx_image: xcode10
language: objective-c
env:
- JOB=Xcode
script:
- set -o pipefail
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit | xcpretty -c
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk iphonesimulator -destination "name=iPhone SE" | xcpretty -c
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk appletvsimulator -destination "name=Apple TV 4K (at 1080p)" | xcpretty -c
- xcodebuild build -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk watchsimulator | xcpretty -c
- pod lib lint
- os: osx
osx_image: xcode9
language: generic
Expand All @@ -29,6 +39,15 @@ matrix:
- swift --version
- swift build
- swift test
- os: osx
osx_image: xcode10
language: generic
env:
- JOB=SPM
script:
- swift --version
- swift build
- swift test
- os: linux
language: generic
env:
Expand All @@ -42,6 +61,19 @@ matrix:
dist: trusty
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
- os: linux
language: generic
env:
- JOB=Linux
- SWIFT_VERSION=4.2
script:
- swift --version
- swift build
- swift test
sudo: required
dist: trusty
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"

notifications:
email: false
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "antitypical/Result" ~> 3.2.0
github "antitypical/Result" ~> 4.0.0
2 changes: 1 addition & 1 deletion Cartfile.private
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "ishkawa/APIKit" ~> 3.2.0
github "ishkawa/APIKit" ~> 4.0.0
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "antitypical/Result" "3.2.4"
github "ishkawa/APIKit" "3.2.0"
github "antitypical/Result" "4.0.0"
github "ishkawa/APIKit" "4.0.0"
4 changes: 2 additions & 2 deletions JSONRPCKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "JSONRPCKit"
s.version = "3.0.0"
s.version = "4.0.0"
s.summary = "JSONRPCKit is a JSON-RPC 2.0 library purely written in Swift."
s.homepage = "https://github.com/bricklife/JSONRPCKit"

Expand Down Expand Up @@ -28,6 +28,6 @@ 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", "~> 3.2.0"
s.dependency "Result", "~> 4.0.0"

end
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/antitypical/Result.git",
"state": {
"branch": null,
"revision": "7477584259bfce2560a19e06ad9f71db441fff11",
"version": "3.2.4"
"revision": "8fc088dcf72802801efeecba76ea8fb041fb773d",
"version": "4.0.0"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let package = Package(
.library(name: "JSONRPCKit", targets: ["JSONRPCKit"]),
],
dependencies: [
.package(url: "https://github.com/antitypical/Result.git", from: "3.2.0"),
.package(url: "https://github.com/antitypical/Result.git", from: "4.0.0"),
],
targets: [
.target(name: "JSONRPCKit", dependencies: ["Result"]),
Expand Down
23 changes: 23 additions & 0 deletions Package@swift-4.2.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// swift-tools-version:4.2
import PackageDescription

let package = Package(
name: "JSONRPCKit",
products: [
.library(name: "JSONRPCKit", targets: ["JSONRPCKit"]),
],
dependencies: [
.package(url: "https://github.com/antitypical/Result.git", from: "4.0.0"),
],
targets: [
.target(
name: "JSONRPCKit",
dependencies: ["Result"]
),
.testTarget(
name: "JSONRPCKitTests",
dependencies: ["JSONRPCKit"]
),
],
swiftLanguageVersions: [ .v4, .v4_2]
)
2 changes: 1 addition & 1 deletion Sources/JSONRPCKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>4.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down