Skip to content

Commit 7b14918

Browse files
authored
[0.5.1] Allow swift 4.2 support via cocoapods (#161)
We technically support Swift 4.2 (it compiles fine). Dropping this support was too aggressive. This will make transitioning easier. - update travis.yml - run pod update - run bundle update
1 parent 40fe60a commit 7b14918

File tree

11 files changed

+320
-281
lines changed

11 files changed

+320
-281
lines changed

.travis.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
1-
language: objective-c
2-
osx_image: xcode10
3-
gemfile: Gemfile
1+
os: osx
2+
osx_image: xcode10.1
3+
rvm: 2.6.0
44

5-
branches:
6-
only:
7-
- master
5+
addons:
6+
homebrew:
7+
packages:
8+
- swiftlint
9+
update: true
810

911
cache:
1012
- bundler
1113
- cocoapods
1214

15+
branches:
16+
only:
17+
- master
18+
1319
env:
1420
global:
1521
- WORKSPACE="ReactiveLists.xcworkspace"
1622
- FRAMEWORK_SCHEME="ReactiveLists"
1723
- EXAMPLE_SCHEME="Example"
24+
- SDK=iphonesimulator12.1
1825

1926
matrix:
20-
- DESTINATION="OS=11.4,name=iPhone X" SCHEME="$FRAMEWORK_SCHEME" POD_LINT="YES"
21-
- DESTINATION="OS=12.0,name=iPhone X" SCHEME="$FRAMEWORK_SCHEME" POD_LINT="NO"
22-
23-
# Note: travis installs ruby dependencies using bundler automatically, when there's a Gemfile
27+
- DEST="OS=11.4,name=iPhone X" POD_LINT="YES"
28+
- DEST="OS=12.1,name=iPhone X" POD_LINT="NO"
2429

2530
before_install:
26-
- pod repo update # don't use 'bundle exec' because bundler deps haven't been installed yet
31+
- gem update --system
32+
- gem install bundler
33+
- gem install cocoapods --pre
2734

2835
script:
2936
- set -o pipefail
@@ -33,11 +40,9 @@ script:
3340
bundle exec pod lib lint;
3441
fi
3542

36-
- xcodebuild test -workspace "$WORKSPACE" -scheme "$FRAMEWORK_SCHEME" -sdk "iphonesimulator" -destination "$DESTINATION" -configuration Debug -enableCodeCoverage YES ONLY_ACTIVE_ARCH=NO | bundle exec xcpretty -c
43+
- xcodebuild build -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -sdk "$SDK" -destination "$DEST" ONLY_ACTIVE_ARCH=NO | bundle exec xcpretty -c;
3744

38-
- if [ $BUILD_EXAMPLE == "YES" ]; then
39-
xcodebuild build -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -sdk "iphonesimulator" -destination "$DESTINATION" ONLY_ACTIVE_ARCH=NO | bundle exec xcpretty -c;
40-
fi
45+
- xcodebuild test -workspace "$WORKSPACE" -scheme "$FRAMEWORK_SCHEME" -sdk "$SDK" -destination "$DEST" -configuration Debug -enableCodeCoverage YES ONLY_ACTIVE_ARCH=NO | bundle exec xcpretty -c
4146

4247
- bundle exec danger
4348

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ The changelog for `ReactiveLists`. Also see the [releases](https://github.com/pl
77
NEXT
88
----
99

10+
0.5.1
11+
-----
12+
13+
Re-add support for Swift 4.2 to make transitioning easier.
14+
1015
0.5.0
1116
-----
1217

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22

3-
gem 'cocoapods', '~> 1.4'
3+
gem 'cocoapods', '~> 1.7.0.beta3'
44
gem 'danger', '~> 5.0'
55
gem 'danger-swiftlint', '~> 0.12.1'
66
gem 'xcpretty'

Gemfile.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
CFPropertyList (3.0.0)
5-
activesupport (4.2.10)
5+
activesupport (4.2.11.1)
66
i18n (~> 0.7)
77
minitest (~> 5.1)
88
thread_safe (~> 0.3, >= 0.3.4)
@@ -15,41 +15,41 @@ GEM
1515
cork
1616
nap
1717
open4 (~> 1.3)
18-
cocoapods (1.5.3)
18+
cocoapods (1.7.0.beta.3)
1919
activesupport (>= 4.0.2, < 5)
2020
claide (>= 1.0.2, < 2.0)
21-
cocoapods-core (= 1.5.3)
22-
cocoapods-deintegrate (>= 1.0.2, < 2.0)
23-
cocoapods-downloader (>= 1.2.0, < 2.0)
21+
cocoapods-core (= 1.7.0.beta.3)
22+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
23+
cocoapods-downloader (>= 1.2.2, < 2.0)
2424
cocoapods-plugins (>= 1.0.0, < 2.0)
2525
cocoapods-search (>= 1.0.0, < 2.0)
2626
cocoapods-stats (>= 1.0.0, < 2.0)
27-
cocoapods-trunk (>= 1.3.0, < 2.0)
27+
cocoapods-trunk (>= 1.3.1, < 2.0)
2828
cocoapods-try (>= 1.1.0, < 2.0)
2929
colored2 (~> 3.1)
3030
escape (~> 0.0.4)
31-
fourflusher (~> 2.0.1)
31+
fourflusher (>= 2.2.0, < 3.0)
3232
gh_inspector (~> 1.0)
33-
molinillo (~> 0.6.5)
33+
molinillo (~> 0.6.6)
3434
nap (~> 1.0)
35-
ruby-macho (~> 1.1)
36-
xcodeproj (>= 1.5.7, < 2.0)
37-
cocoapods-core (1.5.3)
35+
ruby-macho (~> 1.4)
36+
xcodeproj (>= 1.8.2, < 2.0)
37+
cocoapods-core (1.7.0.beta.3)
3838
activesupport (>= 4.0.2, < 6)
3939
fuzzy_match (~> 2.0.4)
4040
nap (~> 1.0)
41-
cocoapods-deintegrate (1.0.2)
42-
cocoapods-downloader (1.2.1)
41+
cocoapods-deintegrate (1.0.4)
42+
cocoapods-downloader (1.2.2)
4343
cocoapods-plugins (1.0.0)
4444
nap
4545
cocoapods-search (1.0.0)
46-
cocoapods-stats (1.0.0)
46+
cocoapods-stats (1.1.0)
4747
cocoapods-trunk (1.3.1)
4848
nap (>= 0.8, < 2.0)
4949
netrc (~> 0.11)
5050
cocoapods-try (1.1.0)
5151
colored2 (3.1.2)
52-
concurrent-ruby (1.0.5)
52+
concurrent-ruby (1.1.5)
5353
cork (0.3.0)
5454
colored2 (~> 3.1)
5555
danger (5.5.11)
@@ -73,7 +73,7 @@ GEM
7373
multipart-post (>= 1.2, < 3)
7474
faraday-http-cache (1.3.1)
7575
faraday (~> 0.8)
76-
fourflusher (2.0.1)
76+
fourflusher (2.2.0)
7777
fuzzy_match (2.0.4)
7878
gh_inspector (1.1.3)
7979
git (1.3.0)
@@ -93,7 +93,7 @@ GEM
9393
public_suffix (3.0.2)
9494
rake (12.3.1)
9595
rouge (2.0.7)
96-
ruby-macho (1.2.0)
96+
ruby-macho (1.4.0)
9797
sawyer (0.8.1)
9898
addressable (>= 2.3.5, < 2.6)
9999
faraday (~> 0.8, < 1.0)
@@ -104,7 +104,7 @@ GEM
104104
tzinfo (1.2.5)
105105
thread_safe (~> 0.1)
106106
unicode-display_width (1.3.0)
107-
xcodeproj (1.6.0)
107+
xcodeproj (1.8.2)
108108
CFPropertyList (>= 2.3.3, < 4.0)
109109
atomos (~> 0.1.3)
110110
claide (>= 1.0.2, < 2.0)
@@ -117,10 +117,10 @@ PLATFORMS
117117
ruby
118118

119119
DEPENDENCIES
120-
cocoapods (~> 1.4)
120+
cocoapods (~> 1.7.0.beta3)
121121
danger (~> 5.0)
122122
danger-swiftlint (~> 0.12.1)
123123
xcpretty
124124

125125
BUNDLED WITH
126-
1.16.3
126+
2.0.1

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ SPEC CHECKSUMS:
2222

2323
PODFILE CHECKSUM: f4d525d7ba27317176274dd214708a367af86650
2424

25-
COCOAPODS: 1.6.1
25+
COCOAPODS: 1.7.0.beta.3

Pods/Manifest.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)