Skip to content

Commit

Permalink
Drop Swift 4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke committed Aug 31, 2019
1 parent 3586dd2 commit 6181816
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
32 changes: 3 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,12 @@ sudo: required
script: swift test -c release -Xswiftc -enable-testing
matrix:
include:
- name: Swift 4.2
os: osx
osx_image: xcode10.1
before_install:
- brew update
- brew install libsodium
- name: Swift 5.0
os: osx
osx_image: xcode10.2
osx_image: xcode10.3
before_install:
- brew update
- brew install libsodium
- name: Swift 4.2
os: linux
dist: trusty
before_install:
# workaround for https://travis-ci.community/t/then-sudo-apt-get-update-failed-public-key-is-not-available-no-pubkey-6b05f25d762e3157-in-ubuntu-xenial/1728
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
- sudo apt update
- sudo apt install libavahi-compat-libdnssd-dev
- wget https://swift.org/builds/swift-4.2.4-release/ubuntu1404/swift-4.2.4-RELEASE/swift-4.2.4-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-4.2.4-RELEASE-ubuntu14.04.tar.gz
- export PATH=`pwd`/swift-4.2.4-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- sudo apt-get install -y libssl-dev
- wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz
- tar xzf libsodium-1.0.16.tar.gz
- cd libsodium-1.0.16
- ./configure
- make && make check
- sudo make install
- cd ..
- sudo ldconfig
- name: Swift 5.0
os: linux
dist: trusty
Expand All @@ -57,14 +31,14 @@ matrix:
- sudo ldconfig
- name: Code Quality Checks
os: osx
osx_image: xcode10.2
osx_image: xcode10.3
install:
- brew update
- brew upgrade swiftlint || true
script: swiftlint
- name: SonarCloud scanner
os: osx
osx_image: xcode10.2
osx_image: xcode10.3
addons:
sonarcloud:
organization: bouke-github
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@
- Characteristic bounds no longer trap when out of bound values are set
programmatically, but will clip the value instead. This resolves an issue
where setting a value to the minimum value would trap in some situations.
- Swift 4.1 and below dropped.

### Fixed
- Allow bridges with spaces in name.

### Removed
- Swift 4 support.

## 0.5.0 - 2017-11-19

### Added
- Swift 4.
- Swift 4 support.
- Improved HAP specification conformity (notification coalescence, multiple
status return codes).
- Additional builtin accessory and service types.
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ let package = Package(
#endif

#if os(Linux)
package.dependencies.append(.package(url: "https://github.com/Bouke/NetService.git", from: "0.6.0"))
package.dependencies.append(.package(url: "https://github.com/Bouke/NetService.git", from: "0.7.0"))
package.targets.first(where: { $0.name == "HAP" })!.dependencies.append("NetService")
#endif

0 comments on commit 6181816

Please sign in to comment.