Skip to content

Commit aa2f062

Browse files
committed
Update to Swift 4.0
1 parent 32cb9a8 commit aa2f062

20 files changed

+154
-97
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.DS_Store
33
.build/*
44
Packages/*
5+
Package.resolved
56
build/*
67
*.pbxuser
78
!default.pbxuser

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "Carthage/Checkouts/Operadics"]
55
path = Carthage/Checkouts/Operadics
66
url = https://github.com/typelift/Operadics.git
7+
[submodule "Carthage/Checkouts/FileCheck"]
8+
path = Carthage/Checkouts/FileCheck
9+
url = https://github.com/trill-lang/FileCheck.git

.travis.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
include:
66
- os: osx
77
language: objective-c
8-
osx_image: xcode8.3
8+
osx_image: xcode9
99
before_install:
1010
- git submodule update --init --recursive
1111
script:
@@ -14,7 +14,7 @@ matrix:
1414
- carthage build --no-skip-current
1515
- os: osx
1616
language: objective-c
17-
osx_image: xcode8.3
17+
osx_image: xcode9
1818
before_install:
1919
- git submodule update --init --recursive
2020
script:
@@ -39,11 +39,10 @@ matrix:
3939
sudo: required
4040
dist: trusty
4141
before_install:
42-
- git submodule update --init --recursive
4342
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
44-
- wget https://swift.org/builds/swift-3.1-release/ubuntu1404/swift-3.1-RELEASE/swift-3.1-RELEASE-ubuntu14.04.tar.gz
45-
- tar xzf swift-3.1-RELEASE-ubuntu14.04.tar.gz
46-
- export PATH=${PWD}/swift-3.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
43+
- wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz
44+
- tar xzf swift-4.0-RELEASE-ubuntu14.04.tar.gz
45+
- export PATH=${PWD}/swift-4.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
4746
script:
4847
- swift build
4948
notifications:

Cartfile.resolved

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
github "typelift/Operadics" "0.2.2"
2-
github "typelift/SwiftCheck" "0.8.0"
1+
github "trill-lang/FileCheck" "0.0.4"
2+
github "typelift/Operadics" "0.3.0"
3+
github "typelift/SwiftCheck" "0.9.1"

Carthage/Checkouts/FileCheck

Submodule FileCheck added at 0830734

Carthage/Checkouts/SwiftCheck

Submodule SwiftCheck updated 53 files

Package.swift

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
// swift-tools-version:4.0
2+
13
import PackageDescription
24

35
let package = Package(
4-
name: "Swiftx",
5-
targets: [
6-
Target(name: "Swiftx"),
7-
],
8-
dependencies: [
9-
.Package(url: "https://github.com/typelift/Operadics.git", majorVersion: 0)
10-
]
6+
name: "Swiftx",
7+
products: [
8+
.library(
9+
name: "Swiftx",
10+
targets: ["Swiftx"]),
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/typelift/Operadics.git", from: "0.3.0"),
14+
.package(url: "https://github.com/typelift/SwiftCheck.git", from: "0.9.0"),
15+
],
16+
targets: [
17+
.target(
18+
name: "Swiftx",
19+
dependencies: ["Operadics"]),
20+
.testTarget(
21+
name: "SwiftxTests",
22+
dependencies: ["Swiftx", "Operadics", "SwiftCheck"]),
23+
]
1124
)
1225

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Swiftx.xcodeproj/project.pbxproj

+101-75
Large diffs are not rendered by default.

Swiftx.xcodeproj/xcshareddata/xcschemes/Swiftx-iOS.xcscheme

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0900"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,6 +40,7 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
language = ""
4344
shouldUseLaunchSchemeArgsEnv = "YES">
4445
<Testables>
4546
<TestableReference
@@ -69,6 +70,7 @@
6970
buildConfiguration = "Debug"
7071
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7172
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73+
language = ""
7274
launchStyle = "0"
7375
useCustomWorkingDirectory = "NO"
7476
ignoresPersistentStateOnLaunch = "NO"

Swiftx.xcodeproj/xcshareddata/xcschemes/Swiftx-tvOS.xcscheme

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0900"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
<TestableReference
@@ -55,6 +56,7 @@
5556
buildConfiguration = "Debug"
5657
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5758
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59+
language = ""
5860
launchStyle = "0"
5961
useCustomWorkingDirectory = "NO"
6062
ignoresPersistentStateOnLaunch = "NO"

Swiftx.xcodeproj/xcshareddata/xcschemes/Swiftx-watchOS.xcscheme

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0900"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
</Testables>
@@ -36,6 +37,7 @@
3637
buildConfiguration = "Debug"
3738
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3839
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
40+
language = ""
3941
launchStyle = "0"
4042
useCustomWorkingDirectory = "NO"
4143
ignoresPersistentStateOnLaunch = "NO"

Swiftx.xcodeproj/xcshareddata/xcschemes/Swiftx.xcscheme

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0900"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
<TestableReference
@@ -55,6 +56,7 @@
5556
buildConfiguration = "Debug"
5657
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5758
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59+
language = ""
5860
launchStyle = "0"
5961
useCustomWorkingDirectory = "NO"
6062
ignoresPersistentStateOnLaunch = "NO"

Swiftx.xcodeproj/xcshareddata/xcschemes/SwiftxTests.xcscheme

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0800"
3+
LastUpgradeVersion = "0900"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
<TestableReference
@@ -55,6 +56,7 @@
5556
buildConfiguration = "Debug"
5657
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5758
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59+
language = ""
5860
launchStyle = "0"
5961
useCustomWorkingDirectory = "NO"
6062
ignoresPersistentStateOnLaunch = "NO"

Tests/SwiftxTests/EitherSpec.swift

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import Swiftx
1010
import XCTest
1111
import SwiftCheck
12+
#if SWIFT_PACKAGE
13+
import Operadics
14+
#endif
1215

1316
extension Either where L : Arbitrary, R : Arbitrary {
1417
static var arbitrary : Gen<Either<L, R>> {

0 commit comments

Comments
 (0)