From b7c53ae412ef4b0dbc408e06623ed1417d57942e Mon Sep 17 00:00:00 2001 From: "i.o.novikov" Date: Wed, 20 Apr 2022 16:20:38 +0300 Subject: [PATCH] add include_podspecs in pod_lint --- fastlane/Fastfile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index a59b612..6c1e3dd 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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) @@ -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