Skip to content

Commit

Permalink
Update CI; Swift 5.2 is now minimum; Update dependencies (#110)
Browse files Browse the repository at this point in the history
* Update CI; Swift 5.2 is now minimum; Update dependencies
* Update Package.swift to better support differences between Swift 5.5 and prior
  • Loading branch information
dannys42 committed Sep 30, 2022
1 parent 47c6384 commit 08e02ff
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 90 deletions.
46 changes: 10 additions & 36 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,55 +15,29 @@ matrix:
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:4.0.3 SWIFT_SNAPSHOT=4.0.3
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu16.04:5.2.5 SWIFT_TEST_ARGS=""
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:4.1.3 SWIFT_SNAPSHOT=4.1.3
- os: linux
dist: xenial
dist: bionic
sudo: required
services: docker
env: DOCKER_IMAGE=swift:4.2.4 SWIFT_SNAPSHOT=4.2.4
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:5.4 SWIFT_TEST_ARGS=""
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:5.0.3-xenial SWIFT_SNAPSHOT=5.0.3
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:5.1
- os: linux
dist: xenial
sudo: required
services: docker
env: DOCKER_IMAGE=swift:5.1 SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT
- os: osx
osx_image: xcode9.2
sudo: required
env: SWIFT_SNAPSHOT=4.0.3
- os: osx
osx_image: xcode9.4
sudo: required
env: SWIFT_SNAPSHOT=4.1.2
- os: osx
osx_image: xcode10.1
sudo: required
env: SWIFT_SNAPSHOT=4.2.1
env: DOCKER_IMAGE=docker.kitura.net/kitura/swift-ci-ubuntu18.04:latest USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode10.2
osx_image: xcode12.2
sudo: required
env: SWIFT_SNAPSHOT=5.0.1 JAZZY_ELIGIBLE=true
env: JAZZY_ELIGIBLE=true SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode11
osx_image: xcode12.5
sudo: required
env: SWIFT_TEST_ARGS=""
- os: osx
osx_image: xcode11
osx_image: xcode12.5
sudo: required
env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT
env: USE_SWIFT_DEVELOPMENT_SNAPSHOT=1 SWIFT_TEST_ARGS=""

before_install:
- git clone https://github.com/Kitura/Package-Builder.git
Expand Down
24 changes: 17 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.0
// swift-tools-version:5.2

/**
* Copyright IBM Corporation and the Kitura project authors 2018-2020
Expand All @@ -18,6 +18,9 @@

import PackageDescription


let targetDependencies: [Target.Dependency]

let package = Package(
name: "SwiftJWT",
products: [
Expand All @@ -28,15 +31,22 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/Kitura/BlueRSA.git", from: "1.0.200"),
.package(url: "https://github.com/Kitura/BlueCryptor.git", from: "2.0.1"),
.package(url: "https://github.com/Kitura/BlueECC.git", from: "1.1.0"),
.package(url: "https://github.com/Kitura/LoggerAPI.git", from: "1.7.0"),
.package(url: "https://github.com/Kitura/KituraContracts.git", from: "1.2.200")
.package(name: "CryptorRSA", url: "https://github.com/Kitura/BlueRSA.git", from: "1.0.200"),
.package(name: "Cryptor", url: "https://github.com/Kitura/BlueCryptor.git", from: "2.0.1"),
.package(name: "CryptorECC", url: "https://github.com/Kitura/BlueECC.git", from: "1.2.200"),
.package(url: "https://github.com/Kitura/LoggerAPI.git", from: "2.0.0"),
.package(url: "https://github.com/Kitura/KituraContracts.git", from: "2.0.1")
],
targets: [
.target(name: "SwiftJWT", dependencies: ["CryptorRSA", "LoggerAPI", "KituraContracts", "Cryptor", "CryptorECC"]),
.target(name: "SwiftJWT", dependencies: [
"LoggerAPI",
"KituraContracts",
"CryptorRSA",
"Cryptor",
"CryptorECC",
]),
.testTarget(name: "SwiftJWTTests", dependencies: ["SwiftJWT"])
]
)


41 changes: 0 additions & 41 deletions [email protected]

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ For more information on JSON Web Tokens, their use cases and how they work, we r
**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.

## Swift version
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.
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.

## Usage

Expand Down
10 changes: 5 additions & 5 deletions SwiftJWT.podspec
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Pod::Spec.new do |s|
s.name = "SwiftJWT"
s.version = "3.6.201"
s.version = "4.0.0"
s.summary = "An implementation of JSON Web Token using Swift."
s.homepage = "https://github.com/Kitura/Swift-JWT"
s.license = { :type => "Apache License, Version 2.0" }
s.authors = 'IBM and the Kitura project authors'
s.module_name = 'SwiftJWT'
s.swift_version = '5.1'
s.swift_version = '5.2'
s.osx.deployment_target = "10.13"
s.ios.deployment_target = "11.0"
s.tvos.deployment_target = "11.0"
s.watchos.deployment_target = "4.0"
s.source = { :git => "https://github.com/Kitura/Swift-JWT.git", :tag => s.version }
s.source_files = "Sources/**/*.swift"
s.dependency 'BlueRSA', '~> 1.0.200'
s.dependency 'BlueECC', '~> 1.1.0'
s.dependency 'LoggerAPI', '~> 1.7.0'
s.dependency 'KituraContracts', '~> 1.2.200'
s.dependency 'BlueCryptor', '~> 2.0.1'
s.dependency 'BlueECC', '~> 1.2.200'
s.dependency 'LoggerAPI', '~> 2.0.0'
s.dependency 'KituraContracts', '~> 2.0.1'
end

0 comments on commit 08e02ff

Please sign in to comment.