fastlane 2.159.0 → 2.160.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +78 -78
  3. data/deliver/lib/deliver/options.rb +17 -1
  4. data/deliver/lib/deliver/runner.rb +36 -8
  5. data/deliver/lib/deliver/upload_metadata.rb +31 -5
  6. data/deliver/lib/deliver/upload_price_tier.rb +7 -2
  7. data/fastlane/lib/fastlane/actions/clean_build_artifacts.rb +1 -0
  8. data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +1 -0
  9. data/fastlane/lib/fastlane/actions/download_dsyms.rb +30 -6
  10. data/fastlane/lib/fastlane/version.rb +1 -1
  11. data/fastlane/swift/Deliverfile.swift +1 -1
  12. data/fastlane/swift/DeliverfileProtocol.swift +10 -2
  13. data/fastlane/swift/Fastlane.swift +53 -20
  14. data/fastlane/swift/Gymfile.swift +1 -1
  15. data/fastlane/swift/GymfileProtocol.swift +1 -1
  16. data/fastlane/swift/Matchfile.swift +1 -1
  17. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  18. data/fastlane/swift/Precheckfile.swift +1 -1
  19. data/fastlane/swift/PrecheckfileProtocol.swift +9 -1
  20. data/fastlane/swift/Scanfile.swift +1 -1
  21. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  22. data/fastlane/swift/Screengrabfile.swift +1 -1
  23. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  24. data/fastlane/swift/Snapshotfile.swift +1 -1
  25. data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
  26. data/frameit/lib/frameit/editor.rb +1 -0
  27. data/pilot/lib/pilot/options.rb +2 -2
  28. data/precheck/lib/precheck/options.rb +16 -0
  29. data/precheck/lib/precheck/runner.rb +20 -1
  30. data/spaceship/lib/spaceship/connect_api/models/app.rb +17 -9
  31. data/spaceship/lib/spaceship/connect_api/models/app_info.rb +1 -0
  32. data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +2 -2
  33. data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +3 -5
  34. data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +3 -5
  35. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +11 -6
  36. metadata +16 -18
  37. data/spaceship/lib/spaceship/connect_api/models/.app.rb.swp +0 -0
  38. data/spaceship/lib/spaceship/connect_api/models/.app_store_version.rb.swp +0 -0
@@ -16,6 +16,7 @@ module Spaceship
16
16
  attr_accessor :available_in_new_territories
17
17
  attr_accessor :content_rights_declaration
18
18
  attr_accessor :app_store_versions
19
+ attr_accessor :prices
19
20
 
20
21
  module ContentRightsDeclaration
21
22
  USES_THIRD_PARTY_CONTENT = "USES_THIRD_PARTY_CONTENT"
@@ -34,9 +35,15 @@ module Spaceship
34
35
 
35
36
  "contentRightsDeclaration" => "content_rights_declaration",
36
37
 
37
- "appStoreVersions" => "app_store_versions"
38
+ "appStoreVersions" => "app_store_versions",
39
+ "prices" => "prices"
38
40
  })
39
41
 
42
+ ESSENTIAL_INCLUDES = [
43
+ "appStoreVersions",
44
+ "prices"
45
+ ].join(",")
46
+
40
47
  def self.type
41
48
  return "apps"
42
49
  end
@@ -45,7 +52,7 @@ module Spaceship
45
52
  # Apps
46
53
  #
47
54
 
48
- def self.all(filter: {}, includes: "appStoreVersions", limit: nil, sort: nil)
55
+ def self.all(filter: {}, includes: ESSENTIAL_INCLUDES, limit: nil, sort: nil)
49
56
  resps = Spaceship::ConnectAPI.get_apps(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
50
57
  return resps.flat_map(&:to_models)
51
58
  end
@@ -84,13 +91,13 @@ module Spaceship
84
91
  def fetch_live_app_info(includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
85
92
  states = [
86
93
  Spaceship::ConnectAPI::AppInfo::AppStoreState::READY_FOR_SALE,
94
+ Spaceship::ConnectAPI::AppInfo::AppStoreState::PENDING_APPLE_RELEASE,
87
95
  Spaceship::ConnectAPI::AppInfo::AppStoreState::PENDING_DEVELOPER_RELEASE,
88
96
  Spaceship::ConnectAPI::AppInfo::AppStoreState::PROCESSING_FOR_APP_STORE,
89
97
  Spaceship::ConnectAPI::AppInfo::AppStoreState::IN_REVIEW
90
98
  ]
91
99
 
92
- filter = { app: id }
93
- resp = Spaceship::ConnectAPI.get_app_infos(filter: filter, includes: includes)
100
+ resp = Spaceship::ConnectAPI.get_app_infos(app_id: id, includes: includes)
94
101
  return resp.to_models.select do |model|
95
102
  states.include?(model.app_store_state)
96
103
  end.first
@@ -106,8 +113,7 @@ module Spaceship
106
113
  Spaceship::ConnectAPI::AppInfo::AppStoreState::INVALID_BINARY
107
114
  ]
108
115
 
109
- filter = { app: id }
110
- resp = Spaceship::ConnectAPI.get_app_infos(filter: filter, includes: includes)
116
+ resp = Spaceship::ConnectAPI.get_app_infos(app_id: id, includes: includes)
111
117
  return resp.to_models.select do |model|
112
118
  states.include?(model.app_store_state)
113
119
  end.first
@@ -128,8 +134,6 @@ module Spaceship
128
134
  #
129
135
 
130
136
  def fetch_app_prices(filter: {}, includes: "priceTier", limit: nil, sort: nil)
131
- filter ||= {}
132
- filter[:app] = id
133
137
  resp = Spaceship::ConnectAPI.get_app_prices(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
134
138
  return resp.to_models
135
139
  end
@@ -142,6 +146,7 @@ module Spaceship
142
146
  platform ||= Spaceship::ConnectAPI::Platform::IOS
143
147
  filter = {
144
148
  appStoreState: [
149
+ Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::PENDING_APPLE_RELEASE,
145
150
  Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::PENDING_DEVELOPER_RELEASE,
146
151
  Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::IN_REVIEW,
147
152
  Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::WAITING_FOR_REVIEW
@@ -233,7 +238,10 @@ module Spaceship
233
238
  def get_pending_release_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
234
239
  platform ||= Spaceship::ConnectAPI::Platform::IOS
235
240
  filter = {
236
- appStoreState: Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::PENDING_DEVELOPER_RELEASE,
241
+ appStoreState: [
242
+ Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::PENDING_APPLE_RELEASE,
243
+ Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::PENDING_DEVELOPER_RELEASE
244
+ ].join(','),
237
245
  platform: platform
238
246
  }
239
247
  return get_app_store_versions(filter: filter, includes: includes).first
@@ -20,6 +20,7 @@ module Spaceship
20
20
  READY_FOR_SALE = "READY_FOR_SALE"
21
21
  PROCESSING_FOR_APP_STORE = "PROCESSING_FOR_APP_STORE"
22
22
  PENDING_DEVELOPER_RELEASE = "PENDING_DEVELOPER_RELEASE"
23
+ PENDING_APPLE_RELEASE = "PENDING_APPLE_RELEASE"
23
24
  IN_REVIEW = "IN_REVIEW"
24
25
  WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW"
25
26
  DEVELOPER_REJECTED = "DEVELOPER_REJECTED"
@@ -112,8 +112,8 @@ module Spaceship
112
112
  # API
113
113
  #
114
114
 
115
- def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
116
- resp = Spaceship::ConnectAPI.get_app_screenshot_sets(filter: filter, includes: includes, limit: limit, sort: sort)
115
+ def self.all(app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
116
+ resp = Spaceship::ConnectAPI.get_app_screenshot_sets(app_store_version_localization_id: app_store_version_localization_id, filter: filter, includes: includes, limit: limit, sort: sort)
117
117
  return resp.to_models
118
118
  end
119
119
 
@@ -26,6 +26,7 @@ module Spaceship
26
26
  READY_FOR_SALE = "READY_FOR_SALE"
27
27
  PROCESSING_FOR_APP_STORE = "PROCESSING_FOR_APP_STORE"
28
28
  PENDING_DEVELOPER_RELEASE = "PENDING_DEVELOPER_RELEASE"
29
+ PENDING_APPLE_RELEASE = "PENDING_APPLE_RELEASE"
29
30
  IN_REVIEW = "IN_REVIEW"
30
31
  WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW"
31
32
  DEVELOPER_REJECTED = "DEVELOPER_REJECTED"
@@ -114,11 +115,8 @@ module Spaceship
114
115
  return resp.to_models.first
115
116
  end
116
117
 
117
- # appScreenshotSets,appPreviewSets
118
- def get_app_store_version_localizations(filter: {}, includes: "appScreenshotSets", limit: nil, sort: nil)
119
- filter ||= {}
120
- filter["appStoreVersion"] = id
121
- return Spaceship::ConnectAPI::AppStoreVersionLocalization.all(filter: filter, includes: includes, limit: limit, sort: sort)
118
+ def get_app_store_version_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
119
+ return Spaceship::ConnectAPI::AppStoreVersionLocalization.all(app_store_version_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
122
120
  end
123
121
 
124
122
  #
@@ -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)
@@ -308,6 +308,11 @@ 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
+
311
316
  #
312
317
  # appPricePoints
313
318
  #
@@ -360,9 +365,9 @@ module Spaceship
360
365
  # appScreenshotSets
361
366
  #
362
367
 
363
- 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)
364
369
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
365
- tunes_request_client.get("appScreenshotSets", params)
370
+ tunes_request_client.get("appStoreVersionLocalizations/#{app_store_version_localization_id}/appScreenshotSets", params)
366
371
  end
367
372
 
368
373
  def get_app_screenshot_set(app_screenshot_set_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
@@ -453,9 +458,9 @@ module Spaceship
453
458
  # appInfos
454
459
  #
455
460
 
456
- 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)
457
462
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
458
- tunes_request_client.get("appInfos", params)
463
+ tunes_request_client.get("apps/#{app_id}/appInfos", params)
459
464
  end
460
465
 
461
466
  def patch_app_info(app_info_id: nil, attributes: {})
@@ -641,9 +646,9 @@ module Spaceship
641
646
  # appStoreVersionLocalizations
642
647
  #
643
648
 
644
- 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)
645
650
  params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
646
- tunes_request_client.get("appStoreVersionLocalizations", params)
651
+ tunes_request_client.get("appStoreVersions/#{app_store_version_id}/appStoreVersionLocalizations", params)
647
652
  end
648
653
 
649
654
  def post_app_store_version_localization(app_store_version_id: nil, attributes: {})
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.159.0
4
+ version: 2.160.0
5
5
  platform: ruby
6
6
  authors:
7
- - Jimmy Dee
8
- - Iulian Onofrei
7
+ - Jorge Revuelta H
8
+ - Helmut Januschka
9
+ - Felix Krause
9
10
  - Kohki Miki
10
- - Daniel Jankowski
11
- - Olivier Halligon
12
- - Matthew Ellis
13
- - Danielle Tomlinson
11
+ - Joshua Liebowitz
12
+ - Manu Wallner
14
13
  - Max Ott
14
+ - Jérôme Lacoste
15
+ - Jimmy Dee
15
16
  - Luka Mirosevic
17
+ - Matthew Ellis
16
18
  - Maksym Grebenets
17
19
  - Josh Holtz
18
- - Joshua Liebowitz
20
+ - Jan Piotrowski
19
21
  - Stefan Natchev
22
+ - Daniel Jankowski
23
+ - Olivier Halligon
24
+ - Danielle Tomlinson
25
+ - Fumiya Nakamura
20
26
  - Aaron Brager
21
- - Jorge Revuelta H
22
- - Jan Piotrowski
23
- - Jérôme Lacoste
24
27
  - Andrew McBurney
25
- - Fumiya Nakamura
26
- - Helmut Januschka
27
- - Manu Wallner
28
- - Felix Krause
28
+ - Iulian Onofrei
29
29
  autorequire:
30
30
  bindir: bin
31
31
  cert_chain: []
32
- date: 2020-09-10 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
@@ -1618,8 +1618,6 @@ files:
1618
1618
  - spaceship/lib/spaceship/connect_api/client.rb
1619
1619
  - spaceship/lib/spaceship/connect_api/file_uploader.rb
1620
1620
  - spaceship/lib/spaceship/connect_api/model.rb
1621
- - spaceship/lib/spaceship/connect_api/models/.app.rb.swp
1622
- - spaceship/lib/spaceship/connect_api/models/.app_store_version.rb.swp
1623
1621
  - spaceship/lib/spaceship/connect_api/models/.app_store_version_submission.rb.swp
1624
1622
  - spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
1625
1623
  - spaceship/lib/spaceship/connect_api/models/app.rb