fastlane 2.167.0 → 2.168.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +68 -68
- data/cert/lib/cert/options.rb +1 -1
- data/fastlane/lib/fastlane/actions/slather.rb +2 -2
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +3 -3
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane/swift/Deliverfile.swift +1 -1
- data/fastlane/swift/DeliverfileProtocol.swift +1 -1
- data/fastlane/swift/Fastlane.swift +10 -10
- 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 +3 -3
- data/fastlane/swift/Precheckfile.swift +1 -1
- data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +1 -1
- data/fastlane/swift/Screengrabfile.swift +1 -1
- data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
- data/fastlane/swift/Snapshotfile.swift +1 -1
- data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
- data/fastlane_core/lib/fastlane_core/helper.rb +1 -1
- data/match/lib/match/module.rb +1 -1
- data/match/lib/match/options.rb +1 -1
- data/scan/lib/scan/runner.rb +2 -2
- data/spaceship/lib/spaceship/connect_api/models/.app.rb.swp +0 -0
- data/spaceship/lib/spaceship/connect_api/models/.app_screenshot.rb.swp +0 -0
- data/spaceship/lib/spaceship/connect_api/models/.build.rb.swp +0 -0
- data/spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/app.rb +76 -51
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +15 -10
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/app_preview.rb +15 -11
- data/spaceship/lib/spaceship/connect_api/models/app_preview_set.rb +13 -9
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot.rb +9 -7
- data/spaceship/lib/spaceship/connect_api/models/app_screenshot_set.rb +15 -11
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_attachment.rb +7 -5
- data/spaceship/lib/spaceship/connect_api/models/app_store_review_detail.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/app_store_version.rb +54 -36
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_localization.rb +21 -14
- data/spaceship/lib/spaceship/connect_api/models/app_store_version_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_app_review_submission.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_feedback.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/beta_group.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/beta_tester.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/build.rb +24 -16
- data/spaceship/lib/spaceship/connect_api/models/build_delivery.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/bundle_id.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/models/bundle_id_capability.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/certificate.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/device.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/idfa_declaration.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/profile.rb +12 -8
- data/spaceship/lib/spaceship/connect_api/models/reset_ratings_request.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/sandbox_tester.rb +9 -6
- data/spaceship/lib/spaceship/connect_api/models/territory.rb +3 -2
- data/spaceship/lib/spaceship/connect_api/models/user.rb +6 -4
- data/spaceship/lib/spaceship/connect_api/models/user_invitation.rb +9 -6
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +2 -2
- data/supply/lib/supply/options.rb +1 -1
- data/supply/lib/supply/uploader.rb +3 -2
- metadata +21 -18
@@ -45,8 +45,9 @@ module Spaceship
|
|
45
45
|
# API
|
46
46
|
#
|
47
47
|
|
48
|
-
def self.get(app_preview_id: nil)
|
49
|
-
Spaceship::ConnectAPI
|
48
|
+
def self.get(client: nil, app_preview_id: nil)
|
49
|
+
client ||= Spaceship::ConnectAPI
|
50
|
+
client.get_app_preview(app_preview_id: app_preview_id).first
|
50
51
|
end
|
51
52
|
|
52
53
|
# Creates an AppPreview in an AppPreviewSet
|
@@ -54,7 +55,8 @@ module Spaceship
|
|
54
55
|
# @param app_preview_set_id The AppPreviewSet id
|
55
56
|
# @param path The path of the file
|
56
57
|
# @param frame_time_code The time code for the preview still frame (ex: "00:00:07:01")
|
57
|
-
def self.create(app_preview_set_id: nil, path: nil, wait_for_processing: true, frame_time_code: nil)
|
58
|
+
def self.create(client: nil, app_preview_set_id: nil, path: nil, wait_for_processing: true, frame_time_code: nil)
|
59
|
+
client ||= Spaceship::ConnectAPI
|
58
60
|
require 'faraday'
|
59
61
|
|
60
62
|
filename = File.basename(path)
|
@@ -67,7 +69,7 @@ module Spaceship
|
|
67
69
|
}
|
68
70
|
|
69
71
|
# Create placeholder
|
70
|
-
preview =
|
72
|
+
preview = client.post_app_preview(
|
71
73
|
app_preview_set_id: app_preview_set_id,
|
72
74
|
attributes: post_attributes
|
73
75
|
).first
|
@@ -83,14 +85,14 @@ module Spaceship
|
|
83
85
|
}
|
84
86
|
|
85
87
|
begin
|
86
|
-
preview =
|
88
|
+
preview = client.patch_app_preview(
|
87
89
|
app_preview_id: preview.id,
|
88
90
|
attributes: patch_attributes
|
89
91
|
).first
|
90
92
|
rescue => error
|
91
93
|
puts("Failed to patch app preview. Update may have gone through so verifying") if Spaceship::Globals.verbose?
|
92
94
|
|
93
|
-
preview = Spaceship::ConnectAPI::AppPreview.get(app_preview_id: preview.id)
|
95
|
+
preview = Spaceship::ConnectAPI::AppPreview.get(client: client, app_preview_id: preview.id)
|
94
96
|
raise error unless preview.complete?
|
95
97
|
end
|
96
98
|
|
@@ -111,20 +113,22 @@ module Spaceship
|
|
111
113
|
puts("Waiting #{sleep_time} seconds before checking status of processing...") if Spaceship::Globals.verbose?
|
112
114
|
sleep(sleep_time)
|
113
115
|
|
114
|
-
preview = Spaceship::ConnectAPI::AppPreview.get(app_preview_id: preview.id)
|
116
|
+
preview = Spaceship::ConnectAPI::AppPreview.get(client: client, app_preview_id: preview.id)
|
115
117
|
end
|
116
118
|
end
|
117
119
|
|
118
120
|
preview
|
119
121
|
end
|
120
122
|
|
121
|
-
def update(attributes: nil)
|
123
|
+
def update(client: nil, attributes: nil)
|
124
|
+
client ||= Spaceship::ConnectAPI
|
122
125
|
attributes = reverse_attr_mapping(attributes)
|
123
|
-
|
126
|
+
client.patch_app_preview(app_preview_id: id, attributes: attributes).first
|
124
127
|
end
|
125
128
|
|
126
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
127
|
-
Spaceship::ConnectAPI
|
129
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
130
|
+
client ||= Spaceship::ConnectAPI
|
131
|
+
client.delete_app_preview(app_preview_id: id)
|
128
132
|
end
|
129
133
|
end
|
130
134
|
end
|
@@ -58,18 +58,21 @@ module Spaceship
|
|
58
58
|
# API
|
59
59
|
#
|
60
60
|
|
61
|
-
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
|
62
|
-
|
61
|
+
def self.all(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
62
|
+
client ||= Spaceship::ConnectAPI
|
63
|
+
resp = client.get_app_preview_sets(filter: filter, includes: includes, limit: limit, sort: sort)
|
63
64
|
return resp.to_models
|
64
65
|
end
|
65
66
|
|
66
|
-
def self.get(app_preview_set_id: nil, includes: "appPreviews")
|
67
|
-
|
67
|
+
def self.get(client: nil, app_preview_set_id: nil, includes: "appPreviews")
|
68
|
+
client ||= Spaceship::ConnectAPI
|
69
|
+
return client.get_app_preview_set(app_preview_set_id: app_preview_set_id, filter: nil, includes: includes, limit: nil, sort: nil).first
|
68
70
|
end
|
69
71
|
|
70
|
-
def upload_preview(path: nil, wait_for_processing: true, position: nil, frame_time_code: nil)
|
72
|
+
def upload_preview(client: nil, path: nil, wait_for_processing: true, position: nil, frame_time_code: nil)
|
73
|
+
client ||= Spaceship::ConnectAPI
|
71
74
|
# Upload preview
|
72
|
-
preview = Spaceship::ConnectAPI::AppPreview.create(app_preview_set_id: id, path: path, wait_for_processing: wait_for_processing, frame_time_code: frame_time_code)
|
75
|
+
preview = Spaceship::ConnectAPI::AppPreview.create(client: client, app_preview_set_id: id, path: path, wait_for_processing: wait_for_processing, frame_time_code: frame_time_code)
|
73
76
|
|
74
77
|
# Reposition (if specified)
|
75
78
|
unless position.nil?
|
@@ -90,10 +93,11 @@ module Spaceship
|
|
90
93
|
return preview
|
91
94
|
end
|
92
95
|
|
93
|
-
def reorder_previews(app_preview_ids: nil)
|
94
|
-
Spaceship::ConnectAPI
|
96
|
+
def reorder_previews(client: nil, app_preview_ids: nil)
|
97
|
+
client ||= Spaceship::ConnectAPI
|
98
|
+
client.patch_app_preview_set_previews(app_preview_set_id: id, app_preview_ids: app_preview_ids)
|
95
99
|
|
96
|
-
return
|
100
|
+
return client.get_app_preview_set(app_preview_set_id: id, includes: "appPreviews").first
|
97
101
|
end
|
98
102
|
end
|
99
103
|
end
|
@@ -79,7 +79,8 @@ module Spaceship
|
|
79
79
|
#
|
80
80
|
#
|
81
81
|
|
82
|
-
def self.create(app_screenshot_set_id: nil, path: nil, wait_for_processing: true)
|
82
|
+
def self.create(client: nil, app_screenshot_set_id: nil, path: nil, wait_for_processing: true)
|
83
|
+
client ||= Spaceship::ConnectAPI
|
83
84
|
require 'faraday'
|
84
85
|
|
85
86
|
filename = File.basename(path)
|
@@ -93,7 +94,7 @@ module Spaceship
|
|
93
94
|
|
94
95
|
# Create placeholder to upload screenshot
|
95
96
|
begin
|
96
|
-
screenshot =
|
97
|
+
screenshot = client.post_app_screenshot(
|
97
98
|
app_screenshot_set_id: app_screenshot_set_id,
|
98
99
|
attributes: post_attributes
|
99
100
|
).first
|
@@ -117,7 +118,7 @@ module Spaceship
|
|
117
118
|
sleep(30)
|
118
119
|
|
119
120
|
screenshots = Spaceship::ConnectAPI::AppScreenshotSet
|
120
|
-
.get(app_screenshot_set_id: app_screenshot_set_id)
|
121
|
+
.get(client: client, app_screenshot_set_id: app_screenshot_set_id)
|
121
122
|
.app_screenshots
|
122
123
|
|
123
124
|
screenshot = screenshots.find do |s|
|
@@ -152,7 +153,7 @@ module Spaceship
|
|
152
153
|
rescue => error
|
153
154
|
puts("Failed to patch app screenshot. Update may have gone through so verifying") if Spaceship::Globals.verbose?
|
154
155
|
|
155
|
-
screenshot =
|
156
|
+
screenshot = client.get_app_screenshot(app_screenshot_id: screenshot.id).first
|
156
157
|
raise error unless screenshot.complete?
|
157
158
|
end
|
158
159
|
|
@@ -172,15 +173,16 @@ module Spaceship
|
|
172
173
|
puts("Waiting #{sleep_time} seconds before checking status of processing...") if Spaceship::Globals.verbose?
|
173
174
|
sleep(sleep_time)
|
174
175
|
|
175
|
-
screenshot =
|
176
|
+
screenshot = client.get_app_screenshot(app_screenshot_id: screenshot.id).first
|
176
177
|
end
|
177
178
|
end
|
178
179
|
|
179
180
|
return screenshot
|
180
181
|
end
|
181
182
|
|
182
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
183
|
-
Spaceship::ConnectAPI
|
183
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
184
|
+
client ||= Spaceship::ConnectAPI
|
185
|
+
client.delete_app_screenshot(app_screenshot_id: id)
|
184
186
|
end
|
185
187
|
end
|
186
188
|
end
|
@@ -112,22 +112,25 @@ module Spaceship
|
|
112
112
|
# API
|
113
113
|
#
|
114
114
|
|
115
|
-
def self.all(app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
116
|
-
|
115
|
+
def self.all(client: nil, app_store_version_localization_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
116
|
+
client ||= Spaceship::ConnectAPI
|
117
|
+
resp = client.get_app_screenshot_sets(app_store_version_localization_id: app_store_version_localization_id, filter: filter, includes: includes, limit: limit, sort: sort)
|
117
118
|
return resp.to_models
|
118
119
|
end
|
119
120
|
|
120
|
-
def self.get(app_screenshot_set_id: nil, includes: "appScreenshots")
|
121
|
-
|
121
|
+
def self.get(client: nil, app_screenshot_set_id: nil, includes: "appScreenshots")
|
122
|
+
client ||= Spaceship::ConnectAPI
|
123
|
+
return client.get_app_screenshot_set(app_screenshot_set_id: app_screenshot_set_id, filter: nil, includes: includes, limit: nil, sort: nil).first
|
122
124
|
end
|
123
125
|
|
124
|
-
def upload_screenshot(path: nil, wait_for_processing: true, position: nil)
|
125
|
-
|
126
|
+
def upload_screenshot(client: nil, path: nil, wait_for_processing: true, position: nil)
|
127
|
+
client ||= Spaceship::ConnectAPI
|
128
|
+
screenshot = Spaceship::ConnectAPI::AppScreenshot.create(client: client, app_screenshot_set_id: id, path: path, wait_for_processing: wait_for_processing)
|
126
129
|
|
127
130
|
# Reposition (if specified)
|
128
131
|
unless position.nil?
|
129
132
|
# Get all app preview ids
|
130
|
-
set = AppScreenshotSet.get(app_screenshot_set_id: id)
|
133
|
+
set = AppScreenshotSet.get(client: client, app_screenshot_set_id: id)
|
131
134
|
app_screenshot_ids = set.app_screenshots.map(&:id)
|
132
135
|
|
133
136
|
# Remove new uploaded screenshot
|
@@ -137,16 +140,17 @@ module Spaceship
|
|
137
140
|
app_screenshot_ids = app_screenshot_ids.insert(position, screenshot.id).compact
|
138
141
|
|
139
142
|
# Reorder screenshots
|
140
|
-
reorder_screenshots(app_screenshot_ids: app_screenshot_ids)
|
143
|
+
reorder_screenshots(client: client, app_screenshot_ids: app_screenshot_ids)
|
141
144
|
end
|
142
145
|
|
143
146
|
return screenshot
|
144
147
|
end
|
145
148
|
|
146
|
-
def reorder_screenshots(app_screenshot_ids: nil)
|
147
|
-
Spaceship::ConnectAPI
|
149
|
+
def reorder_screenshots(client: nil, app_screenshot_ids: nil)
|
150
|
+
client ||= Spaceship::ConnectAPI
|
151
|
+
client.patch_app_screenshot_set_screenshots(app_screenshot_set_id: id, app_screenshot_ids: app_screenshot_ids)
|
148
152
|
|
149
|
-
return
|
153
|
+
return client.get_app_screenshot_set(app_screenshot_set_id: id, includes: "appScreenshots").first
|
150
154
|
end
|
151
155
|
end
|
152
156
|
end
|
@@ -29,7 +29,8 @@ module Spaceship
|
|
29
29
|
# API
|
30
30
|
#
|
31
31
|
|
32
|
-
def self.create(app_store_review_detail_id: nil, path: nil)
|
32
|
+
def self.create(client: nil, app_store_review_detail_id: nil, path: nil)
|
33
|
+
client ||= Spaceship::ConnectAPI
|
33
34
|
require 'faraday'
|
34
35
|
|
35
36
|
filename = File.basename(path)
|
@@ -42,7 +43,7 @@ module Spaceship
|
|
42
43
|
}
|
43
44
|
|
44
45
|
# Create placeholder
|
45
|
-
attachment =
|
46
|
+
attachment = client.post_app_store_review_attachment(
|
46
47
|
app_store_review_detail_id: app_store_review_detail_id,
|
47
48
|
attributes: post_attributes
|
48
49
|
).to_models.first
|
@@ -57,14 +58,15 @@ module Spaceship
|
|
57
58
|
sourceFileChecksum: Digest::MD5.hexdigest(bytes)
|
58
59
|
}
|
59
60
|
|
60
|
-
|
61
|
+
client.patch_app_store_review_attachment(
|
61
62
|
app_store_review_attachment_id: attachment.id,
|
62
63
|
attributes: patch_attributes
|
63
64
|
).to_models.first
|
64
65
|
end
|
65
66
|
|
66
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
67
|
-
Spaceship::ConnectAPI
|
67
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
68
|
+
client ||= Spaceship::ConnectAPI
|
69
|
+
client.delete_app_store_review_attachment(app_store_review_attachment_id: id)
|
68
70
|
end
|
69
71
|
end
|
70
72
|
end
|
@@ -38,13 +38,15 @@ module Spaceship
|
|
38
38
|
# API
|
39
39
|
#
|
40
40
|
|
41
|
-
def update(attributes: nil)
|
41
|
+
def update(client: nil, attributes: nil)
|
42
|
+
client ||= Spaceship::ConnectAPI
|
42
43
|
attributes = reverse_attr_mapping(attributes)
|
43
|
-
return
|
44
|
+
return client.patch_app_store_review_detail(app_store_review_detail_id: id, attributes: attributes)
|
44
45
|
end
|
45
46
|
|
46
|
-
def upload_attachment(path: nil)
|
47
|
-
|
47
|
+
def upload_attachment(client: nil, path: nil)
|
48
|
+
client ||= Spaceship::ConnectAPI
|
49
|
+
return client::AppStoreReviewAttachment.create(app_store_review_detail_id: id, path: path)
|
48
50
|
end
|
49
51
|
end
|
50
52
|
end
|
@@ -85,24 +85,27 @@ module Spaceship
|
|
85
85
|
#
|
86
86
|
|
87
87
|
# app,routingAppCoverage,resetRatingsRequest,appStoreVersionSubmission,appStoreVersionPhasedRelease,ageRatingDeclaration,appStoreReviewDetail,idfaDeclaration,gameCenterConfiguration
|
88
|
-
def self.get(app_store_version_id: nil, includes: nil, limit: nil, sort: nil)
|
89
|
-
|
88
|
+
def self.get(client: nil, app_store_version_id: nil, includes: nil, limit: nil, sort: nil)
|
89
|
+
client ||= Spaceship::ConnectAPI
|
90
|
+
return client.get_app_store_version(
|
90
91
|
app_store_version_id: app_store_version_id,
|
91
92
|
includes: includes
|
92
93
|
).first
|
93
94
|
end
|
94
95
|
|
95
|
-
def update(attributes: nil)
|
96
|
+
def update(client: nil, attributes: nil)
|
97
|
+
client ||= Spaceship::ConnectAPI
|
96
98
|
attributes = reverse_attr_mapping(attributes)
|
97
|
-
return
|
99
|
+
return client.patch_app_store_version(app_store_version_id: id, attributes: attributes).first
|
98
100
|
end
|
99
101
|
|
100
102
|
#
|
101
103
|
# Age Rating Declaration
|
102
104
|
#
|
103
105
|
|
104
|
-
def fetch_age_rating_declaration
|
105
|
-
|
106
|
+
def fetch_age_rating_declaration(client: nil)
|
107
|
+
client ||= Spaceship::ConnectAPI
|
108
|
+
resp = client.get_age_rating_declaration(app_store_version_id: id)
|
106
109
|
return resp.to_models.first
|
107
110
|
end
|
108
111
|
|
@@ -110,27 +113,31 @@ module Spaceship
|
|
110
113
|
# App Store Version Localizations
|
111
114
|
#
|
112
115
|
|
113
|
-
def create_app_store_version_localization(attributes: nil)
|
114
|
-
|
116
|
+
def create_app_store_version_localization(client: nil, attributes: nil)
|
117
|
+
client ||= Spaceship::ConnectAPI
|
118
|
+
resp = client.post_app_store_version_localization(app_store_version_id: id, attributes: attributes)
|
115
119
|
return resp.to_models.first
|
116
120
|
end
|
117
121
|
|
118
|
-
def get_app_store_version_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
|
119
|
-
|
122
|
+
def get_app_store_version_localizations(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
123
|
+
client ||= Spaceship::ConnectAPI
|
124
|
+
return Spaceship::ConnectAPI::AppStoreVersionLocalization.all(client: client, app_store_version_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
120
125
|
end
|
121
126
|
|
122
127
|
#
|
123
128
|
# App Store Review Detail
|
124
129
|
#
|
125
130
|
|
126
|
-
def create_app_store_review_detail(attributes: nil)
|
131
|
+
def create_app_store_review_detail(client: nil, attributes: nil)
|
132
|
+
client ||= Spaceship::ConnectAPI
|
127
133
|
attributes = Spaceship::ConnectAPI::AppStoreReviewDetail.reverse_attr_mapping(attributes)
|
128
|
-
resp =
|
134
|
+
resp = client.post_app_store_review_detail(app_store_version_id: id, attributes: attributes)
|
129
135
|
return resp.to_models.first
|
130
136
|
end
|
131
137
|
|
132
|
-
def fetch_app_store_review_detail(includes: "appStoreReviewAttachments")
|
133
|
-
|
138
|
+
def fetch_app_store_review_detail(client: nil, includes: "appStoreReviewAttachments")
|
139
|
+
client ||= Spaceship::ConnectAPI
|
140
|
+
resp = client.get_app_store_review_detail(app_store_version_id: id, includes: includes)
|
134
141
|
return resp.to_models.first
|
135
142
|
end
|
136
143
|
|
@@ -138,13 +145,15 @@ module Spaceship
|
|
138
145
|
# App Store Version Phased Releases
|
139
146
|
#
|
140
147
|
|
141
|
-
def fetch_app_store_version_phased_release
|
142
|
-
|
148
|
+
def fetch_app_store_version_phased_release(client: nil)
|
149
|
+
client ||= Spaceship::ConnectAPI
|
150
|
+
resp = client.get_app_store_version_phased_release(app_store_version_id: id)
|
143
151
|
return resp.to_models.first
|
144
152
|
end
|
145
153
|
|
146
|
-
def create_app_store_version_phased_release(attributes: nil)
|
147
|
-
|
154
|
+
def create_app_store_version_phased_release(client: nil, attributes: nil)
|
155
|
+
client ||= Spaceship::ConnectAPI
|
156
|
+
resp = client.post_app_store_version_phased_release(app_store_version_id: id, attributes: attributes)
|
148
157
|
return resp.to_models.first
|
149
158
|
end
|
150
159
|
|
@@ -152,13 +161,15 @@ module Spaceship
|
|
152
161
|
# App Store Version Submissions
|
153
162
|
#
|
154
163
|
|
155
|
-
def fetch_app_store_version_submission
|
156
|
-
|
164
|
+
def fetch_app_store_version_submission(client: nil)
|
165
|
+
client ||= Spaceship::ConnectAPI
|
166
|
+
resp = client.get_app_store_version_submission(app_store_version_id: id)
|
157
167
|
return resp.to_models.first
|
158
168
|
end
|
159
169
|
|
160
|
-
def create_app_store_version_submission
|
161
|
-
|
170
|
+
def create_app_store_version_submission(client: nil)
|
171
|
+
client ||= Spaceship::ConnectAPI
|
172
|
+
resp = client.post_app_store_version_submission(app_store_version_id: id)
|
162
173
|
return resp.to_models.first
|
163
174
|
end
|
164
175
|
|
@@ -166,8 +177,9 @@ module Spaceship
|
|
166
177
|
# App Store Version Release Requests
|
167
178
|
#
|
168
179
|
|
169
|
-
def create_app_store_version_release_request
|
170
|
-
|
180
|
+
def create_app_store_version_release_request(client: nil)
|
181
|
+
client ||= Spaceship::ConnectAPI
|
182
|
+
resp = client.post_app_store_version_release_request(app_store_version_id: id)
|
171
183
|
return resp.to_models.first
|
172
184
|
end
|
173
185
|
|
@@ -175,13 +187,15 @@ module Spaceship
|
|
175
187
|
# Build
|
176
188
|
#
|
177
189
|
|
178
|
-
def get_build(build_id: nil)
|
179
|
-
|
190
|
+
def get_build(client: nil, build_id: nil)
|
191
|
+
client ||= Spaceship::ConnectAPI
|
192
|
+
resp = client.get_build(app_store_version_id: id, build_id: build_id)
|
180
193
|
return resp.to_models.first
|
181
194
|
end
|
182
195
|
|
183
|
-
def select_build(build_id: nil)
|
184
|
-
|
196
|
+
def select_build(client: nil, build_id: nil)
|
197
|
+
client ||= Spaceship::ConnectAPI
|
198
|
+
resp = client.patch_app_store_version_with_build(app_store_version_id: id, build_id: build_id)
|
185
199
|
return resp.to_models.first
|
186
200
|
end
|
187
201
|
|
@@ -189,13 +203,15 @@ module Spaceship
|
|
189
203
|
# IDFA Declarations
|
190
204
|
#
|
191
205
|
|
192
|
-
def fetch_idfa_declaration
|
193
|
-
|
206
|
+
def fetch_idfa_declaration(client: nil)
|
207
|
+
client ||= Spaceship::ConnectAPI
|
208
|
+
resp = client.get_idfa_declaration(app_store_version_id: id)
|
194
209
|
return resp.to_models.first
|
195
210
|
end
|
196
211
|
|
197
|
-
def create_idfa_declaration(attributes: nil)
|
198
|
-
|
212
|
+
def create_idfa_declaration(client: nil, attributes: nil)
|
213
|
+
client ||= Spaceship::ConnectAPI
|
214
|
+
resp = client.post_idfa_declaration(app_store_version_id: id, attributes: attributes)
|
199
215
|
return resp.to_models.first
|
200
216
|
end
|
201
217
|
|
@@ -203,13 +219,15 @@ module Spaceship
|
|
203
219
|
# Reset Ratings Requests
|
204
220
|
#
|
205
221
|
|
206
|
-
def fetch_reset_ratings_request
|
207
|
-
|
222
|
+
def fetch_reset_ratings_request(client: nil)
|
223
|
+
client ||= Spaceship::ConnectAPI
|
224
|
+
resp = client.get_reset_ratings_request(app_store_version_id: id)
|
208
225
|
return resp.to_models.first
|
209
226
|
end
|
210
227
|
|
211
|
-
def create_reset_ratings_request
|
212
|
-
|
228
|
+
def create_reset_ratings_request(client: nil)
|
229
|
+
client ||= Spaceship::ConnectAPI
|
230
|
+
resp = client.post_reset_ratings_request(app_store_version_id: id)
|
213
231
|
return resp.to_models.first
|
214
232
|
end
|
215
233
|
end
|