class Fastlane::Actions::ListDsymAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 46 def self.available_options [ FastlaneCore::ConfigItem.new(key: :archive_path, env_name: 'DF_DSYM_ARCHIVE_PATH', description: 'The archive path of xcode', type: String, default_value: Actions.lane_context[SharedValues::XCODEBUILD_ARCHIVE] || ::DebugFile::Runner::ARCHIVE_PATH, optional: true), FastlaneCore::ConfigItem.new(key: :scheme, env_name: 'DF_DSYM_SCHEME', description: 'The scheme name of app', optional: true, type: String), FastlaneCore::ConfigItem.new(key: :release_version, env_name: 'DF_DSYM_RELEASE_VERSION', description: 'Use the given release version of app', optional: true, type: String), FastlaneCore::ConfigItem.new(key: :build, env_name: 'DF_DSYM_BUILD', description: 'Use the given build version of app', optional: true, type: String) ] end
category()
click to toggle source
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 82 def self.category :misc end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 42 def self.description 'Find and generate iOS/MacOS dSYM file(s) to zip file' end
example_code()
click to toggle source
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 72 def self.example_code [ 'list_dsym', 'list_dsym( archive_path: "~/Library/Developer/Xcode/Archives", scheme: "AppName" )' ] end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 100 def self.is_supported?(platform) [:ios, :mac].include?(platform) end
output()
click to toggle source
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 90 def self.output [ ['DF_DSYMS_LIST', 'the array of dSYMs metadata'] ] end
return_value()
click to toggle source
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 86 def self.return_value Array end
run(params)
click to toggle source
# File lib/fastlane/plugin/debug_file/actions/list_dsym_action.rb, line 13 def self.run(params) archive_path = params[:archive_path] scheme = params[:scheme] Fastlane::UI.verbose "Finding #{scheme || 'all' } xcarchive in #{archive_path} ..." runner = ::DebugFile::Runner.new({ archive_path: archive_path, scheme: scheme }) dsyms = runner.list_dsym Fastlane::UI.success "Found #{dsyms.size} dSYM files" dsyms.each do |dsym| Fastlane::UI.success "• #{dsym[:name]} #{dsym[:release_version]} (#{dsym[:build]}) - #{dsym[:created_at]}" dsym[:machos].each do |macho| Fastlane::UI.message " #{macho[:uuid]} (#{macho[:arch]})" end end Helper::DebugFileHelper.store_shard_value SharedValues::DF_DSYMS_LIST, dsyms dsyms end