From b2b95cf403ed229aa0a86145414f98c0d4f3653a Mon Sep 17 00:00:00 2001 From: JP Simard Date: Sun, 8 Nov 2020 13:31:29 -0500 Subject: [PATCH] Require Swift 5.2 or higher to build (#3413) Swift 5.2 has been officially released for over 7 months now, there's no reason to keep supporting earlier versions when _building_ SwiftLint. However, SwiftLint still supports _linting_ back up to Swift 3.0. --- .swift-version | 1 - CHANGELOG.md | 3 ++- SwiftLintFramework.podspec | 2 +- azure-pipelines.yml | 18 ------------------ 4 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 .swift-version diff --git a/.swift-version b/.swift-version deleted file mode 100644 index a75b92f1e..000000000 --- a/.swift-version +++ /dev/null @@ -1 +0,0 @@ -5.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 70082fa99..6befe93a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ #### Breaking -* None. +* SwiftLint now requires Swift 5.2 or higher to build. + [JP Simard](https://github.com/jpsim) #### Experimental diff --git a/SwiftLintFramework.podspec b/SwiftLintFramework.podspec index 39d839f24..a9d52ed95 100644 --- a/SwiftLintFramework.podspec +++ b/SwiftLintFramework.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.author = { 'JP Simard' => 'jp@jpsim.com' } s.platform = :osx, '10.10' s.source_files = 'Source/SwiftLintFramework/**/*.swift' - s.swift_versions = ['5.1', '5.2'] + s.swift_versions = ['5.2', '5.3'] s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' } s.dependency 'SourceKittenFramework', '~> 0.30.1' s.dependency 'Yams', '~> 4.0' diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aeb253602..8daed1c09 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,8 +8,6 @@ jobs: strategy: maxParallel: 10 matrix: - swift51: - containerImage: swift:5.1 swift52: containerImage: swift:5.2 swift53: @@ -25,14 +23,6 @@ jobs: strategy: maxParallel: 10 matrix: - xcode110: - DEVELOPER_DIR: /Applications/Xcode_11.app - xcode111: - DEVELOPER_DIR: /Applications/Xcode_11.1.app - xcode112: - DEVELOPER_DIR: /Applications/Xcode_11.2.1.app - xcode113: - DEVELOPER_DIR: /Applications/Xcode_11.3.1.app xcode114: DEVELOPER_DIR: /Applications/Xcode_11.4.app xcode115: @@ -67,14 +57,6 @@ jobs: strategy: maxParallel: 10 matrix: - xcode110: - DEVELOPER_DIR: /Applications/Xcode_11.app - xcode111: - DEVELOPER_DIR: /Applications/Xcode_11.1.app - xcode112: - DEVELOPER_DIR: /Applications/Xcode_11.2.1.app - xcode113: - DEVELOPER_DIR: /Applications/Xcode_11.3.1.app xcode114: DEVELOPER_DIR: /Applications/Xcode_11.4.app xcode115: