diff --git a/Package.swift b/Package.swift index e2b4d752de..456d8dde44 100644 --- a/Package.swift +++ b/Package.swift @@ -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( diff --git a/Rakefile b/Rakefile index 2d46f87132..5900305632 100644 --- a/Rakefile +++ b/Rakefile @@ -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' @@ -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