fastlane 2.195.0 → 2.213.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +96 -89
  4. data/cert/lib/cert/runner.rb +19 -8
  5. data/deliver/lib/assets/ScreenshotsHelp +29 -6
  6. data/deliver/lib/deliver/app_screenshot.rb +30 -4
  7. data/deliver/lib/deliver/app_screenshot_iterator.rb +1 -1
  8. data/deliver/lib/deliver/options.rb +6 -2
  9. data/deliver/lib/deliver/runner.rb +88 -24
  10. data/deliver/lib/deliver/submit_for_review.rb +25 -3
  11. data/deliver/lib/deliver/upload_price_tier.rb +3 -1
  12. data/deliver/lib/deliver/upload_screenshots.rb +2 -2
  13. data/fastlane/lib/assets/AppfileTemplate +1 -1
  14. data/fastlane/lib/assets/AppfileTemplate.swift +1 -1
  15. data/fastlane/lib/fastlane/actions/app_store_build_number.rb +12 -6
  16. data/fastlane/lib/fastlane/actions/badge.rb +1 -1
  17. data/fastlane/lib/fastlane/actions/changelog_from_git_commits.rb +1 -1
  18. data/fastlane/lib/fastlane/actions/danger.rb +14 -0
  19. data/fastlane/lib/fastlane/actions/docs/build_app.md +5 -5
  20. data/fastlane/lib/fastlane/actions/docs/capture_android_screenshots.md +19 -2
  21. data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +1 -1
  22. data/fastlane/lib/fastlane/actions/docs/run_tests.md +1 -1
  23. data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +1 -1
  24. data/fastlane/lib/fastlane/actions/download_dsyms.rb +62 -46
  25. data/fastlane/lib/fastlane/actions/ensure_git_status_clean.rb +44 -5
  26. data/fastlane/lib/fastlane/actions/ensure_xcode_version.rb +1 -1
  27. data/fastlane/lib/fastlane/actions/get_push_certificate.rb +1 -1
  28. data/fastlane/lib/fastlane/actions/get_version_number.rb +8 -3
  29. data/fastlane/lib/fastlane/actions/git_commit.rb +4 -6
  30. data/fastlane/lib/fastlane/actions/import_certificate.rb +1 -1
  31. data/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb +2 -3
  32. data/fastlane/lib/fastlane/actions/notarize.rb +29 -11
  33. data/fastlane/lib/fastlane/actions/pod_lib_lint.rb +1 -1
  34. data/fastlane/lib/fastlane/actions/pod_push.rb +19 -1
  35. data/fastlane/lib/fastlane/actions/read_podspec.rb +1 -1
  36. data/fastlane/lib/fastlane/actions/run_tests.rb +19 -9
  37. data/fastlane/lib/fastlane/actions/set_github_release.rb +11 -5
  38. data/fastlane/lib/fastlane/actions/setup_ci.rb +13 -4
  39. data/fastlane/lib/fastlane/actions/trainer.rb +49 -0
  40. data/fastlane/lib/fastlane/actions/update_code_signing_settings.rb +31 -4
  41. data/fastlane/lib/fastlane/actions/update_info_plist.rb +1 -1
  42. data/fastlane/lib/fastlane/actions/update_project_provisioning.rb +10 -1
  43. data/fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb +1 -1
  44. data/fastlane/lib/fastlane/actions/verify_build.rb +1 -1
  45. data/fastlane/lib/fastlane/actions/xcode_install.rb +5 -1
  46. data/fastlane/lib/fastlane/actions/xcode_select.rb +1 -1
  47. data/fastlane/lib/fastlane/actions/xcodebuild.rb +8 -2
  48. data/fastlane/lib/fastlane/actions/xcodes.rb +152 -0
  49. data/fastlane/lib/fastlane/actions/xcov.rb +5 -0
  50. data/fastlane/lib/fastlane/actions/xcversion.rb +17 -7
  51. data/fastlane/lib/fastlane/cli_tools_distributor.rb +5 -0
  52. data/fastlane/lib/fastlane/commands_generator.rb +2 -1
  53. data/fastlane/lib/fastlane/documentation/docs_generator.rb +17 -12
  54. data/fastlane/lib/fastlane/fast_file.rb +18 -5
  55. data/fastlane/lib/fastlane/features.rb +3 -0
  56. data/fastlane/lib/fastlane/helper/xcodebuild_formatter_helper.rb +9 -0
  57. data/fastlane/lib/fastlane/helper/xcodes_helper.rb +28 -0
  58. data/fastlane/lib/fastlane/helper/xcversion_helper.rb +0 -9
  59. data/fastlane/lib/fastlane/lane_manager.rb +1 -1
  60. data/fastlane/lib/fastlane/plugins/template/%gem_name%.gemspec.erb +1 -1
  61. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +5 -1
  62. data/fastlane/lib/fastlane/setup/setup_ios.rb +1 -1
  63. data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +1 -1
  64. data/fastlane/lib/fastlane/swift_lane_manager.rb +11 -3
  65. data/fastlane/lib/fastlane/swift_runner_upgrader.rb +54 -1
  66. data/fastlane/lib/fastlane/tools.rb +18 -1
  67. data/fastlane/lib/fastlane/version.rb +1 -1
  68. data/fastlane/swift/Actions.swift +1 -1
  69. data/fastlane/swift/Appfile.swift +2 -2
  70. data/fastlane/swift/ArgumentProcessor.swift +1 -1
  71. data/fastlane/swift/Atomic.swift +150 -0
  72. data/fastlane/swift/ControlCommand.swift +1 -1
  73. data/fastlane/swift/Deliverfile.swift +2 -2
  74. data/fastlane/swift/DeliverfileProtocol.swift +8 -4
  75. data/fastlane/swift/Fastlane.swift +604 -249
  76. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +30 -20
  77. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/xcshareddata/xcschemes/FastlaneRunner.xcscheme +1 -1
  78. data/fastlane/swift/Gymfile.swift +2 -2
  79. data/fastlane/swift/GymfileProtocol.swift +20 -8
  80. data/fastlane/swift/LaneFileProtocol.swift +3 -3
  81. data/fastlane/swift/MainProcess.swift +3 -3
  82. data/fastlane/swift/Matchfile.swift +2 -2
  83. data/fastlane/swift/MatchfileProtocol.swift +25 -5
  84. data/fastlane/swift/OptionalConfigValue.swift +1 -1
  85. data/fastlane/swift/Plugins.swift +1 -1
  86. data/fastlane/swift/Precheckfile.swift +2 -2
  87. data/fastlane/swift/PrecheckfileProtocol.swift +3 -3
  88. data/fastlane/swift/RubyCommand.swift +1 -1
  89. data/fastlane/swift/RubyCommandable.swift +1 -1
  90. data/fastlane/swift/Runner.swift +14 -10
  91. data/fastlane/swift/RunnerArgument.swift +1 -1
  92. data/fastlane/swift/Scanfile.swift +2 -2
  93. data/fastlane/swift/ScanfileProtocol.swift +35 -11
  94. data/fastlane/swift/Screengrabfile.swift +2 -2
  95. data/fastlane/swift/ScreengrabfileProtocol.swift +5 -5
  96. data/fastlane/swift/Snapshotfile.swift +2 -2
  97. data/fastlane/swift/SnapshotfileProtocol.swift +12 -8
  98. data/fastlane/swift/SocketClient.swift +9 -5
  99. data/fastlane/swift/SocketClientDelegateProtocol.swift +2 -2
  100. data/fastlane/swift/SocketResponse.swift +1 -1
  101. data/fastlane/swift/formatting/Brewfile.lock.json +47 -24
  102. data/fastlane/swift/main.swift +1 -1
  103. data/fastlane/swift/upgrade_manifest.json +1 -1
  104. data/fastlane_core/README.md +1 -0
  105. data/fastlane_core/lib/fastlane_core/cert_checker.rb +74 -17
  106. data/fastlane_core/lib/fastlane_core/device_manager.rb +5 -1
  107. data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +10 -5
  108. data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +409 -26
  109. data/fastlane_core/lib/fastlane_core/keychain_importer.rb +1 -0
  110. data/fastlane_core/lib/fastlane_core/project.rb +19 -2
  111. data/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb +7 -0
  112. data/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb +4 -2
  113. data/frameit/lib/frameit/device.rb +1 -1
  114. data/frameit/lib/frameit/device_types.rb +9 -0
  115. data/frameit/lib/frameit/editor.rb +16 -18
  116. data/frameit/lib/frameit/frame_downloader.rb +1 -1
  117. data/frameit/lib/frameit/trim_box.rb +6 -0
  118. data/gym/lib/gym/generators/build_command_generator.rb +70 -23
  119. data/gym/lib/gym/options.rb +30 -5
  120. data/match/lib/match/change_password.rb +2 -0
  121. data/match/lib/match/commands_generator.rb +2 -1
  122. data/match/lib/match/encryption/openssl.rb +1 -1
  123. data/match/lib/match/encryption.rb +3 -0
  124. data/match/lib/match/generator.rb +1 -0
  125. data/match/lib/match/importer.rb +11 -1
  126. data/match/lib/match/migrate.rb +4 -3
  127. data/match/lib/match/module.rb +54 -2
  128. data/match/lib/match/nuke.rb +115 -47
  129. data/match/lib/match/options.rb +27 -1
  130. data/match/lib/match/runner.rb +26 -6
  131. data/match/lib/match/setup.rb +1 -1
  132. data/match/lib/match/spaceship_ensure.rb +5 -2
  133. data/match/lib/match/storage/gitlab/client.rb +102 -0
  134. data/match/lib/match/storage/gitlab/secure_file.rb +65 -0
  135. data/match/lib/match/storage/gitlab_secure_files.rb +188 -0
  136. data/match/lib/match/storage/google_cloud_storage.rb +7 -6
  137. data/match/lib/match/storage/s3_storage.rb +3 -3
  138. data/match/lib/match/storage.rb +4 -0
  139. data/match/lib/match/table_printer.rb +2 -1
  140. data/match/lib/match/utils.rb +15 -2
  141. data/pem/lib/pem/manager.rb +32 -8
  142. data/pem/lib/pem/options.rb +10 -1
  143. data/pilot/lib/pilot/build_manager.rb +34 -14
  144. data/pilot/lib/pilot/options.rb +6 -1
  145. data/scan/lib/scan/detect_values.rb +14 -1
  146. data/scan/lib/scan/error_handler.rb +9 -0
  147. data/scan/lib/scan/options.rb +54 -9
  148. data/scan/lib/scan/runner.rb +171 -25
  149. data/scan/lib/scan/test_command_generator.rb +65 -5
  150. data/screengrab/lib/screengrab/options.rb +2 -2
  151. data/sigh/lib/assets/resign.sh +8 -5
  152. data/sigh/lib/sigh/download_all.rb +14 -2
  153. data/sigh/lib/sigh/module.rb +3 -1
  154. data/sigh/lib/sigh/options.rb +5 -0
  155. data/sigh/lib/sigh/runner.rb +12 -2
  156. data/snapshot/lib/assets/SnapshotHelper.swift +3 -3
  157. data/snapshot/lib/snapshot/latest_os_version.rb +2 -5
  158. data/snapshot/lib/snapshot/options.rb +24 -8
  159. data/snapshot/lib/snapshot/reports_generator.rb +9 -0
  160. data/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb +10 -3
  161. data/snapshot/lib/snapshot/test_command_generator.rb +37 -2
  162. data/spaceship/lib/spaceship/client.rb +71 -40
  163. data/spaceship/lib/spaceship/commands_generator.rb +1 -1
  164. data/spaceship/lib/spaceship/connect_api/api_client.rb +10 -5
  165. data/spaceship/lib/spaceship/connect_api/models/actor.rb +26 -0
  166. data/spaceship/lib/spaceship/connect_api/models/app.rb +52 -6
  167. data/spaceship/lib/spaceship/connect_api/models/app_info.rb +1 -0
  168. data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +5 -0
  169. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +7 -0
  170. data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +1 -1
  171. data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +27 -10
  172. data/spaceship/lib/spaceship/connect_api/models/build.rb +4 -2
  173. data/spaceship/lib/spaceship/connect_api/models/build_bundle.rb +68 -0
  174. data/spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb +34 -0
  175. data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +2 -1
  176. data/spaceship/lib/spaceship/connect_api/models/certificate.rb +4 -0
  177. data/spaceship/lib/spaceship/connect_api/models/device.rb +47 -4
  178. data/spaceship/lib/spaceship/connect_api/models/profile.rb +4 -0
  179. data/spaceship/lib/spaceship/connect_api/models/resolution_center_message.rb +29 -0
  180. data/spaceship/lib/spaceship/connect_api/models/resolution_center_thread.rb +67 -0
  181. data/spaceship/lib/spaceship/connect_api/models/review_rejection.rb +19 -0
  182. data/spaceship/lib/spaceship/connect_api/models/review_submission.rb +86 -0
  183. data/spaceship/lib/spaceship/connect_api/models/review_submission_item.rb +40 -0
  184. data/spaceship/lib/spaceship/connect_api/models/user.rb +5 -0
  185. data/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb +19 -0
  186. data/spaceship/lib/spaceship/connect_api/response.rb +23 -6
  187. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +33 -2
  188. data/spaceship/lib/spaceship/connect_api/token.rb +6 -3
  189. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +124 -8
  190. data/spaceship/lib/spaceship/connect_api.rb +9 -0
  191. data/spaceship/lib/spaceship/errors.rb +34 -0
  192. data/spaceship/lib/spaceship/globals.rb +9 -0
  193. data/spaceship/lib/spaceship/hashcash.rb +52 -0
  194. data/spaceship/lib/spaceship/portal/certificate.rb +4 -3
  195. data/spaceship/lib/spaceship/spaceauth_runner.rb +1 -1
  196. data/spaceship/lib/spaceship/tunes/app_ratings.rb +6 -6
  197. data/spaceship/lib/spaceship/tunes/iap_families.rb +1 -1
  198. data/spaceship/lib/spaceship/tunes/tunes.rb +0 -1
  199. data/spaceship/lib/spaceship/tunes/tunes_client.rb +79 -21
  200. data/spaceship/lib/spaceship/two_step_or_factor_client.rb +11 -3
  201. data/spaceship/lib/spaceship.rb +1 -0
  202. data/supply/lib/supply/client.rb +5 -10
  203. data/supply/lib/supply/options.rb +8 -0
  204. data/supply/lib/supply/uploader.rb +7 -3
  205. data/trainer/lib/assets/junit.xml.erb +28 -0
  206. data/trainer/lib/trainer/commands_generator.rb +51 -0
  207. data/trainer/lib/trainer/junit_generator.rb +31 -0
  208. data/trainer/lib/trainer/module.rb +10 -0
  209. data/trainer/lib/trainer/options.rb +66 -0
  210. data/trainer/lib/trainer/test_parser.rb +398 -0
  211. data/trainer/lib/trainer/xcresult.rb +403 -0
  212. data/trainer/lib/trainer.rb +7 -0
  213. metadata +73 -37
  214. data/spaceship/lib/spaceship/tunes/user_detail.rb +0 -15
@@ -0,0 +1,403 @@
1
+ module Trainer
2
+ module XCResult
3
+ # Model attributes and relationships taken from running the following command:
4
+ # xcrun xcresulttool formatDescription
5
+
6
+ class AbstractObject
7
+ attr_accessor :type
8
+ def initialize(data)
9
+ self.type = data["_type"]["_name"]
10
+ end
11
+
12
+ def fetch_value(data, key)
13
+ return (data[key] || {})["_value"]
14
+ end
15
+
16
+ def fetch_values(data, key)
17
+ return (data[key] || {})["_values"] || []
18
+ end
19
+ end
20
+
21
+ # - ActionTestPlanRunSummaries
22
+ # * Kind: object
23
+ # * Properties:
24
+ # + summaries: [ActionTestPlanRunSummary]
25
+ class ActionTestPlanRunSummaries < AbstractObject
26
+ attr_accessor :summaries
27
+ def initialize(data)
28
+ self.summaries = fetch_values(data, "summaries").map do |summary_data|
29
+ ActionTestPlanRunSummary.new(summary_data)
30
+ end
31
+ super
32
+ end
33
+ end
34
+
35
+ # - ActionAbstractTestSummary
36
+ # * Kind: object
37
+ # * Properties:
38
+ # + name: String?
39
+ class ActionAbstractTestSummary < AbstractObject
40
+ attr_accessor :name
41
+ def initialize(data)
42
+ self.name = fetch_value(data, "name")
43
+ super
44
+ end
45
+ end
46
+
47
+ # - ActionTestPlanRunSummary
48
+ # * Supertype: ActionAbstractTestSummary
49
+ # * Kind: object
50
+ # * Properties:
51
+ # + testableSummaries: [ActionTestableSummary]
52
+ class ActionTestPlanRunSummary < ActionAbstractTestSummary
53
+ attr_accessor :testable_summaries
54
+ def initialize(data)
55
+ self.testable_summaries = fetch_values(data, "testableSummaries").map do |summary_data|
56
+ ActionTestableSummary.new(summary_data)
57
+ end
58
+ super
59
+ end
60
+ end
61
+
62
+ # - ActionTestableSummary
63
+ # * Supertype: ActionAbstractTestSummary
64
+ # * Kind: object
65
+ # * Properties:
66
+ # + projectRelativePath: String?
67
+ # + targetName: String?
68
+ # + testKind: String?
69
+ # + tests: [ActionTestSummaryIdentifiableObject]
70
+ # + diagnosticsDirectoryName: String?
71
+ # + failureSummaries: [ActionTestFailureSummary]
72
+ # + testLanguage: String?
73
+ # + testRegion: String?
74
+ class ActionTestableSummary < ActionAbstractTestSummary
75
+ attr_accessor :project_relative_path
76
+ attr_accessor :target_name
77
+ attr_accessor :test_kind
78
+ attr_accessor :tests
79
+ def initialize(data)
80
+ self.project_relative_path = fetch_value(data, "projectRelativePath")
81
+ self.target_name = fetch_value(data, "targetName")
82
+ self.test_kind = fetch_value(data, "testKind")
83
+ self.tests = fetch_values(data, "tests").map do |tests_data|
84
+ ActionTestSummaryIdentifiableObject.create(tests_data, self)
85
+ end
86
+ super
87
+ end
88
+
89
+ def all_tests
90
+ return tests.map(&:all_subtests).flatten
91
+ end
92
+ end
93
+
94
+ # - ActionTestSummaryIdentifiableObject
95
+ # * Supertype: ActionAbstractTestSummary
96
+ # * Kind: object
97
+ # * Properties:
98
+ # + identifier: String?
99
+ class ActionTestSummaryIdentifiableObject < ActionAbstractTestSummary
100
+ attr_accessor :identifier
101
+ attr_accessor :parent
102
+ def initialize(data, parent)
103
+ self.identifier = fetch_value(data, "identifier")
104
+ self.parent = parent
105
+ super(data)
106
+ end
107
+
108
+ def all_subtests
109
+ raise "Not overridden"
110
+ end
111
+
112
+ def self.create(data, parent)
113
+ type = data["_type"]["_name"]
114
+ if type == "ActionTestSummaryGroup"
115
+ return ActionTestSummaryGroup.new(data, parent)
116
+ elsif type == "ActionTestMetadata"
117
+ return ActionTestMetadata.new(data, parent)
118
+ else
119
+ raise "Unsupported type: #{type}"
120
+ end
121
+ end
122
+ end
123
+
124
+ # - ActionTestSummaryGroup
125
+ # * Supertype: ActionTestSummaryIdentifiableObject
126
+ # * Kind: object
127
+ # * Properties:
128
+ # + duration: Double
129
+ # + subtests: [ActionTestSummaryIdentifiableObject]
130
+ class ActionTestSummaryGroup < ActionTestSummaryIdentifiableObject
131
+ attr_accessor :duration
132
+ attr_accessor :subtests
133
+ def initialize(data, parent)
134
+ self.duration = fetch_value(data, "duration").to_f
135
+ self.subtests = fetch_values(data, "subtests").map do |subtests_data|
136
+ ActionTestSummaryIdentifiableObject.create(subtests_data, self)
137
+ end
138
+ super(data, parent)
139
+ end
140
+
141
+ def all_subtests
142
+ return subtests.map(&:all_subtests).flatten
143
+ end
144
+ end
145
+
146
+ # - ActionTestMetadata
147
+ # * Supertype: ActionTestSummaryIdentifiableObject
148
+ # * Kind: object
149
+ # * Properties:
150
+ # + testStatus: String
151
+ # + duration: Double?
152
+ # + summaryRef: Reference?
153
+ # + performanceMetricsCount: Int
154
+ # + failureSummariesCount: Int
155
+ # + activitySummariesCount: Int
156
+ class ActionTestMetadata < ActionTestSummaryIdentifiableObject
157
+ attr_accessor :test_status
158
+ attr_accessor :duration
159
+ attr_accessor :performance_metrics_count
160
+ attr_accessor :failure_summaries_count
161
+ attr_accessor :activity_summaries_count
162
+ def initialize(data, parent)
163
+ self.test_status = fetch_value(data, "testStatus")
164
+ self.duration = fetch_value(data, "duration").to_f
165
+ self.performance_metrics_count = fetch_value(data, "performanceMetricsCount")
166
+ self.failure_summaries_count = fetch_value(data, "failureSummariesCount")
167
+ self.activity_summaries_count = fetch_value(data, "activitySummariesCount")
168
+ super(data, parent)
169
+ end
170
+
171
+ def all_subtests
172
+ return [self]
173
+ end
174
+
175
+ def find_failure(failures)
176
+ if self.test_status == "Failure"
177
+ # Tries to match failure on test case name
178
+ # Example TestFailureIssueSummary:
179
+ # producingTarget: "TestThisDude"
180
+ # test_case_name: "TestThisDude.testFailureJosh2()" (when Swift)
181
+ # or "-[TestThisDudeTests testFailureJosh2]" (when Objective-C)
182
+ # Example ActionTestMetadata
183
+ # identifier: "TestThisDude/testFailureJosh2()" (when Swift)
184
+ # or identifier: "TestThisDude/testFailureJosh2" (when Objective-C)
185
+
186
+ found_failure = failures.find do |failure|
187
+ # Clean test_case_name to match identifier format
188
+ # Sanitize for Swift by replacing "." for "/"
189
+ # Sanitize for Objective-C by removing "-", "[", "]", and replacing " " for ?/
190
+ sanitized_test_case_name = failure.test_case_name
191
+ .tr(".", "/")
192
+ .tr("-", "")
193
+ .tr("[", "")
194
+ .tr("]", "")
195
+ .tr(" ", "/")
196
+ self.identifier == sanitized_test_case_name
197
+ end
198
+ return found_failure
199
+ else
200
+ return nil
201
+ end
202
+ end
203
+ end
204
+
205
+ # - ActionsInvocationRecord
206
+ # * Kind: object
207
+ # * Properties:
208
+ # + metadataRef: Reference?
209
+ # + metrics: ResultMetrics
210
+ # + issues: ResultIssueSummaries
211
+ # + actions: [ActionRecord]
212
+ # + archive: ArchiveInfo?
213
+ class ActionsInvocationRecord < AbstractObject
214
+ attr_accessor :actions
215
+ attr_accessor :issues
216
+ def initialize(data)
217
+ self.actions = fetch_values(data, "actions").map do |action_data|
218
+ ActionRecord.new(action_data)
219
+ end
220
+ self.issues = ResultIssueSummaries.new(data["issues"])
221
+ super
222
+ end
223
+ end
224
+
225
+ # - ActionRecord
226
+ # * Kind: object
227
+ # * Properties:
228
+ # + schemeCommandName: String
229
+ # + schemeTaskName: String
230
+ # + title: String?
231
+ # + startedTime: Date
232
+ # + endedTime: Date
233
+ # + runDestination: ActionRunDestinationRecord
234
+ # + buildResult: ActionResult
235
+ # + actionResult: ActionResult
236
+ class ActionRecord < AbstractObject
237
+ attr_accessor :scheme_command_name
238
+ attr_accessor :scheme_task_name
239
+ attr_accessor :title
240
+ attr_accessor :build_result
241
+ attr_accessor :action_result
242
+ def initialize(data)
243
+ self.scheme_command_name = fetch_value(data, "schemeCommandName")
244
+ self.scheme_task_name = fetch_value(data, "schemeTaskName")
245
+ self.title = fetch_value(data, "title")
246
+ self.build_result = ActionResult.new(data["buildResult"])
247
+ self.action_result = ActionResult.new(data["actionResult"])
248
+ super
249
+ end
250
+ end
251
+
252
+ # - ActionResult
253
+ # * Kind: object
254
+ # * Properties:
255
+ # + resultName: String
256
+ # + status: String
257
+ # + metrics: ResultMetrics
258
+ # + issues: ResultIssueSummaries
259
+ # + coverage: CodeCoverageInfo
260
+ # + timelineRef: Reference?
261
+ # + logRef: Reference?
262
+ # + testsRef: Reference?
263
+ # + diagnosticsRef: Reference?
264
+ class ActionResult < AbstractObject
265
+ attr_accessor :result_name
266
+ attr_accessor :status
267
+ attr_accessor :issues
268
+ attr_accessor :timeline_ref
269
+ attr_accessor :log_ref
270
+ attr_accessor :tests_ref
271
+ attr_accessor :diagnostics_ref
272
+ def initialize(data)
273
+ self.result_name = fetch_value(data, "resultName")
274
+ self.status = fetch_value(data, "status")
275
+ self.issues = ResultIssueSummaries.new(data["issues"])
276
+
277
+ self.timeline_ref = Reference.new(data["timelineRef"]) if data["timelineRef"]
278
+ self.log_ref = Reference.new(data["logRef"]) if data["logRef"]
279
+ self.tests_ref = Reference.new(data["testsRef"]) if data["testsRef"]
280
+ self.diagnostics_ref = Reference.new(data["diagnosticsRef"]) if data["diagnosticsRef"]
281
+ super
282
+ end
283
+ end
284
+
285
+ # - Reference
286
+ # * Kind: object
287
+ # * Properties:
288
+ # + id: String
289
+ # + targetType: TypeDefinition?
290
+ class Reference < AbstractObject
291
+ attr_accessor :id
292
+ attr_accessor :target_type
293
+ def initialize(data)
294
+ self.id = fetch_value(data, "id")
295
+ self.target_type = TypeDefinition.new(data["targetType"]) if data["targetType"]
296
+ super
297
+ end
298
+ end
299
+
300
+ # - TypeDefinition
301
+ # * Kind: object
302
+ # * Properties:
303
+ # + name: String
304
+ # + supertype: TypeDefinition?
305
+ class TypeDefinition < AbstractObject
306
+ attr_accessor :name
307
+ attr_accessor :supertype
308
+ def initialize(data)
309
+ self.name = fetch_value(data, "name")
310
+ self.supertype = TypeDefinition.new(data["supertype"]) if data["supertype"]
311
+ super
312
+ end
313
+ end
314
+
315
+ # - DocumentLocation
316
+ # * Kind: object
317
+ # * Properties:
318
+ # + url: String
319
+ # + concreteTypeName: String
320
+ class DocumentLocation < AbstractObject
321
+ attr_accessor :url
322
+ attr_accessor :concrete_type_name
323
+ def initialize(data)
324
+ self.url = fetch_value(data, "url")
325
+ self.concrete_type_name = data["concreteTypeName"]["_value"]
326
+ super
327
+ end
328
+ end
329
+
330
+ # - IssueSummary
331
+ # * Kind: object
332
+ # * Properties:
333
+ # + issueType: String
334
+ # + message: String
335
+ # + producingTarget: String?
336
+ # + documentLocationInCreatingWorkspace: DocumentLocation?
337
+ class IssueSummary < AbstractObject
338
+ attr_accessor :issue_type
339
+ attr_accessor :message
340
+ attr_accessor :producing_target
341
+ attr_accessor :document_location_in_creating_workspace
342
+ def initialize(data)
343
+ self.issue_type = fetch_value(data, "issueType")
344
+ self.message = fetch_value(data, "message")
345
+ self.producing_target = fetch_value(data, "producingTarget")
346
+ self.document_location_in_creating_workspace = DocumentLocation.new(data["documentLocationInCreatingWorkspace"]) if data["documentLocationInCreatingWorkspace"]
347
+ super
348
+ end
349
+ end
350
+
351
+ # - ResultIssueSummaries
352
+ # * Kind: object
353
+ # * Properties:
354
+ # + analyzerWarningSummaries: [IssueSummary]
355
+ # + errorSummaries: [IssueSummary]
356
+ # + testFailureSummaries: [TestFailureIssueSummary]
357
+ # + warningSummaries: [IssueSummary]
358
+ class ResultIssueSummaries < AbstractObject
359
+ attr_accessor :analyzer_warning_summaries
360
+ attr_accessor :error_summaries
361
+ attr_accessor :test_failure_summaries
362
+ attr_accessor :warning_summaries
363
+ def initialize(data)
364
+ self.analyzer_warning_summaries = fetch_values(data, "analyzerWarningSummaries").map do |summary_data|
365
+ IssueSummary.new(summary_data)
366
+ end
367
+ self.error_summaries = fetch_values(data, "errorSummaries").map do |summary_data|
368
+ IssueSummary.new(summary_data)
369
+ end
370
+ self.test_failure_summaries = fetch_values(data, "testFailureSummaries").map do |summary_data|
371
+ TestFailureIssueSummary.new(summary_data)
372
+ end
373
+ self.warning_summaries = fetch_values(data, "warningSummaries").map do |summary_data|
374
+ IssueSummary.new(summary_data)
375
+ end
376
+ super
377
+ end
378
+ end
379
+
380
+ # - TestFailureIssueSummary
381
+ # * Supertype: IssueSummary
382
+ # * Kind: object
383
+ # * Properties:
384
+ # + testCaseName: String
385
+ class TestFailureIssueSummary < IssueSummary
386
+ attr_accessor :test_case_name
387
+ def initialize(data)
388
+ self.test_case_name = fetch_value(data, "testCaseName")
389
+ super
390
+ end
391
+
392
+ def failure_message
393
+ new_message = self.message
394
+ if self.document_location_in_creating_workspace
395
+ file_path = self.document_location_in_creating_workspace.url.gsub("file://", "")
396
+ new_message += " (#{file_path})"
397
+ end
398
+
399
+ return new_message
400
+ end
401
+ end
402
+ end
403
+ end
@@ -0,0 +1,7 @@
1
+ require 'fastlane'
2
+
3
+ require 'trainer/options'
4
+ require 'trainer/test_parser'
5
+ require 'trainer/junit_generator'
6
+ require 'trainer/xcresult'
7
+ require 'trainer/module'
metadata CHANGED
@@ -1,38 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.195.0
4
+ version: 2.213.0
5
5
  platform: ruby
6
6
  authors:
7
- - Stefan Natchev
8
- - Roger Oba
9
- - Fumiya Nakamura
10
- - Jérôme Lacoste
11
- - Iulian Onofrei
12
- - Jorge Revuelta H
13
- - Max Ott
14
- - Daniel Jankowski
15
- - Olivier Halligon
16
- - Helmut Januschka
17
- - Manish Rathi
18
- - Jan Piotrowski
19
7
  - Danielle Tomlinson
20
- - Luka Mirosevic
21
- - Jimmy Dee
22
- - Andrew McBurney
23
- - Joshua Liebowitz
8
+ - Josh Holtz
9
+ - Olivier Halligon
24
10
  - Satoshi Namai
11
+ - Helmut Januschka
12
+ - Max Ott
25
13
  - Felix Krause
26
- - Kohki Miki
14
+ - Daniel Jankowski
15
+ - Joshua Liebowitz
16
+ - Fumiya Nakamura
27
17
  - Aaron Brager
18
+ - Kohki Miki
19
+ - Luka Mirosevic
28
20
  - Matthew Ellis
29
- - Josh Holtz
21
+ - Roger Oba
22
+ - Stefan Natchev
23
+ - Iulian Onofrei
30
24
  - Maksym Grebenets
25
+ - Jan Piotrowski
26
+ - Jérôme Lacoste
27
+ - Manish Rathi
28
+ - Łukasz Grabowski
31
29
  - Manu Wallner
30
+ - Andrew McBurney
31
+ - Jimmy Dee
32
+ - Jorge Revuelta H
32
33
  autorequire:
33
34
  bindir: bin
34
35
  cert_chain: []
35
- date: 2021-09-25 00:00:00.000000000 Z
36
+ date: 2023-05-24 00:00:00.000000000 Z
36
37
  dependencies:
37
38
  - !ruby/object:Gem::Dependency
38
39
  name: xcodeproj
@@ -172,16 +173,22 @@ dependencies:
172
173
  name: multipart-post
173
174
  requirement: !ruby/object:Gem::Requirement
174
175
  requirements:
175
- - - "~>"
176
+ - - ">="
176
177
  - !ruby/object:Gem::Version
177
178
  version: 2.0.0
179
+ - - "<"
180
+ - !ruby/object:Gem::Version
181
+ version: 3.0.0
178
182
  type: :runtime
179
183
  prerelease: false
180
184
  version_requirements: !ruby/object:Gem::Requirement
181
185
  requirements:
182
- - - "~>"
186
+ - - ">="
183
187
  - !ruby/object:Gem::Version
184
188
  version: 2.0.0
189
+ - - "<"
190
+ - !ruby/object:Gem::Version
191
+ version: 3.0.0
185
192
  - !ruby/object:Gem::Dependency
186
193
  name: word_wrap
187
194
  requirement: !ruby/object:Gem::Requirement
@@ -1222,6 +1229,7 @@ files:
1222
1229
  - fastlane/lib/fastlane/actions/team_name.rb
1223
1230
  - fastlane/lib/fastlane/actions/testfairy.rb
1224
1231
  - fastlane/lib/fastlane/actions/testflight.rb
1232
+ - fastlane/lib/fastlane/actions/trainer.rb
1225
1233
  - fastlane/lib/fastlane/actions/tryouts.rb
1226
1234
  - fastlane/lib/fastlane/actions/twitter.rb
1227
1235
  - fastlane/lib/fastlane/actions/typetalk.rb
@@ -1256,6 +1264,7 @@ files:
1256
1264
  - fastlane/lib/fastlane/actions/xcode_select.rb
1257
1265
  - fastlane/lib/fastlane/actions/xcode_server_get_assets.rb
1258
1266
  - fastlane/lib/fastlane/actions/xcodebuild.rb
1267
+ - fastlane/lib/fastlane/actions/xcodes.rb
1259
1268
  - fastlane/lib/fastlane/actions/xcov.rb
1260
1269
  - fastlane/lib/fastlane/actions/xctool.rb
1261
1270
  - fastlane/lib/fastlane/actions/xcversion.rb
@@ -1285,7 +1294,9 @@ files:
1285
1294
  - fastlane/lib/fastlane/helper/podspec_helper.rb
1286
1295
  - fastlane/lib/fastlane/helper/s3_client_helper.rb
1287
1296
  - fastlane/lib/fastlane/helper/sh_helper.rb
1297
+ - fastlane/lib/fastlane/helper/xcodebuild_formatter_helper.rb
1288
1298
  - fastlane/lib/fastlane/helper/xcodeproj_helper.rb
1299
+ - fastlane/lib/fastlane/helper/xcodes_helper.rb
1289
1300
  - fastlane/lib/fastlane/helper/xcversion_helper.rb
1290
1301
  - fastlane/lib/fastlane/junit_generator.rb
1291
1302
  - fastlane/lib/fastlane/lane.rb
@@ -1348,6 +1359,7 @@ files:
1348
1359
  - fastlane/swift/Actions.swift
1349
1360
  - fastlane/swift/Appfile.swift
1350
1361
  - fastlane/swift/ArgumentProcessor.swift
1362
+ - fastlane/swift/Atomic.swift
1351
1363
  - fastlane/swift/ControlCommand.swift
1352
1364
  - fastlane/swift/Deliverfile.swift
1353
1365
  - fastlane/swift/DeliverfileProtocol.swift
@@ -1508,6 +1520,9 @@ files:
1508
1520
  - match/lib/match/spaceship_ensure.rb
1509
1521
  - match/lib/match/storage.rb
1510
1522
  - match/lib/match/storage/git_storage.rb
1523
+ - match/lib/match/storage/gitlab/client.rb
1524
+ - match/lib/match/storage/gitlab/secure_file.rb
1525
+ - match/lib/match/storage/gitlab_secure_files.rb
1511
1526
  - match/lib/match/storage/google_cloud_storage.rb
1512
1527
  - match/lib/match/storage/interface.rb
1513
1528
  - match/lib/match/storage/s3_storage.rb
@@ -1654,6 +1669,7 @@ files:
1654
1669
  - spaceship/lib/spaceship/connect_api/client.rb
1655
1670
  - spaceship/lib/spaceship/connect_api/file_uploader.rb
1656
1671
  - spaceship/lib/spaceship/connect_api/model.rb
1672
+ - spaceship/lib/spaceship/connect_api/models/actor.rb
1657
1673
  - spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
1658
1674
  - spaceship/lib/spaceship/connect_api/models/app.rb
1659
1675
  - spaceship/lib/spaceship/connect_api/models/app_category.rb
@@ -1691,6 +1707,8 @@ files:
1691
1707
  - spaceship/lib/spaceship/connect_api/models/beta_tester_metric.rb
1692
1708
  - spaceship/lib/spaceship/connect_api/models/build.rb
1693
1709
  - spaceship/lib/spaceship/connect_api/models/build_beta_detail.rb
1710
+ - spaceship/lib/spaceship/connect_api/models/build_bundle.rb
1711
+ - spaceship/lib/spaceship/connect_api/models/build_bundle_file_sizes.rb
1694
1712
  - spaceship/lib/spaceship/connect_api/models/build_delivery.rb
1695
1713
  - spaceship/lib/spaceship/connect_api/models/bundle_id.rb
1696
1714
  - spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb
@@ -1703,6 +1721,11 @@ files:
1703
1721
  - spaceship/lib/spaceship/connect_api/models/pre_release_version.rb
1704
1722
  - spaceship/lib/spaceship/connect_api/models/profile.rb
1705
1723
  - spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb
1724
+ - spaceship/lib/spaceship/connect_api/models/resolution_center_message.rb
1725
+ - spaceship/lib/spaceship/connect_api/models/resolution_center_thread.rb
1726
+ - spaceship/lib/spaceship/connect_api/models/review_rejection.rb
1727
+ - spaceship/lib/spaceship/connect_api/models/review_submission.rb
1728
+ - spaceship/lib/spaceship/connect_api/models/review_submission_item.rb
1706
1729
  - spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb
1707
1730
  - spaceship/lib/spaceship/connect_api/models/territory.rb
1708
1731
  - spaceship/lib/spaceship/connect_api/models/user.rb
@@ -1724,6 +1747,7 @@ files:
1724
1747
  - spaceship/lib/spaceship/du/utilities.rb
1725
1748
  - spaceship/lib/spaceship/errors.rb
1726
1749
  - spaceship/lib/spaceship/globals.rb
1750
+ - spaceship/lib/spaceship/hashcash.rb
1727
1751
  - spaceship/lib/spaceship/helper/net_http_generic_request.rb
1728
1752
  - spaceship/lib/spaceship/helper/plist_middleware.rb
1729
1753
  - spaceship/lib/spaceship/helper/rels_middleware.rb
@@ -1817,7 +1841,6 @@ files:
1817
1841
  - spaceship/lib/spaceship/tunes/tunes.rb
1818
1842
  - spaceship/lib/spaceship/tunes/tunes_base.rb
1819
1843
  - spaceship/lib/spaceship/tunes/tunes_client.rb
1820
- - spaceship/lib/spaceship/tunes/user_detail.rb
1821
1844
  - spaceship/lib/spaceship/tunes/version_set.rb
1822
1845
  - spaceship/lib/spaceship/two_step_or_factor_client.rb
1823
1846
  - spaceship/lib/spaceship/ui.rb
@@ -1834,44 +1857,57 @@ files:
1834
1857
  - supply/lib/supply/release_listing.rb
1835
1858
  - supply/lib/supply/setup.rb
1836
1859
  - supply/lib/supply/uploader.rb
1860
+ - trainer/lib/assets/junit.xml.erb
1861
+ - trainer/lib/trainer.rb
1862
+ - trainer/lib/trainer/commands_generator.rb
1863
+ - trainer/lib/trainer/junit_generator.rb
1864
+ - trainer/lib/trainer/module.rb
1865
+ - trainer/lib/trainer/options.rb
1866
+ - trainer/lib/trainer/test_parser.rb
1867
+ - trainer/lib/trainer/xcresult.rb
1837
1868
  homepage: https://fastlane.tools
1838
1869
  licenses:
1839
1870
  - MIT
1840
1871
  metadata:
1841
- docs_url: https://docs.fastlane.tools
1872
+ bug_tracker_uri: https://github.com/fastlane/fastlane/issues
1873
+ changelog_uri: https://github.com/fastlane/fastlane/releases
1874
+ documentation_uri: https://docs.fastlane.tools/
1875
+ homepage_uri: https://fastlane.tools
1876
+ source_code_uri: https://github.com/fastlane/fastlane
1842
1877
  post_install_message:
1843
1878
  rdoc_options: []
1844
1879
  require_paths:
1880
+ - cert/lib
1845
1881
  - credentials_manager/lib
1846
- - pem/lib
1847
- - snapshot/lib
1848
- - frameit/lib
1849
- - match/lib
1850
- - fastlane_core/lib
1851
1882
  - deliver/lib
1852
- - scan/lib
1853
- - supply/lib
1854
- - cert/lib
1855
1883
  - fastlane/lib
1856
- - spaceship/lib
1857
- - pilot/lib
1884
+ - fastlane_core/lib
1885
+ - frameit/lib
1858
1886
  - gym/lib
1887
+ - match/lib
1888
+ - pem/lib
1889
+ - pilot/lib
1859
1890
  - precheck/lib
1891
+ - produce/lib
1892
+ - scan/lib
1860
1893
  - screengrab/lib
1861
1894
  - sigh/lib
1862
- - produce/lib
1895
+ - snapshot/lib
1896
+ - spaceship/lib
1897
+ - supply/lib
1898
+ - trainer/lib
1863
1899
  required_ruby_version: !ruby/object:Gem::Requirement
1864
1900
  requirements:
1865
1901
  - - ">="
1866
1902
  - !ruby/object:Gem::Version
1867
- version: '2.5'
1903
+ version: '2.6'
1868
1904
  required_rubygems_version: !ruby/object:Gem::Requirement
1869
1905
  requirements:
1870
1906
  - - ">="
1871
1907
  - !ruby/object:Gem::Version
1872
1908
  version: '0'
1873
1909
  requirements: []
1874
- rubygems_version: 3.1.6
1910
+ rubygems_version: 3.2.33
1875
1911
  signing_key:
1876
1912
  specification_version: 4
1877
1913
  summary: The easiest way to automate beta deployments and releases for your iOS and
@@ -1,15 +0,0 @@
1
- require_relative 'tunes_base'
2
-
3
- module Spaceship
4
- module Tunes
5
- class UserDetail < TunesBase
6
- attr_accessor :content_provider_id
7
- attr_accessor :ds_id # used for the team selection (https://github.com/fastlane/fastlane/issues/6711)
8
-
9
- attr_mapping(
10
- 'contentProviderId' => :content_provider_id,
11
- 'sessionToken.dsId' => :ds_id
12
- )
13
- end
14
- end
15
- end