fastlane 2.180.1 → 2.183.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +90 -90
  3. data/cert/lib/cert/commands_generator.rb +2 -1
  4. data/deliver/lib/assets/summary.html.erb +10 -10
  5. data/deliver/lib/deliver/commands_generator.rb +2 -1
  6. data/deliver/lib/deliver/languages.rb +1 -1
  7. data/deliver/lib/deliver/options.rb +2 -2
  8. data/deliver/lib/deliver/submit_for_review.rb +3 -3
  9. data/deliver/lib/deliver/upload_metadata.rb +1 -1
  10. data/fastlane/lib/fastlane/actions/actions_helper.rb +2 -2
  11. data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
  12. data/fastlane/lib/fastlane/actions/clipboard.rb +3 -6
  13. data/fastlane/lib/fastlane/actions/danger.rb +7 -1
  14. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +1 -1
  15. data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +18 -1
  16. data/fastlane/lib/fastlane/actions/ensure_env_vars.rb +2 -6
  17. data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +3 -1
  18. data/fastlane/lib/fastlane/actions/git_branch.rb +1 -1
  19. data/fastlane/lib/fastlane/actions/git_commit.rb +3 -1
  20. data/fastlane/lib/fastlane/actions/git_pull.rb +4 -10
  21. data/fastlane/lib/fastlane/actions/git_submodule_update.rb +16 -8
  22. data/fastlane/lib/fastlane/actions/hipchat.rb +2 -1
  23. data/fastlane/lib/fastlane/actions/import_from_git.rb +5 -5
  24. data/fastlane/lib/fastlane/actions/notification.rb +1 -1
  25. data/fastlane/lib/fastlane/actions/slack.rb +155 -133
  26. data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -2
  27. data/fastlane/lib/fastlane/actions/xcodebuild.rb +5 -5
  28. data/fastlane/lib/fastlane/cli_tools_distributor.rb +1 -1
  29. data/fastlane/lib/fastlane/commands_generator.rb +2 -1
  30. data/fastlane/lib/fastlane/fast_file.rb +10 -2
  31. data/fastlane/lib/fastlane/helper/git_helper.rb +9 -1
  32. data/fastlane/lib/fastlane/lane_manager.rb +3 -2
  33. data/fastlane/lib/fastlane/notification/slack.rb +56 -0
  34. data/fastlane/lib/fastlane/plugins/plugin_info.rb +2 -2
  35. data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +7 -6
  36. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +30 -35
  37. data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
  38. data/fastlane/lib/fastlane/swift_fastlane_function.rb +35 -14
  39. data/fastlane/lib/fastlane/version.rb +2 -2
  40. data/fastlane/swift/Deliverfile.swift +1 -1
  41. data/fastlane/swift/DeliverfileProtocol.swift +1 -1
  42. data/fastlane/swift/Fastlane.swift +6621 -3802
  43. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +4 -0
  44. data/fastlane/swift/Gymfile.swift +1 -1
  45. data/fastlane/swift/GymfileProtocol.swift +1 -1
  46. data/fastlane/swift/Matchfile.swift +1 -1
  47. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  48. data/fastlane/swift/OptionalConfigValue.swift +131 -0
  49. data/fastlane/swift/Precheckfile.swift +1 -1
  50. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  51. data/fastlane/swift/Scanfile.swift +1 -1
  52. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  53. data/fastlane/swift/Screengrabfile.swift +1 -1
  54. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  55. data/fastlane/swift/Snapshotfile.swift +1 -1
  56. data/fastlane/swift/SnapshotfileProtocol.swift +5 -1
  57. data/fastlane/swift/formatting/Brewfile.lock.json +16 -14
  58. data/fastlane/swift/upgrade_manifest.json +1 -1
  59. data/fastlane_core/lib/fastlane_core.rb +22 -21
  60. data/fastlane_core/lib/fastlane_core/build_watcher.rb +65 -11
  61. data/fastlane_core/lib/fastlane_core/clipboard.rb +20 -0
  62. data/fastlane_core/lib/fastlane_core/device_manager.rb +1 -1
  63. data/fastlane_core/lib/fastlane_core/helper.rb +4 -4
  64. data/fastlane_core/lib/fastlane_core/languages.rb +2 -2
  65. data/fastlane_core/lib/fastlane_core/swag.rb +1 -1
  66. data/fastlane_core/lib/fastlane_core/ui/help.erb +35 -0
  67. data/fastlane_core/lib/fastlane_core/ui/help_formatter.rb +16 -0
  68. data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +4 -1
  69. data/frameit/lib/frameit/commands_generator.rb +2 -1
  70. data/frameit/lib/frameit/config_parser.rb +2 -2
  71. data/frameit/lib/frameit/frame_downloader.rb +2 -1
  72. data/gym/lib/gym/code_signing_mapping.rb +2 -2
  73. data/gym/lib/gym/commands_generator.rb +2 -1
  74. data/gym/lib/gym/generators/package_command_generator_xcode7.rb +6 -5
  75. data/gym/lib/gym/runner.rb +5 -1
  76. data/match/lib/match/commands_generator.rb +2 -1
  77. data/pem/lib/pem/commands_generator.rb +2 -1
  78. data/pilot/lib/pilot/build_manager.rb +3 -3
  79. data/pilot/lib/pilot/commands_generator.rb +2 -1
  80. data/pilot/lib/pilot/options.rb +2 -2
  81. data/pilot/lib/pilot/tester_exporter.rb +0 -1
  82. data/pilot/lib/pilot/tester_manager.rb +0 -1
  83. data/precheck/lib/precheck/commands_generator.rb +2 -1
  84. data/produce/lib/produce/commands_generator.rb +2 -1
  85. data/scan/lib/scan/commands_generator.rb +2 -1
  86. data/scan/lib/scan/runner.rb +3 -1
  87. data/scan/lib/scan/test_command_generator.rb +3 -1
  88. data/screengrab/lib/screengrab/commands_generator.rb +2 -1
  89. data/sigh/lib/sigh/commands_generator.rb +2 -1
  90. data/snapshot/lib/assets/SnapfileTemplate +1 -1
  91. data/snapshot/lib/snapshot/commands_generator.rb +3 -1
  92. data/snapshot/lib/snapshot/options.rb +5 -0
  93. data/snapshot/lib/snapshot/reports_generator.rb +4 -0
  94. data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +2 -0
  95. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
  96. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +8 -4
  97. data/spaceship/README.md +2 -12
  98. data/spaceship/lib/spaceship/base.rb +2 -2
  99. data/spaceship/lib/spaceship/commands_generator.rb +4 -2
  100. data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
  101. data/spaceship/lib/spaceship/connect_api/models/profile.rb +6 -0
  102. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +6 -2
  103. data/spaceship/lib/spaceship/spaceauth_runner.rb +19 -9
  104. data/spaceship/lib/spaceship/tunes/members.rb +1 -1
  105. data/spaceship/lib/spaceship/ui.rb +2 -2
  106. data/supply/lib/supply/client.rb +5 -3
  107. data/supply/lib/supply/commands_generator.rb +2 -1
  108. data/supply/lib/supply/options.rb +2 -2
  109. data/supply/lib/supply/uploader.rb +3 -2
  110. metadata +74 -88
  111. data/fastlane/lib/fastlane/.fastlane_require.rb.swp +0 -0
  112. data/fastlane/lib/fastlane/actions/.cocoapods.rb.swp +0 -0
  113. data/pilot/lib/pilot/tester_util.rb +0 -0
@@ -0,0 +1,20 @@
1
+ require 'fastlane_core'
2
+ require 'open3'
3
+
4
+ module FastlaneCore
5
+ class Clipboard
6
+ def self.copy(content: nil)
7
+ return UI.crash!("'pbcopy' or 'pbpaste' command not found.") unless is_supported?
8
+ Open3.popen3('pbcopy') { |input, _, _| input << content }
9
+ end
10
+
11
+ def self.paste
12
+ return UI.crash!("'pbcopy' or 'pbpaste' command not found.") unless is_supported?
13
+ return `pbpaste`
14
+ end
15
+
16
+ def self.is_supported?
17
+ return `which pbcopy`.length > 0 && `which pbpaste`.length > 0
18
+ end
19
+ end
20
+ end
@@ -118,7 +118,7 @@ module FastlaneCore
118
118
  discover_devices(child_item, device_types, discovered_device_udids)
119
119
  end
120
120
 
121
- is_supported_device = device_types.any? { |device_type| usb_item['_name'] == device_type }
121
+ is_supported_device = device_types.any?(usb_item['_name'])
122
122
  serial_num = usb_item['serial_num'] || ''
123
123
  has_serial_number = serial_num.length == 40 || serial_num.length == 24
124
124
 
@@ -167,11 +167,11 @@ module FastlaneCore
167
167
  @xcode_version
168
168
  end
169
169
 
170
- # @return true if Xcode version is higher than 8.3
170
+ # @return true if installed Xcode version is 'greater than or equal to' the input parameter version
171
171
  def self.xcode_at_least?(version)
172
- FastlaneCore::UI.user_error!("Unable to locate Xcode. Please make sure to have Xcode installed on your machine") if xcode_version.nil?
173
- v = xcode_version
174
- Gem::Version.new(v) >= Gem::Version.new(version)
172
+ installed_xcode_version = xcode_version
173
+ UI.user_error!("Unable to locate Xcode. Please make sure to have Xcode installed on your machine") if installed_xcode_version.nil?
174
+ Gem::Version.new(installed_xcode_version) >= Gem::Version.new(version)
175
175
  end
176
176
 
177
177
  # iTMSTransporter
@@ -3,7 +3,7 @@ module FastlaneCore
3
3
  # These are all the languages which are available to use to upload app metadata and screenshots
4
4
 
5
5
  # The old format which was used until August 2015 (good old times)
6
- ALL_LANGUAGES_LEGACY = ["da-DK", "de-DE", "el-GR", "en-AU", "en-CA", "en-GB", "en-US", "es-ES", "es-MX", "fi-FI", "fr-CA", "fr-FR", "id-ID", "it-IT", "ja-JP", "ko-KR", "ms-MY", "nl-NL", "no-NO", "pt-BR", "pt-PT", "ru-RU", "sv-SE", "th-TH", "tr-TR", "vi-VI", "cmn-Hans", "cmn-Hant"]
6
+ ALL_LANGUAGES_LEGACY = %w[da-DK de-DE el-GR en-AU en-CA en-GB en-US es-ES es-MX fi-FI fr-CA fr-FR id-ID it-IT ja-JP ko-KR ms-MY nl-NL no-NO pt-BR pt-PT ru-RU sv-SE th-TH tr-TR vi-VI cmn-Hans cmn-Hant]
7
7
 
8
8
  # The new format used from September 2015 on
9
9
  # This was generated from `Spaceship::Tunes.client.available_languages.sort`
@@ -11,6 +11,6 @@ module FastlaneCore
11
11
  # - produce/lib/produce/available_default_languages.rb
12
12
  # - spaceship/lib/assets/languageMapping.json
13
13
  # See pull request for example: https://github.com/fastlane/fastlane/pull/14110
14
- ALL_LANGUAGES = ["ar-SA", "ca", "cs", "da", "de-DE", "el", "en-AU", "en-CA", "en-GB", "en-US", "es-ES", "es-MX", "fi", "fr-CA", "fr-FR", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "ms", "nl-NL", "no", "pl", "pt-BR", "pt-PT", "ro", "ru", "sk", "sv", "th", "tr", "uk", "vi", "zh-Hans", "zh-Hant"]
14
+ ALL_LANGUAGES = %w[ar-SA ca cs da de-DE el en-AU en-CA en-GB en-US es-ES es-MX fi fr-CA fr-FR he hi hr hu id it ja ko ms nl-NL no pl pt-BR pt-PT ro ru sk sv th tr uk vi zh-Hans zh-Hant]
15
15
  end
16
16
  end
@@ -4,7 +4,7 @@ require_relative 'helper'
4
4
 
5
5
  module FastlaneCore
6
6
  class Swag
7
- # rubocop:disable LineLength
7
+ # rubocop:disable Layout/LineLength
8
8
  require 'zlib'
9
9
  FRAMES = ["x\x9C\xED[\xD9u\xDB0\x10\xFCO\v\xFEq\t<C\xE0\xB9\x14\xD7\xE0\x1ERE\nt%\x91D\x12<0\xB3\aH\xC9\x8A\x9F\xF3\xF2\x13\x02\xC4\xB13;{Pyyo\xE3[\x17?^O\xFF\xF3\xF2\xDE\xDDV\xFE\xF5\xF2\xB3\xC5\xCF\x16_\xB2\xC5\xFC\xC28?\xBC\xF5oM\xFD\xFB\x03>\xAE\xE0\xE3\xEA\xBA\x87}z\xBE\xB8\xCF\f\xBE\v\xEA\a\x98\x9E\xCD\x97i>>\xFF\xFE\xD9\x0FWQ\x1En6\xC3\xE2\x8C\xA0\xCE\xA0k\xC8\x87\xE0W\xE0\x808,\xEF1;\xDA{\xF0\e\xBD1\x0E\aq\xF8\xB23\xB2Vu\xFDWf\xA7\xF1Z\xE8\xA0\xFB\xC9\x96M\xACG,\x06t(\x06\xB4\x10\xCE\x1D\x11K\xAE\xB5\fC\x93\xD6\x03\x03&7@\xDD\xB7\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C\x18\x1E\x8A\x19\x9D\x94\x9AtE\xB1\xF8EN\xA2\e0uk\xECi\xB8\xC7\xD3\x9BYk\x12\xA2\xA3\xBB\x9D\xF7\xA7\xA5\xCD\r`\x18\vtG'K\x15v\xFE&G\xA3\xA8\xB1\xDF\xBB\xD2\xAF\xC0\b\xE0]f.\x01\x0E\xAE\xD3\xB4\x81\xBC\xE8D\x93t\xCF\xB3$\xE8b_;\xDDid%\xA4\x9F\x89\x8B\n`\xD4F \x1D\e=\xFE\xB7\xB8[%\x01\xC3I\x0F\xFE\xEF\xCF\xFD\x9C\xC3y\xCEj\xDF\xD48\xC7\xE9\x9E&\xBF\x99\xF8\xAE\x98\xAC\xAA\xC7Y\x9B\xD9\x9Eol\xDF\xE7\xB5\xC4\x7F\xB9\xC4_\x06\x16#\x10",
@@ -0,0 +1,35 @@
1
+ <%= program :name %>
2
+
3
+ <%= program :description %>
4
+
5
+ <%= "Commands:#{@default_command ? ' (* default)' : '' }" %>
6
+ <% for name, command in @commands.sort -%>
7
+ <% unless alias? name -%>
8
+ <%= "%-#{max_command_length}s #{@default_command.nil? ? '' : (command.name == @default_command.to_s ? '* ' : ' ') }%s" % [command.name, command.summary || command.description] %>
9
+ <% end -%>
10
+ <% end -%>
11
+ <% unless @aliases.empty? %>
12
+ Aliases:
13
+ <% for alias_name, args in @aliases.sort -%>
14
+ <%= "%-#{max_aliases_length}s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] %>
15
+ <% end -%>
16
+ <% end %>
17
+ <% unless @options.empty? -%>
18
+ Global Options:
19
+ <% for option in @options -%>
20
+ <%= "%-20s %s" % [option[:switches].join(', '), option[:description]] %>
21
+ <% end -%>
22
+ <% end -%>
23
+ <% default_command_options = @commands.values.find {|c| c.name == @default_command.to_s }&.options || [] %>
24
+ <% unless default_command_options.empty? %>
25
+ <%= "Options for #{@default_command}:" %>
26
+ <% for option in default_command_options -%>
27
+ <%= "%-20s %s" % [option[:switches].join(', '), option[:description]] %>
28
+ <% end -%>
29
+ <% end -%>
30
+ <% if program :help -%>
31
+ <% for title, body in program(:help) %>
32
+ <%= title %>:
33
+ <%= body %>
34
+ <% end %>
35
+ <% end -%>
@@ -0,0 +1,16 @@
1
+ require 'commander'
2
+
3
+ module FastlaneCore
4
+ class HelpFormatter < ::Commander::HelpFormatter::TerminalCompact
5
+ def template(name)
6
+ # fastlane only customizes the global command help
7
+ return super unless name == :help
8
+
9
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6')
10
+ ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), nil, '-')
11
+ else
12
+ ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), trim_mode: '-')
13
+ end
14
+ end
15
+ end
16
+ end
@@ -145,7 +145,10 @@ module FastlaneCore
145
145
  def password(message)
146
146
  verify_interactive!(message)
147
147
 
148
- ask("#{format_string}#{message.to_s.yellow}") { |q| q.echo = "*" }
148
+ ask("#{format_string}#{message.to_s.yellow}") do |q|
149
+ q.whitespace = :chomp
150
+ q.echo = "*"
151
+ end
149
152
  end
150
153
 
151
154
  private
@@ -1,5 +1,6 @@
1
1
  require 'commander'
2
2
  require 'fastlane/version'
3
+ require 'fastlane_core/ui/help_formatter'
3
4
  require 'fastlane_core/globals'
4
5
  require 'fastlane_core/configuration/configuration'
5
6
 
@@ -27,7 +28,7 @@ module Frameit
27
28
  program :help, 'Author', 'Felix Krause <frameit@krausefx.com>'
28
29
  program :help, 'Website', 'https://fastlane.tools'
29
30
  program :help, 'Documentation', 'https://docs.fastlane.tools/actions/frameit/'
30
- program :help_formatter, :compact
31
+ program :help_formatter, FastlaneCore::HelpFormatter
31
32
 
32
33
  global_option('--verbose') { FastlaneCore::Globals.verbose = true }
33
34
  global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
@@ -121,12 +121,12 @@ module Frameit
121
121
 
122
122
  def self.supported_color?(value)
123
123
  return false if value.nil?
124
- Color.all_colors.any? { |c| c == value }
124
+ Color.all_colors.any?(value)
125
125
  end
126
126
 
127
127
  def self.supported_platform?(value)
128
128
  return false if value.nil?
129
- Platform.all_platforms.any? { |c| c == value }
129
+ Platform.all_platforms.any?(value)
130
130
  end
131
131
 
132
132
  def self.supported_device?(value)
@@ -71,8 +71,9 @@ module Frameit
71
71
  def download_file(path, txt: "file")
72
72
  require 'uri'
73
73
  require 'excon'
74
+ require 'addressable/uri'
74
75
 
75
- url = File.join(HOST_URL, Frameit.frames_version, URI.escape(path))
76
+ url = File.join(HOST_URL, Frameit.frames_version, Addressable::URI.encode(path))
76
77
  UI.message("Downloading #{txt} from '#{url}' ...")
77
78
  body = Excon.get(url).body
78
79
  raise body if body.include?("<Error>")
@@ -17,8 +17,8 @@ module Gym
17
17
  final_mapping = (primary_mapping || {}).dup # for verbose output at the end of the method
18
18
  secondary_mapping ||= self.detect_project_profile_mapping # default to Xcode project
19
19
 
20
- final_mapping = Hash[final_mapping.map { |k, v| [k.to_sym, v] }]
21
- secondary_mapping = Hash[secondary_mapping.map { |k, v| [k.to_sym, v] }]
20
+ final_mapping = final_mapping.transform_keys(&:to_sym)
21
+ secondary_mapping = secondary_mapping.transform_keys(&:to_sym)
22
22
 
23
23
  # Now it's time to merge the (potentially) existing mapping
24
24
  # (e.g. coming from `provisioningProfiles` of the `export_options` or from previous match calls)
@@ -1,6 +1,7 @@
1
1
  require 'commander'
2
2
 
3
3
  require 'fastlane_core/configuration/configuration'
4
+ require 'fastlane_core/ui/help_formatter'
4
5
  require_relative 'module'
5
6
  require_relative 'manager'
6
7
  require_relative 'options'
@@ -28,7 +29,7 @@ module Gym
28
29
  program :help, "Author", "Felix Krause <gym@krausefx.com>"
29
30
  program :help, "Website", "https://fastlane.tools"
30
31
  program :help, "Documentation", "https://docs.fastlane.tools/actions/gym/"
31
- program :help_formatter, :compact
32
+ program :help_formatter, FastlaneCore::HelpFormatter
32
33
 
33
34
  global_option("--verbose") { FastlaneCore::Globals.verbose = true }
34
35
 
@@ -4,6 +4,7 @@
4
4
  # because of
5
5
  # `incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError)`
6
6
 
7
+ require 'addressable/uri'
7
8
  require 'tempfile'
8
9
  require 'xcodeproj'
9
10
 
@@ -154,12 +155,12 @@ module Gym
154
155
 
155
156
  def normalize_export_options(hash)
156
157
  # Normalize some values
157
- hash[:onDemandResourcesAssetPacksBaseURL] = URI.escape(hash[:onDemandResourcesAssetPacksBaseURL]) if hash[:onDemandResourcesAssetPacksBaseURL]
158
+ hash[:onDemandResourcesAssetPacksBaseURL] = Addressable::URI.encode(hash[:onDemandResourcesAssetPacksBaseURL]) if hash[:onDemandResourcesAssetPacksBaseURL]
158
159
  if hash[:manifest]
159
- hash[:manifest][:appURL] = URI.escape(hash[:manifest][:appURL]) if hash[:manifest][:appURL]
160
- hash[:manifest][:displayImageURL] = URI.escape(hash[:manifest][:displayImageURL]) if hash[:manifest][:displayImageURL]
161
- hash[:manifest][:fullSizeImageURL] = URI.escape(hash[:manifest][:fullSizeImageURL]) if hash[:manifest][:fullSizeImageURL]
162
- hash[:manifest][:assetPackManifestURL] = URI.escape(hash[:manifest][:assetPackManifestURL]) if hash[:manifest][:assetPackManifestURL]
160
+ hash[:manifest][:appURL] = Addressable::URI.encode(hash[:manifest][:appURL]) if hash[:manifest][:appURL]
161
+ hash[:manifest][:displayImageURL] = Addressable::URI.encode(hash[:manifest][:displayImageURL]) if hash[:manifest][:displayImageURL]
162
+ hash[:manifest][:fullSizeImageURL] = Addressable::URI.encode(hash[:manifest][:fullSizeImageURL]) if hash[:manifest][:fullSizeImageURL]
163
+ hash[:manifest][:assetPackManifestURL] = Addressable::URI.encode(hash[:manifest][:assetPackManifestURL]) if hash[:manifest][:assetPackManifestURL]
163
164
  end
164
165
  hash
165
166
  end
@@ -243,8 +243,12 @@ module Gym
243
243
  # Moves over the binary and dsym file to the output directory
244
244
  # @return (String) The path to the resulting pkg file
245
245
  def move_pkg
246
- FileUtils.mv(PackageCommandGenerator.binary_path, File.expand_path(Gym.config[:output_directory]), force: true)
247
246
  binary_path = File.expand_path(File.join(Gym.config[:output_directory], File.basename(PackageCommandGenerator.binary_path)))
247
+ if File.exist?(binary_path)
248
+ UI.important(" Removing #{File.basename(binary_path)}") if FastlaneCore::Globals.verbose?
249
+ FileUtils.rm_rf(binary_path)
250
+ end
251
+ FileUtils.mv(PackageCommandGenerator.binary_path, File.expand_path(Gym.config[:output_directory]), force: true)
248
252
 
249
253
  UI.success("Successfully exported and signed the pkg file:")
250
254
  UI.message(binary_path)
@@ -1,6 +1,7 @@
1
1
  require 'commander'
2
2
 
3
3
  require 'fastlane_core/configuration/configuration'
4
+ require 'fastlane_core/ui/help_formatter'
4
5
 
5
6
  require_relative 'nuke'
6
7
  require_relative 'change_password'
@@ -32,7 +33,7 @@ module Match
32
33
  program :help, 'Author', 'Felix Krause <match@krausefx.com>'
33
34
  program :help, 'Website', 'https://fastlane.tools'
34
35
  program :help, 'Documentation', 'https://docs.fastlane.tools/actions/match/'
35
- program :help_formatter, :compact
36
+ program :help_formatter, FastlaneCore::HelpFormatter
36
37
 
37
38
  global_option('--verbose') { FastlaneCore::Globals.verbose = true }
38
39
  global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
@@ -2,6 +2,7 @@ require 'commander'
2
2
 
3
3
  require 'fastlane/version'
4
4
  require 'fastlane_core/configuration/configuration'
5
+ require 'fastlane_core/ui/help_formatter'
5
6
  require_relative 'options'
6
7
  require_relative 'manager'
7
8
 
@@ -22,7 +23,7 @@ module PEM
22
23
  program :help, 'Author', 'Felix Krause <pem@krausefx.com>'
23
24
  program :help, 'Website', 'https://fastlane.tools'
24
25
  program :help, 'Documentation', 'https://docs.fastlane.tools/actions/pem/'
25
- program :help_formatter, :compact
26
+ program :help_formatter, FastlaneCore::HelpFormatter
26
27
 
27
28
  global_option('--verbose') { FastlaneCore::Globals.verbose = true }
28
29
  global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
@@ -447,7 +447,7 @@ module Pilot
447
447
  end
448
448
 
449
449
  def update_review_detail(build, info)
450
- info = info.collect { |k, v| [k.to_sym, v] }.to_h
450
+ info = info.transform_keys(&:to_sym)
451
451
 
452
452
  attributes = {}
453
453
  attributes[:contactEmail] = info[:contact_email] if info.key?(:contact_email)
@@ -463,7 +463,7 @@ module Pilot
463
463
  end
464
464
 
465
465
  def update_localized_app_review(build, info_by_lang, default_info: nil)
466
- info_by_lang = info_by_lang.collect { |k, v| [k.to_sym, v] }.to_h
466
+ info_by_lang = info_by_lang.transform_keys(&:to_sym)
467
467
 
468
468
  if default_info
469
469
  info_by_lang.delete(:default)
@@ -509,7 +509,7 @@ module Pilot
509
509
  end
510
510
 
511
511
  def update_localized_build_review(build, info_by_lang, default_info: nil)
512
- info_by_lang = info_by_lang.collect { |k, v| [k.to_sym, v] }.to_h
512
+ info_by_lang = info_by_lang.transform_keys(&:to_sym)
513
513
 
514
514
  if default_info
515
515
  info_by_lang.delete(:default)
@@ -1,6 +1,7 @@
1
1
  require "commander"
2
2
 
3
3
  require 'fastlane_core/configuration/configuration'
4
+ require 'fastlane_core/ui/help_formatter'
4
5
  require_relative 'module'
5
6
  require_relative 'tester_importer'
6
7
  require_relative 'tester_exporter'
@@ -51,7 +52,7 @@ module Pilot
51
52
  program :help, "Author", "Felix Krause <pilot@krausefx.com>"
52
53
  program :help, "Website", "https://fastlane.tools"
53
54
  program :help, "Documentation", "https://docs.fastlane.tools/actions/pilot/"
54
- program :help_formatter, :compact
55
+ program :help_formatter, FastlaneCore::HelpFormatter
55
56
 
56
57
  global_option("--verbose") { FastlaneCore::Globals.verbose = true }
57
58
 
@@ -269,12 +269,12 @@ module Pilot
269
269
  verify_block: proc do |value|
270
270
  ENV["FASTLANE_TEAM_ID"] = value.to_s
271
271
  end),
272
- # rubocop:disable Metrics/LineLength
272
+ # rubocop:disable Layout/LineLength
273
273
  FastlaneCore::ConfigItem.new(key: :itc_provider,
274
274
  env_name: "PILOT_ITC_PROVIDER",
275
275
  description: "The provider short name to be used with the iTMSTransporter to identify your team. This value will override the automatically detected provider short name. To get provider short name run `pathToXcode.app/Contents/Applications/Application\\ Loader.app/Contents/itms/bin/iTMSTransporter -m provider -u 'USERNAME' -p 'PASSWORD' -account_type itunes_connect -v off`. The short names of providers should be listed in the second column",
276
276
  optional: true),
277
- # rubocop:enable Metrics/LineLength
277
+ # rubocop:enable Layout/LineLength
278
278
 
279
279
  # waiting and uploaded build
280
280
  FastlaneCore::ConfigItem.new(key: :wait_processing_interval,
@@ -1,5 +1,4 @@
1
1
  require 'spaceship/tunes/application'
2
- require_relative 'tester_util'
3
2
  require_relative 'module'
4
3
  require_relative 'manager'
5
4
 
@@ -1,7 +1,6 @@
1
1
  require 'terminal-table'
2
2
 
3
3
  require_relative 'manager'
4
- require_relative 'tester_util'
5
4
 
6
5
  module Pilot
7
6
  class TesterManager < Manager
@@ -4,6 +4,7 @@ require "fastlane_core/configuration/commander_generator"
4
4
  require "fastlane_core/configuration/configuration"
5
5
  require "fastlane_core/helper"
6
6
  require "fastlane/version"
7
+ require 'fastlane_core/ui/help_formatter'
7
8
 
8
9
  require_relative 'module'
9
10
  require_relative 'options'
@@ -26,7 +27,7 @@ module Precheck
26
27
  program :help, "Author", "Joshua Liebowitz <taquitos@gmail.com>, @taquitos"
27
28
  program :help, "Website", "https://fastlane.tools"
28
29
  program :help, "Documentation", "https://docs.fastlane.tools/actions/precheck/"
29
- program :help_formatter, :compact
30
+ program :help_formatter, FastlaneCore::HelpFormatter
30
31
 
31
32
  global_option("--verbose") { FastlaneCore::Globals.verbose = true }
32
33
 
@@ -1,6 +1,7 @@
1
1
  require 'commander'
2
2
 
3
3
  require 'fastlane/version'
4
+ require 'fastlane_core/ui/help_formatter'
4
5
  require 'fastlane_core/configuration/config_item'
5
6
  require_relative 'module'
6
7
  require_relative 'manager'
@@ -23,7 +24,7 @@ module Produce
23
24
  program :help, 'Author', 'Felix Krause <produce@krausefx.com>'
24
25
  program :help, 'Website', 'https://fastlane.tools'
25
26
  program :help, 'Documentation', 'https://docs.fastlane.tools/actions/produce/'
26
- program :help_formatter, :compact
27
+ program :help_formatter, FastlaneCore::HelpFormatter
27
28
 
28
29
  global_option('--verbose') { FastlaneCore::Globals.verbose = true }
29
30
  global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
@@ -1,6 +1,7 @@
1
1
  require 'commander'
2
2
 
3
3
  require 'fastlane_core/configuration/configuration'
4
+ require 'fastlane_core/ui/help_formatter'
4
5
  require_relative 'module'
5
6
  require_relative 'manager'
6
7
  require_relative 'options'
@@ -28,7 +29,7 @@ module Scan
28
29
  program :help, "Author", "Felix Krause <scan@krausefx.com>"
29
30
  program :help, "Website", "https://fastlane.tools"
30
31
  program :help, "Documentation", "https://docs.fastlane.tools/actions/scan/"
31
- program :help_formatter, :compact
32
+ program :help_formatter, FastlaneCore::HelpFormatter
32
33
 
33
34
  global_option("--verbose") { FastlaneCore::Globals.verbose = true }
34
35
 
@@ -55,6 +55,8 @@ module Scan
55
55
  end
56
56
 
57
57
  def execute(retries: 0)
58
+ Scan.cache[:retry_attempt] = Scan.config[:number_of_retries] - retries
59
+
58
60
  command = @test_command_generator.generate
59
61
 
60
62
  prefix_hash = [
@@ -120,7 +122,7 @@ module Scan
120
122
  suites = failing_tests.split(/(?=\n\s+[\w\s]+:\n)/)
121
123
 
122
124
  suites.each do |suite|
123
- suite_name = suite.match(/\s*([\w\s]+):/).captures.first
125
+ suite_name = suite.match(/\s*([\w\s\S]+):/).captures.first
124
126
 
125
127
  test_cases = suite.split(":\n").fetch(1, []).split("\n").each
126
128
  .select { |line| line.match?(/^\s+/) }