Skip to content

Commit

Permalink
Update minimum required Swift version in a few places (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim committed Jun 21, 2019
1 parent 5e68dad commit 27b3c2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -9,7 +9,7 @@ A sweet and swifty [YAML](http://yaml.org/) parser built on

## Installation

Building Yams requires Xcode 10.x or a Swift 4.x/5.x toolchain with the
Building Yams requires Xcode 10.x or a Swift 4.1+/5.x toolchain with the
Swift Package Manager.

### Swift Package Manager
Expand Down
3 changes: 1 addition & 2 deletions Sources/Yams/Constructor.swift
Expand Up @@ -456,8 +456,7 @@ extension Set {
// TODO: YAML supports Hashable elements other than str.
return Set<AnyHashable>(mapping.map({ String.construct(from: $0.key)! as AnyHashable }))
// Explicitly declaring the generic parameter as `<AnyHashable>` above is required,
// because this is inside extension of `Set` and Swift 4.0.x can't infer the type without
// that.
// because this is inside extension of `Set` and Swift can't infer the type without that.
}
}

Expand Down
2 changes: 1 addition & 1 deletion Yams.podspec
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |s|
s.authors = { 'JP Simard' => 'jp@jpsim.com',
'Norio Nomura' => 'norio.nomura@gmail.com' }
s.source_files = 'Sources/**/*.{h,c,swift}'
s.swift_versions = ['4.0', '4.1', '4.2', '5.0']
s.swift_versions = ['4.1', '4.2', '5.0']
s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
Expand Down

0 comments on commit 27b3c2d

Please sign in to comment.