fastlane 2.181.0 → 2.182.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +80 -80
  3. data/cert/lib/cert/commands_generator.rb +2 -1
  4. data/deliver/lib/deliver/commands_generator.rb +2 -1
  5. data/deliver/lib/deliver/languages.rb +1 -1
  6. data/deliver/lib/deliver/options.rb +2 -2
  7. data/fastlane/lib/fastlane/actions/actions_helper.rb +2 -2
  8. data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
  9. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +1 -1
  10. data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +18 -1
  11. data/fastlane/lib/fastlane/actions/git_commit.rb +3 -1
  12. data/fastlane/lib/fastlane/actions/git_submodule_update.rb +16 -8
  13. data/fastlane/lib/fastlane/actions/import_from_git.rb +5 -5
  14. data/fastlane/lib/fastlane/actions/slack.rb +19 -18
  15. data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -2
  16. data/fastlane/lib/fastlane/cli_tools_distributor.rb +1 -1
  17. data/fastlane/lib/fastlane/commands_generator.rb +2 -1
  18. data/fastlane/lib/fastlane/fast_file.rb +10 -2
  19. data/fastlane/lib/fastlane/notification/slack.rb +56 -0
  20. data/fastlane/lib/fastlane/plugins/plugin_info.rb +2 -2
  21. data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +7 -6
  22. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +30 -35
  23. data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
  24. data/fastlane/lib/fastlane/swift_fastlane_function.rb +35 -14
  25. data/fastlane/lib/fastlane/version.rb +2 -2
  26. data/fastlane/swift/Deliverfile.swift +1 -1
  27. data/fastlane/swift/DeliverfileProtocol.swift +1 -1
  28. data/fastlane/swift/Fastlane.swift +6613 -3798
  29. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +4 -0
  30. data/fastlane/swift/Gymfile.swift +1 -1
  31. data/fastlane/swift/GymfileProtocol.swift +1 -1
  32. data/fastlane/swift/Matchfile.swift +1 -1
  33. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  34. data/fastlane/swift/OptionalConfigValue.swift +131 -0
  35. data/fastlane/swift/Precheckfile.swift +1 -1
  36. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  37. data/fastlane/swift/Scanfile.swift +1 -1
  38. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  39. data/fastlane/swift/Screengrabfile.swift +1 -1
  40. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  41. data/fastlane/swift/Snapshotfile.swift +1 -1
  42. data/fastlane/swift/SnapshotfileProtocol.swift +5 -1
  43. data/fastlane/swift/formatting/Brewfile.lock.json +12 -12
  44. data/fastlane/swift/upgrade_manifest.json +1 -1
  45. data/fastlane_core/lib/fastlane_core/helper.rb +4 -4
  46. data/fastlane_core/lib/fastlane_core/languages.rb +2 -2
  47. data/fastlane_core/lib/fastlane_core/swag.rb +1 -1
  48. data/fastlane_core/lib/fastlane_core/ui/help.erb +35 -0
  49. data/fastlane_core/lib/fastlane_core/ui/help_formatter.rb +16 -0
  50. data/frameit/lib/frameit/commands_generator.rb +2 -1
  51. data/gym/lib/gym/commands_generator.rb +2 -1
  52. data/match/lib/match/commands_generator.rb +2 -1
  53. data/pem/lib/pem/commands_generator.rb +2 -1
  54. data/pilot/lib/pilot/commands_generator.rb +2 -1
  55. data/pilot/lib/pilot/options.rb +2 -2
  56. data/pilot/lib/pilot/tester_exporter.rb +0 -1
  57. data/pilot/lib/pilot/tester_manager.rb +0 -1
  58. data/precheck/lib/precheck/commands_generator.rb +2 -1
  59. data/produce/lib/produce/commands_generator.rb +2 -1
  60. data/scan/lib/scan/commands_generator.rb +2 -1
  61. data/screengrab/lib/screengrab/commands_generator.rb +2 -1
  62. data/sigh/lib/sigh/commands_generator.rb +2 -1
  63. data/snapshot/lib/assets/SnapfileTemplate +1 -1
  64. data/snapshot/lib/snapshot/commands_generator.rb +3 -1
  65. data/snapshot/lib/snapshot/options.rb +5 -0
  66. data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +2 -0
  67. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
  68. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +8 -4
  69. data/spaceship/lib/spaceship/base.rb +2 -2
  70. data/spaceship/lib/spaceship/commands_generator.rb +2 -1
  71. data/spaceship/lib/spaceship/connect_api/models/profile.rb +6 -0
  72. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +6 -2
  73. data/spaceship/lib/spaceship/ui.rb +2 -2
  74. data/supply/lib/supply/commands_generator.rb +2 -1
  75. metadata +51 -66
  76. data/pilot/lib/pilot/tester_util.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38bb5919faa63d99767d24690442b21a5d481b03afe68a1832e4d3d1a4e28e29
4
- data.tar.gz: 5553432685d7e0474eec0b6a76e932834ae0afd741f0ac02af7e1ec2b755af80
3
+ metadata.gz: a070315dda69108ca90681daef2a7faf462b82dbad765141469131cb851599e8
4
+ data.tar.gz: 1022b14bee49abce8a9b30bbdaa1b20a294ced05cc41fb8760a02d4c0f8f18e7
5
5
  SHA512:
6
- metadata.gz: 6c6db2341264725bb9af7c225cacd888a044949311402de5d9cd0c917a73ffcccf4627adee7d160a1fe46e1e150d855dbd41951b0d50a06dd97fc27f8b78888f
7
- data.tar.gz: 384e80ffe1b82abd1b84b2f09e7367da9e8cfbf5ce2427ccb61b62b738a1b91ff5091da839afc23d7ddec123d16d0e3ff8f3186eef3fc41b9e547a7a685b63e4
6
+ metadata.gz: e58537c12bc248c3f7e657e0e40a3ca7976581902d73ce6618b5378b77d7cf6c98ca8c8007714b5d7a752be868f04f916ff81dba31e1647d82b56608b088e2de
7
+ data.tar.gz: b81b9773dda36d9db4423d19d94782e8c32d32b5bd4bab4a53dd06f9f4acc4b5c0e1cb2933fc4dd8d5d564e6e2d744bdd26906dd5366be6d89ce16cf4df101d6
data/README.md CHANGED
@@ -35,11 +35,11 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
35
35
  <!-- This table is regenerated and resorted on each release -->
36
36
  <table id='team'>
37
37
  <tr>
38
- <td id='matthew-ellis'>
39
- <a href='https://github.com/matthewellis'>
40
- <img src='https://github.com/matthewellis.png?size=140'>
38
+ <td id='daniel-jankowski'>
39
+ <a href='https://github.com/mollyIV'>
40
+ <img src='https://github.com/mollyIV.png?size=140'>
41
41
  </a>
42
- <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
42
+ <h4 align='center'><a href='https://twitter.com/mollyIV'>Daniel Jankowski</a></h4>
43
43
  </td>
44
44
  <td id='danielle-tomlinson'>
45
45
  <a href='https://github.com/endocrimes'>
@@ -47,63 +47,31 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
47
47
  </a>
48
48
  <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
49
49
  </td>
50
+ <td id='iulian-onofrei'>
51
+ <a href='https://github.com/revolter'>
52
+ <img src='https://github.com/revolter.png?size=140'>
53
+ </a>
54
+ <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
55
+ </td>
50
56
  <td id='satoshi-namai'>
51
57
  <a href='https://github.com/ainame'>
52
58
  <img src='https://github.com/ainame.png?size=140'>
53
59
  </a>
54
60
  <h4 align='center'><a href='https://twitter.com/ainame'>Satoshi Namai</a></h4>
55
61
  </td>
56
- <td id='olivier-halligon'>
57
- <a href='https://github.com/AliSoftware'>
58
- <img src='https://github.com/AliSoftware.png?size=140'>
59
- </a>
60
- <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
61
- </td>
62
- <td id='max-ott'>
63
- <a href='https://github.com/max-ott'>
64
- <img src='https://github.com/max-ott.png?size=140'>
65
- </a>
66
- <h4 align='center'><a href='https://twitter.com/ott_max'>Max Ott</a></h4>
67
- </td>
68
- </tr>
69
- <tr>
70
- <td id='maksym-grebenets'>
71
- <a href='https://github.com/mgrebenets'>
72
- <img src='https://github.com/mgrebenets.png?size=140'>
73
- </a>
74
- <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
75
- </td>
76
62
  <td id='felix-krause'>
77
63
  <a href='https://github.com/KrauseFx'>
78
64
  <img src='https://github.com/KrauseFx.png?size=140'>
79
65
  </a>
80
66
  <h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
81
67
  </td>
82
- <td id='iulian-onofrei'>
83
- <a href='https://github.com/revolter'>
84
- <img src='https://github.com/revolter.png?size=140'>
85
- </a>
86
- <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
87
- </td>
88
- <td id='luka-mirosevic'>
89
- <a href='https://github.com/lmirosevic'>
90
- <img src='https://github.com/lmirosevic.png?size=140'>
91
- </a>
92
- <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
93
- </td>
94
- <td id='fumiya-nakamura'>
95
- <a href='https://github.com/nafu'>
96
- <img src='https://github.com/nafu.png?size=140'>
97
- </a>
98
- <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
99
- </td>
100
68
  </tr>
101
69
  <tr>
102
- <td id='jorge-revuelta-h'>
103
- <a href='https://github.com/minuscorp'>
104
- <img src='https://github.com/minuscorp.png?size=140'>
70
+ <td id='jimmy-dee'>
71
+ <a href='https://github.com/jdee'>
72
+ <img src='https://github.com/jdee.png?size=140'>
105
73
  </a>
106
- <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
74
+ <h4 align='center'>Jimmy Dee</h4>
107
75
  </td>
108
76
  <td id='manu-wallner'>
109
77
  <a href='https://github.com/milch'>
@@ -111,24 +79,56 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
111
79
  </a>
112
80
  <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
113
81
  </td>
114
- <td id='daniel-jankowski'>
115
- <a href='https://github.com/mollyIV'>
116
- <img src='https://github.com/mollyIV.png?size=140'>
82
+ <td id='andrew-mcburney'>
83
+ <a href='https://github.com/armcburney'>
84
+ <img src='https://github.com/armcburney.png?size=140'>
117
85
  </a>
118
- <h4 align='center'><a href='https://twitter.com/mollyIV'>Daniel Jankowski</a></h4>
86
+ <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
87
+ </td>
88
+ <td id='kohki-miki'>
89
+ <a href='https://github.com/giginet'>
90
+ <img src='https://github.com/giginet.png?size=140'>
91
+ </a>
92
+ <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
93
+ </td>
94
+ <td id='roger-oba'>
95
+ <a href='https://github.com/rogerluan'>
96
+ <img src='https://github.com/rogerluan.png?size=140'>
97
+ </a>
98
+ <h4 align='center'><a href='https://twitter.com/rogerluan_'>Roger Oba</a></h4>
119
99
  </td>
100
+ </tr>
101
+ <tr>
120
102
  <td id='jérôme-lacoste'>
121
103
  <a href='https://github.com/lacostej'>
122
104
  <img src='https://github.com/lacostej.png?size=140'>
123
105
  </a>
124
106
  <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
125
107
  </td>
108
+ <td id='luka-mirosevic'>
109
+ <a href='https://github.com/lmirosevic'>
110
+ <img src='https://github.com/lmirosevic.png?size=140'>
111
+ </a>
112
+ <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
113
+ </td>
114
+ <td id='fumiya-nakamura'>
115
+ <a href='https://github.com/nafu'>
116
+ <img src='https://github.com/nafu.png?size=140'>
117
+ </a>
118
+ <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
119
+ </td>
126
120
  <td id='aaron-brager'>
127
121
  <a href='https://github.com/getaaron'>
128
122
  <img src='https://github.com/getaaron.png?size=140'>
129
123
  </a>
130
124
  <h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
131
125
  </td>
126
+ <td id='matthew-ellis'>
127
+ <a href='https://github.com/matthewellis'>
128
+ <img src='https://github.com/matthewellis.png?size=140'>
129
+ </a>
130
+ <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
131
+ </td>
132
132
  </tr>
133
133
  <tr>
134
134
  <td id='jan-piotrowski'>
@@ -137,17 +137,11 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
137
137
  </a>
138
138
  <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
139
139
  </td>
140
- <td id='andrew-mcburney'>
141
- <a href='https://github.com/armcburney'>
142
- <img src='https://github.com/armcburney.png?size=140'>
143
- </a>
144
- <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
145
- </td>
146
- <td id='joshua-liebowitz'>
147
- <a href='https://github.com/taquitos'>
148
- <img src='https://github.com/taquitos.png?size=140'>
140
+ <td id='josh-holtz'>
141
+ <a href='https://github.com/joshdholtz'>
142
+ <img src='https://github.com/joshdholtz.png?size=140'>
149
143
  </a>
150
- <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
144
+ <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
151
145
  </td>
152
146
  <td id='stefan-natchev'>
153
147
  <a href='https://github.com/snatchev'>
@@ -155,31 +149,25 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
155
149
  </a>
156
150
  <h4 align='center'><a href='https://twitter.com/snatchev'>Stefan Natchev</a></h4>
157
151
  </td>
158
- <td id='josh-holtz'>
159
- <a href='https://github.com/joshdholtz'>
160
- <img src='https://github.com/joshdholtz.png?size=140'>
161
- </a>
162
- <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
163
- </td>
164
- </tr>
165
- <tr>
166
- <td id='jimmy-dee'>
167
- <a href='https://github.com/jdee'>
168
- <img src='https://github.com/jdee.png?size=140'>
152
+ <td id='max-ott'>
153
+ <a href='https://github.com/max-ott'>
154
+ <img src='https://github.com/max-ott.png?size=140'>
169
155
  </a>
170
- <h4 align='center'>Jimmy Dee</h4>
156
+ <h4 align='center'><a href='https://twitter.com/ott_max'>Max Ott</a></h4>
171
157
  </td>
172
- <td id='kohki-miki'>
173
- <a href='https://github.com/giginet'>
174
- <img src='https://github.com/giginet.png?size=140'>
158
+ <td id='maksym-grebenets'>
159
+ <a href='https://github.com/mgrebenets'>
160
+ <img src='https://github.com/mgrebenets.png?size=140'>
175
161
  </a>
176
- <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
162
+ <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
177
163
  </td>
178
- <td id='roger-oba'>
179
- <a href='https://github.com/rogerluan'>
180
- <img src='https://github.com/rogerluan.png?size=140'>
164
+ </tr>
165
+ <tr>
166
+ <td id='joshua-liebowitz'>
167
+ <a href='https://github.com/taquitos'>
168
+ <img src='https://github.com/taquitos.png?size=140'>
181
169
  </a>
182
- <h4 align='center'><a href='https://twitter.com/rogerluan_'>Roger Oba</a></h4>
170
+ <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
183
171
  </td>
184
172
  <td id='helmut-januschka'>
185
173
  <a href='https://github.com/hjanuschka'>
@@ -187,6 +175,18 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
187
175
  </a>
188
176
  <h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
189
177
  </td>
178
+ <td id='olivier-halligon'>
179
+ <a href='https://github.com/AliSoftware'>
180
+ <img src='https://github.com/AliSoftware.png?size=140'>
181
+ </a>
182
+ <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
183
+ </td>
184
+ <td id='jorge-revuelta-h'>
185
+ <a href='https://github.com/minuscorp'>
186
+ <img src='https://github.com/minuscorp.png?size=140'>
187
+ </a>
188
+ <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
189
+ </td>
190
190
  </table>
191
191
 
192
192
  Special thanks to all [contributors](https://github.com/fastlane/fastlane/graphs/contributors) for extending and improving _fastlane_.
@@ -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/configuration/configuration'
4
5
  require 'fastlane_core/globals'
5
6
 
@@ -23,7 +24,7 @@ module Cert
23
24
  program :help, 'Author', 'Felix Krause <cert@krausefx.com>'
24
25
  program :help, 'Website', 'https://fastlane.tools'
25
26
  program :help, 'Documentation', 'https://docs.fastlane.tools/actions/cert/'
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,5 +1,6 @@
1
1
  require 'commander'
2
2
  require 'fastlane/version'
3
+ require 'fastlane_core/ui/help_formatter'
3
4
 
4
5
  require_relative 'download_screenshots'
5
6
  require_relative 'options'
@@ -48,7 +49,7 @@ module Deliver
48
49
  program :help, 'Author', 'Felix Krause <deliver@krausefx.com>'
49
50
  program :help, 'Website', 'https://fastlane.tools'
50
51
  program :help, 'Documentation', 'https://docs.fastlane.tools/actions/deliver/'
51
- program :help_formatter, :compact
52
+ program :help_formatter, FastlaneCore::HelpFormatter
52
53
 
53
54
  global_option('--verbose') { FastlaneCore::Globals.verbose = true }
54
55
  global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
@@ -2,6 +2,6 @@ module Deliver
2
2
  module Languages
3
3
  # 2020-08-24 - Available locales are not available as an endpoint in App Store Connect
4
4
  # Update with Spaceship::Tunes.client.available_languages.sort (as long as endpoint is avilable)
5
- 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"]
5
+ 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]
6
6
  end
7
7
  end
@@ -278,7 +278,7 @@ module Deliver
278
278
  verify_block: proc do |value|
279
279
  ENV["FASTLANE_TEAM_NAME"] = value.to_s
280
280
  end),
281
- # rubocop:disable Metrics/LineLength
281
+ # rubocop:disable Layout/LineLength
282
282
  FastlaneCore::ConfigItem.new(key: :itc_provider,
283
283
  env_name: "DELIVER_ITC_PROVIDER",
284
284
  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",
@@ -286,7 +286,7 @@ module Deliver
286
286
  code_gen_sensitive: true,
287
287
  default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_provider),
288
288
  default_value_dynamic: true),
289
- # rubocop:enable Metrics/LineLength
289
+ # rubocop:enable Layout/LineLength
290
290
 
291
291
  # precheck
292
292
  FastlaneCore::ConfigItem.new(key: :run_precheck_before_submit,
@@ -87,13 +87,13 @@ module Fastlane
87
87
  end
88
88
 
89
89
  # returns a list of official integrations
90
- # rubocop:disable Style/AccessorMethodName
90
+ # rubocop:disable Naming/AccessorMethodName
91
91
  def self.get_all_official_actions
92
92
  Dir[File.expand_path('*.rb', File.dirname(__FILE__))].collect do |file|
93
93
  File.basename(file).gsub('.rb', '').to_sym
94
94
  end
95
95
  end
96
- # rubocop:enable Style/AccessorMethodName
96
+ # rubocop:enable Naming/AccessorMethodName
97
97
 
98
98
  # Returns the class ref to the action based on the action name
99
99
  # Returns nil if the action is not available
@@ -40,7 +40,7 @@ module Fastlane
40
40
  end
41
41
 
42
42
  # Create zip
43
- Actions.sh(%(cd "#{xcarchive_folder}" && zip -r -X "#{zip_file}" "#{xcarchive_file}" > /dev/null))
43
+ Actions.sh(%(cd "#{xcarchive_folder}" && zip -r -X -y "#{zip_file}" "#{xcarchive_file}" > /dev/null))
44
44
 
45
45
  # Moved to its final destination
46
46
  FileUtils.mv(zip_file, full_destination)
@@ -332,7 +332,7 @@ To get more information about language and locale codes please read [Internation
332
332
 
333
333
  ## Use a clean status bar
334
334
 
335
- You can set `override_status_bar` to `true` to set the status bar to Tuesday January 9th at 9:41AM with full battery and reception.
335
+ You can set `override_status_bar` to `true` to set the status bar to Tuesday January 9th at 9:41AM with full battery and reception. If you need more granular customization, to set a Carrier name for example, also set `override_status_bar_arguments` to the specific arguments to be passed to the `xcrun simctl status_bar override` command. Run `xcrun simctl status_bar --help` to see the options available.
336
336
 
337
337
  ## Editing the `Snapfile`
338
338
 
@@ -332,7 +332,24 @@ Use [_deliver_](https://docs.fastlane.tools/actions/deliver/) to upload iOS scre
332
332
 
333
333
  ## Use a clean status bar
334
334
 
335
- You can set `override_status_bar` to `true` in snapshot to set the status bar to Tuesday January 9th at 9:41AM with full battery and reception.
335
+ You can set `override_status_bar` to `true` in snapshot to set the status bar to Tuesday January 9th at 9:41AM with full battery and reception. If you need more granular customization, to set a Carrier name for example, also set `override_status_bar_arguments` to the specific arguments to be passed to the `xcrun simctl status_bar override` command. Run `xcrun simctl status_bar --help` to see the options available.
336
+
337
+ ### Examples
338
+
339
+ ```ruby
340
+ # Sets the time to 9:41AM with full battery and reception, with the default carrier name: Carrier
341
+ capture_ios_screenshots(
342
+ override_status_bar: true
343
+ )
344
+ ```
345
+
346
+ ```ruby
347
+ # Set the time to 9:41AM, battery at 75% and charging, on the TELUS LTE network
348
+ capture_ios_screenshots(
349
+ override_status_bar: true,
350
+ override_status_bar_arguments: "--time 9:41 --dataNetwork lte --cellularMode active --cellularBars 4 --batteryState charging --batteryLevel 75 --operatorName TELUS"
351
+ )
352
+ ```
336
353
 
337
354
  ## Gray artifacts around text
338
355
 
@@ -42,11 +42,13 @@ module Fastlane
42
42
  FastlaneCore::ConfigItem.new(key: :message,
43
43
  description: "The commit message that should be used"),
44
44
  FastlaneCore::ConfigItem.new(key: :skip_git_hooks,
45
- description: "Set to true to pass --no-verify to git",
45
+ description: "Set to true to pass `--no-verify` to git",
46
+ default_value: false,
46
47
  type: Boolean,
47
48
  optional: true),
48
49
  FastlaneCore::ConfigItem.new(key: :allow_nothing_to_commit,
49
50
  description: "Set to true to allow commit without any git changes in the files you want to commit",
51
+ default_value: false,
50
52
  type: Boolean,
51
53
  optional: true)
52
54
  ]
@@ -13,20 +13,19 @@ module Fastlane
13
13
  #####################################################
14
14
 
15
15
  def self.description
16
- "Executes a git submodule command"
16
+ "Executes a git submodule update command"
17
17
  end
18
18
 
19
19
  def self.available_options
20
20
  [
21
21
  FastlaneCore::ConfigItem.new(key: :recursive,
22
- description: "Should the submodules be updated recursively",
23
- type: Boolean,
24
- default_value: false),
22
+ description: "Should the submodules be updated recursively?",
23
+ type: Boolean,
24
+ default_value: false),
25
25
  FastlaneCore::ConfigItem.new(key: :init,
26
- description: "Should the submodules be initiated before update",
27
- type: Boolean,
28
- is_string: false,
29
- default_value: false)
26
+ description: "Should the submodules be initiated before update?",
27
+ type: Boolean,
28
+ default_value: false)
30
29
  ]
31
30
  end
32
31
 
@@ -44,6 +43,15 @@ module Fastlane
44
43
  return true
45
44
  end
46
45
 
46
+ def self.example_code
47
+ [
48
+ 'git_submodule_update',
49
+ 'git_submodule_update(recursive: true)',
50
+ 'git_submodule_update(init: true)',
51
+ 'git_submodule_update(recursive: true, init: true)'
52
+ ]
53
+ end
54
+
47
55
  def self.category
48
56
  :source_control
49
57
  end
@@ -43,7 +43,7 @@ module Fastlane
43
43
  is_string: false,
44
44
  optional: true),
45
45
  FastlaneCore::ConfigItem.new(key: :cache_path,
46
- description: "The path to a directory where the repository should be cloned into. This is ignored if `version` is not specified. Defaults to `nil`, which causes the repository to be cloned on every call, to a temporary directory",
46
+ description: "The path to a directory where the repository should be cloned into. Defaults to `nil`, which causes the repository to be cloned on every call, to a temporary directory",
47
47
  default_value: nil,
48
48
  optional: true)
49
49
  ]
@@ -61,14 +61,14 @@ module Fastlane
61
61
  [
62
62
  'import_from_git(
63
63
  url: "git@github.com:fastlane/fastlane.git", # The URL of the repository to import the Fastfile from.
64
- branch: "HEAD", # The branch to checkout on the repository
65
- path: "fastlane/Fastfile", # The path of the Fastfile in the repository
64
+ branch: "HEAD", # The branch to checkout on the repository.
65
+ path: "fastlane/Fastfile", # The path of the Fastfile in the repository.
66
66
  version: "~> 1.0.0" # The version to checkout on the repository. Optimistic match operator can be used to select the latest version within constraints.
67
67
  )',
68
68
  'import_from_git(
69
69
  url: "git@github.com:fastlane/fastlane.git", # The URL of the repository to import the Fastfile from.
70
- branch: "HEAD", # The branch to checkout on the repository
71
- path: "fastlane/Fastfile", # The path of the Fastfile in the repository
70
+ branch: "HEAD", # The branch to checkout on the repository.
71
+ path: "fastlane/Fastfile", # The path of the Fastfile in the repository.
72
72
  version: [">= 1.1.0", "< 2.0.0"], # The version to checkout on the repository. Multiple conditions can be used to select the latest version within constraints.
73
73
  cache_path: "~/.cache/fastlane/imported" # A directory in which the repository will be added, which means that it will not be cloned again on subsequent calls.
74
74
  )'