Skip to content

Commit

Permalink
add include_podspecs in pod_lint
Browse files Browse the repository at this point in the history
  • Loading branch information
i.o.novikov committed Apr 20, 2022
1 parent c8c148b commit b7c53ae
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ lane :release do |options|
# Checking that everything is alright
check
root_path = File.join(Dir.pwd, "..")
podspec_names = Dir.glob('*.podspec', base: root_path).select { |f| File.expand_path(f) }
podspec_names = Dir.glob('*.podspec', base: root_path).map { |f| File.expand_path(f) }
# Bumping podspec version
for podspec_name in podspec_names
version = version_bump_podspec(path: podspec_name, bump_type: bump_type)
Expand Down Expand Up @@ -43,16 +43,18 @@ lane :extend_bump_version do |options|
end

lane :check do
# Linting ruby files
lint_fastfile
# Linting ruby files
lint_fastfile

# Linting podspec
pod_lib_lint(allow_warnings: true)
# Linting podspec
podspec_names = Dir.glob('*.podspec', base: '..').map { |f| File.basename(f, '.*') }
include_podspecs = "{#{podspec_names.join(',')}}.podspec"
pod_lib_lint(allow_warnings: true, include_podspecs: include_podspecs)

# Buidling Swift package
if(File.exist?('Package.swift'))
build_swift_package
end
# Buidling Swift package
if(File.exist?('Package.swift'))
build_swift_package
end
end

lane :build_swift_package do
Expand Down

0 comments on commit b7c53ae

Please sign in to comment.