Class: DebugFile::Runner
- Inherits:
-
Object
- Object
- DebugFile::Runner
- Defined in:
- lib/fastlane/plugin/debug_file/runner.rb
Constant Summary collapse
- ARCHIVE_PATH =
File.('~/Library/Developer/Xcode/Archives')
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Runner
constructor
A new instance of Runner.
- #latest_dsym(filter: :date) ⇒ Object
- #list_dsym ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Runner
Returns a new instance of Runner.
7 8 9 |
# File 'lib/fastlane/plugin/debug_file/runner.rb', line 7 def initialize( = {}) = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/fastlane/plugin/debug_file/runner.rb', line 5 def end |
Instance Method Details
#latest_dsym(filter: :date) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/fastlane/plugin/debug_file/runner.rb', line 11 def latest_dsym(filter: :date) dsyms = list_dsym case filter when :version dsyms.max_by {|v| Gem::Version.new(v[:release_version])} else dsyms.max_by {|v| v[:created_at]} end end |
#list_dsym ⇒ Object
21 22 23 24 |
# File 'lib/fastlane/plugin/debug_file/runner.rb', line 21 def list_dsym archive_path = File.(.fetch(:archive_path, ARCHIVE_PATH)) search_dsym(archive_path, [:scheme]) end |