Class: Fastlane::Helper::XcodeprojHelper

Inherits:
Object
  • Object
show all
Defined in:
fastlane/lib/fastlane/helper/xcodeproj_helper.rb

Constant Summary collapse

DEPENDENCY_MANAGER_DIRS =
['Pods', 'Carthage'].freeze

Class Method Summary collapse

Class Method Details

.find(dir) ⇒ Object


6
7
8
9
# File 'fastlane/lib/fastlane/helper/xcodeproj_helper.rb', line 6

def self.find(dir)
  xcodeproj_paths = Dir[File.expand_path(File.join(dir, '**/*.xcodeproj'))]
  xcodeproj_paths.reject { |path| %r{/(#{DEPENDENCY_MANAGER_DIRS.join('|')})/.*.xcodeproj} =~ path }
end