Skip to content

Commit

Permalink
Swift 5 (#90)
Browse files Browse the repository at this point in the history
* Migrate project to Swift 5
* Fixes warning on tvOS framework
* Update Travis Config
* Fix macOS Test Target
* Add missing failed-request-example
  • Loading branch information
nanoxd committed Mar 27, 2019
1 parent 5875e4a commit e0f5d34
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 79 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
language: objective-c
osx_image: xcode9.4
osx_image: xcode10.2
xcode_project: DVR.xcodeproj

matrix:
include:
- xcode_scheme: DVR-iOS
xcode_sdk: iphonesimulator
env:
- DESTINATION="iOS Simulator,OS=11.4,name=iPhone X"
- DESTINATION="iOS Simulator,OS=12.2,name=iPhone X"
- xcode_scheme: DVR-macOS
xcode_sdk: macosx
env:
- DESTINATION="macOS,arch=x86_64"
- xcode_scheme: DVR-tvOS
xcode_sdk: appletvsimulator
env:
- DESTINATION="tvOS Simulator,name=Apple TV 4K,OS=11.4"
- DESTINATION="tvOS Simulator,name=Apple TV 4K,OS=12.2"
- env:
- SWIFT_BUILD=true

Expand Down
149 changes: 77 additions & 72 deletions DVR.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion DVR.xcodeproj/xcshareddata/xcschemes/DVR-iOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0940"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion DVR.xcodeproj/xcshareddata/xcschemes/DVR-macOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0940"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion DVR.xcodeproj/xcshareddata/xcschemes/DVR-tvOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0940"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Sources/DVR/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ open class Session: URLSession {
func finishTask(_ task: URLSessionTask, interaction: Interaction, playback: Bool) {
needsPersistence = needsPersistence || !playback

if let index = outstandingTasks.index(of: task) {
if let index = outstandingTasks.firstIndex(of: task) {
outstandingTasks.remove(at: index)
}

Expand Down

0 comments on commit e0f5d34

Please sign in to comment.