Skip to content

Commit

Permalink
Use corelibs plist coder if available
Browse files Browse the repository at this point in the history
It's available in the Swift 5.1 branch: swiftlang/swift-corelibs-foundation#1849
  • Loading branch information
jpsim committed Jul 6, 2019
1 parent 34259ad commit 1e35dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SwiftLintFramework/Models/LinterCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private struct FileCache: Codable {
}

public final class LinterCache {
#if canImport(Darwin)
#if canImport(Darwin) || compiler(>=5.1.0)
private typealias Encoder = PropertyListEncoder
private typealias Decoder = PropertyListDecoder
private static let fileExtension = "plist"
Expand Down

0 comments on commit 1e35dce

Please sign in to comment.