fastlane 2.177.0 → 2.181.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +83 -70
  4. data/cert/lib/cert/options.rb +1 -0
  5. data/cert/lib/cert/runner.rb +5 -1
  6. data/deliver/lib/deliver/download_screenshots.rb +1 -2
  7. data/deliver/lib/deliver/options.rb +1 -0
  8. data/deliver/lib/deliver/runner.rb +10 -2
  9. data/deliver/lib/deliver/setup.rb +0 -1
  10. data/deliver/lib/deliver/upload_metadata.rb +2 -1
  11. data/fastlane/lib/fastlane/actions/app_store_build_number.rb +6 -1
  12. data/fastlane/lib/fastlane/actions/app_store_connect_api_key.rb +7 -4
  13. data/fastlane/lib/fastlane/actions/backup_file.rb +1 -1
  14. data/fastlane/lib/fastlane/actions/build_app.rb +4 -0
  15. data/fastlane/lib/fastlane/actions/check_app_store_metadata.rb +4 -0
  16. data/fastlane/lib/fastlane/actions/clipboard.rb +3 -6
  17. data/fastlane/lib/fastlane/actions/commit_github_file.rb +11 -1
  18. data/fastlane/lib/fastlane/actions/create_xcframework.rb +5 -0
  19. data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +2 -1
  20. data/fastlane/lib/fastlane/actions/ensure_env_vars.rb +2 -6
  21. data/fastlane/lib/fastlane/actions/get_github_release.rb +11 -1
  22. data/fastlane/lib/fastlane/actions/get_provisioning_profile.rb +4 -0
  23. data/fastlane/lib/fastlane/actions/get_version_number.rb +17 -10
  24. data/fastlane/lib/fastlane/actions/git_branch.rb +4 -10
  25. data/fastlane/lib/fastlane/actions/git_tag_exists.rb +4 -0
  26. data/fastlane/lib/fastlane/actions/github_api.rb +2 -1
  27. data/fastlane/lib/fastlane/actions/increment_build_number.rb +8 -1
  28. data/fastlane/lib/fastlane/actions/install_provisioning_profile.rb +4 -0
  29. data/fastlane/lib/fastlane/actions/jira.rb +61 -14
  30. data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +1 -0
  31. data/fastlane/lib/fastlane/actions/match_nuke.rb +59 -0
  32. data/fastlane/lib/fastlane/actions/notarize.rb +98 -51
  33. data/fastlane/lib/fastlane/actions/register_device.rb +1 -1
  34. data/fastlane/lib/fastlane/actions/register_devices.rb +1 -1
  35. data/fastlane/lib/fastlane/actions/restore_file.rb +1 -1
  36. data/fastlane/lib/fastlane/actions/set_changelog.rb +1 -1
  37. data/fastlane/lib/fastlane/actions/slack.rb +148 -127
  38. data/fastlane/lib/fastlane/actions/sourcedocs.rb +164 -0
  39. data/fastlane/lib/fastlane/actions/spaceship_logs.rb +1 -1
  40. data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +1 -2
  41. data/fastlane/lib/fastlane/erb_template_helper.rb +7 -1
  42. data/fastlane/lib/fastlane/fast_file.rb +9 -5
  43. data/fastlane/lib/fastlane/fastlane_require.rb +7 -1
  44. data/fastlane/lib/fastlane/helper/git_helper.rb +19 -7
  45. data/fastlane/lib/fastlane/lane_manager.rb +3 -2
  46. data/fastlane/lib/fastlane/plugins/plugin_fetcher.rb +1 -2
  47. data/fastlane/lib/fastlane/plugins/plugin_info_collector.rb +1 -2
  48. data/fastlane/lib/fastlane/plugins/plugin_manager.rb +1 -2
  49. data/fastlane/lib/fastlane/setup/setup.rb +23 -10
  50. data/fastlane/lib/fastlane/swift_fastlane_function.rb +4 -0
  51. data/fastlane/lib/fastlane/swift_runner_upgrader.rb +2 -0
  52. data/fastlane/lib/fastlane/version.rb +1 -1
  53. data/fastlane/swift/Deliverfile.swift +1 -1
  54. data/fastlane/swift/DeliverfileProtocol.swift +3 -3
  55. data/fastlane/swift/Fastlane.swift +550 -328
  56. data/fastlane/swift/Gymfile.swift +1 -1
  57. data/fastlane/swift/GymfileProtocol.swift +1 -1
  58. data/fastlane/swift/LaneFileProtocol.swift +9 -3
  59. data/fastlane/swift/Matchfile.swift +1 -1
  60. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  61. data/fastlane/swift/Precheckfile.swift +1 -1
  62. data/fastlane/swift/PrecheckfileProtocol.swift +3 -3
  63. data/fastlane/swift/RubyCommand.swift +1 -1
  64. data/fastlane/swift/Scanfile.swift +1 -1
  65. data/fastlane/swift/ScanfileProtocol.swift +5 -1
  66. data/fastlane/swift/Screengrabfile.swift +1 -1
  67. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  68. data/fastlane/swift/Snapshotfile.swift +1 -1
  69. data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
  70. data/fastlane/swift/SocketClient.swift +2 -1
  71. data/fastlane/swift/SocketResponse.swift +4 -2
  72. data/fastlane/swift/formatting/Brewfile.lock.json +18 -16
  73. data/fastlane_core/lib/fastlane_core.rb +22 -21
  74. data/fastlane_core/lib/fastlane_core/build_watcher.rb +50 -9
  75. data/fastlane_core/lib/fastlane_core/clipboard.rb +20 -0
  76. data/fastlane_core/lib/fastlane_core/configuration/configuration.rb +5 -3
  77. data/fastlane_core/lib/fastlane_core/helper.rb +24 -1
  78. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +10 -6
  79. data/fastlane_core/lib/fastlane_core/project.rb +3 -14
  80. data/fastlane_core/lib/fastlane_core/queue_worker.rb +2 -2
  81. data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +12 -1
  82. data/fastlane_core/lib/fastlane_core/ui/interface.rb +1 -1
  83. data/gym/lib/gym/generators/package_command_generator.rb +4 -0
  84. data/gym/lib/gym/generators/package_command_generator_xcode7.rb +13 -8
  85. data/gym/lib/gym/runner.rb +15 -4
  86. data/match/lib/match/change_password.rb +3 -3
  87. data/match/lib/match/encryption/interface.rb +1 -1
  88. data/match/lib/match/encryption/openssl.rb +2 -2
  89. data/match/lib/match/importer.rb +1 -1
  90. data/match/lib/match/migrate.rb +1 -1
  91. data/match/lib/match/module.rb +1 -0
  92. data/match/lib/match/nuke.rb +1 -1
  93. data/match/lib/match/runner.rb +1 -1
  94. data/match/lib/match/storage/google_cloud_storage.rb +1 -1
  95. data/match/lib/match/storage/s3_storage.rb +1 -1
  96. data/pilot/lib/pilot/build_manager.rb +9 -4
  97. data/pilot/lib/pilot/manager.rb +5 -1
  98. data/pilot/lib/pilot/options.rb +3 -2
  99. data/precheck/lib/precheck/options.rb +1 -0
  100. data/precheck/lib/precheck/runner.rb +5 -1
  101. data/scan/lib/scan/options.rb +10 -5
  102. data/scan/lib/scan/runner.rb +54 -1
  103. data/scan/lib/scan/test_command_generator.rb +10 -8
  104. data/screengrab/lib/screengrab/android_environment.rb +6 -4
  105. data/screengrab/lib/screengrab/runner.rb +1 -1
  106. data/sigh/lib/sigh/download_all.rb +1 -1
  107. data/sigh/lib/sigh/options.rb +1 -0
  108. data/sigh/lib/sigh/runner.rb +5 -1
  109. data/snapshot/lib/assets/SnapshotHelper.swift +1 -1
  110. data/snapshot/lib/snapshot/reports_generator.rb +4 -0
  111. data/spaceship/README.md +2 -12
  112. data/spaceship/lib/spaceship/commands_generator.rb +2 -1
  113. data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +1 -1
  114. data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +5 -0
  115. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +13 -0
  116. data/spaceship/lib/spaceship/connect_api/token.rb +8 -2
  117. data/spaceship/lib/spaceship/spaceauth_runner.rb +19 -9
  118. data/spaceship/lib/spaceship/tunes/members.rb +1 -1
  119. data/supply/lib/supply/client.rb +3 -1
  120. data/supply/lib/supply/options.rb +2 -2
  121. data/supply/lib/supply/uploader.rb +1 -0
  122. metadata +28 -24
  123. data/gym/lib/gym/.runner.rb.swp +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b4ca8dee8c02f29be511a41ef49cda72c46ceef4f83304bc20a85f030ee7417
4
- data.tar.gz: ee60bf365f058e14edce21e29f709bb9a653dad0e704bc26eecc701587b6cf57
3
+ metadata.gz: 38bb5919faa63d99767d24690442b21a5d481b03afe68a1832e4d3d1a4e28e29
4
+ data.tar.gz: 5553432685d7e0474eec0b6a76e932834ae0afd741f0ac02af7e1ec2b755af80
5
5
  SHA512:
6
- metadata.gz: 96978521357cda5bd03e0a7138eae6dec3faa42e0fbb26ec2f3ef28f7ff9bedbdc811e2e1e8a123f7354a97b417ee33d1754a7164811a331ef32851eed957311
7
- data.tar.gz: dbe71ffd1304b023ce991aa3ff47d5f9a39b63a24f0ec7fbb7dd2614dae8b4760b77e9352a2ec9e45a830e64bdb7f36440c3fb5297470120383ec86f5a2fa040
6
+ metadata.gz: 6c6db2341264725bb9af7c225cacd888a044949311402de5d9cd0c917a73ffcccf4627adee7d160a1fe46e1e150d855dbd41951b0d50a06dd97fc27f8b78888f
7
+ data.tar.gz: 384e80ffe1b82abd1b84b2f09e7367da9e8cfbf5ce2427ccb61b62b738a1b91ff5091da839afc23d7ddec123d16d0e3ff8f3186eef3fc41b9e547a7a685b63e4
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2020 The Fastlane Authors
3
+ Copyright (c) 2015-2021 The Fastlane Authors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -7,6 +7,7 @@
7
7
  [![Twitter: @FastlaneTools](https://img.shields.io/badge/contact-@FastlaneTools-blue.svg?style=flat)](https://twitter.com/FastlaneTools)
8
8
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/fastlane/blob/master/LICENSE)
9
9
  [![Gem](https://img.shields.io/gem/v/fastlane.svg?style=flat)](https://rubygems.org/gems/fastlane)
10
+ [![Homebrew](https://img.shields.io/badge/dynamic/json.svg?url=https://formulae.brew.sh/api/formula/fastlane.json&query=$.versions.stable&label=homebrew)](https://formulae.brew.sh/formula/fastlane)
10
11
  [![Build Status](https://img.shields.io/circleci/project/github/fastlane/fastlane/master.svg)](https://circleci.com/gh/fastlane/fastlane)
11
12
  [![PRs welcome!](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)
12
13
 
@@ -34,23 +35,29 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
34
35
  <!-- This table is regenerated and resorted on each release -->
35
36
  <table id='team'>
36
37
  <tr>
37
- <td id='andrew-mcburney'>
38
- <a href='https://github.com/armcburney'>
39
- <img src='https://github.com/armcburney.png?size=140'>
38
+ <td id='matthew-ellis'>
39
+ <a href='https://github.com/matthewellis'>
40
+ <img src='https://github.com/matthewellis.png?size=140'>
40
41
  </a>
41
- <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
42
+ <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
42
43
  </td>
43
- <td id='joshua-liebowitz'>
44
- <a href='https://github.com/taquitos'>
45
- <img src='https://github.com/taquitos.png?size=140'>
44
+ <td id='danielle-tomlinson'>
45
+ <a href='https://github.com/endocrimes'>
46
+ <img src='https://github.com/endocrimes.png?size=140'>
46
47
  </a>
47
- <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
48
+ <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
48
49
  </td>
49
- <td id='jérôme-lacoste'>
50
- <a href='https://github.com/lacostej'>
51
- <img src='https://github.com/lacostej.png?size=140'>
50
+ <td id='satoshi-namai'>
51
+ <a href='https://github.com/ainame'>
52
+ <img src='https://github.com/ainame.png?size=140'>
52
53
  </a>
53
- <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
54
+ <h4 align='center'><a href='https://twitter.com/ainame'>Satoshi Namai</a></h4>
55
+ </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>
54
61
  </td>
55
62
  <td id='max-ott'>
56
63
  <a href='https://github.com/max-ott'>
@@ -58,19 +65,13 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
58
65
  </a>
59
66
  <h4 align='center'><a href='https://twitter.com/ott_max'>Max Ott</a></h4>
60
67
  </td>
61
- <td id='jorge-revuelta-h'>
62
- <a href='https://github.com/minuscorp'>
63
- <img src='https://github.com/minuscorp.png?size=140'>
64
- </a>
65
- <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
66
- </td>
67
68
  </tr>
68
69
  <tr>
69
- <td id='danielle-tomlinson'>
70
- <a href='https://github.com/endocrimes'>
71
- <img src='https://github.com/endocrimes.png?size=140'>
70
+ <td id='maksym-grebenets'>
71
+ <a href='https://github.com/mgrebenets'>
72
+ <img src='https://github.com/mgrebenets.png?size=140'>
72
73
  </a>
73
- <h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
74
+ <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
74
75
  </td>
75
76
  <td id='felix-krause'>
76
77
  <a href='https://github.com/KrauseFx'>
@@ -84,31 +85,25 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
84
85
  </a>
85
86
  <h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
86
87
  </td>
87
- <td id='jan-piotrowski'>
88
- <a href='https://github.com/janpio'>
89
- <img src='https://github.com/janpio.png?size=140'>
90
- </a>
91
- <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
92
- </td>
93
- <td id='matthew-ellis'>
94
- <a href='https://github.com/matthewellis'>
95
- <img src='https://github.com/matthewellis.png?size=140'>
88
+ <td id='luka-mirosevic'>
89
+ <a href='https://github.com/lmirosevic'>
90
+ <img src='https://github.com/lmirosevic.png?size=140'>
96
91
  </a>
97
- <h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
92
+ <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
98
93
  </td>
99
- </tr>
100
- <tr>
101
94
  <td id='fumiya-nakamura'>
102
95
  <a href='https://github.com/nafu'>
103
96
  <img src='https://github.com/nafu.png?size=140'>
104
97
  </a>
105
98
  <h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
106
99
  </td>
107
- <td id='luka-mirosevic'>
108
- <a href='https://github.com/lmirosevic'>
109
- <img src='https://github.com/lmirosevic.png?size=140'>
100
+ </tr>
101
+ <tr>
102
+ <td id='jorge-revuelta-h'>
103
+ <a href='https://github.com/minuscorp'>
104
+ <img src='https://github.com/minuscorp.png?size=140'>
110
105
  </a>
111
- <h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
106
+ <h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
112
107
  </td>
113
108
  <td id='manu-wallner'>
114
109
  <a href='https://github.com/milch'>
@@ -116,37 +111,43 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
116
111
  </a>
117
112
  <h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
118
113
  </td>
119
- <td id='olivier-halligon'>
120
- <a href='https://github.com/AliSoftware'>
121
- <img src='https://github.com/AliSoftware.png?size=140'>
114
+ <td id='daniel-jankowski'>
115
+ <a href='https://github.com/mollyIV'>
116
+ <img src='https://github.com/mollyIV.png?size=140'>
122
117
  </a>
123
- <h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
118
+ <h4 align='center'><a href='https://twitter.com/mollyIV'>Daniel Jankowski</a></h4>
124
119
  </td>
125
- <td id='jimmy-dee'>
126
- <a href='https://github.com/jdee'>
127
- <img src='https://github.com/jdee.png?size=140'>
120
+ <td id='jérôme-lacoste'>
121
+ <a href='https://github.com/lacostej'>
122
+ <img src='https://github.com/lacostej.png?size=140'>
128
123
  </a>
129
- <h4 align='center'>Jimmy Dee</h4>
124
+ <h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
125
+ </td>
126
+ <td id='aaron-brager'>
127
+ <a href='https://github.com/getaaron'>
128
+ <img src='https://github.com/getaaron.png?size=140'>
129
+ </a>
130
+ <h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
130
131
  </td>
131
132
  </tr>
132
133
  <tr>
133
- <td id='kohki-miki'>
134
- <a href='https://github.com/giginet'>
135
- <img src='https://github.com/giginet.png?size=140'>
134
+ <td id='jan-piotrowski'>
135
+ <a href='https://github.com/janpio'>
136
+ <img src='https://github.com/janpio.png?size=140'>
136
137
  </a>
137
- <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
138
+ <h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
138
139
  </td>
139
- <td id='daniel-jankowski'>
140
- <a href='https://github.com/mollyIV'>
141
- <img src='https://github.com/mollyIV.png?size=140'>
140
+ <td id='andrew-mcburney'>
141
+ <a href='https://github.com/armcburney'>
142
+ <img src='https://github.com/armcburney.png?size=140'>
142
143
  </a>
143
- <h4 align='center'><a href='https://twitter.com/mollyIV'>Daniel Jankowski</a></h4>
144
+ <h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
144
145
  </td>
145
- <td id='josh-holtz'>
146
- <a href='https://github.com/joshdholtz'>
147
- <img src='https://github.com/joshdholtz.png?size=140'>
146
+ <td id='joshua-liebowitz'>
147
+ <a href='https://github.com/taquitos'>
148
+ <img src='https://github.com/taquitos.png?size=140'>
148
149
  </a>
149
- <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
150
+ <h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
150
151
  </td>
151
152
  <td id='stefan-natchev'>
152
153
  <a href='https://github.com/snatchev'>
@@ -154,19 +155,31 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
154
155
  </a>
155
156
  <h4 align='center'><a href='https://twitter.com/snatchev'>Stefan Natchev</a></h4>
156
157
  </td>
157
- <td id='aaron-brager'>
158
- <a href='https://github.com/getaaron'>
159
- <img src='https://github.com/getaaron.png?size=140'>
158
+ <td id='josh-holtz'>
159
+ <a href='https://github.com/joshdholtz'>
160
+ <img src='https://github.com/joshdholtz.png?size=140'>
160
161
  </a>
161
- <h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
162
+ <h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
162
163
  </td>
163
164
  </tr>
164
165
  <tr>
165
- <td id='maksym-grebenets'>
166
- <a href='https://github.com/mgrebenets'>
167
- <img src='https://github.com/mgrebenets.png?size=140'>
166
+ <td id='jimmy-dee'>
167
+ <a href='https://github.com/jdee'>
168
+ <img src='https://github.com/jdee.png?size=140'>
168
169
  </a>
169
- <h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
170
+ <h4 align='center'>Jimmy Dee</h4>
171
+ </td>
172
+ <td id='kohki-miki'>
173
+ <a href='https://github.com/giginet'>
174
+ <img src='https://github.com/giginet.png?size=140'>
175
+ </a>
176
+ <h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
177
+ </td>
178
+ <td id='roger-oba'>
179
+ <a href='https://github.com/rogerluan'>
180
+ <img src='https://github.com/rogerluan.png?size=140'>
181
+ </a>
182
+ <h4 align='center'><a href='https://twitter.com/rogerluan_'>Roger Oba</a></h4>
170
183
  </td>
171
184
  <td id='helmut-januschka'>
172
185
  <a href='https://github.com/hjanuschka'>
@@ -187,12 +200,12 @@ Check out [CONTRIBUTING.md](CONTRIBUTING.md) for more information on how to help
187
200
  Help us keep _fastlane_ open and inclusive. Please read and follow our [Code of Conduct](https://github.com/fastlane/fastlane/blob/master/CODE_OF_CONDUCT.md).
188
201
 
189
202
  ## Metrics
190
-
191
- _fastlane_ tracks a few key metrics to understand how developers are using the tool and to help us know what areas need improvement. No personal/sensitive information is ever collected. Metrics that are collected include:
192
-
203
+
204
+ _fastlane_ tracks a few key metrics to understand how developers are using the tool and to help us know what areas need improvement. No personal/sensitive information is ever collected. Metrics that are collected include:
205
+
193
206
  * The number of _fastlane_ runs
194
207
  * A salted hash of the app identifier or package name, which helps us anonymously identify unique usage of _fastlane_
195
-
208
+
196
209
  You can easily opt-out of metrics collection by adding `opt_out_usage` at the top of your `Fastfile` or by setting the environment variable `FASTLANE_OPT_OUT_USAGE`. [Check out the metrics code on GitHub](https://github.com/fastlane/fastlane/tree/master/fastlane_core/lib/fastlane_core/analytics)
197
210
 
198
211
  ## License
@@ -58,6 +58,7 @@ module Cert
58
58
  short_option: "-u",
59
59
  env_name: "CERT_USERNAME",
60
60
  description: "Your Apple ID Username",
61
+ optional: true,
61
62
  default_value: user,
62
63
  default_value_dynamic: true),
63
64
  FastlaneCore::ConfigItem.new(key: :team_id,
@@ -24,6 +24,10 @@ module Cert
24
24
  UI.message("Creating authorization token for App Store Connect API")
25
25
  Spaceship::ConnectAPI.token = api_token
26
26
  else
27
+ # Username is now optional since addition of App Store Connect API Key
28
+ # Force asking for username to prompt user if not already set
29
+ Cert.config.fetch(:username, force_ask: true)
30
+
27
31
  UI.message("Starting login with user '#{Cert.config[:username]}'")
28
32
  Spaceship::ConnectAPI.login(Cert.config[:username], nil, use_portal: true, use_tunes: false)
29
33
  UI.message("Successfully logged in")
@@ -31,7 +35,7 @@ module Cert
31
35
  end
32
36
 
33
37
  def api_token
34
- @api_token ||= Spaceship::ConnectAPI::Token.create(Cert.config[:api_key]) if Cert.config[:api_key]
38
+ @api_token ||= Spaceship::ConnectAPI::Token.create(**Cert.config[:api_key]) if Cert.config[:api_key]
35
39
  @api_token ||= Spaceship::ConnectAPI::Token.from_json_file(Cert.config[:api_key_path]) if Cert.config[:api_key_path]
36
40
  return @api_token
37
41
  end
@@ -1,6 +1,5 @@
1
1
  require_relative 'module'
2
2
  require 'spaceship'
3
- require 'open-uri'
4
3
 
5
4
  module Deliver
6
5
  class DownloadScreenshots
@@ -68,7 +67,7 @@ module Deliver
68
67
  end
69
68
 
70
69
  path = File.join(containing_folder, file_name)
71
- File.binwrite(path, open(url).read)
70
+ File.binwrite(path, FastlaneCore::Helper.open_uri(url).read)
72
71
  end
73
72
  end
74
73
  end
@@ -32,6 +32,7 @@ module Deliver
32
32
  short_option: "-u",
33
33
  env_name: "DELIVER_USERNAME",
34
34
  description: "Your Apple ID Username",
35
+ optional: true,
35
36
  default_value: user,
36
37
  default_value_dynamic: true),
37
38
  FastlaneCore::ConfigItem.new(key: :app_identifier,
@@ -30,6 +30,10 @@ module Deliver
30
30
  UI.message("Creating authorization token for App Store Connect API")
31
31
  Spaceship::ConnectAPI.token = api_token
32
32
  else
33
+ # Username is now optional since addition of App Store Connect API Key
34
+ # Force asking for username to prompt user if not already set
35
+ options.fetch(:username, force_ask: true)
36
+
33
37
  # Team selection passed though FASTLANE_TEAM_ID and FASTLANE_TEAM_NAME environment variables
34
38
  # Prompts select team if multiple teams and none specified
35
39
  UI.message("Login to App Store Connect (#{options[:username]})")
@@ -39,7 +43,7 @@ module Deliver
39
43
  end
40
44
 
41
45
  def api_token
42
- @api_token ||= Spaceship::ConnectAPI::Token.create(options[:api_key]) if options[:api_key]
46
+ @api_token ||= Spaceship::ConnectAPI::Token.create(**options[:api_key]) if options[:api_key]
43
47
  @api_token ||= Spaceship::ConnectAPI::Token.from_json_file(options[:api_key_path]) if options[:api_key_path]
44
48
  return @api_token
45
49
  end
@@ -179,7 +183,11 @@ module Deliver
179
183
 
180
184
  transporter = transporter_for_selected_team
181
185
  result = transporter.upload(package_path: package_path)
182
- UI.user_error!("Could not upload binary to App Store Connect. Check out the error above", show_github_issues: true) unless result
186
+
187
+ unless result
188
+ transporter_errors = transporter.displayable_errors
189
+ UI.user_error!("Error uploading ipa file: \n #{transporter_errors}")
190
+ end
183
191
  end
184
192
 
185
193
  def reject_version_if_possible
@@ -1,4 +1,3 @@
1
- require 'open-uri'
2
1
  require 'spaceship/tunes/tunes'
3
2
 
4
3
  require_relative 'module'
@@ -592,8 +592,9 @@ module Deliver
592
592
  end
593
593
 
594
594
  def set_review_information(version, options)
595
- return unless options[:app_review_information]
596
595
  info = options[:app_review_information]
596
+ return if info.nil? || info.empty?
597
+
597
598
  info = info.collect { |k, v| [k.to_sym, v] }.to_h
598
599
  UI.user_error!("`app_review_information` must be a hash", show_github_issues: true) unless info.kind_of?(Hash)
599
600
 
@@ -32,6 +32,10 @@ module Fastlane
32
32
  UI.message("Using App Store Connect API token...")
33
33
  Spaceship::ConnectAPI.token = token
34
34
  else
35
+ # Username is now optional since addition of App Store Connect API Key
36
+ # Force asking for username to prompt user if not already set
37
+ params.fetch(:username, force_ask: true)
38
+
35
39
  UI.message("Login to App Store Connect (#{params[:username]})")
36
40
  Spaceship::ConnectAPI.login(params[:username], use_portal: false, use_tunes: true, tunes_team_id: params[:team_id], team_name: params[:team_name])
37
41
  UI.message("Login successful")
@@ -100,7 +104,7 @@ module Fastlane
100
104
 
101
105
  def self.api_token(params)
102
106
  params[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
103
- api_token ||= Spaceship::ConnectAPI::Token.create(params[:api_key]) if params[:api_key]
107
+ api_token ||= Spaceship::ConnectAPI::Token.create(**params[:api_key]) if params[:api_key]
104
108
  api_token ||= Spaceship::ConnectAPI::Token.from_json_file(params[:api_key_path]) if params[:api_key_path]
105
109
  return api_token
106
110
  end
@@ -147,6 +151,7 @@ module Fastlane
147
151
  short_option: "-u",
148
152
  env_name: "ITUNESCONNECT_USER",
149
153
  description: "Your Apple ID Username",
154
+ optional: true,
150
155
  default_value: user,
151
156
  default_value_dynamic: true),
152
157
  FastlaneCore::ConfigItem.new(key: :team_id,
@@ -29,7 +29,7 @@ module Fastlane
29
29
  key = {
30
30
  key_id: key_id,
31
31
  issuer_id: issuer_id,
32
- key: key_content || File.binread(key_filepath),
32
+ key: key_content || File.binread(File.expand_path(key_filepath)),
33
33
  is_key_content_base64: is_key_content_base64,
34
34
  duration: duration,
35
35
  in_house: in_house
@@ -58,7 +58,7 @@ module Fastlane
58
58
  optional: true,
59
59
  conflicting_options: [:key_content],
60
60
  verify_block: proc do |value|
61
- UI.user_error!("Couldn't find key p8 file at path '#{value}'") unless File.exist?(value)
61
+ UI.user_error!("Couldn't find key p8 file at path '#{value}'") unless File.exist?(File.expand_path(value))
62
62
  end),
63
63
  FastlaneCore::ConfigItem.new(key: :key_content,
64
64
  env_name: "APP_STORE_CONNECT_API_KEY_KEY",
@@ -76,7 +76,10 @@ module Fastlane
76
76
  description: "The token session duration",
77
77
  optional: true,
78
78
  default_value: Spaceship::ConnectAPI::Token::MAX_TOKEN_DURATION,
79
- type: Integer),
79
+ type: Integer,
80
+ verify_block: proc do |value|
81
+ UI.user_error!("The duration can't be more than 1200 (20 minutes) and the value entered was '#{value}'") unless value <= 1200
82
+ end),
80
83
  FastlaneCore::ConfigItem.new(key: :in_house,
81
84
  env_name: "APP_STORE_CONNECT_API_KEY_IN_HOUSE",
82
85
  description: "Is App Store or Enterprise (in house) team? App Store Connect API cannot determine this on its own (yet)",
@@ -96,7 +99,7 @@ module Fastlane
96
99
  end
97
100
 
98
101
  def self.is_supported?(platform)
99
- true
102
+ [:ios, :mac, :tvos].include?(platform)
100
103
  end
101
104
 
102
105
  def self.details
@@ -3,7 +3,7 @@ module Fastlane
3
3
  class BackupFileAction < Action
4
4
  def self.run(params)
5
5
  path = params[:path]
6
- FileUtils.cp(path, "#{path}.back", { preserve: true })
6
+ FileUtils.cp(path, "#{path}.back", preserve: true)
7
7
  UI.message("Successfully created a backup 💾")
8
8
  end
9
9
 
@@ -120,6 +120,10 @@ module Fastlane
120
120
  "The absolute path to the generated ipa file"
121
121
  end
122
122
 
123
+ def self.return_type
124
+ :string
125
+ end
126
+
123
127
  def self.author
124
128
  "KrauseFx"
125
129
  end