From d9e589efac7b1901c88d392ad63e7fe9dacd6652 Mon Sep 17 00:00:00 2001 From: Orkhan Alikhanov Date: Sat, 26 May 2018 15:09:25 +0400 Subject: [PATCH] Updated SPM swift tools to 4.0 --- .travis.yml | 6 +++--- Package.swift | 17 ++++++++++++++++- Socket.swift.podspec | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41b60f1..d025221 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,21 +14,21 @@ matrix: script: env LD_LIBRARY_PATH='/usr/local/lib:/usr/local/opt/libressl/lib:$LD_LIBRARY_PATH' swift test - os: osx - osx_image: xcode9 + osx_image: xcode9.3 dist: trusty sudo: required env: ACTION=test PLATFORM=Mac DESTINATION='platform=OS X' script: set -o pipefail && xcodebuild -scheme SocketSwift -destination "$DESTINATION" $ACTION | xcpretty - os: osx - osx_image: xcode9 + osx_image: xcode9.3 dist: trusty sudo: required env: ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone 6S' script: set -o pipefail && xcodebuild -scheme SocketSwift -destination "$DESTINATION" $ACTION | xcpretty - os: osx - osx_image: xcode9 + osx_image: xcode9.3 dist: trusty sudo: required env: ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p' diff --git a/Package.swift b/Package.swift index 5cdbee5..5360468 100644 --- a/Package.swift +++ b/Package.swift @@ -1,8 +1,23 @@ +// swift-tools-version:4.0 + import PackageDescription let package = Package( name: "SocketSwift", + products: [ + .library( + name: "SocketSwift", + targets: ["SocketSwift"]), + ], dependencies: [ - .Package(url: "https://github.com/Zewo/CLibreSSL.git", majorVersion: 3, minor: 1), + .package(url: "https://github.com/Zewo/CLibreSSL.git", from: "3.1.0"), + ], + targets: [ + .target( + name: "SocketSwift", + path: "Sources"), + .testTarget( + name: "SocketSwiftTests", + dependencies: ["SocketSwift"]), ] ) diff --git a/Socket.swift.podspec b/Socket.swift.podspec index 8ed795b..44fb1ec 100644 --- a/Socket.swift.podspec +++ b/Socket.swift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Socket.swift' - s.version = '2.2.0' + s.version = '2.2.1' s.summary = 'A POSIX socket wrapper written in swift.' s.homepage = 'https://github.com/BiAtoms/Socket.swift' s.license = { :type => 'MIT', :file => 'LICENSE' }