Sha256: 5e4d10694b897ded3ab3f864fc61a216b0d0724e877c73d7fb06274410127628
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
require "fastlane_core" require "xcodeproj" module FastlaneCore class Project # Returns project targets def targets project_path = get_project_path return [] if project_path.nil? proj = Xcodeproj::Project.open(project_path) proj.targets.map do |target| target.name end end private def get_project_path # Given the workspace and scheme, we can compute project path if workspace? if options[:workspace] && options[:scheme] build_settings(key: "PROJECT_FILE_PATH") end else options[:project] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xcov-1.0.1 | lib/xcov/project_extensions.rb |
xcov-1.0.0 | lib/xcov/project_extensions.rb |