From 0c387795b758e577800eb6d6d7a1d52e11a42d0a Mon Sep 17 00:00:00 2001 From: David Jones Date: Tue, 16 Jul 2019 14:59:12 +0100 Subject: [PATCH 1/2] Enable xcode11 build --- .travis.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7bc942a..0d0cf4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,11 +47,10 @@ matrix: - os: osx osx_image: xcode10.2 sudo: required -# Pending Travis Xcode 11 image -# - os: osx -# osx_image: xcode11 -# sudo: required -# env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT + - os: osx + osx_image: xcode11 + sudo: required + env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT before_install: - git clone https://github.com/IBM-Swift/Package-Builder.git From b34bfc99a7a87c5651a5a4be86b82e1b25b27715 Mon Sep 17 00:00:00 2001 From: David Jones Date: Tue, 16 Jul 2019 14:59:23 +0100 Subject: [PATCH 2/2] Resolve compilation warning --- Sources/CryptorECC/ECPublicKey.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CryptorECC/ECPublicKey.swift b/Sources/CryptorECC/ECPublicKey.swift index e00c0cb..4189b00 100644 --- a/Sources/CryptorECC/ECPublicKey.swift +++ b/Sources/CryptorECC/ECPublicKey.swift @@ -82,7 +82,7 @@ public class ECPublicKey { */ public convenience init(key: String) throws { let strippedKey = String(key.filter { !" \n\t\r".contains($0) }) - var pemComponents = strippedKey.components(separatedBy: "-----") + let pemComponents = strippedKey.components(separatedBy: "-----") guard pemComponents.count == 5 else { throw ECError.invalidPEMString }