Skip to content

Commit 556236a

Browse files
authored
Merge pull request #337 from CodaFi/bump
Update to Swift 4.1
2 parents 5afb898 + 4915ce0 commit 556236a

File tree

20 files changed

+57
-106
lines changed

20 files changed

+57
-106
lines changed

.travis.yml

Lines changed: 9 additions & 15 deletions
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: xcode9
8+
osx_image: xcode9.3
99
before_install:
1010
- git submodule update --init --recursive
1111
script:
@@ -14,32 +14,26 @@ matrix:
1414
- carthage build --no-skip-current
1515
- os: osx
1616
language: objective-c
17-
osx_image: xcode9
17+
osx_image: xcode9.3
1818
before_install:
1919
- git submodule update --init --recursive
2020
script:
2121
- set -o pipefail
2222
- xcodebuild test -scheme Swiftz | xcpretty -c
23-
# !!!: Make sure desired device name & OS version are suitable for the Xcode version installed on osx_image
24-
- iOS_DEVICE_NAME="iPad Pro (12.9-inch) (2nd generation)"
25-
- iOS_RUNTIME_VERSION="11.0"
26-
# Get simulator identifier for desired device/runtime pair
27-
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "${iOS_DEVICE_NAME} (${iOS_RUNTIME_VERSION}) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
28-
- echo $SIMULATOR_ID
29-
- echo $iOS_DEVICE_NAME
30-
- echo $iOS_RUNTIME_VERSION
31-
- xcodebuild test -scheme Swiftz-iOS -destination "platform=iOS Simulator,name=${iOS_DEVICE_NAME},OS=${iOS_RUNTIME_VERSION}" | xcpretty -c
32-
- xcodebuild test -scheme Swiftz-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 1080p' | xcpretty -c
23+
- xcodebuild build-for-testing -scheme Swiftz-iOS -destination "platform=iOS Simulator,name=iPad Pro (12.9-inch) (2nd generation)" | xcpretty -c
24+
- xcodebuild test -scheme Swiftz-iOS -destination "platform=iOS Simulator,name=iPad Pro (12.9-inch) (2nd generation)" | xcpretty -c
25+
- xcodebuild build-for-testing -scheme Swiftz-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 4K (at 1080p)' | xcpretty -c
26+
- xcodebuild test -scheme Swiftz-tvOS -destination 'platform=tvOS Simulator,name=Apple TV 4K (at 1080p)' | xcpretty -c
3327
- os: linux
3428
language: generic
3529
sudo: required
3630
dist: trusty
3731
before_install:
3832
- git submodule update --init --recursive
3933
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
40-
- wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz
41-
- tar xzf swift-4.0-RELEASE-ubuntu14.04.tar.gz
42-
- export PATH=${PWD}/swift-4.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
34+
- wget https://swift.org/builds/swift-4.1-release/ubuntu1404/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu14.04.tar.gz
35+
- tar xzf swift-4.1-RELEASE-ubuntu14.04.tar.gz
36+
- export PATH=${PWD}/swift-4.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
4337
script:
4438
- swift test
4539
notifications:

Cartfile.resolved

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
github "trill-lang/FileCheck" "0.0.4"
21
github "typelift/Operadics" "0.3.0"
3-
github "typelift/SwiftCheck" "0.9.1"
4-
github "typelift/Swiftx" "0.6.0"
2+
github "typelift/SwiftCheck" "0.10.0"
3+
github "typelift/Swiftx" "0.7.0"

Sources/Swiftz/ArrayExt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ extension Sequence {
446446
/// a (Key, Value) pair for the dictionary, if nil is returned then the value is
447447
/// not added to the dictionary.
448448
public func mapAssociate<Key, Value>(_ f : (Iterator.Element) -> (Key, Value)?) -> [Key : Value] {
449-
return Dictionary(flatMap(f))
449+
return Dictionary(compactMap(f))
450450
}
451451

452452
/// Creates a dictionary of Key-Value pairs generated from the transformer function returning the key (the label)

Swiftz.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@
869869
isa = PBXProject;
870870
attributes = {
871871
LastSwiftUpdateCheck = 0720;
872-
LastUpgradeCheck = 0900;
872+
LastUpgradeCheck = 0930;
873873
ORGANIZATIONNAME = TypeLift;
874874
TargetAttributes = {
875875
8240CD1B1C3A395F00EF4D29 = {
@@ -1497,12 +1497,14 @@
14971497
CLANG_WARN_BOOL_CONVERSION = YES;
14981498
CLANG_WARN_COMMA = YES;
14991499
CLANG_WARN_CONSTANT_CONVERSION = YES;
1500+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
15001501
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
15011502
CLANG_WARN_EMPTY_BODY = YES;
15021503
CLANG_WARN_ENUM_CONVERSION = YES;
15031504
CLANG_WARN_INFINITE_RECURSION = YES;
15041505
CLANG_WARN_INT_CONVERSION = YES;
15051506
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1507+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
15061508
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
15071509
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
15081510
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -1553,12 +1555,14 @@
15531555
CLANG_WARN_BOOL_CONVERSION = YES;
15541556
CLANG_WARN_COMMA = YES;
15551557
CLANG_WARN_CONSTANT_CONVERSION = YES;
1558+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
15561559
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
15571560
CLANG_WARN_EMPTY_BODY = YES;
15581561
CLANG_WARN_ENUM_CONVERSION = YES;
15591562
CLANG_WARN_INFINITE_RECURSION = YES;
15601563
CLANG_WARN_INT_CONVERSION = YES;
15611564
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1565+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
15621566
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
15631567
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
15641568
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0930"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)