fastlane 2.165.0 → 2.170.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 +76 -76
- data/cert/lib/cert/options.rb +3 -3
- data/cert/lib/cert/runner.rb +1 -1
- data/deliver/lib/deliver/app_screenshot.rb +6 -2
- data/deliver/lib/deliver/loader.rb +136 -18
- data/deliver/lib/deliver/upload_metadata.rb +4 -10
- data/deliver/lib/deliver/upload_screenshots.rb +1 -64
- data/fastlane/lib/fastlane/actions/actions_helper.rb +1 -1
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +9 -2
- data/fastlane/lib/fastlane/actions/appledoc.rb +1 -1
- data/fastlane/lib/fastlane/actions/docs/capture_ios_screenshots.md +4 -0
- data/fastlane/lib/fastlane/actions/docs/frame_screenshots.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +1 -1
- data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +4 -0
- data/fastlane/lib/fastlane/actions/onesignal.rb +13 -3
- data/fastlane/lib/fastlane/actions/slather.rb +2 -2
- data/fastlane/lib/fastlane/actions/spm.rb +6 -0
- data/fastlane/lib/fastlane/actions/update_fastlane.rb +29 -8
- data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +289 -0
- data/fastlane/lib/fastlane/actions/upload_to_app_store.rb +3 -3
- data/fastlane/lib/fastlane/actions/xcode_install.rb +8 -5
- data/fastlane/lib/fastlane/cli_tools_distributor.rb +2 -2
- data/fastlane/lib/fastlane/features.rb +1 -1
- data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +2 -1
- data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +3 -0
- data/fastlane/lib/fastlane/swift_fastlane_function.rb +1 -1
- 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/Fastfile.swift +1 -1
- data/fastlane/swift/Fastlane.swift +97 -26
- data/fastlane/swift/Gymfile.swift +1 -1
- data/fastlane/swift/GymfileProtocol.swift +5 -1
- data/fastlane/swift/LaneFileProtocol.swift +2 -2
- data/fastlane/swift/MainProcess.swift +2 -0
- 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/Runner.swift +1 -1
- data/fastlane/swift/Scanfile.swift +1 -1
- data/fastlane/swift/ScanfileProtocol.swift +9 -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/swift/SocketClient.swift +1 -1
- data/fastlane_core/lib/fastlane_core/cert_checker.rb +12 -7
- data/fastlane_core/lib/fastlane_core/helper.rb +10 -2
- data/fastlane_core/lib/fastlane_core/itunes_transporter.rb +3 -3
- data/fastlane_core/lib/fastlane_core/provisioning_profile.rb +3 -1
- data/fastlane_core/lib/fastlane_core/ui/disable_colors.rb +8 -0
- data/gym/lib/gym/code_signing_mapping.rb +1 -1
- data/gym/lib/gym/generators/build_command_generator.rb +1 -0
- data/gym/lib/gym/options.rb +7 -1
- data/match/lib/match/module.rb +1 -1
- data/match/lib/match/nuke.rb +9 -5
- data/match/lib/match/options.rb +1 -1
- data/match/lib/match/runner.rb +1 -1
- data/pilot/lib/pilot/build_manager.rb +9 -3
- data/scan/lib/scan/detect_values.rb +3 -1
- data/scan/lib/scan/module.rb +4 -0
- data/scan/lib/scan/options.rb +16 -1
- data/scan/lib/scan/runner.rb +2 -2
- data/scan/lib/scan/test_command_generator.rb +1 -0
- data/snapshot/lib/assets/SnapshotHelper.swift +5 -1
- data/snapshot/lib/snapshot/test_command_generator.rb +1 -1
- data/snapshot/lib/snapshot/test_command_generator_base.rb +3 -1
- data/snapshot/lib/snapshot/test_command_generator_xcode_8.rb +1 -1
- data/spaceship/lib/spaceship/client.rb +14 -0
- data/spaceship/lib/spaceship/connect_api.rb +6 -0
- data/spaceship/lib/spaceship/connect_api/models/.app_data_usage_data_protection.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 +88 -54
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage.rb +59 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb +65 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_data_protection.rb +27 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb +18 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb +37 -0
- data/spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb +36 -0
- data/spaceship/lib/spaceship/connect_api/models/app_info.rb +16 -10
- data/spaceship/lib/spaceship/connect_api/models/app_info_localization.rb +8 -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 +55 -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 +12 -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 +10 -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/connect_api/testflight/testflight.rb +12 -0
- data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +103 -0
- data/spaceship/lib/spaceship/errors.rb +19 -0
- data/spaceship/lib/spaceship/tunes/iap_detail.rb +1 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +2 -2
- data/spaceship/lib/spaceship/two_step_or_factor_client.rb +18 -6
- data/supply/lib/supply.rb +1 -1
- data/supply/lib/supply/options.rb +1 -1
- data/supply/lib/supply/uploader.rb +3 -2
- metadata +26 -18
@@ -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
|
@@ -30,6 +30,7 @@ module Spaceship
|
|
30
30
|
IN_REVIEW = "IN_REVIEW"
|
31
31
|
WAITING_FOR_REVIEW = "WAITING_FOR_REVIEW"
|
32
32
|
DEVELOPER_REJECTED = "DEVELOPER_REJECTED"
|
33
|
+
DEVELOPER_REMOVED_FROM_SALE = "DEVELOPER_REMOVED_FROM_SALE"
|
33
34
|
REJECTED = "REJECTED"
|
34
35
|
PREPARE_FOR_SUBMISSION = "PREPARE_FOR_SUBMISSION"
|
35
36
|
METADATA_REJECTED = "METADATA_REJECTED"
|
@@ -85,24 +86,27 @@ module Spaceship
|
|
85
86
|
#
|
86
87
|
|
87
88
|
# 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
|
-
|
89
|
+
def self.get(client: nil, app_store_version_id: nil, includes: nil, limit: nil, sort: nil)
|
90
|
+
client ||= Spaceship::ConnectAPI
|
91
|
+
return client.get_app_store_version(
|
90
92
|
app_store_version_id: app_store_version_id,
|
91
93
|
includes: includes
|
92
94
|
).first
|
93
95
|
end
|
94
96
|
|
95
|
-
def update(attributes: nil)
|
97
|
+
def update(client: nil, attributes: nil)
|
98
|
+
client ||= Spaceship::ConnectAPI
|
96
99
|
attributes = reverse_attr_mapping(attributes)
|
97
|
-
return
|
100
|
+
return client.patch_app_store_version(app_store_version_id: id, attributes: attributes).first
|
98
101
|
end
|
99
102
|
|
100
103
|
#
|
101
104
|
# Age Rating Declaration
|
102
105
|
#
|
103
106
|
|
104
|
-
def fetch_age_rating_declaration
|
105
|
-
|
107
|
+
def fetch_age_rating_declaration(client: nil)
|
108
|
+
client ||= Spaceship::ConnectAPI
|
109
|
+
resp = client.get_age_rating_declaration(app_store_version_id: id)
|
106
110
|
return resp.to_models.first
|
107
111
|
end
|
108
112
|
|
@@ -110,27 +114,31 @@ module Spaceship
|
|
110
114
|
# App Store Version Localizations
|
111
115
|
#
|
112
116
|
|
113
|
-
def create_app_store_version_localization(attributes: nil)
|
114
|
-
|
117
|
+
def create_app_store_version_localization(client: nil, attributes: nil)
|
118
|
+
client ||= Spaceship::ConnectAPI
|
119
|
+
resp = client.post_app_store_version_localization(app_store_version_id: id, attributes: attributes)
|
115
120
|
return resp.to_models.first
|
116
121
|
end
|
117
122
|
|
118
|
-
def get_app_store_version_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
|
119
|
-
|
123
|
+
def get_app_store_version_localizations(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
124
|
+
client ||= Spaceship::ConnectAPI
|
125
|
+
return Spaceship::ConnectAPI::AppStoreVersionLocalization.all(client: client, app_store_version_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
120
126
|
end
|
121
127
|
|
122
128
|
#
|
123
129
|
# App Store Review Detail
|
124
130
|
#
|
125
131
|
|
126
|
-
def create_app_store_review_detail(attributes: nil)
|
132
|
+
def create_app_store_review_detail(client: nil, attributes: nil)
|
133
|
+
client ||= Spaceship::ConnectAPI
|
127
134
|
attributes = Spaceship::ConnectAPI::AppStoreReviewDetail.reverse_attr_mapping(attributes)
|
128
|
-
resp =
|
135
|
+
resp = client.post_app_store_review_detail(app_store_version_id: id, attributes: attributes)
|
129
136
|
return resp.to_models.first
|
130
137
|
end
|
131
138
|
|
132
|
-
def fetch_app_store_review_detail(includes: "appStoreReviewAttachments")
|
133
|
-
|
139
|
+
def fetch_app_store_review_detail(client: nil, includes: "appStoreReviewAttachments")
|
140
|
+
client ||= Spaceship::ConnectAPI
|
141
|
+
resp = client.get_app_store_review_detail(app_store_version_id: id, includes: includes)
|
134
142
|
return resp.to_models.first
|
135
143
|
end
|
136
144
|
|
@@ -138,13 +146,15 @@ module Spaceship
|
|
138
146
|
# App Store Version Phased Releases
|
139
147
|
#
|
140
148
|
|
141
|
-
def fetch_app_store_version_phased_release
|
142
|
-
|
149
|
+
def fetch_app_store_version_phased_release(client: nil)
|
150
|
+
client ||= Spaceship::ConnectAPI
|
151
|
+
resp = client.get_app_store_version_phased_release(app_store_version_id: id)
|
143
152
|
return resp.to_models.first
|
144
153
|
end
|
145
154
|
|
146
|
-
def create_app_store_version_phased_release(attributes: nil)
|
147
|
-
|
155
|
+
def create_app_store_version_phased_release(client: nil, attributes: nil)
|
156
|
+
client ||= Spaceship::ConnectAPI
|
157
|
+
resp = client.post_app_store_version_phased_release(app_store_version_id: id, attributes: attributes)
|
148
158
|
return resp.to_models.first
|
149
159
|
end
|
150
160
|
|
@@ -152,13 +162,15 @@ module Spaceship
|
|
152
162
|
# App Store Version Submissions
|
153
163
|
#
|
154
164
|
|
155
|
-
def fetch_app_store_version_submission
|
156
|
-
|
165
|
+
def fetch_app_store_version_submission(client: nil)
|
166
|
+
client ||= Spaceship::ConnectAPI
|
167
|
+
resp = client.get_app_store_version_submission(app_store_version_id: id)
|
157
168
|
return resp.to_models.first
|
158
169
|
end
|
159
170
|
|
160
|
-
def create_app_store_version_submission
|
161
|
-
|
171
|
+
def create_app_store_version_submission(client: nil)
|
172
|
+
client ||= Spaceship::ConnectAPI
|
173
|
+
resp = client.post_app_store_version_submission(app_store_version_id: id)
|
162
174
|
return resp.to_models.first
|
163
175
|
end
|
164
176
|
|
@@ -166,8 +178,9 @@ module Spaceship
|
|
166
178
|
# App Store Version Release Requests
|
167
179
|
#
|
168
180
|
|
169
|
-
def create_app_store_version_release_request
|
170
|
-
|
181
|
+
def create_app_store_version_release_request(client: nil)
|
182
|
+
client ||= Spaceship::ConnectAPI
|
183
|
+
resp = client.post_app_store_version_release_request(app_store_version_id: id)
|
171
184
|
return resp.to_models.first
|
172
185
|
end
|
173
186
|
|
@@ -175,13 +188,15 @@ module Spaceship
|
|
175
188
|
# Build
|
176
189
|
#
|
177
190
|
|
178
|
-
def get_build(build_id: nil)
|
179
|
-
|
191
|
+
def get_build(client: nil, build_id: nil)
|
192
|
+
client ||= Spaceship::ConnectAPI
|
193
|
+
resp = client.get_build(app_store_version_id: id, build_id: build_id)
|
180
194
|
return resp.to_models.first
|
181
195
|
end
|
182
196
|
|
183
|
-
def select_build(build_id: nil)
|
184
|
-
|
197
|
+
def select_build(client: nil, build_id: nil)
|
198
|
+
client ||= Spaceship::ConnectAPI
|
199
|
+
resp = client.patch_app_store_version_with_build(app_store_version_id: id, build_id: build_id)
|
185
200
|
return resp.to_models.first
|
186
201
|
end
|
187
202
|
|
@@ -189,13 +204,15 @@ module Spaceship
|
|
189
204
|
# IDFA Declarations
|
190
205
|
#
|
191
206
|
|
192
|
-
def fetch_idfa_declaration
|
193
|
-
|
207
|
+
def fetch_idfa_declaration(client: nil)
|
208
|
+
client ||= Spaceship::ConnectAPI
|
209
|
+
resp = client.get_idfa_declaration(app_store_version_id: id)
|
194
210
|
return resp.to_models.first
|
195
211
|
end
|
196
212
|
|
197
|
-
def create_idfa_declaration(attributes: nil)
|
198
|
-
|
213
|
+
def create_idfa_declaration(client: nil, attributes: nil)
|
214
|
+
client ||= Spaceship::ConnectAPI
|
215
|
+
resp = client.post_idfa_declaration(app_store_version_id: id, attributes: attributes)
|
199
216
|
return resp.to_models.first
|
200
217
|
end
|
201
218
|
|
@@ -203,13 +220,15 @@ module Spaceship
|
|
203
220
|
# Reset Ratings Requests
|
204
221
|
#
|
205
222
|
|
206
|
-
def fetch_reset_ratings_request
|
207
|
-
|
223
|
+
def fetch_reset_ratings_request(client: nil)
|
224
|
+
client ||= Spaceship::ConnectAPI
|
225
|
+
resp = client.get_reset_ratings_request(app_store_version_id: id)
|
208
226
|
return resp.to_models.first
|
209
227
|
end
|
210
228
|
|
211
|
-
def create_reset_ratings_request
|
212
|
-
|
229
|
+
def create_reset_ratings_request(client: nil)
|
230
|
+
client ||= Spaceship::ConnectAPI
|
231
|
+
resp = client.post_reset_ratings_request(app_store_version_id: id)
|
213
232
|
return resp.to_models.first
|
214
233
|
end
|
215
234
|
end
|
@@ -39,32 +39,37 @@ module Spaceship
|
|
39
39
|
# API
|
40
40
|
#
|
41
41
|
|
42
|
-
def self.all(app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
-
|
42
|
+
def self.all(client: nil, app_store_version_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
43
|
+
client ||= Spaceship::ConnectAPI
|
44
|
+
resp = client.get_app_store_version_localizations(app_store_version_id: app_store_version_id, filter: filter, includes: includes, limit: limit, sort: sort)
|
44
45
|
return resp.to_models
|
45
46
|
end
|
46
47
|
|
47
|
-
def update(attributes: nil)
|
48
|
+
def update(client: nil, attributes: nil)
|
49
|
+
client ||= Spaceship::ConnectAPI
|
48
50
|
attributes = reverse_attr_mapping(attributes)
|
49
|
-
|
51
|
+
client.patch_app_store_version_localization(app_store_version_localization_id: id, attributes: attributes)
|
50
52
|
end
|
51
53
|
|
52
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
53
|
-
Spaceship::ConnectAPI
|
54
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
55
|
+
client ||= Spaceship::ConnectAPI
|
56
|
+
client.delete_app_store_version_localization(app_store_version_localization_id: id)
|
54
57
|
end
|
55
58
|
|
56
59
|
#
|
57
60
|
# App Preview Sets
|
58
61
|
#
|
59
62
|
|
60
|
-
def get_app_preview_sets(filter: {}, includes: "appPreviews", limit: nil, sort: nil)
|
63
|
+
def get_app_preview_sets(client: nil, filter: {}, includes: "appPreviews", limit: nil, sort: nil)
|
64
|
+
client ||= Spaceship::ConnectAPI
|
61
65
|
filter ||= {}
|
62
66
|
filter["appStoreVersionLocalization"] = id
|
63
|
-
return Spaceship::ConnectAPI::AppPreviewSet.all(filter: filter, includes: includes, limit: limit, sort: sort)
|
67
|
+
return Spaceship::ConnectAPI::AppPreviewSet.all(client: client, filter: filter, includes: includes, limit: limit, sort: sort)
|
64
68
|
end
|
65
69
|
|
66
|
-
def create_app_preview_set(attributes: nil)
|
67
|
-
|
70
|
+
def create_app_preview_set(client: nil, attributes: nil)
|
71
|
+
client ||= Spaceship::ConnectAPI
|
72
|
+
resp = client.post_app_preview_set(app_store_version_localization_id: id, attributes: attributes)
|
68
73
|
return resp.to_models.first
|
69
74
|
end
|
70
75
|
|
@@ -72,12 +77,14 @@ module Spaceship
|
|
72
77
|
# App Screenshot Sets
|
73
78
|
#
|
74
79
|
|
75
|
-
def get_app_screenshot_sets(filter: {}, includes: "appScreenshots", limit: nil, sort: nil)
|
76
|
-
|
80
|
+
def get_app_screenshot_sets(client: nil, filter: {}, includes: "appScreenshots", limit: nil, sort: nil)
|
81
|
+
client ||= Spaceship::ConnectAPI
|
82
|
+
return Spaceship::ConnectAPI::AppScreenshotSet.all(client: client, app_store_version_localization_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
77
83
|
end
|
78
84
|
|
79
|
-
def create_app_screenshot_set(attributes: nil)
|
80
|
-
|
85
|
+
def create_app_screenshot_set(client: nil, attributes: nil)
|
86
|
+
client ||= Spaceship::ConnectAPI
|
87
|
+
resp = client.post_app_screenshot_set(app_store_version_localization_id: id, attributes: attributes)
|
81
88
|
return resp.to_models.first
|
82
89
|
end
|
83
90
|
end
|
@@ -18,8 +18,9 @@ module Spaceship
|
|
18
18
|
# API
|
19
19
|
#
|
20
20
|
|
21
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
22
|
-
Spaceship::ConnectAPI
|
21
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
22
|
+
client ||= Spaceship::ConnectAPI
|
23
|
+
client.delete_app_store_version_submission(app_store_version_submission_id: id)
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
@@ -18,8 +18,9 @@ module Spaceship
|
|
18
18
|
# API
|
19
19
|
#
|
20
20
|
|
21
|
-
def delete!
|
22
|
-
|
21
|
+
def delete!(client: nil)
|
22
|
+
client ||= Spaceship::ConnectAPI
|
23
|
+
return client.delete_beta_app_review_submission(beta_app_review_submission_id: id)
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|