Skip to content

Commit 08e02ff

Browse files
authored
Update CI; Swift 5.2 is now minimum; Update dependencies (#110)
* Update CI; Swift 5.2 is now minimum; Update dependencies * Update Package.swift to better support differences between Swift 5.5 and prior
1 parent 47c6384 commit 08e02ff

File tree

5 files changed

+33
-90
lines changed

5 files changed

+33
-90
lines changed

.travis.yml

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,55 +15,29 @@ matrix:
1515
dist: xenial
1616
sudo: required
1717
services: docker
18-
env: DOCKER_IMAGE=swift:4.0.3 SWIFT_SNAPSHOT=4.0.3
18+
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu16.04:5.2.5 SWIFT_TEST_ARGS=""
1919
- os: linux
20-
dist: xenial
21-
sudo: required
22-
services: docker
23-
env: DOCKER_IMAGE=swift:4.1.3 SWIFT_SNAPSHOT=4.1.3
24-
- os: linux
25-
dist: xenial
20+
dist: bionic
2621
sudo: required
2722
services: docker
28-
env: DOCKER_IMAGE=swift:4.2.4 SWIFT_SNAPSHOT=4.2.4
23+
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:5.4 SWIFT_TEST_ARGS=""
2924
- os: linux
3025
dist: xenial
3126
sudo: required
3227
services: docker
33-
env: DOCKER_IMAGE=swift:5.0.3-xenial SWIFT_SNAPSHOT=5.0.3
34-
- os: linux
35-
dist: xenial
36-
sudo: required
37-
services: docker
38-
env: DOCKER_IMAGE=swift:5.1
39-
- os: linux
40-
dist: xenial
41-
sudo: required
42-
services: docker
43-
env: DOCKER_IMAGE=swift:5.1 SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT
44-
- os: osx
45-
osx_image: xcode9.2
46-
sudo: required
47-
env: SWIFT_SNAPSHOT=4.0.3
48-
- os: osx
49-
osx_image: xcode9.4
50-
sudo: required
51-
env: SWIFT_SNAPSHOT=4.1.2
52-
- os: osx
53-
osx_image: xcode10.1
54-
sudo: required
55-
env: SWIFT_SNAPSHOT=4.2.1
28+
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:latest USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""
5629
- os: osx
57-
osx_image: xcode10.2
30+
osx_image: xcode12.2
5831
sudo: required
59-
env: SWIFT_SNAPSHOT=5.0.1 JAZZY_ELIGIBLE=true
32+
env: JAZZY_ELIGIBLE=true SWIFT_TEST_ARGS=""
6033
- os: osx
61-
osx_image: xcode11
34+
osx_image: xcode12.5
6235
sudo: required
36+
env: SWIFT_TEST_ARGS=""
6337
- os: osx
64-
osx_image: xcode11
38+
osx_image: xcode12.5
6539
sudo: required
66-
env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT
40+
env: USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""
6741

6842
before_install:
6943
- git clone https://github.com/Kitura/Package-Builder.git

Package.swift

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.2
22

33
/**
44
* Copyright IBM Corporation and the Kitura project authors 2018-2020
@@ -18,6 +18,9 @@
1818

1919
import PackageDescription
2020

21+
22+
let targetDependencies: [Target.Dependency]
23+
2124
let package = Package(
2225
name: "SwiftJWT",
2326
products: [
@@ -28,15 +31,22 @@ let package = Package(
2831
)
2932
],
3033
dependencies: [
31-
.package(url: "https://github.com/Kitura/BlueRSA.git", from: "1.0.200"),
32-
.package(url: "https://github.com/Kitura/BlueCryptor.git", from: "2.0.1"),
33-
.package(url: "https://github.com/Kitura/BlueECC.git", from: "1.1.0"),
34-
.package(url: "https://github.com/Kitura/LoggerAPI.git", from: "1.7.0"),
35-
.package(url: "https://github.com/Kitura/KituraContracts.git", from: "1.2.200")
34+
.package(name: "CryptorRSA", url: "https://github.com/Kitura/BlueRSA.git", from: "1.0.200"),
35+
.package(name: "Cryptor", url: "https://github.com/Kitura/BlueCryptor.git", from: "2.0.1"),
36+
.package(name: "CryptorECC", url: "https://github.com/Kitura/BlueECC.git", from: "1.2.200"),
37+
.package(url: "https://github.com/Kitura/LoggerAPI.git", from: "2.0.0"),
38+
.package(url: "https://github.com/Kitura/KituraContracts.git", from: "2.0.1")
3639
],
3740
targets: [
38-
.target(name: "SwiftJWT", dependencies: ["CryptorRSA", "LoggerAPI", "KituraContracts", "Cryptor", "CryptorECC"]),
41+
.target(name: "SwiftJWT", dependencies: [
42+
"LoggerAPI",
43+
"KituraContracts",
44+
"CryptorRSA",
45+
"Cryptor",
46+
"CryptorECC",
47+
]),
3948
.testTarget(name: "SwiftJWTTests", dependencies: ["SwiftJWT"])
4049
]
4150
)
4251

52+

Package@swift-4.swift

Lines changed: 0 additions & 41 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For more information on JSON Web Tokens, their use cases and how they work, we r
2929
**Reminder:** JWTs sent as JWS do **not** encrypt data, so never send anything sensitive or confidential in a JWT. This library does not currently support JWE.
3030

3131
## Swift version
32-
The latest version of Swift-JWT requires **Swift 4.0** or later. You can download this version of the Swift binaries by following this [link](https://swift.org/download/). Compatibility with other Swift versions is not guaranteed.
32+
The latest version of Swift-JWT requires **Swift 5.2** or later. You can download this version of the Swift binaries by following this [link](https://swift.org/download/). Compatibility with other Swift versions is not guaranteed.
3333

3434
## Usage
3535

SwiftJWT.podspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
Pod::Spec.new do |s|
22
s.name = "SwiftJWT"
3-
s.version = "3.6.201"
3+
s.version = "4.0.0"
44
s.summary = "An implementation of JSON Web Token using Swift."
55
s.homepage = "https://github.com/Kitura/Swift-JWT"
66
s.license = { :type => "Apache License, Version 2.0" }
77
s.authors = 'IBM and the Kitura project authors'
88
s.module_name = 'SwiftJWT'
9-
s.swift_version = '5.1'
9+
s.swift_version = '5.2'
1010
s.osx.deployment_target = "10.13"
1111
s.ios.deployment_target = "11.0"
1212
s.tvos.deployment_target = "11.0"
1313
s.watchos.deployment_target = "4.0"
1414
s.source = { :git => "https://github.com/Kitura/Swift-JWT.git", :tag => s.version }
1515
s.source_files = "Sources/**/*.swift"
1616
s.dependency 'BlueRSA', '~> 1.0.200'
17-
s.dependency 'BlueECC', '~> 1.1.0'
18-
s.dependency 'LoggerAPI', '~> 1.7.0'
19-
s.dependency 'KituraContracts', '~> 1.2.200'
2017
s.dependency 'BlueCryptor', '~> 2.0.1'
18+
s.dependency 'BlueECC', '~> 1.2.200'
19+
s.dependency 'LoggerAPI', '~> 2.0.0'
20+
s.dependency 'KituraContracts', '~> 2.0.1'
2121
end

0 commit comments

Comments
 (0)