Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated podspec for Swift 5
  • Loading branch information
radianttap committed Mar 28, 2019
commit 023f2bbfc40ebada1345a09d82ecdb670c68268d
9 changes: 6 additions & 3 deletions SwiftyTimer.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
Pod::Spec.new do |s|
s.name = 'SwiftyTimer'
s.version = '2.1.0'
s.version = '2.1.1'
s.license = 'MIT'
s.summary = 'Swifty API for NSTimer'
s.homepage = 'https://github.com/radex/SwiftyTimer'
s.authors = { 'Radek Pietruszewski' => 'this.is@radex.io' }
s.source = { git: 'https://github.com/radex/SwiftyTimer.git', tag: s.version }
s.swift_version = '4.2'

s.swift_version = '5.0'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should not be required as swift_versions is defined later on and overwrites it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the time when I added that, swift_versions was new so newer CocoaPods was using it while older ones ignored it. I agree, this can now be updated to just one setting, I believe everyone has moved on.

s.requires_arc = true
s.swift_versions = ['4.2', '5.0']

s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '3.0'

s.source_files = 'Sources/*.swift'
s.swift_version = '4.2'
end