fastlane 2.157.2 → 2.160.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +80 -80
  3. data/deliver/lib/deliver/options.rb +17 -1
  4. data/deliver/lib/deliver/runner.rb +36 -6
  5. data/deliver/lib/deliver/upload_metadata.rb +36 -6
  6. data/deliver/lib/deliver/upload_price_tier.rb +7 -2
  7. data/fastlane/lib/fastlane/actions/app_store_build_number.rb +12 -8
  8. data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +1 -0
  9. data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +1 -0
  10. data/fastlane/lib/fastlane/actions/docs/upload_to_testflight.md +1 -1
  11. data/fastlane/lib/fastlane/actions/download_dsyms.rb +116 -71
  12. data/fastlane/lib/fastlane/actions/set_changelog.rb +2 -1
  13. data/fastlane/lib/fastlane/helper/git_helper.rb +2 -0
  14. data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +6 -4
  15. data/fastlane/lib/fastlane/swift_fastlane_function.rb +1 -1
  16. data/fastlane/lib/fastlane/version.rb +1 -1
  17. data/fastlane/swift/Actions.swift +2 -1
  18. data/fastlane/swift/Appfile.swift +2 -4
  19. data/fastlane/swift/ArgumentProcessor.swift +2 -6
  20. data/fastlane/swift/ControlCommand.swift +2 -5
  21. data/fastlane/swift/Deliverfile.swift +5 -2
  22. data/fastlane/swift/DeliverfileProtocol.swift +15 -4
  23. data/fastlane/swift/Fastfile.swift +5 -1
  24. data/fastlane/swift/Fastlane.swift +2279 -2237
  25. data/fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj/project.pbxproj +5 -5
  26. data/fastlane/swift/Gymfile.swift +5 -2
  27. data/fastlane/swift/GymfileProtocol.swift +6 -3
  28. data/fastlane/swift/LaneFileProtocol.swift +36 -19
  29. data/fastlane/swift/MainProcess.swift +77 -0
  30. data/fastlane/swift/Matchfile.swift +5 -2
  31. data/fastlane/swift/MatchfileProtocol.swift +6 -3
  32. data/fastlane/swift/Plugins.swift +2 -1
  33. data/fastlane/swift/Precheckfile.swift +5 -2
  34. data/fastlane/swift/PrecheckfileProtocol.swift +18 -3
  35. data/fastlane/swift/RubyCommand.swift +2 -6
  36. data/fastlane/swift/RubyCommandable.swift +2 -6
  37. data/fastlane/swift/Runner.swift +5 -9
  38. data/fastlane/swift/RunnerArgument.swift +2 -6
  39. data/fastlane/swift/Scanfile.swift +5 -2
  40. data/fastlane/swift/ScanfileProtocol.swift +6 -3
  41. data/fastlane/swift/Screengrabfile.swift +5 -2
  42. data/fastlane/swift/ScreengrabfileProtocol.swift +6 -3
  43. data/fastlane/swift/Snapshotfile.swift +5 -2
  44. data/fastlane/swift/SnapshotfileProtocol.swift +6 -3
  45. data/fastlane/swift/SocketClient.swift +3 -7
  46. data/fastlane/swift/SocketClientDelegateProtocol.swift +2 -6
  47. data/fastlane/swift/SocketResponse.swift +2 -6
  48. data/fastlane/swift/formatting/Brewfile.lock.json +18 -10
  49. data/fastlane/swift/main.swift +4 -8
  50. data/fastlane/swift/upgrade_manifest.json +1 -1
  51. data/frameit/lib/frameit/editor.rb +1 -0
  52. data/match/lib/match/importer.rb +5 -2
  53. data/match/lib/match/spaceship_ensure.rb +5 -5
  54. data/pilot/lib/pilot/build_manager.rb +0 -3
  55. data/pilot/lib/pilot/manager.rb +1 -2
  56. data/pilot/lib/pilot/options.rb +2 -2
  57. data/precheck/lib/precheck/options.rb +25 -0
  58. data/precheck/lib/precheck/rule_processor.rb +94 -60
  59. data/precheck/lib/precheck/runner.rb +26 -5
  60. data/produce/lib/produce/itunes_connect.rb +2 -1
  61. data/sigh/lib/assets/resign.sh +9 -6
  62. data/sigh/lib/sigh/runner.rb +2 -1
  63. data/snapshot/lib/assets/SnapshotHelper.swift +17 -2
  64. data/spaceship/lib/spaceship/client.rb +1 -0
  65. data/spaceship/lib/spaceship/connect_api.rb +1 -0
  66. data/spaceship/lib/spaceship/connect_api/client.rb +34 -7
  67. data/spaceship/lib/spaceship/connect_api/file_uploader.rb +2 -0
  68. data/spaceship/lib/spaceship/connect_api/models/.app_store_version_submission.rb.swp +0 -0
  69. data/spaceship/lib/spaceship/connect_api/models/app.rb +22 -14
  70. data/spaceship/lib/spaceship/connect_api/models/app_info.rb +1 -0
  71. data/spaceship/lib/spaceship/connect_api/models/app_price_point.rb +26 -0
  72. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +2 -2
  73. data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +10 -6
  74. data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +3 -5
  75. data/spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb +21 -0
  76. data/spaceship/lib/spaceship/connect_api/spaceship.rb +3 -2
  77. data/spaceship/lib/spaceship/connect_api/testflight/testflight.rb +50 -50
  78. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +31 -6
  79. metadata +21 -18
@@ -39,8 +39,8 @@ module Spaceship
39
39
  # API
40
40
  #
41
41
 
42
- def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
43
- resp = Spaceship::ConnectAPI.get_app_store_version_localizations(filter: filter, includes: includes, limit: limit, sort: sort)
42
+ def self.all(app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
43
+ resp = Spaceship::ConnectAPI.get_app_store_version_localizations(app_store_version_id: app_store_version_id, filter: filter, includes: includes, limit: limit, sort: sort)
44
44
  return resp.to_models
45
45
  end
46
46
 
@@ -73,9 +73,7 @@ module Spaceship
73
73
  #
74
74
 
75
75
  def get_app_screenshot_sets(filter: {}, includes: "appScreenshots", limit: nil, sort: nil)
76
- filter ||= {}
77
- filter["appStoreVersionLocalization"] = id
78
- return Spaceship::ConnectAPI::AppScreenshotSet.all(filter: filter, includes: includes, limit: limit, sort: sort)
76
+ return Spaceship::ConnectAPI::AppScreenshotSet.all(app_store_version_localization_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
79
77
  end
80
78
 
81
79
  def create_app_screenshot_set(attributes: nil)
@@ -11,6 +11,9 @@ module Spaceship
11
11
 
12
12
  module PhasedReleaseState
13
13
  INACTIVE = "INACTIVE"
14
+ ACTIVE = "ACTIVE"
15
+ PAUSED = "PAUSED"
16
+ COMPLETE = "COMPLETE"
14
17
  end
15
18
 
16
19
  attr_mapping({
@@ -28,9 +31,27 @@ module Spaceship
28
31
  # API
29
32
  #
30
33
 
34
+ def pause
35
+ update(PhasedReleaseState::PAUSED)
36
+ end
37
+
38
+ def resume
39
+ update(PhasedReleaseState::ACTIVE)
40
+ end
41
+
42
+ def complete
43
+ update(PhasedReleaseState::COMPLETE)
44
+ end
45
+
31
46
  def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
32
47
  Spaceship::ConnectAPI.delete_app_store_version_phased_release(app_store_version_phased_release_id: id)
33
48
  end
49
+
50
+ private def update(state)
51
+ Spaceship::ConnectAPI.patch_app_store_version_phased_release(app_store_version_phased_release_id: id, attributes: {
52
+ phasedReleaseState: state
53
+ }).to_models.first
54
+ end
34
55
  end
35
56
  end
36
57
  end
@@ -73,12 +73,13 @@ module Spaceship
73
73
  # @param portal_team_id (String) (optional): The Spaceship::Portal team id
74
74
  # @param tunes_team_id (String) (optional): The Spaceship::Tunes team id
75
75
  # @param team_name (String) (optional): The team name
76
+ # @param skip_select_team (Boolean) (optional): Whether to skip automatic selection or prompt for team
76
77
  #
77
78
  # @raise InvalidUserCredentialsError: raised if authentication failed
78
79
  #
79
80
  # @return (Spaceship::ConnectAPI::Client) The client the login method was called for
80
- def login(user = nil, password = nil, use_portal: true, use_tunes: true, portal_team_id: nil, tunes_team_id: nil, team_name: nil)
81
- @client = ConnectAPI::Client.login(user, password, use_portal: use_portal, use_tunes: use_tunes, portal_team_id: portal_team_id, tunes_team_id: tunes_team_id, team_name: team_name)
81
+ def login(user = nil, password = nil, use_portal: true, use_tunes: true, portal_team_id: nil, tunes_team_id: nil, team_name: nil, skip_select_team: false)
82
+ @client = ConnectAPI::Client.login(user, password, use_portal: use_portal, use_tunes: use_tunes, portal_team_id: portal_team_id, tunes_team_id: tunes_team_id, team_name: team_name, skip_select_team: skip_select_team)
82
83
  end
83
84
 
84
85
  # Open up the team selection for the user (if necessary).
@@ -18,13 +18,13 @@ module Spaceship
18
18
  #
19
19
 
20
20
  def get_apps(filter: {}, includes: nil, limit: nil, sort: nil)
21
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
22
- @test_flight_request_client.get("apps", params)
21
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
22
+ test_flight_request_client.get("apps", params)
23
23
  end
24
24
 
25
25
  def get_app(app_id: nil, includes: nil)
26
- params = @test_flight_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil)
27
- @test_flight_request_client.get("apps/#{app_id}", params)
26
+ params = test_flight_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil)
27
+ test_flight_request_client.get("apps/#{app_id}", params)
28
28
  end
29
29
 
30
30
  #
@@ -32,8 +32,8 @@ module Spaceship
32
32
  #
33
33
 
34
34
  def get_beta_app_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
35
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
36
- @test_flight_request_client.get("betaAppLocalizations", params)
35
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
36
+ test_flight_request_client.get("betaAppLocalizations", params)
37
37
  end
38
38
 
39
39
  def post_beta_app_localizations(app_id: nil, attributes: {})
@@ -52,7 +52,7 @@ module Spaceship
52
52
  }
53
53
  }
54
54
 
55
- @test_flight_request_client.post("betaAppLocalizations", body)
55
+ test_flight_request_client.post("betaAppLocalizations", body)
56
56
  end
57
57
 
58
58
  def patch_beta_app_localizations(localization_id: nil, attributes: {})
@@ -64,7 +64,7 @@ module Spaceship
64
64
  }
65
65
  }
66
66
 
67
- @test_flight_request_client.patch("betaAppLocalizations/#{localization_id}", body)
67
+ test_flight_request_client.patch("betaAppLocalizations/#{localization_id}", body)
68
68
  end
69
69
 
70
70
  #
@@ -72,8 +72,8 @@ module Spaceship
72
72
  #
73
73
 
74
74
  def get_beta_app_review_detail(filter: {}, includes: nil, limit: nil, sort: nil)
75
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
76
- @test_flight_request_client.get("betaAppReviewDetails", params)
75
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
76
+ test_flight_request_client.get("betaAppReviewDetails", params)
77
77
  end
78
78
 
79
79
  def patch_beta_app_review_detail(app_id: nil, attributes: {})
@@ -85,7 +85,7 @@ module Spaceship
85
85
  }
86
86
  }
87
87
 
88
- @test_flight_request_client.patch("betaAppReviewDetails/#{app_id}", body)
88
+ test_flight_request_client.patch("betaAppReviewDetails/#{app_id}", body)
89
89
  end
90
90
 
91
91
  #
@@ -93,8 +93,8 @@ module Spaceship
93
93
  #
94
94
 
95
95
  def get_beta_app_review_submissions(filter: {}, includes: nil, limit: nil, sort: nil, cursor: nil)
96
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort, cursor: cursor)
97
- @test_flight_request_client.get("betaAppReviewSubmissions", params)
96
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort, cursor: cursor)
97
+ test_flight_request_client.get("betaAppReviewSubmissions", params)
98
98
  end
99
99
 
100
100
  def post_beta_app_review_submissions(build_id: nil)
@@ -112,12 +112,12 @@ module Spaceship
112
112
  }
113
113
  }
114
114
 
115
- @test_flight_request_client.post("betaAppReviewSubmissions", body)
115
+ test_flight_request_client.post("betaAppReviewSubmissions", body)
116
116
  end
117
117
 
118
118
  def delete_beta_app_review_submission(beta_app_review_submission_id: nil)
119
- params = @test_flight_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil, cursor: nil)
120
- @test_flight_request_client.delete("betaAppReviewSubmissions/#{beta_app_review_submission_id}", params)
119
+ params = test_flight_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil, cursor: nil)
120
+ test_flight_request_client.delete("betaAppReviewSubmissions/#{beta_app_review_submission_id}", params)
121
121
  end
122
122
 
123
123
  #
@@ -125,8 +125,8 @@ module Spaceship
125
125
  #
126
126
 
127
127
  def get_beta_build_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
128
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
129
- @test_flight_request_client.get("betaBuildLocalizations", params)
128
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
129
+ test_flight_request_client.get("betaBuildLocalizations", params)
130
130
  end
131
131
 
132
132
  def post_beta_build_localizations(build_id: nil, attributes: {})
@@ -145,7 +145,7 @@ module Spaceship
145
145
  }
146
146
  }
147
147
 
148
- @test_flight_request_client.post("betaBuildLocalizations", body)
148
+ test_flight_request_client.post("betaBuildLocalizations", body)
149
149
  end
150
150
 
151
151
  def patch_beta_build_localizations(localization_id: nil, feedbackEmail: nil, attributes: {})
@@ -157,7 +157,7 @@ module Spaceship
157
157
  }
158
158
  }
159
159
 
160
- @test_flight_request_client.patch("betaBuildLocalizations/#{localization_id}", body)
160
+ test_flight_request_client.patch("betaBuildLocalizations/#{localization_id}", body)
161
161
  end
162
162
 
163
163
  #
@@ -165,8 +165,8 @@ module Spaceship
165
165
  #
166
166
 
167
167
  def get_beta_build_metrics(filter: {}, includes: nil, limit: nil, sort: nil)
168
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
169
- @test_flight_request_client.get("betaBuildMetrics", params)
168
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
169
+ test_flight_request_client.get("betaBuildMetrics", params)
170
170
  end
171
171
 
172
172
  #
@@ -174,8 +174,8 @@ module Spaceship
174
174
  #
175
175
 
176
176
  def get_beta_groups(filter: {}, includes: nil, limit: nil, sort: nil)
177
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
178
- @test_flight_request_client.get("betaGroups", params)
177
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
178
+ test_flight_request_client.get("betaGroups", params)
179
179
  end
180
180
 
181
181
  def add_beta_groups_to_build(build_id: nil, beta_group_ids: [])
@@ -188,7 +188,7 @@ module Spaceship
188
188
  end
189
189
  }
190
190
 
191
- @test_flight_request_client.post("builds/#{build_id}/relationships/betaGroups", body)
191
+ test_flight_request_client.post("builds/#{build_id}/relationships/betaGroups", body)
192
192
  end
193
193
 
194
194
  def create_beta_group(app_id: nil, group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false)
@@ -211,7 +211,7 @@ module Spaceship
211
211
  type: "betaGroups"
212
212
  }
213
213
  }
214
- @test_flight_request_client.post("betaGroups", body)
214
+ test_flight_request_client.post("betaGroups", body)
215
215
  end
216
216
 
217
217
  #
@@ -219,8 +219,8 @@ module Spaceship
219
219
  #
220
220
 
221
221
  def get_beta_testers(filter: {}, includes: nil, limit: nil, sort: nil)
222
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
223
- @test_flight_request_client.get("betaTesters", params)
222
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
223
+ test_flight_request_client.get("betaTesters", params)
224
224
  end
225
225
 
226
226
  # beta_testers - [{email: "", firstName: "", lastName: ""}]
@@ -248,7 +248,7 @@ module Spaceship
248
248
  }
249
249
  }
250
250
 
251
- @test_flight_request_client.post("bulkBetaTesterAssignments", body)
251
+ test_flight_request_client.post("bulkBetaTesterAssignments", body)
252
252
  end
253
253
 
254
254
  def delete_beta_tester_from_apps(beta_tester_id: nil, app_ids: [])
@@ -261,7 +261,7 @@ module Spaceship
261
261
  end
262
262
  }
263
263
 
264
- @test_flight_request_client.delete("betaTesters/#{beta_tester_id}/relationships/apps", nil, body)
264
+ test_flight_request_client.delete("betaTesters/#{beta_tester_id}/relationships/apps", nil, body)
265
265
  end
266
266
 
267
267
  def delete_beta_tester_from_beta_groups(beta_tester_id: nil, beta_group_ids: [])
@@ -274,7 +274,7 @@ module Spaceship
274
274
  end
275
275
  }
276
276
 
277
- @test_flight_request_client.delete("betaTesters/#{beta_tester_id}/relationships/betaGroups", nil, body)
277
+ test_flight_request_client.delete("betaTesters/#{beta_tester_id}/relationships/betaGroups", nil, body)
278
278
  end
279
279
 
280
280
  #
@@ -282,8 +282,8 @@ module Spaceship
282
282
  #
283
283
 
284
284
  def get_beta_tester_metrics(filter: {}, includes: nil, limit: nil, sort: nil)
285
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
286
- @test_flight_request_client.get("betaTesterMetrics", params)
285
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
286
+ test_flight_request_client.get("betaTesterMetrics", params)
287
287
  end
288
288
 
289
289
  #
@@ -291,17 +291,17 @@ module Spaceship
291
291
  #
292
292
 
293
293
  def get_builds(filter: {}, includes: "buildBetaDetail,betaBuildMetrics", limit: 10, sort: "uploadedDate", cursor: nil)
294
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort, cursor: cursor)
295
- @test_flight_request_client.get("builds", params)
294
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort, cursor: cursor)
295
+ test_flight_request_client.get("builds", params)
296
296
  end
297
297
 
298
298
  def get_build(build_id: nil, app_store_version_id: nil, includes: nil)
299
299
  if build_id
300
- params = @test_flight_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil, cursor: nil)
301
- return @test_flight_request_client.get("builds/#{build_id}", params)
300
+ params = test_flight_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil, cursor: nil)
301
+ return test_flight_request_client.get("builds/#{build_id}", params)
302
302
  elsif app_store_version_id
303
- params = @test_flight_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil, cursor: nil)
304
- return @test_flight_request_client.get("appStoreVersions/#{app_store_version_id}/build", params)
303
+ params = test_flight_request_client.build_params(filter: nil, includes: includes, limit: nil, sort: nil, cursor: nil)
304
+ return test_flight_request_client.get("appStoreVersions/#{app_store_version_id}/build", params)
305
305
  else
306
306
  return nil
307
307
  end
@@ -316,7 +316,7 @@ module Spaceship
316
316
  }
317
317
  }
318
318
 
319
- @test_flight_request_client.patch("builds/#{build_id}", body)
319
+ test_flight_request_client.patch("builds/#{build_id}", body)
320
320
  end
321
321
 
322
322
  #
@@ -324,8 +324,8 @@ module Spaceship
324
324
  #
325
325
 
326
326
  def get_build_beta_details(filter: {}, includes: nil, limit: nil, sort: nil)
327
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
328
- @test_flight_request_client.get("buildBetaDetails", params)
327
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
328
+ test_flight_request_client.get("buildBetaDetails", params)
329
329
  end
330
330
 
331
331
  def patch_build_beta_details(build_beta_details_id: nil, attributes: {})
@@ -337,7 +337,7 @@ module Spaceship
337
337
  }
338
338
  }
339
339
 
340
- @test_flight_request_client.patch("buildBetaDetails/#{build_beta_details_id}", body)
340
+ test_flight_request_client.patch("buildBetaDetails/#{build_beta_details_id}", body)
341
341
  end
342
342
 
343
343
  #
@@ -345,8 +345,8 @@ module Spaceship
345
345
  #
346
346
 
347
347
  def get_build_deliveries(filter: {}, includes: nil, limit: nil, sort: nil)
348
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
349
- @test_flight_request_client.get("buildDeliveries", params)
348
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
349
+ test_flight_request_client.get("buildDeliveries", params)
350
350
  end
351
351
 
352
352
  #
@@ -354,8 +354,8 @@ module Spaceship
354
354
  #
355
355
 
356
356
  def get_pre_release_versions(filter: {}, includes: nil, limit: nil, sort: nil)
357
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
358
- @test_flight_request_client.get("preReleaseVersions", params)
357
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
358
+ test_flight_request_client.get("preReleaseVersions", params)
359
359
  end
360
360
 
361
361
  #
@@ -363,14 +363,14 @@ module Spaceship
363
363
  #
364
364
 
365
365
  def get_beta_feedback(filter: {}, includes: nil, limit: nil, sort: nil)
366
- params = @test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
367
- @test_flight_request_client.get("betaFeedbacks", params)
366
+ params = test_flight_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
367
+ test_flight_request_client.get("betaFeedbacks", params)
368
368
  end
369
369
 
370
370
  def delete_beta_feedback(feedback_id: nil)
371
371
  raise "Feedback id is nil" if feedback_id.nil?
372
372
 
373
- @test_flight_request_client.delete("betaFeedbacks/#{feedback_id}")
373
+ test_flight_request_client.delete("betaFeedbacks/#{feedback_id}")
374
374
  end
375
375
  end
376
376
  end
@@ -308,6 +308,19 @@ module Spaceship
308
308
  tunes_request_client.get("appPrices", params)
309
309
  end
310
310
 
311
+ def get_app_price(app_price_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
312
+ params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
313
+ tunes_request_client.get("appPrices/#{app_price_id}", params)
314
+ end
315
+
316
+ #
317
+ # appPricePoints
318
+ #
319
+ def get_app_price_points(filter: {}, includes: nil, limit: nil, sort: nil)
320
+ params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
321
+ tunes_request_client.get("appPricePoints", params)
322
+ end
323
+
311
324
  #
312
325
  # appReviewAttachments
313
326
  #
@@ -352,9 +365,9 @@ module Spaceship
352
365
  # appScreenshotSets
353
366
  #
354
367
 
355
- def get_app_screenshot_sets(filter: {}, includes: nil, limit: nil, sort: nil)
368
+ def get_app_screenshot_sets(app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
356
369
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
357
- tunes_request_client.get("appScreenshotSets", params)
370
+ tunes_request_client.get("appStoreVersionLocalizations/#{app_store_version_localization_id}/appScreenshotSets", params)
358
371
  end
359
372
 
360
373
  def get_app_screenshot_set(app_screenshot_set_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
@@ -445,9 +458,9 @@ module Spaceship
445
458
  # appInfos
446
459
  #
447
460
 
448
- def get_app_infos(filter: {}, includes: nil, limit: nil, sort: nil)
461
+ def get_app_infos(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
449
462
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
450
- tunes_request_client.get("appInfos", params)
463
+ tunes_request_client.get("apps/#{app_id}/appInfos", params)
451
464
  end
452
465
 
453
466
  def patch_app_info(app_info_id: nil, attributes: {})
@@ -633,9 +646,9 @@ module Spaceship
633
646
  # appStoreVersionLocalizations
634
647
  #
635
648
 
636
- def get_app_store_version_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
649
+ def get_app_store_version_localizations(app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
637
650
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
638
- tunes_request_client.get("appStoreVersionLocalizations", params)
651
+ tunes_request_client.get("appStoreVersions/#{app_store_version_id}/appStoreVersionLocalizations", params)
639
652
  end
640
653
 
641
654
  def post_app_store_version_localization(app_store_version_id: nil, attributes: {})
@@ -702,6 +715,18 @@ module Spaceship
702
715
  tunes_request_client.post("appStoreVersionPhasedReleases", body)
703
716
  end
704
717
 
718
+ def patch_app_store_version_phased_release(app_store_version_phased_release_id: nil, attributes: {})
719
+ body = {
720
+ data: {
721
+ type: "appStoreVersionPhasedReleases",
722
+ attributes: attributes,
723
+ id: app_store_version_phased_release_id
724
+ }
725
+ }
726
+
727
+ tunes_request_client.patch("appStoreVersionPhasedReleases/#{app_store_version_phased_release_id}", body)
728
+ end
729
+
705
730
  def delete_app_store_version_phased_release(app_store_version_phased_release_id: nil)
706
731
  params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
707
732
  tunes_request_client.delete("appStoreVersionPhasedReleases/#{app_store_version_phased_release_id}", params)
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.157.2
4
+ version: 2.160.0
5
5
  platform: ruby
6
6
  authors:
7
- - Danielle Tomlinson
8
- - Daniel Jankowski
9
- - Maksym Grebenets
10
- - Jimmy Dee
11
- - Matthew Ellis
12
- - Andrew McBurney
7
+ - Jorge Revuelta H
13
8
  - Helmut Januschka
14
- - Aaron Brager
15
9
  - Felix Krause
10
+ - Kohki Miki
11
+ - Joshua Liebowitz
16
12
  - Manu Wallner
17
- - Iulian Onofrei
18
- - Stefan Natchev
19
- - Luka Mirosevic
20
- - Jérôme Lacoste
21
13
  - Max Ott
14
+ - Jérôme Lacoste
15
+ - Jimmy Dee
16
+ - Luka Mirosevic
17
+ - Matthew Ellis
18
+ - Maksym Grebenets
19
+ - Josh Holtz
20
+ - Jan Piotrowski
21
+ - Stefan Natchev
22
+ - Daniel Jankowski
22
23
  - Olivier Halligon
23
- - Kohki Miki
24
+ - Danielle Tomlinson
24
25
  - Fumiya Nakamura
25
- - Jan Piotrowski
26
- - Jorge Revuelta H
27
- - Josh Holtz
28
- - Joshua Liebowitz
26
+ - Aaron Brager
27
+ - Andrew McBurney
28
+ - Iulian Onofrei
29
29
  autorequire:
30
30
  bindir: bin
31
31
  cert_chain: []
32
- date: 2020-08-28 00:00:00.000000000 Z
32
+ date: 2020-09-16 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: slack-notifier
@@ -1327,6 +1327,7 @@ files:
1327
1327
  - fastlane/swift/Gymfile.swift
1328
1328
  - fastlane/swift/GymfileProtocol.swift
1329
1329
  - fastlane/swift/LaneFileProtocol.swift
1330
+ - fastlane/swift/MainProcess.swift
1330
1331
  - fastlane/swift/Matchfile.swift
1331
1332
  - fastlane/swift/MatchfileProtocol.swift
1332
1333
  - fastlane/swift/Plugins.swift
@@ -1617,6 +1618,7 @@ files:
1617
1618
  - spaceship/lib/spaceship/connect_api/client.rb
1618
1619
  - spaceship/lib/spaceship/connect_api/file_uploader.rb
1619
1620
  - spaceship/lib/spaceship/connect_api/model.rb
1621
+ - spaceship/lib/spaceship/connect_api/models/.app_store_version_submission.rb.swp
1620
1622
  - spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
1621
1623
  - spaceship/lib/spaceship/connect_api/models/app.rb
1622
1624
  - spaceship/lib/spaceship/connect_api/models/app_category.rb
@@ -1625,6 +1627,7 @@ files:
1625
1627
  - spaceship/lib/spaceship/connect_api/models/app_preview.rb
1626
1628
  - spaceship/lib/spaceship/connect_api/models/app_preview_set.rb
1627
1629
  - spaceship/lib/spaceship/connect_api/models/app_price.rb
1630
+ - spaceship/lib/spaceship/connect_api/models/app_price_point.rb
1628
1631
  - spaceship/lib/spaceship/connect_api/models/app_price_tier.rb
1629
1632
  - spaceship/lib/spaceship/connect_api/models/app_screenshot.rb
1630
1633
  - spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb