fastlane 2.179.0 → 2.183.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +82 -82
  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/app_store_connect_api_key.rb +1 -1
  12. data/fastlane/lib/fastlane/actions/backup_xcarchive.rb +1 -1
  13. data/fastlane/lib/fastlane/actions/clipboard.rb +3 -6
  14. data/fastlane/lib/fastlane/actions/danger.rb +7 -1
  15. data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +1 -1
  16. data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +18 -1
  17. data/fastlane/lib/fastlane/actions/ensure_env_vars.rb +2 -6
  18. data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +3 -1
  19. data/fastlane/lib/fastlane/actions/git_branch.rb +1 -1
  20. data/fastlane/lib/fastlane/actions/git_commit.rb +3 -1
  21. data/fastlane/lib/fastlane/actions/git_pull.rb +4 -10
  22. data/fastlane/lib/fastlane/actions/git_submodule_update.rb +16 -8
  23. data/fastlane/lib/fastlane/actions/hipchat.rb +2 -1
  24. data/fastlane/lib/fastlane/actions/import_from_git.rb +5 -5
  25. data/fastlane/lib/fastlane/actions/jira.rb +61 -14
  26. data/fastlane/lib/fastlane/actions/notarize.rb +98 -51
  27. data/fastlane/lib/fastlane/actions/notification.rb +1 -1
  28. data/fastlane/lib/fastlane/actions/slack.rb +155 -133
  29. data/fastlane/lib/fastlane/actions/sourcedocs.rb +164 -0
  30. data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +4 -2
  31. data/fastlane/lib/fastlane/actions/xcodebuild.rb +5 -5
  32. data/fastlane/lib/fastlane/cli_tools_distributor.rb +1 -1
  33. data/fastlane/lib/fastlane/commands_generator.rb +2 -1
  34. data/fastlane/lib/fastlane/fast_file.rb +10 -2
  35. data/fastlane/lib/fastlane/fastlane_require.rb +7 -1
  36. data/fastlane/lib/fastlane/helper/git_helper.rb +9 -1
  37. data/fastlane/lib/fastlane/lane_manager.rb +3 -2
  38. data/fastlane/lib/fastlane/notification/slack.rb +56 -0
  39. data/fastlane/lib/fastlane/plugins/plugin_info.rb +2 -2
  40. data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +7 -6
  41. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +30 -35
  42. data/fastlane/lib/fastlane/plugins/template/spec/spec_helper.rb.erb +1 -1
  43. data/fastlane/lib/fastlane/setup/setup.rb +23 -10
  44. data/fastlane/lib/fastlane/swift_fastlane_function.rb +35 -14
  45. data/fastlane/lib/fastlane/swift_runner_upgrader.rb +2 -0
  46. data/fastlane/lib/fastlane/version.rb +2 -2
  47. data/fastlane/swift/Deliverfile.swift +1 -1
  48. data/fastlane/swift/DeliverfileProtocol.swift +1 -1
  49. data/fastlane/swift/Fastlane.swift +6672 -3787
  50. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +4 -0
  51. data/fastlane/swift/Gymfile.swift +1 -1
  52. data/fastlane/swift/GymfileProtocol.swift +1 -1
  53. data/fastlane/swift/LaneFileProtocol.swift +9 -3
  54. data/fastlane/swift/Matchfile.swift +1 -1
  55. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  56. data/fastlane/swift/OptionalConfigValue.swift +131 -0
  57. data/fastlane/swift/Precheckfile.swift +1 -1
  58. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  59. data/fastlane/swift/RubyCommand.swift +1 -1
  60. data/fastlane/swift/Scanfile.swift +1 -1
  61. data/fastlane/swift/ScanfileProtocol.swift +5 -1
  62. data/fastlane/swift/Screengrabfile.swift +1 -1
  63. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  64. data/fastlane/swift/Snapshotfile.swift +1 -1
  65. data/fastlane/swift/SnapshotfileProtocol.swift +5 -1
  66. data/fastlane/swift/SocketClient.swift +2 -1
  67. data/fastlane/swift/SocketResponse.swift +4 -2
  68. data/fastlane/swift/formatting/Brewfile.lock.json +18 -16
  69. data/fastlane/swift/upgrade_manifest.json +1 -1
  70. data/fastlane_core/lib/fastlane_core.rb +22 -21
  71. data/fastlane_core/lib/fastlane_core/build_watcher.rb +65 -11
  72. data/fastlane_core/lib/fastlane_core/clipboard.rb +20 -0
  73. data/fastlane_core/lib/fastlane_core/device_manager.rb +1 -1
  74. data/fastlane_core/lib/fastlane_core/helper.rb +4 -4
  75. data/fastlane_core/lib/fastlane_core/languages.rb +2 -2
  76. data/fastlane_core/lib/fastlane_core/queue_worker.rb +2 -2
  77. data/fastlane_core/lib/fastlane_core/swag.rb +1 -1
  78. data/fastlane_core/lib/fastlane_core/ui/help.erb +35 -0
  79. data/fastlane_core/lib/fastlane_core/ui/help_formatter.rb +16 -0
  80. data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +16 -2
  81. data/frameit/lib/frameit/commands_generator.rb +2 -1
  82. data/frameit/lib/frameit/config_parser.rb +2 -2
  83. data/frameit/lib/frameit/frame_downloader.rb +2 -1
  84. data/gym/lib/gym/code_signing_mapping.rb +2 -2
  85. data/gym/lib/gym/commands_generator.rb +2 -1
  86. data/gym/lib/gym/generators/package_command_generator_xcode7.rb +6 -5
  87. data/gym/lib/gym/runner.rb +5 -1
  88. data/match/lib/match/change_password.rb +1 -1
  89. data/match/lib/match/commands_generator.rb +2 -1
  90. data/pem/lib/pem/commands_generator.rb +2 -1
  91. data/pilot/lib/pilot/build_manager.rb +3 -3
  92. data/pilot/lib/pilot/commands_generator.rb +2 -1
  93. data/pilot/lib/pilot/options.rb +2 -2
  94. data/pilot/lib/pilot/tester_exporter.rb +0 -1
  95. data/pilot/lib/pilot/tester_manager.rb +0 -1
  96. data/precheck/lib/precheck/commands_generator.rb +2 -1
  97. data/produce/lib/produce/commands_generator.rb +2 -1
  98. data/scan/lib/scan/commands_generator.rb +2 -1
  99. data/scan/lib/scan/options.rb +10 -5
  100. data/scan/lib/scan/runner.rb +54 -1
  101. data/scan/lib/scan/test_command_generator.rb +10 -8
  102. data/screengrab/lib/screengrab/commands_generator.rb +2 -1
  103. data/sigh/lib/sigh/commands_generator.rb +2 -1
  104. data/snapshot/lib/assets/SnapfileTemplate +1 -1
  105. data/snapshot/lib/assets/SnapshotHelper.swift +1 -1
  106. data/snapshot/lib/snapshot/commands_generator.rb +3 -1
  107. data/snapshot/lib/snapshot/options.rb +5 -0
  108. data/snapshot/lib/snapshot/reports_generator.rb +4 -0
  109. data/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb +2 -0
  110. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb +1 -1
  111. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +8 -4
  112. data/spaceship/README.md +2 -12
  113. data/spaceship/lib/spaceship/base.rb +2 -2
  114. data/spaceship/lib/spaceship/commands_generator.rb +4 -2
  115. data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
  116. data/{gym/lib/gym/.runner.rb.swp → spaceship/lib/spaceship/connect_api/models/.app.rb.swp} +0 -0
  117. data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +1 -1
  118. data/spaceship/lib/spaceship/connect_api/models/profile.rb +6 -0
  119. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +6 -2
  120. data/spaceship/lib/spaceship/connect_api/token.rb +7 -1
  121. data/spaceship/lib/spaceship/spaceauth_runner.rb +19 -9
  122. data/spaceship/lib/spaceship/tunes/members.rb +1 -1
  123. data/spaceship/lib/spaceship/ui.rb +2 -2
  124. data/supply/lib/supply/client.rb +3 -1
  125. data/supply/lib/supply/commands_generator.rb +2 -1
  126. data/supply/lib/supply/options.rb +2 -2
  127. data/supply/lib/supply/uploader.rb +1 -0
  128. metadata +75 -86
  129. data/pilot/lib/pilot/tester_util.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37bd22615ab9e8e6eaa0861b231896cfa234eb207772352f26d727f7735c34c5
4
- data.tar.gz: bc34b9e91a9b80abc345780db060f494a9012c15df9292336ff428234228aad7
3
+ metadata.gz: f6eb7cf4626f2d80b3e2e9d1babae5ed8518aba5ef23d4a73ba5360b8f8737c0
4
+ data.tar.gz: 328282bf768094d61b5224a888acb68fbe5a6a56d47e33c39df22d11652ab8ae
5
5
  SHA512:
6
- metadata.gz: 5dfdc64c102b6ae9d723ba7bc9cdbcf1bcb517c620475c8bf1f3eded3d1ccfc47705b85eea80f6112e946b339344550b51a4f3ed1d6c571e1974625931c53336
7
- data.tar.gz: d53a201dcc0da9a8f4eb0fb88b629be149ea3cebde1225c59072a236d9e6ec705b69aeccf4bd3d0c55abc5b457e1557ab7169779b20d8bbf86299cb7605d0abb
6
+ metadata.gz: 896193a32f695ef2553dbd729afaaf11b183ba31cdab590c3a8b2f02a99aa47c9ddb30c0332e26361a8cfd30460957e50b9b5a2347ab7dabcbb8eacc48dfdfba
7
+ data.tar.gz: d741cff12645e1afd755f75102bffbde8374f92248ba15e30f7f33334226b2ac26d79c33cc0b3c1982d3850dc9c1c7f3814b74c75466bac4f6a2d05b8bf7c0fb
data/README.md CHANGED
@@ -41,55 +41,55 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
41
41
  </a>
42
42
  <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
43
43
  </td>
44
- <td id='manu-wallner'>
45
- <a href='https://github.com/milch'>
46
- <img src='https://github.com/milch.png?size=140'>
44
+ <td id='luka-mirosevic'>
45
+ <a href='https://github.com/lmirosevic'>
46
+ <img src='https://github.com/lmirosevic.png?size=140'>
47
47
  </a>
48
- <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
48
+ <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
49
49
  </td>
50
- <td id='josh-holtz'>
51
- <a href='https://github.com/joshdholtz'>
52
- <img src='https://github.com/joshdholtz.png?size=140'>
50
+ <td id='iulian-onofrei'>
51
+ <a href='https://github.com/revolter'>
52
+ <img src='https://github.com/revolter.png?size=140'>
53
53
  </a>
54
- <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
54
+ <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
55
55
  </td>
56
- <td id='stefan-natchev'>
57
- <a href='https://github.com/snatchev'>
58
- <img src='https://github.com/snatchev.png?size=140'>
56
+ <td id='maksym-grebenets'>
57
+ <a href='https://github.com/mgrebenets'>
58
+ <img src='https://github.com/mgrebenets.png?size=140'>
59
59
  </a>
60
- <h4 align='center'><a href='https://twitter.com/snatchev'>Stefan Natchev</a></h4>
60
+ <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
61
61
  </td>
62
- <td id='satoshi-namai'>
63
- <a href='https://github.com/ainame'>
64
- <img src='https://github.com/ainame.png?size=140'>
62
+ <td id='jorge-revuelta-h'>
63
+ <a href='https://github.com/minuscorp'>
64
+ <img src='https://github.com/minuscorp.png?size=140'>
65
65
  </a>
66
- <h4 align='center'><a href='https://twitter.com/ainame'>Satoshi Namai</a></h4>
66
+ <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
67
67
  </td>
68
68
  </tr>
69
69
  <tr>
70
- <td id='jérôme-lacoste'>
71
- <a href='https://github.com/lacostej'>
72
- <img src='https://github.com/lacostej.png?size=140'>
70
+ <td id='danielle-tomlinson'>
71
+ <a href='https://github.com/endocrimes'>
72
+ <img src='https://github.com/endocrimes.png?size=140'>
73
73
  </a>
74
- <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
74
+ <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
75
75
  </td>
76
- <td id='matthew-ellis'>
77
- <a href='https://github.com/matthewellis'>
78
- <img src='https://github.com/matthewellis.png?size=140'>
76
+ <td id='josh-holtz'>
77
+ <a href='https://github.com/joshdholtz'>
78
+ <img src='https://github.com/joshdholtz.png?size=140'>
79
79
  </a>
80
- <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
80
+ <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
81
81
  </td>
82
- <td id='aaron-brager'>
83
- <a href='https://github.com/getaaron'>
84
- <img src='https://github.com/getaaron.png?size=140'>
82
+ <td id='jérôme-lacoste'>
83
+ <a href='https://github.com/lacostej'>
84
+ <img src='https://github.com/lacostej.png?size=140'>
85
85
  </a>
86
- <h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
86
+ <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
87
87
  </td>
88
- <td id='iulian-onofrei'>
89
- <a href='https://github.com/revolter'>
90
- <img src='https://github.com/revolter.png?size=140'>
88
+ <td id='max-ott'>
89
+ <a href='https://github.com/max-ott'>
90
+ <img src='https://github.com/max-ott.png?size=140'>
91
91
  </a>
92
- <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
92
+ <h4 align='center'><a href='https://twitter.com/ott_max'>Max Ott</a></h4>
93
93
  </td>
94
94
  <td id='jimmy-dee'>
95
95
  <a href='https://github.com/jdee'>
@@ -99,55 +99,43 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
99
99
  </td>
100
100
  </tr>
101
101
  <tr>
102
- <td id='jan-piotrowski'>
103
- <a href='https://github.com/janpio'>
104
- <img src='https://github.com/janpio.png?size=140'>
102
+ <td id='felix-krause'>
103
+ <a href='https://github.com/KrauseFx'>
104
+ <img src='https://github.com/KrauseFx.png?size=140'>
105
105
  </a>
106
- <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
106
+ <h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
107
107
  </td>
108
- <td id='helmut-januschka'>
109
- <a href='https://github.com/hjanuschka'>
110
- <img src='https://github.com/hjanuschka.png?size=140'>
108
+ <td id='satoshi-namai'>
109
+ <a href='https://github.com/ainame'>
110
+ <img src='https://github.com/ainame.png?size=140'>
111
111
  </a>
112
- <h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
112
+ <h4 align='center'><a href='https://twitter.com/ainame'>Satoshi Namai</a></h4>
113
113
  </td>
114
- <td id='maksym-grebenets'>
115
- <a href='https://github.com/mgrebenets'>
116
- <img src='https://github.com/mgrebenets.png?size=140'>
114
+ <td id='stefan-natchev'>
115
+ <a href='https://github.com/snatchev'>
116
+ <img src='https://github.com/snatchev.png?size=140'>
117
117
  </a>
118
- <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
118
+ <h4 align='center'><a href='https://twitter.com/snatchev'>Stefan Natchev</a></h4>
119
119
  </td>
120
- <td id='danielle-tomlinson'>
121
- <a href='https://github.com/endocrimes'>
122
- <img src='https://github.com/endocrimes.png?size=140'>
120
+ <td id='matthew-ellis'>
121
+ <a href='https://github.com/matthewellis'>
122
+ <img src='https://github.com/matthewellis.png?size=140'>
123
123
  </a>
124
- <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
124
+ <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
125
125
  </td>
126
- <td id='fumiya-nakamura'>
127
- <a href='https://github.com/nafu'>
128
- <img src='https://github.com/nafu.png?size=140'>
126
+ <td id='jan-piotrowski'>
127
+ <a href='https://github.com/janpio'>
128
+ <img src='https://github.com/janpio.png?size=140'>
129
129
  </a>
130
- <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
130
+ <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
131
131
  </td>
132
132
  </tr>
133
133
  <tr>
134
- <td id='jorge-revuelta-h'>
135
- <a href='https://github.com/minuscorp'>
136
- <img src='https://github.com/minuscorp.png?size=140'>
137
- </a>
138
- <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
139
- </td>
140
- <td id='felix-krause'>
141
- <a href='https://github.com/KrauseFx'>
142
- <img src='https://github.com/KrauseFx.png?size=140'>
143
- </a>
144
- <h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
145
- </td>
146
- <td id='roger-oba'>
147
- <a href='https://github.com/rogerluan'>
148
- <img src='https://github.com/rogerluan.png?size=140'>
134
+ <td id='manu-wallner'>
135
+ <a href='https://github.com/milch'>
136
+ <img src='https://github.com/milch.png?size=140'>
149
137
  </a>
150
- <h4 align='center'><a href='https://twitter.com/rogerluan_'>Roger Oba</a></h4>
138
+ <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
151
139
  </td>
152
140
  <td id='daniel-jankowski'>
153
141
  <a href='https://github.com/mollyIV'>
@@ -155,31 +143,43 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
155
143
  </a>
156
144
  <h4 align='center'><a href='https://twitter.com/mollyIV'>Daniel Jankowski</a></h4>
157
145
  </td>
158
- <td id='olivier-halligon'>
159
- <a href='https://github.com/AliSoftware'>
160
- <img src='https://github.com/AliSoftware.png?size=140'>
146
+ <td id='fumiya-nakamura'>
147
+ <a href='https://github.com/nafu'>
148
+ <img src='https://github.com/nafu.png?size=140'>
161
149
  </a>
162
- <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
150
+ <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
151
+ </td>
152
+ <td id='aaron-brager'>
153
+ <a href='https://github.com/getaaron'>
154
+ <img src='https://github.com/getaaron.png?size=140'>
155
+ </a>
156
+ <h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
163
157
  </td>
164
- </tr>
165
- <tr>
166
158
  <td id='kohki-miki'>
167
159
  <a href='https://github.com/giginet'>
168
160
  <img src='https://github.com/giginet.png?size=140'>
169
161
  </a>
170
162
  <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
171
163
  </td>
172
- <td id='max-ott'>
173
- <a href='https://github.com/max-ott'>
174
- <img src='https://github.com/max-ott.png?size=140'>
164
+ </tr>
165
+ <tr>
166
+ <td id='helmut-januschka'>
167
+ <a href='https://github.com/hjanuschka'>
168
+ <img src='https://github.com/hjanuschka.png?size=140'>
175
169
  </a>
176
- <h4 align='center'><a href='https://twitter.com/ott_max'>Max Ott</a></h4>
170
+ <h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
177
171
  </td>
178
- <td id='luka-mirosevic'>
179
- <a href='https://github.com/lmirosevic'>
180
- <img src='https://github.com/lmirosevic.png?size=140'>
172
+ <td id='roger-oba'>
173
+ <a href='https://github.com/rogerluan'>
174
+ <img src='https://github.com/rogerluan.png?size=140'>
181
175
  </a>
182
- <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
176
+ <h4 align='center'><a href='https://twitter.com/rogerluan_'>Roger Oba</a></h4>
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
183
  </td>
184
184
  <td id='andrew-mcburney'>
185
185
  <a href='https://github.com/armcburney'>
@@ -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`')
@@ -91,7 +91,7 @@
91
91
 
92
92
  .app-changelog-list {
93
93
  list-style-type: square;
94
-
94
+
95
95
  font-weight: 300;
96
96
  }
97
97
 
@@ -137,10 +137,10 @@
137
137
  }
138
138
  </style>
139
139
  </head>
140
-
140
+
141
141
  <body>
142
142
  <div class="app-icons">
143
-
143
+
144
144
  <% if @options[:app_icon] %>
145
145
  <div class="app-icon">
146
146
  Large App Icon:<br>
@@ -182,7 +182,7 @@
182
182
  <% end %>
183
183
  <% end %>
184
184
  </div>
185
-
185
+
186
186
  <% if @options[:keywords] and @options[:keywords][language] %>
187
187
  <div class="app-keyword">
188
188
  <div class="cat-headline">Keywords</div>
@@ -193,7 +193,7 @@
193
193
  </ul>
194
194
  </div>
195
195
  <% end %>
196
-
196
+
197
197
  <% if @options[:description] %>
198
198
  <div class="app-description">
199
199
  <div class="cat-headline">Description</div>
@@ -202,7 +202,7 @@
202
202
  </div>
203
203
  </div>
204
204
  <% end %>
205
-
205
+
206
206
  <% if @options[:release_notes] %>
207
207
  <div class="app-changelog">
208
208
  <div class="cat-headline">Changelog</div>
@@ -216,7 +216,7 @@
216
216
  <%= (@options[:promotional_text][language] || '').gsub("\n", "<br />") %>
217
217
  </div>
218
218
  <% end %>
219
-
219
+
220
220
  <div class="app-screenshots">
221
221
  <div class="cat-headline">Screenshots</div>
222
222
 
@@ -237,7 +237,7 @@
237
237
  <div class="app-screenshot-row">
238
238
 
239
239
  <% screenshots.each_with_index do |screenshot, index| %>
240
- <a href="<%= URI.escape(screenshot.path) %>" target="_blank"><img class="app-screenshot" src="<%= render_relative_path(@export_path, URI.escape(screenshot.path)) %>" title="Screenshot #<%=index%> for <%=language%>"></a>
240
+ <a href="<%= render_relative_path(@export_path, Addressable::URI.encode(screenshot.path)) %>" target="_blank"><img class="app-screenshot" src="<%= render_relative_path(@export_path, Addressable::URI.encode(screenshot.path)) %>" title="Screenshot #<%=index%> for <%=language%>"></a>
241
241
  <% end %>
242
242
  </div>
243
243
  <% end %>
@@ -250,7 +250,7 @@
250
250
  <% if options[:overwrite_screenshots] %>
251
251
  <b>--overwrite_screenshots</b> is set, existing screenshots will be removed, but none will be uploaded.
252
252
  <% else %>
253
- The existing screenshots on App Store Connect will be kept.
253
+ The existing screenshots on App Store Connect will be kept.
254
254
  if you want to remove them you have to use the <i>--overwrite_screenshots</i> flag.
255
255
  <% end %>
256
256
  <p>
@@ -259,7 +259,7 @@
259
259
  </div>
260
260
  <% end %>
261
261
  </div>
262
-
262
+
263
263
  <hr />
264
264
  <% end # end data
265
265
  %>
@@ -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,
@@ -57,7 +57,7 @@ module Deliver
57
57
 
58
58
  def update_export_compliance(options, app, build)
59
59
  submission_information = options[:submission_information] || {}
60
- submission_information = submission_information.collect { |k, v| [k.to_sym, v] }.to_h
60
+ submission_information = submission_information.transform_keys(&:to_sym)
61
61
 
62
62
  uses_encryption = submission_information[:export_compliance_uses_encryption]
63
63
 
@@ -87,7 +87,7 @@ module Deliver
87
87
 
88
88
  def update_idfa(options, app, version)
89
89
  submission_information = options[:submission_information] || {}
90
- submission_information = submission_information.collect { |k, v| [k.to_sym, v] }.to_h
90
+ submission_information = submission_information.transform_keys(&:to_sym)
91
91
 
92
92
  uses_idfa = submission_information[:add_id_info_uses_idfa]
93
93
 
@@ -163,7 +163,7 @@ module Deliver
163
163
 
164
164
  def update_submission_information(options, app)
165
165
  submission_information = options[:submission_information] || {}
166
- submission_information = submission_information.collect { |k, v| [k.to_sym, v] }.to_h
166
+ submission_information = submission_information.transform_keys(&:to_sym)
167
167
 
168
168
  content_rights = submission_information[:content_rights_contains_third_party_content]
169
169
 
@@ -595,7 +595,7 @@ module Deliver
595
595
  info = options[:app_review_information]
596
596
  return if info.nil? || info.empty?
597
597
 
598
- info = info.collect { |k, v| [k.to_sym, v] }.to_h
598
+ info = info.transform_keys(&:to_sym)
599
599
  UI.user_error!("`app_review_information` must be a hash", show_github_issues: true) unless info.kind_of?(Hash)
600
600
 
601
601
  attributes = {}
@@ -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
@@ -99,7 +99,7 @@ module Fastlane
99
99
  end
100
100
 
101
101
  def self.is_supported?(platform)
102
- true
102
+ [:ios, :mac, :tvos].include?(platform)
103
103
  end
104
104
 
105
105
  def self.details
@@ -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)