fastlane 2.147.0 → 2.150.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +82 -82
- data/cert/lib/cert/commands_generator.rb +1 -0
- data/credentials_manager/lib/credentials_manager/cli.rb +2 -0
- data/deliver/lib/deliver.rb +0 -1
- data/deliver/lib/deliver/app_screenshot.rb +28 -27
- data/deliver/lib/deliver/commands_generator.rb +1 -0
- data/deliver/lib/deliver/html_generator.rb +2 -2
- data/deliver/lib/deliver/options.rb +6 -11
- data/deliver/lib/deliver/runner.rb +7 -4
- data/deliver/lib/deliver/setup.rb +5 -30
- data/deliver/lib/deliver/submit_for_review.rb +124 -83
- data/deliver/lib/deliver/upload_metadata.rb +284 -143
- data/deliver/lib/deliver/upload_price_tier.rb +15 -8
- data/deliver/lib/deliver/upload_screenshots.rb +86 -37
- data/fastlane/lib/assets/s3_html_template.erb +1 -1
- data/fastlane/lib/fastlane/actions/crashlytics.rb +0 -4
- data/fastlane/lib/fastlane/actions/docs/build_app.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +42 -2
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +2 -2
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +3 -11
- data/fastlane/lib/fastlane/actions/docs/upload_to_play_store.md +15 -2
- data/fastlane/lib/fastlane/actions/download_dsyms.rb +7 -1
- data/fastlane/lib/fastlane/actions/get_managed_play_store_publishing_rights.rb +1 -1
- data/fastlane/lib/fastlane/actions/google_play_track_release_names.rb +74 -0
- data/fastlane/lib/fastlane/actions/hipchat.rb +1 -1
- data/fastlane/lib/fastlane/actions/push_to_git_remote.rb +1 -1
- data/fastlane/lib/fastlane/actions/slack.rb +2 -2
- data/fastlane/lib/fastlane/actions/slather.rb +8 -1
- data/fastlane/lib/fastlane/actions/spm.rb +7 -0
- data/fastlane/lib/fastlane/actions/swiftlint.rb +14 -0
- data/fastlane/lib/fastlane/actions/sync_code_signing.rb +1 -1
- data/fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb +3 -34
- data/fastlane/lib/fastlane/actions/xcodebuild.rb +4 -4
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +28 -6
- data/fastlane/lib/fastlane/commands_generator.rb +1 -1
- data/fastlane/lib/fastlane/documentation/actions_list.rb +1 -1
- data/fastlane/lib/fastlane/lane.rb +3 -3
- data/fastlane/lib/fastlane/lane_manager.rb +0 -10
- data/fastlane/lib/fastlane/plugins/plugin_manager.rb +3 -3
- data/fastlane/lib/fastlane/plugins/template/.github/workflows/test.yml +29 -0
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +22 -5
- data/fastlane/lib/fastlane/swift_lane_manager.rb +0 -8
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane/swift/ControlCommand.swift +1 -0
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/Fastlane.swift +140 -30
- data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +3 -9
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/GymfileProtocol.swift +1 -1
- data/fastlane/swift/Matchfile.swift +1 -1
- data/fastlane/swift/MatchfileProtocol.swift +5 -1
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/RubyCommand.swift +29 -6
- data/fastlane/swift/RubyCommandable.swift +1 -0
- data/fastlane/swift/Runner.swift +85 -13
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +10 -2
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane/swift/SnapshotfileProtocol.swift +17 -1
- data/fastlane/swift/SocketClient.swift +76 -45
- data/fastlane/swift/SocketClientDelegateProtocol.swift +1 -1
- data/fastlane/swift/SocketResponse.swift +1 -0
- data/fastlane_core/lib/fastlane_core/configuration/config_item.rb +1 -3
- data/fastlane_core/lib/fastlane_core/pkg_file_analyser.rb +7 -0
- data/frameit/lib/frameit/commands_generator.rb +1 -0
- data/frameit/lib/frameit/device_types.rb +100 -100
- data/gym/lib/gym/generators/package_command_generator.rb +4 -0
- data/gym/lib/gym/generators/package_command_generator_xcode7.rb +4 -0
- data/gym/lib/gym/options.rb +1 -1
- data/gym/lib/gym/runner.rb +14 -0
- data/match/lib/match/commands_generator.rb +1 -0
- data/match/lib/match/generator.rb +2 -1
- data/match/lib/match/nuke.rb +21 -16
- data/match/lib/match/options.rb +18 -1
- data/match/lib/match/storage/git_storage.rb +4 -0
- data/match/lib/match/storage/google_cloud_storage.rb +4 -0
- data/match/lib/match/storage/interface.rb +4 -0
- data/match/lib/match/storage/s3_storage.rb +4 -0
- data/pem/lib/pem/commands_generator.rb +1 -0
- data/pilot/lib/pilot/build_manager.rb +23 -7
- data/pilot/lib/pilot/options.rb +5 -0
- data/produce/lib/produce/commands_generator.rb +1 -0
- data/produce/lib/produce/itunes_connect.rb +20 -20
- data/produce/lib/produce/options.rb +3 -3
- data/scan/lib/scan/detect_values.rb +3 -0
- data/scan/lib/scan/options.rb +20 -2
- data/scan/lib/scan/test_command_generator.rb +6 -1
- data/scan/lib/scan/test_result_parser.rb +9 -2
- data/screengrab/lib/screengrab/runner.rb +10 -9
- data/sigh/lib/assets/resign.sh +7 -7
- data/sigh/lib/sigh/commands_generator.rb +1 -0
- data/sigh/lib/sigh/options.rb +7 -1
- data/sigh/lib/sigh/runner.rb +2 -1
- data/snapshot/lib/assets/SnapshotHelper.swift +16 -37
- data/snapshot/lib/assets/SnapshotHelperXcode8.swift +3 -3
- data/snapshot/lib/snapshot/detect_values.rb +15 -0
- data/snapshot/lib/snapshot/options.rb +31 -0
- data/snapshot/lib/snapshot/reports_generator.rb +8 -1
- data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +3 -1
- data/snapshot/lib/snapshot/test_command_generator.rb +8 -3
- data/snapshot/lib/snapshot/test_command_generator_base.rb +7 -1
- data/spaceship/lib/spaceship/.DS_Store +0 -0
- data/spaceship/lib/spaceship/client.rb +9 -1
- data/spaceship/lib/spaceship/commands_generator.rb +1 -0
- data/spaceship/lib/spaceship/connect_api.rb +21 -2
- data/spaceship/lib/spaceship/connect_api/client.rb +47 -11
- data/spaceship/lib/spaceship/connect_api/model.rb +1 -1
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +109 -0
- data/spaceship/lib/spaceship/connect_api/models/app.rb +113 -3
- data/spaceship/lib/spaceship/connect_api/models/app_category.rb +94 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +74 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +38 -0
- data/spaceship/lib/spaceship/connect_api/models/app_price.rb +22 -0
- data/spaceship/lib/spaceship/connect_api/models/app_price_tier.rb +12 -0
- data/spaceship/lib/spaceship/connect_api/models/app_review_attachment.rb +81 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +117 -0
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +101 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +51 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +182 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +70 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb +36 -0
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +26 -0
- data/spaceship/lib/spaceship/connect_api/models/build.rb +8 -0
- data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +40 -0
- data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +26 -0
- data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +10 -3
- data/spaceship/lib/spaceship/connect_api/tunes/client.rb +33 -0
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +703 -0
- data/spaceship/lib/spaceship/errors.rb +3 -0
- data/spaceship/lib/spaceship/spaceauth_runner.rb +2 -2
- data/supply/lib/supply/client.rb +19 -0
- data/supply/lib/supply/commands_generator.rb +1 -0
- data/supply/lib/supply/options.rb +9 -0
- data/supply/lib/supply/reader.rb +16 -0
- data/supply/lib/supply/uploader.rb +4 -0
- metadata +52 -47
- data/deliver/lib/deliver/upload_assets.rb +0 -27
- data/supply/lib/supply/.client.rb.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a0da99338a957f184c8f61225f84bbea77cf2e295f9a7fc21918095ec2967e3
|
4
|
+
data.tar.gz: '0998f1c0adaa75fcabb51584113223c552268c9f86c844771bdc27b1f74f10d1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d0496a16e951b91d512f972d8e5a5f4af1bae7bc68f8a71f32d328b3e1868e0d3b5dfa948723e7c82414f3c2672a6ec73a99884822ccec740aabd2ef1632a7
|
7
|
+
data.tar.gz: 508186460c3e7e4c13bef4f3ad019a5f81374ddaffd32844aa079e02c2165dbb2c454aa2441e150c865aa3c42f526af7dbf494d53911ebfe99cbc02ae2cf5d3d
|
data/README.md
CHANGED
@@ -34,11 +34,29 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
|
|
34
34
|
<!-- This table is regenerated and resorted on each release -->
|
35
35
|
<table id='team'>
|
36
36
|
<tr>
|
37
|
-
<td id='
|
38
|
-
<a href='https://github.com/
|
39
|
-
<img src='https://github.com/
|
37
|
+
<td id='iulian-onofrei'>
|
38
|
+
<a href='https://github.com/revolter'>
|
39
|
+
<img src='https://github.com/revolter.png?size=140'>
|
40
40
|
</a>
|
41
|
-
<h4 align='center'><a href='https://twitter.com/
|
41
|
+
<h4 align='center'><a href='https://twitter.com/Revolt666'>Iulian Onofrei</a></h4>
|
42
|
+
</td>
|
43
|
+
<td id='stefan-natchev'>
|
44
|
+
<a href='https://github.com/snatchev'>
|
45
|
+
<img src='https://github.com/snatchev.png?size=140'>
|
46
|
+
</a>
|
47
|
+
<h4 align='center'><a href='https://twitter.com/snatchev'>Stefan Natchev</a></h4>
|
48
|
+
</td>
|
49
|
+
<td id='joshua-liebowitz'>
|
50
|
+
<a href='https://github.com/taquitos'>
|
51
|
+
<img src='https://github.com/taquitos.png?size=140'>
|
52
|
+
</a>
|
53
|
+
<h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
|
54
|
+
</td>
|
55
|
+
<td id='helmut-januschka'>
|
56
|
+
<a href='https://github.com/hjanuschka'>
|
57
|
+
<img src='https://github.com/hjanuschka.png?size=140'>
|
58
|
+
</a>
|
59
|
+
<h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
|
42
60
|
</td>
|
43
61
|
<td id='jorge-revuelta-h'>
|
44
62
|
<a href='https://github.com/minuscorp'>
|
@@ -46,23 +64,37 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
|
|
46
64
|
</a>
|
47
65
|
<h4 align='center'><a href='https://twitter.com/minuscorp'>Jorge Revuelta H</a></h4>
|
48
66
|
</td>
|
49
|
-
|
50
|
-
<
|
51
|
-
<img src='https://github.com/joshdholtz.png?size=140'>
|
52
|
-
</a>
|
53
|
-
<h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
|
54
|
-
</td>
|
67
|
+
</tr>
|
68
|
+
<tr>
|
55
69
|
<td id='luka-mirosevic'>
|
56
70
|
<a href='https://github.com/lmirosevic'>
|
57
71
|
<img src='https://github.com/lmirosevic.png?size=140'>
|
58
72
|
</a>
|
59
73
|
<h4 align='center'><a href='https://twitter.com/lmirosevic'>Luka Mirosevic</a></h4>
|
60
74
|
</td>
|
61
|
-
<td id='
|
62
|
-
<a href='https://github.com/
|
63
|
-
<img src='https://github.com/
|
75
|
+
<td id='danielle-tomlinson'>
|
76
|
+
<a href='https://github.com/endocrimes'>
|
77
|
+
<img src='https://github.com/endocrimes.png?size=140'>
|
64
78
|
</a>
|
65
|
-
<h4 align='center'><a href='https://twitter.com/
|
79
|
+
<h4 align='center'><a href='https://twitter.com/endocrimes'>Danielle Tomlinson</a></h4>
|
80
|
+
</td>
|
81
|
+
<td id='jan-piotrowski'>
|
82
|
+
<a href='https://github.com/janpio'>
|
83
|
+
<img src='https://github.com/janpio.png?size=140'>
|
84
|
+
</a>
|
85
|
+
<h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
|
86
|
+
</td>
|
87
|
+
<td id='aaron-brager'>
|
88
|
+
<a href='https://github.com/getaaron'>
|
89
|
+
<img src='https://github.com/getaaron.png?size=140'>
|
90
|
+
</a>
|
91
|
+
<h4 align='center'><a href='https://twitter.com/getaaron'>Aaron Brager</a></h4>
|
92
|
+
</td>
|
93
|
+
<td id='olivier-halligon'>
|
94
|
+
<a href='https://github.com/AliSoftware'>
|
95
|
+
<img src='https://github.com/AliSoftware.png?size=140'>
|
96
|
+
</a>
|
97
|
+
<h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
|
66
98
|
</td>
|
67
99
|
</tr>
|
68
100
|
<tr>
|
@@ -72,37 +104,37 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
|
|
72
104
|
</a>
|
73
105
|
<h4 align='center'>Jimmy Dee</h4>
|
74
106
|
</td>
|
75
|
-
<td id='
|
76
|
-
<a href='https://github.com/
|
77
|
-
<img src='https://github.com/
|
107
|
+
<td id='daniel-jankowski'>
|
108
|
+
<a href='https://github.com/mollyIV'>
|
109
|
+
<img src='https://github.com/mollyIV.png?size=140'>
|
78
110
|
</a>
|
79
|
-
<h4 align='center'><a href='https://twitter.com/
|
111
|
+
<h4 align='center'><a href='https://twitter.com/mollyIV'>Daniel Jankowski</a></h4>
|
80
112
|
</td>
|
81
|
-
<td id='
|
82
|
-
<a href='https://github.com/
|
83
|
-
<img src='https://github.com/
|
113
|
+
<td id='felix-krause'>
|
114
|
+
<a href='https://github.com/KrauseFx'>
|
115
|
+
<img src='https://github.com/KrauseFx.png?size=140'>
|
84
116
|
</a>
|
85
|
-
<h4 align='center'><a href='https://twitter.com/
|
117
|
+
<h4 align='center'><a href='https://twitter.com/KrauseFx'>Felix Krause</a></h4>
|
86
118
|
</td>
|
87
|
-
<td id='
|
88
|
-
<a href='https://github.com/
|
89
|
-
<img src='https://github.com/
|
119
|
+
<td id='matthew-ellis'>
|
120
|
+
<a href='https://github.com/matthewellis'>
|
121
|
+
<img src='https://github.com/matthewellis.png?size=140'>
|
90
122
|
</a>
|
91
|
-
<h4 align='center'><a href='https://twitter.com/
|
123
|
+
<h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
|
92
124
|
</td>
|
93
|
-
<td id='
|
94
|
-
<a href='https://github.com/
|
95
|
-
<img src='https://github.com/
|
125
|
+
<td id='manu-wallner'>
|
126
|
+
<a href='https://github.com/milch'>
|
127
|
+
<img src='https://github.com/milch.png?size=140'>
|
96
128
|
</a>
|
97
|
-
<h4 align='center'><a href='https://twitter.com/
|
129
|
+
<h4 align='center'><a href='https://twitter.com/acrooow'>Manu Wallner</a></h4>
|
98
130
|
</td>
|
99
131
|
</tr>
|
100
132
|
<tr>
|
101
|
-
<td id='
|
102
|
-
<a href='https://github.com/
|
103
|
-
<img src='https://github.com/
|
133
|
+
<td id='andrew-mcburney'>
|
134
|
+
<a href='https://github.com/armcburney'>
|
135
|
+
<img src='https://github.com/armcburney.png?size=140'>
|
104
136
|
</a>
|
105
|
-
<h4 align='center'><a href='https://twitter.com/
|
137
|
+
<h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
|
106
138
|
</td>
|
107
139
|
<td id='jérôme-lacoste'>
|
108
140
|
<a href='https://github.com/lacostej'>
|
@@ -110,70 +142,38 @@ If the above doesn't help, please [submit an issue](https://github.com/fastlane/
|
|
110
142
|
</a>
|
111
143
|
<h4 align='center'><a href='https://twitter.com/lacostej'>Jérôme Lacoste</a></h4>
|
112
144
|
</td>
|
113
|
-
<td id='
|
114
|
-
<a href='https://github.com/
|
115
|
-
<img src='https://github.com/
|
145
|
+
<td id='max-ott'>
|
146
|
+
<a href='https://github.com/max-ott'>
|
147
|
+
<img src='https://github.com/max-ott.png?size=140'>
|
116
148
|
</a>
|
117
|
-
<h4 align='center'><a href='https://twitter.com/
|
149
|
+
<h4 align='center'><a href='https://twitter.com/ott_max'>Max Ott</a></h4>
|
118
150
|
</td>
|
119
|
-
<td id='
|
120
|
-
<a href='https://github.com/
|
121
|
-
<img src='https://github.com/
|
151
|
+
<td id='josh-holtz'>
|
152
|
+
<a href='https://github.com/joshdholtz'>
|
153
|
+
<img src='https://github.com/joshdholtz.png?size=140'>
|
122
154
|
</a>
|
123
|
-
<h4 align='center'><a href='https://twitter.com/
|
155
|
+
<h4 align='center'><a href='https://twitter.com/joshdholtz'>Josh Holtz</a></h4>
|
156
|
+
</td>
|
157
|
+
<td id='fumiya-nakamura'>
|
158
|
+
<a href='https://github.com/nafu'>
|
159
|
+
<img src='https://github.com/nafu.png?size=140'>
|
160
|
+
</a>
|
161
|
+
<h4 align='center'><a href='https://twitter.com/nafu003'>Fumiya Nakamura</a></h4>
|
124
162
|
</td>
|
163
|
+
</tr>
|
164
|
+
<tr>
|
125
165
|
<td id='maksym-grebenets'>
|
126
166
|
<a href='https://github.com/mgrebenets'>
|
127
167
|
<img src='https://github.com/mgrebenets.png?size=140'>
|
128
168
|
</a>
|
129
169
|
<h4 align='center'><a href='https://twitter.com/mgrebenets'>Maksym Grebenets</a></h4>
|
130
170
|
</td>
|
131
|
-
</tr>
|
132
|
-
<tr>
|
133
171
|
<td id='kohki-miki'>
|
134
172
|
<a href='https://github.com/giginet'>
|
135
173
|
<img src='https://github.com/giginet.png?size=140'>
|
136
174
|
</a>
|
137
175
|
<h4 align='center'><a href='https://twitter.com/giginet'>Kohki Miki</a></h4>
|
138
176
|
</td>
|
139
|
-
<td id='jan-piotrowski'>
|
140
|
-
<a href='https://github.com/janpio'>
|
141
|
-
<img src='https://github.com/janpio.png?size=140'>
|
142
|
-
</a>
|
143
|
-
<h4 align='center'><a href='https://twitter.com/Sujan'>Jan Piotrowski</a></h4>
|
144
|
-
</td>
|
145
|
-
<td id='helmut-januschka'>
|
146
|
-
<a href='https://github.com/hjanuschka'>
|
147
|
-
<img src='https://github.com/hjanuschka.png?size=140'>
|
148
|
-
</a>
|
149
|
-
<h4 align='center'><a href='https://twitter.com/hjanuschka'>Helmut Januschka</a></h4>
|
150
|
-
</td>
|
151
|
-
<td id='matthew-ellis'>
|
152
|
-
<a href='https://github.com/matthewellis'>
|
153
|
-
<img src='https://github.com/matthewellis.png?size=140'>
|
154
|
-
</a>
|
155
|
-
<h4 align='center'><a href='https://twitter.com/mellis1995'>Matthew Ellis</a></h4>
|
156
|
-
</td>
|
157
|
-
<td id='andrew-mcburney'>
|
158
|
-
<a href='https://github.com/armcburney'>
|
159
|
-
<img src='https://github.com/armcburney.png?size=140'>
|
160
|
-
</a>
|
161
|
-
<h4 align='center'><a href='https://twitter.com/armcburney'>Andrew McBurney</a></h4>
|
162
|
-
</td>
|
163
|
-
</tr>
|
164
|
-
<tr>
|
165
|
-
<td id='joshua-liebowitz'>
|
166
|
-
<a href='https://github.com/taquitos'>
|
167
|
-
<img src='https://github.com/taquitos.png?size=140'>
|
168
|
-
</a>
|
169
|
-
<h4 align='center'><a href='https://twitter.com/taquitos'>Joshua Liebowitz</a></h4>
|
170
|
-
</td>
|
171
|
-
<td id='olivier-halligon'>
|
172
|
-
<a href='https://github.com/AliSoftware'>
|
173
|
-
<img src='https://github.com/AliSoftware.png?size=140'>
|
174
|
-
</a>
|
175
|
-
<h4 align='center'><a href='https://twitter.com/aligatr'>Olivier Halligon</a></h4>
|
176
|
-
</td>
|
177
177
|
</table>
|
178
178
|
|
179
179
|
Special thanks to all [contributors](https://github.com/fastlane/fastlane/graphs/contributors) for extending and improving _fastlane_.
|
@@ -26,6 +26,7 @@ module Cert
|
|
26
26
|
program :help_formatter, :compact
|
27
27
|
|
28
28
|
global_option('--verbose') { FastlaneCore::Globals.verbose = true }
|
29
|
+
global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
|
29
30
|
|
30
31
|
command :create do |c|
|
31
32
|
c.syntax = 'fastlane cert create'
|
@@ -12,6 +12,8 @@ module CredentialsManager
|
|
12
12
|
program :version, Fastlane::VERSION
|
13
13
|
program :description, 'Manage credentials for fastlane tools.'
|
14
14
|
|
15
|
+
global_option('--env STRING[,STRING2]', String, 'Add environment(s) to use with `dotenv`')
|
16
|
+
|
15
17
|
# Command to add entry to Keychain
|
16
18
|
command :add do |c|
|
17
19
|
c.syntax = 'fastlane fastlane-credentials add'
|
data/deliver/lib/deliver.rb
CHANGED
@@ -6,7 +6,6 @@ require_relative 'deliver/runner'
|
|
6
6
|
require_relative 'deliver/upload_metadata'
|
7
7
|
require_relative 'deliver/upload_screenshots'
|
8
8
|
require_relative 'deliver/upload_price_tier'
|
9
|
-
require_relative 'deliver/upload_assets'
|
10
9
|
require_relative 'deliver/submit_for_review'
|
11
10
|
require_relative 'deliver/app_screenshot'
|
12
11
|
require_relative 'deliver/html_generator'
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'fastimage'
|
2
2
|
|
3
3
|
require_relative 'module'
|
4
|
+
require 'spaceship/connect_api/models/app_screenshot_set'
|
4
5
|
|
5
6
|
module Deliver
|
6
7
|
# AppScreenshot represents one screenshots for one specific locale and
|
@@ -95,31 +96,31 @@ module Deliver
|
|
95
96
|
# The iTC API requires a different notation for the device
|
96
97
|
def device_type
|
97
98
|
matching = {
|
98
|
-
ScreenSize::IOS_35 =>
|
99
|
-
ScreenSize::IOS_40 =>
|
100
|
-
ScreenSize::IOS_47 =>
|
101
|
-
ScreenSize::IOS_55 =>
|
102
|
-
ScreenSize::IOS_58 =>
|
103
|
-
ScreenSize::IOS_65 =>
|
104
|
-
ScreenSize::IOS_IPAD =>
|
105
|
-
ScreenSize::IOS_IPAD_10_5 =>
|
106
|
-
ScreenSize::IOS_IPAD_11 =>
|
107
|
-
ScreenSize::IOS_IPAD_PRO =>
|
108
|
-
ScreenSize::IOS_IPAD_PRO_12_9 =>
|
109
|
-
ScreenSize::IOS_40_MESSAGES =>
|
110
|
-
ScreenSize::IOS_47_MESSAGES =>
|
111
|
-
ScreenSize::IOS_55_MESSAGES =>
|
112
|
-
ScreenSize::IOS_58_MESSAGES =>
|
113
|
-
ScreenSize::IOS_65_MESSAGES =>
|
114
|
-
ScreenSize::IOS_IPAD_MESSAGES =>
|
115
|
-
ScreenSize::IOS_IPAD_PRO_MESSAGES =>
|
116
|
-
ScreenSize::IOS_IPAD_PRO_12_9_MESSAGES =>
|
117
|
-
ScreenSize::IOS_IPAD_10_5_MESSAGES =>
|
118
|
-
ScreenSize::IOS_IPAD_11_MESSAGES =>
|
119
|
-
ScreenSize::MAC =>
|
120
|
-
ScreenSize::IOS_APPLE_WATCH =>
|
121
|
-
ScreenSize::IOS_APPLE_WATCH_SERIES4 =>
|
122
|
-
ScreenSize::APPLE_TV =>
|
99
|
+
ScreenSize::IOS_35 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPHONE_35,
|
100
|
+
ScreenSize::IOS_40 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPHONE_40,
|
101
|
+
ScreenSize::IOS_47 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPHONE_47, # also 7 & 8
|
102
|
+
ScreenSize::IOS_55 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPHONE_55, # also 7 Plus & 8 Plus
|
103
|
+
ScreenSize::IOS_58 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPHONE_58,
|
104
|
+
ScreenSize::IOS_65 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPHONE_65,
|
105
|
+
ScreenSize::IOS_IPAD => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPAD_97,
|
106
|
+
ScreenSize::IOS_IPAD_10_5 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPAD_105,
|
107
|
+
ScreenSize::IOS_IPAD_11 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPAD_PRO_3GEN_11,
|
108
|
+
ScreenSize::IOS_IPAD_PRO => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPAD_PRO_129,
|
109
|
+
ScreenSize::IOS_IPAD_PRO_12_9 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPAD_PRO_3GEN_129,
|
110
|
+
ScreenSize::IOS_40_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPHONE_40,
|
111
|
+
ScreenSize::IOS_47_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPHONE_47, # also 7 & 8
|
112
|
+
ScreenSize::IOS_55_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPHONE_55, # also 7 Plus & 8 Plus
|
113
|
+
ScreenSize::IOS_58_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPHONE_58,
|
114
|
+
ScreenSize::IOS_65_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPHONE_65,
|
115
|
+
ScreenSize::IOS_IPAD_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPAD_97,
|
116
|
+
ScreenSize::IOS_IPAD_PRO_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPAD_PRO_129,
|
117
|
+
ScreenSize::IOS_IPAD_PRO_12_9_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_IPAD_PRO_3GEN_129,
|
118
|
+
ScreenSize::IOS_IPAD_10_5_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPAD_105,
|
119
|
+
ScreenSize::IOS_IPAD_11_MESSAGES => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::IMESSAGE_APP_IPAD_PRO_3GEN_11,
|
120
|
+
ScreenSize::MAC => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_DESKTOP,
|
121
|
+
ScreenSize::IOS_APPLE_WATCH => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_WATCH_SERIES_3,
|
122
|
+
ScreenSize::IOS_APPLE_WATCH_SERIES4 => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::APP_WATCH_SERIES_4,
|
123
|
+
# ScreenSize::APPLE_TV => Spaceship::ConnectAPI::AppScreenshotSet::DisplayType::
|
123
124
|
}
|
124
125
|
return matching[self.screen_size]
|
125
126
|
end
|
@@ -129,8 +130,8 @@ module Deliver
|
|
129
130
|
matching = {
|
130
131
|
ScreenSize::IOS_35 => "iPhone 4",
|
131
132
|
ScreenSize::IOS_40 => "iPhone 5",
|
132
|
-
ScreenSize::IOS_47 => "iPhone 6", #
|
133
|
-
ScreenSize::IOS_55 => "iPhone 6 Plus", #
|
133
|
+
ScreenSize::IOS_47 => "iPhone 6", # also 7 & 8
|
134
|
+
ScreenSize::IOS_55 => "iPhone 6 Plus", # also 7 Plus & 8 Plus
|
134
135
|
ScreenSize::IOS_58 => "iPhone XS",
|
135
136
|
ScreenSize::IOS_61 => "iPhone XR",
|
136
137
|
ScreenSize::IOS_65 => "iPhone XS Max",
|
@@ -35,8 +35,8 @@ module Deliver
|
|
35
35
|
# Returns a path relative to FastlaneFolder.path
|
36
36
|
# This is needed as the Preview.html file is located inside FastlaneFolder.path
|
37
37
|
def render_relative_path(export_path, path)
|
38
|
-
export_path = Pathname.new(export_path)
|
39
|
-
path = Pathname.new(path).relative_path_from(export_path)
|
38
|
+
export_path = Pathname.new(File.expand_path(export_path))
|
39
|
+
path = Pathname.new(File.expand_path(path)).relative_path_from(export_path)
|
40
40
|
return path.to_path
|
41
41
|
end
|
42
42
|
|
@@ -2,7 +2,6 @@ require 'fastlane_core/configuration/config_item'
|
|
2
2
|
require 'credentials_manager/appfile_config'
|
3
3
|
|
4
4
|
require_relative 'module'
|
5
|
-
require_relative 'upload_assets'
|
6
5
|
|
7
6
|
module Deliver
|
8
7
|
# rubocop:disable Metrics/ClassLength
|
@@ -206,6 +205,7 @@ module Deliver
|
|
206
205
|
short_option: "-b",
|
207
206
|
description: "Extra information for the submission (e.g. compliance specifications, IDFA settings)",
|
208
207
|
is_string: false,
|
208
|
+
type: Hash,
|
209
209
|
optional: true),
|
210
210
|
|
211
211
|
# affiliation
|
@@ -283,6 +283,7 @@ module Deliver
|
|
283
283
|
FastlaneCore::ConfigItem.new(key: :individual_metadata_items,
|
284
284
|
env_name: "DELIVER_INDIVUDAL_METADATA_ITEMS",
|
285
285
|
description: "An array of localized metadata items to upload individually by language so that errors can be identified. E.g. ['name', 'keywords', 'description']. Note: slow",
|
286
|
+
deprecated: "Removed after the migration to the new App Store Connect API in June 2020",
|
286
287
|
is_string: false,
|
287
288
|
type: Array,
|
288
289
|
default_value: []),
|
@@ -291,21 +292,15 @@ module Deliver
|
|
291
292
|
FastlaneCore::ConfigItem.new(key: :app_icon,
|
292
293
|
env_name: "DELIVER_APP_ICON_PATH",
|
293
294
|
description: "Metadata: The path to the app icon",
|
295
|
+
deprecated: "Removed after the migration to the new App Store Connect API in June 2020",
|
294
296
|
optional: true,
|
295
|
-
short_option: "-l",
|
296
|
-
verify_block: proc do |value|
|
297
|
-
UI.user_error!("Could not find png file at path '#{File.expand_path(value)}'") unless File.exist?(value)
|
298
|
-
UI.user_error!("'#{value}' doesn't seem to be one of the supported files. supported: #{Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.join(',')}") unless Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.include?(File.extname(value).downcase)
|
299
|
-
end),
|
297
|
+
short_option: "-l"),
|
300
298
|
FastlaneCore::ConfigItem.new(key: :apple_watch_app_icon,
|
301
299
|
env_name: "DELIVER_APPLE_WATCH_APP_ICON_PATH",
|
302
300
|
description: "Metadata: The path to the Apple Watch app icon",
|
301
|
+
deprecated: "Removed after the migration to the new App Store Connect API in June 2020",
|
303
302
|
optional: true,
|
304
|
-
short_option: "-q",
|
305
|
-
verify_block: proc do |value|
|
306
|
-
UI.user_error!("Could not find png file at path '#{File.expand_path(value)}'") unless File.exist?(value)
|
307
|
-
UI.user_error!("'#{value}' doesn't seem to be one of the supported files. supported: #{Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.join(',')}") unless Deliver::UploadAssets::SUPPORTED_ICON_EXTENSIONS.include?(File.extname(value).downcase)
|
308
|
-
end),
|
303
|
+
short_option: "-q"),
|
309
304
|
FastlaneCore::ConfigItem.new(key: :copyright,
|
310
305
|
env_name: "DELIVER_COPYRIGHT",
|
311
306
|
description: "Metadata: The copyright notice",
|
@@ -7,7 +7,6 @@ require 'fastlane_core/itunes_transporter'
|
|
7
7
|
require 'spaceship'
|
8
8
|
require_relative 'html_generator'
|
9
9
|
require_relative 'submit_for_review'
|
10
|
-
require_relative 'upload_assets'
|
11
10
|
require_relative 'upload_price_tier'
|
12
11
|
require_relative 'upload_metadata'
|
13
12
|
require_relative 'upload_screenshots'
|
@@ -87,9 +86,14 @@ module Deliver
|
|
87
86
|
# If not, the new version will automatically be created
|
88
87
|
def verify_version
|
89
88
|
app_version = options[:app_version]
|
90
|
-
UI.message("Making sure the latest version on App Store Connect matches '#{app_version}'
|
89
|
+
UI.message("Making sure the latest version on App Store Connect matches '#{app_version}'...")
|
91
90
|
|
92
|
-
|
91
|
+
legacy_app = options[:app]
|
92
|
+
app_id = legacy_app.apple_id
|
93
|
+
app = Spaceship::ConnectAPI::App.get(app_id: app_id)
|
94
|
+
|
95
|
+
platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
|
96
|
+
changed = app.ensure_version!(app_version, platform: platform)
|
93
97
|
|
94
98
|
if changed
|
95
99
|
UI.success("Successfully set the version to '#{app_version}'")
|
@@ -120,7 +124,6 @@ module Deliver
|
|
120
124
|
upload_metadata.upload(options)
|
121
125
|
upload_screenshots.upload(options, screenshots)
|
122
126
|
UploadPriceTier.new.upload(options)
|
123
|
-
UploadAssets.new.upload(options) # e.g. app icon
|
124
127
|
end
|
125
128
|
|
126
129
|
# If options[:app_icon]/options[:apple_watch_app_icon]
|
@@ -60,9 +60,9 @@ module Deliver
|
|
60
60
|
app_details = v.application.details
|
61
61
|
|
62
62
|
# All the localised metadata
|
63
|
-
(UploadMetadata::LOCALISED_VERSION_VALUES + UploadMetadata::LOCALISED_APP_VALUES).each do |key|
|
63
|
+
(UploadMetadata::LOCALISED_VERSION_VALUES.keys + UploadMetadata::LOCALISED_APP_VALUES.keys).each do |key|
|
64
64
|
v.description.languages.each do |language|
|
65
|
-
if UploadMetadata::LOCALISED_VERSION_VALUES.include?(key)
|
65
|
+
if UploadMetadata::LOCALISED_VERSION_VALUES.keys.include?(key)
|
66
66
|
content = v.send(key)[language].to_s
|
67
67
|
else
|
68
68
|
content = app_details.send(key)[language].to_s
|
@@ -76,8 +76,8 @@ module Deliver
|
|
76
76
|
end
|
77
77
|
|
78
78
|
# All non-localised metadata
|
79
|
-
(UploadMetadata::NON_LOCALISED_VERSION_VALUES + UploadMetadata::NON_LOCALISED_APP_VALUES).each do |key|
|
80
|
-
if UploadMetadata::NON_LOCALISED_VERSION_VALUES.include?(key)
|
79
|
+
(UploadMetadata::NON_LOCALISED_VERSION_VALUES.keys + UploadMetadata::NON_LOCALISED_APP_VALUES).each do |key|
|
80
|
+
if UploadMetadata::NON_LOCALISED_VERSION_VALUES.keys.include?(key)
|
81
81
|
content = v.send(key).to_s
|
82
82
|
else
|
83
83
|
content = app_details.send(key).to_s
|
@@ -88,19 +88,8 @@ module Deliver
|
|
88
88
|
UI.message("Writing to '#{resulting_path}'")
|
89
89
|
end
|
90
90
|
|
91
|
-
# Trade Representative Contact Information
|
92
|
-
UploadMetadata::TRADE_REPRESENTATIVE_CONTACT_INFORMATION_VALUES.each do |key, option_name|
|
93
|
-
content = v.send(key).to_s
|
94
|
-
content += "\n"
|
95
|
-
base_dir = File.join(path, UploadMetadata::TRADE_REPRESENTATIVE_CONTACT_INFORMATION_DIR)
|
96
|
-
FileUtils.mkdir_p(base_dir)
|
97
|
-
resulting_path = File.join(base_dir, "#{option_name}.txt")
|
98
|
-
File.write(resulting_path, content)
|
99
|
-
UI.message("Writing to '#{resulting_path}'")
|
100
|
-
end
|
101
|
-
|
102
91
|
# Review information
|
103
|
-
UploadMetadata::
|
92
|
+
UploadMetadata::REVIEW_INFORMATION_VALUES_LEGACY.each do |key, option_name|
|
104
93
|
content = v.send(key).to_s
|
105
94
|
content += "\n"
|
106
95
|
base_dir = File.join(path, UploadMetadata::REVIEW_INFORMATION_DIR)
|
@@ -111,20 +100,6 @@ module Deliver
|
|
111
100
|
end
|
112
101
|
|
113
102
|
UI.success("Successfully created new configuration files.")
|
114
|
-
|
115
|
-
# get App icon + watch icon
|
116
|
-
if v.large_app_icon.asset_token
|
117
|
-
app_icon_extension = File.extname(v.large_app_icon.url)
|
118
|
-
app_icon_path = File.join(path, "app_icon#{app_icon_extension}")
|
119
|
-
File.write(app_icon_path, open(v.large_app_icon.url).read)
|
120
|
-
UI.success("Successfully downloaded large app icon")
|
121
|
-
end
|
122
|
-
if v.watch_app_icon.asset_token
|
123
|
-
watch_app_icon_extension = File.extname(v.watch_app_icon.url)
|
124
|
-
watch_icon_path = File.join(path, "watch_icon#{watch_app_icon_extension}")
|
125
|
-
File.write(watch_icon_path, open(v.watch_app_icon.url).read)
|
126
|
-
UI.success("Successfully downloaded watch icon")
|
127
|
-
end
|
128
103
|
end
|
129
104
|
|
130
105
|
def download_screenshots(path, options)
|