Skip to content

Commit b721beb

Browse files
authored
Merge pull request #13 from polydice/feature/swift-5
Swift 5
2 parents c42aad1 + ce5c3f3 commit b721beb

23 files changed

+138
-151
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
language: objective-c
2-
osx_image: xcode9.2
2+
osx_image: xcode10.3
33
cache:
44
bundler: true
55
directories:
66
- vendor/bundle
77
- Pods
88
before_install:
99
- export LANG=en_US.UTF-8
10+
- xcrun instruments -s devices
11+
- xcrun instruments -w "Apple TV 4K (12.4)" || true
1012
install:
1113
- make bootstrap
1214
before_script:
1315
- if [ -n "$DANGER_GITHUB_API_TOKEN" ]; then bundle exec danger; fi
1416
script:
15-
- bundle exec fastlane scan
17+
- bundle exec fastlane scan --device "Apple TV 4K (12.4)"
1618
after_success:
1719
- bash <(curl -s https://codecov.io/bash)
1820
notifications:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Simpler project quick start [#6](https://github.com/polydice/iCook-tvOS/pull/6)
1111
* Replace Freddy with Swift Codable [#11](https://github.com/polydice/iCook-tvOS/pull/11)
1212
* Replace Quick and Nimble with XCTest [#12](https://github.com/polydice/iCook-tvOS/pull/12)
13+
* Swift 5 [#13](https://github.com/polydice/iCook-tvOS/pull/13)
1314

1415
## v1.0.0
1516

Gemfile

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

3-
gem "cocoapods", "1.3.1"
3+
gem "cocoapods"
44
gem "cocoapods-keys"
55
gem "danger"
66
gem "fastlane"

Gemfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@ GEM
1919
cork
2020
nap
2121
open4 (~> 1.3)
22-
cocoapods (1.3.1)
22+
cocoapods (1.7.5)
2323
activesupport (>= 4.0.2, < 5)
2424
claide (>= 1.0.2, < 2.0)
25-
cocoapods-core (= 1.3.1)
26-
cocoapods-deintegrate (>= 1.0.1, < 2.0)
27-
cocoapods-downloader (>= 1.1.3, < 2.0)
25+
cocoapods-core (= 1.7.5)
26+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
27+
cocoapods-downloader (>= 1.2.2, < 2.0)
2828
cocoapods-plugins (>= 1.0.0, < 2.0)
2929
cocoapods-search (>= 1.0.0, < 2.0)
3030
cocoapods-stats (>= 1.0.0, < 2.0)
31-
cocoapods-trunk (>= 1.2.0, < 2.0)
31+
cocoapods-trunk (>= 1.3.1, < 2.0)
3232
cocoapods-try (>= 1.1.0, < 2.0)
3333
colored2 (~> 3.1)
3434
escape (~> 0.0.4)
35-
fourflusher (~> 2.0.1)
35+
fourflusher (>= 2.3.0, < 3.0)
3636
gh_inspector (~> 1.0)
37-
molinillo (~> 0.5.7)
37+
molinillo (~> 0.6.6)
3838
nap (~> 1.0)
39-
ruby-macho (~> 1.1)
40-
xcodeproj (>= 1.5.1, < 2.0)
41-
cocoapods-core (1.3.1)
39+
ruby-macho (~> 1.4)
40+
xcodeproj (>= 1.10.0, < 2.0)
41+
cocoapods-core (1.7.5)
4242
activesupport (>= 4.0.2, < 6)
4343
fuzzy_match (~> 2.0.4)
4444
nap (~> 1.0)
@@ -131,7 +131,7 @@ GEM
131131
xcodeproj (>= 1.8.1, < 2.0.0)
132132
xcpretty (~> 0.3.0)
133133
xcpretty-travis-formatter (>= 0.0.3)
134-
fourflusher (2.0.1)
134+
fourflusher (2.3.1)
135135
fuzzy_match (2.0.4)
136136
gh_inspector (1.1.3)
137137
git (1.5.0)
@@ -176,7 +176,7 @@ GEM
176176
mime-types-data (3.2019.0331)
177177
mini_magick (4.9.5)
178178
minitest (5.11.3)
179-
molinillo (0.5.7)
179+
molinillo (0.6.6)
180180
multi_json (1.13.1)
181181
multi_xml (0.6.0)
182182
multipart-post (2.0.0)
@@ -245,7 +245,7 @@ PLATFORMS
245245
ruby
246246

247247
DEPENDENCIES
248-
cocoapods (= 1.3.1)
248+
cocoapods
249249
cocoapods-keys
250250
danger
251251
fastlane

Podfile

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
source "https://github.com/CocoaPods/Specs.git"
22

3-
platform :tvos, "9.0"
3+
platform :tvos, "10.0"
44
use_frameworks!
55
inhibit_all_warnings!
66

77
workspace "iCookTV"
88
project "iCookTV"
99

1010
target :iCookTV do
11-
pod "Alamofire", "~> 4.2.0"
11+
pod "Alamofire", git: "https://github.com/Alamofire/Alamofire.git", tag: "4.8.2"
1212
pod "Crashlytics"
1313
pod "Fabric"
1414
pod "HCYoutubeParser"
15-
pod "Hue", "~> 2.0.0"
16-
pod "Kingfisher", "~> 3.2.0"
15+
pod "Hue", git: "https://github.com/zenangst/Hue.git", tag: "5.0.0"
16+
pod "Kingfisher", git: "https://github.com/onevcat/Kingfisher.git", tag: "5.7.0"
1717
pod "TreasureData-iOS-SDK", "0.1.15"
1818

1919
target :iCookTVTests do
20-
pod "SwiftLint", "0.24.0"
20+
pod "SwiftLint", podspec: "https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/0/1/SwiftLint/0.34.0/SwiftLint.podspec.json"
2121
end
2222
end
2323

@@ -27,12 +27,3 @@ plugin "cocoapods-keys", {
2727
keys: ["BaseAPIURL", "CrashlyticsAPIKey", "TreasureDataAPIKey"]
2828
}
2929

30-
31-
# Specify Swift version in the configs for all the pods installed.
32-
post_install do |installer|
33-
installer.pods_project.targets.each do |target|
34-
target.build_configurations.each do |config|
35-
config.build_settings["SWIFT_VERSION"] = "3.0"
36-
end
37-
end
38-
end

Podfile.lock

Lines changed: 44 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,74 @@
11
PODS:
2-
- Alamofire (4.2.0)
2+
- Alamofire (4.8.2)
33
- Crashlytics (3.8.3):
44
- Fabric (~> 1.6.3)
55
- Fabric (1.6.10)
66
- HCYoutubeParser (0.0.5)
7-
- Hue (2.0.1)
7+
- Hue (5.0.0)
88
- KeenClientTD (3.2.27)
99
- Keys (1.0.1)
10-
- Kingfisher (3.2.4)
11-
- SwiftLint (0.24.0)
10+
- Kingfisher (5.7.0)
11+
- SwiftLint (0.34.0)
1212
- TreasureData-iOS-SDK (0.1.15):
1313
- KeenClientTD (= 3.2.27)
1414

1515
DEPENDENCIES:
16-
- Alamofire (~> 4.2.0)
16+
- Alamofire (from `https://github.com/Alamofire/Alamofire.git`, tag `4.8.2`)
1717
- Crashlytics
1818
- Fabric
1919
- HCYoutubeParser
20-
- Hue (~> 2.0.0)
20+
- Hue (from `https://github.com/zenangst/Hue.git`, tag `5.0.0`)
2121
- Keys (from `Pods/CocoaPodsKeys`)
22-
- Kingfisher (~> 3.2.0)
23-
- SwiftLint (= 0.24.0)
22+
- Kingfisher (from `https://github.com/onevcat/Kingfisher.git`, tag `5.7.0`)
23+
- SwiftLint (from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/0/1/SwiftLint/0.34.0/SwiftLint.podspec.json`)
2424
- TreasureData-iOS-SDK (= 0.1.15)
2525

26+
SPEC REPOS:
27+
https://github.com/cocoapods/specs.git:
28+
- Crashlytics
29+
- Fabric
30+
- HCYoutubeParser
31+
- KeenClientTD
32+
- TreasureData-iOS-SDK
33+
2634
EXTERNAL SOURCES:
35+
Alamofire:
36+
:git: https://github.com/Alamofire/Alamofire.git
37+
:tag: 4.8.2
38+
Hue:
39+
:git: https://github.com/zenangst/Hue.git
40+
:tag: 5.0.0
2741
Keys:
2842
:path: Pods/CocoaPodsKeys
43+
Kingfisher:
44+
:git: https://github.com/onevcat/Kingfisher.git
45+
:tag: 5.7.0
46+
SwiftLint:
47+
:podspec: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/0/1/SwiftLint/0.34.0/SwiftLint.podspec.json
48+
49+
CHECKOUT OPTIONS:
50+
Alamofire:
51+
:git: https://github.com/Alamofire/Alamofire.git
52+
:tag: 4.8.2
53+
Hue:
54+
:git: https://github.com/zenangst/Hue.git
55+
:tag: 5.0.0
56+
Kingfisher:
57+
:git: https://github.com/onevcat/Kingfisher.git
58+
:tag: 5.7.0
2959

3060
SPEC CHECKSUMS:
31-
Alamofire: aa2e09d871c9160ac53c90e83c68064a94e3dfbe
61+
Alamofire: ae5c501addb7afdbb13687d7f2f722c78734c2d3
3262
Crashlytics: 2b6dbe138a42395577cfa73dfa1aa7248cadf39e
3363
Fabric: c73f371ee543e3f0b80608f2674750e4910d1669
3464
HCYoutubeParser: bc1db8c062e4b835eda381f2be2f9970f6a8d071
35-
Hue: 354caec055fdc9d38b5ef33ca2e7224721843baf
65+
Hue: c129cb67be7d093a82bbbc30ce8a96757bf6f37a
3666
KeenClientTD: ddb29a702bd4cfce5d526519ca8959d70c324c6a
3767
Keys: a576f4c9c1c641ca913a959a9c62ed3f215a8de9
38-
Kingfisher: 8d80f39da403cd9c9ee11984e1655f4d6a566cdb
39-
SwiftLint: a014c92b4664e8b13f380f8640a51bb1733778ba
68+
Kingfisher: 5e1c7784a4e1052c2ed2f22dd4b19b1db74c837e
69+
SwiftLint: 79d48a17c6565dc286c37efb8322c7b450f95c67
4070
TreasureData-iOS-SDK: cc878af36b85ae3540a9a5bdb36b7bdc8707b719
4171

42-
PODFILE CHECKSUM: e5951c6489057187d3b6c52cfcfe304dc59eb489
72+
PODFILE CHECKSUM: 7d0f309956943494904766e181472b47d17e9494
4373

44-
COCOAPODS: 1.3.1
74+
COCOAPODS: 1.7.5

README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
# iCook tvOS App
22

33
[![Build Status](https://travis-ci.org/polydice/iCook-tvOS.svg)](https://travis-ci.org/polydice/iCook-tvOS)
4+
![Swift 5](https://img.shields.io/badge/Swift-5-orange.svg)
45
[![codecov.io](https://codecov.io/github/polydice/iCook-tvOS/coverage.svg?branch=develop)](https://codecov.io/github/polydice/iCook-tvOS?branch=develop)
5-
![Swift 3.2](https://img.shields.io/badge/Swift-3.2-orange.svg)
66

77
A tvOS app that plays [iCook TV](https://tv.icook.tw/) videos.
88

99
<img src="https://polydice.github.io/iCook-tvOS/images/Screenshot.png" width=800px>
1010

11-
## Setup
12-
13-
Install [Bundler](http://bundler.io/):
14-
15-
```
16-
gem install bundler
17-
```
18-
19-
### Quick Start
11+
## Quick Start
2012

2113
Run the following commands to install dependencies:
2214

2315
```
2416
make bootstrap
2517
```
2618

27-
### Production Setups
19+
## Production Setups
2820

2921
If you work at Polydice, instead of `make bootstrap`, set up the project step by step with the following commands. Fill in the credentials and ask admin for required files.
3022

@@ -63,10 +55,6 @@ Managed by CocoaPods-Keys:
6355

6456
* `icook-tv-top-shelf-image.png` is not included in the repo due to the license of image.
6557

66-
## Known Issues
67-
68-
* Initializing generic `DataSource` will cause `EXC_BAD_ACCESS` in Xcode 8. Fixed in Xcode 8.1.
69-
7058
## Demo
7159

7260
* Install the beta version via <https://testflight.icook.tw>.

0 commit comments

Comments
 (0)