Skip to content

Commit

Permalink
Update linter command to explicitly use Swift 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
calda committed Aug 23, 2023
1 parent be9afdd commit fc1809c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import PackageDescription

let package = Package(
name: "Lottie",
// Minimum platform versions should be kept in sync with the per-platform targets in
// Minimum platform versions should be kept in sync with the per-platform targets in
// Package@swift-5.5.swift, Lottie.xcodeproj, lottie-ios.podspec, and lottie-spm's Package.swift
platforms: [.iOS("11.0"), .macOS("10.11"), .tvOS("11.0"), .visionOS("1.0")],
products: [.library(name: "Lottie", targets: ["Lottie"])],
dependencies: [
.package(url: "https://github.com/airbnb/swift", .upToNextMajor(from: "1.0.1"))
.package(url: "https://github.com/airbnb/swift", .upToNextMajor(from: "1.0.1")),
],
targets: [
.target(
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ end
namespace :lint do
desc 'Lints swift files'
task :swift do
sh 'swift package --allow-writing-to-package-directory format --lint'
sh 'swift package --allow-writing-to-package-directory format --lint --swift-version 5.5'
end

desc 'Lints the CocoaPods podspec'
Expand All @@ -182,7 +182,7 @@ end
namespace :format do
desc 'Formats swift files'
task :swift do
sh 'swift package --allow-writing-to-package-directory format'
sh 'swift package --allow-writing-to-package-directory format --swift-version 5.5'
end
end

Expand Down

0 comments on commit fc1809c

Please sign in to comment.