Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update minimum required Swift version in a few places #190

Merged
merged 1 commit into from Jun 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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