Skip to content

Commit f0f3e49

Browse files
Dillon Nysdnys1
authored andcommitted
chore(ci): Pin SwiftLint version
Fixes build issue by pinning SwiftLint to an older version which supports macOS 11, Swift < 5.6. See realm/SwiftLint#4131 commit-id:65dca315
1 parent 6fda334 commit f0f3e49

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

build-support/dependencies.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def include_build_tools!
55
# Pin to 0.44.17 until we resolve closing braces
66
pod 'SwiftFormat/CLI', '0.44.17'
7-
pod 'SwiftLint'
7+
pod 'SwiftLint', '0.48.0'
88
end
99

1010
$lint_script = <<-EOF

melos.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ scripts:
322322
description: Updates the iOS build dependencies for each project
323323
select-package:
324324
scope:
325-
- amplify_analytics_pinpoint
326-
- amplify_api
327-
- amplify_flutter
325+
- amplify_flutter_ios
328326
- amplify_core
329327

330328
lint:pub: >

packages/amplify/amplify_flutter_ios/ios/amplify_flutter_ios.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pod::Spec.new do |s|
2121
s.dependency 'AWSPluginsCore', '1.28.0'
2222
s.dependency 'AmplifyPlugins/AWSCognitoAuthPlugin', '1.28.0'
2323
s.dependency 'amplify_core'
24-
s.dependency 'SwiftLint'
24+
s.dependency 'SwiftLint', '0.48.0'
2525
s.dependency 'SwiftFormat/CLI'
2626
s.platform = :ios, '11.0'
2727

packages/amplify/amplify_flutter_ios/ios/dependencies.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def include_build_tools!
55
# Pin to 0.44.17 until we resolve closing braces
66
pod 'SwiftFormat/CLI', '0.44.17'
7-
pod 'SwiftLint'
7+
pod 'SwiftLint', '0.48.0'
88
end
99

1010
$lint_script = <<-EOF
@@ -39,4 +39,4 @@ def include_build_tools!
3939

4040
def get_plugin_dir(plugin_name)
4141
return File.join('.symlinks', 'plugins', plugin_name, 'ios')
42-
end
42+
end

packages/amplify_core/ios/amplify_core.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A base package shared across Amplify Flutter library.
1717
s.source = { :git => 'https://github.com/aws-amplify/amplify-flutter.git' }
1818
s.source_files = 'Classes/**/*'
1919
s.dependency 'Flutter'
20-
s.dependency 'SwiftLint'
20+
s.dependency 'SwiftLint', '0.48.0'
2121
s.dependency 'SwiftFormat/CLI'
2222
s.platform = :ios, '11.0'
2323

packages/amplify_core/ios/dependencies.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def include_build_tools!
55
# Pin to 0.44.17 until we resolve closing braces
66
pod 'SwiftFormat/CLI', '0.44.17'
7-
pod 'SwiftLint'
7+
pod 'SwiftLint', '0.48.0'
88
end
99

1010
$lint_script = <<-EOF
@@ -39,4 +39,4 @@ def include_build_tools!
3939

4040
def get_plugin_dir(plugin_name)
4141
return File.join('.symlinks', 'plugins', plugin_name, 'ios')
42-
end
42+
end

packages/api/amplify_api_ios/ios/amplify_api_ios.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The API module for Amplify Flutter.
2020
s.dependency 'amplify_core'
2121
s.platform = :ios, '11.0'
2222

23-
s.dependency 'SwiftLint'
23+
s.dependency 'SwiftLint', '0.48.0'
2424
s.dependency 'SwiftFormat/CLI'
2525

2626
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.

0 commit comments

Comments
 (0)