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
@@ -107,7 +107,7 @@ module FastlaneCore
|
|
107
107
|
|
108
108
|
# Do we want to disable the colored output?
|
109
109
|
def self.colors_disabled?
|
110
|
-
FastlaneCore::Env.truthy?("FASTLANE_DISABLE_COLORS")
|
110
|
+
FastlaneCore::Env.truthy?("FASTLANE_DISABLE_COLORS") || ENV.key?("NO_COLOR")
|
111
111
|
end
|
112
112
|
|
113
113
|
# Does the user use the Mac stock terminal
|
data/match/lib/match/module.rb
CHANGED
@@ -9,7 +9,7 @@ module Match
|
|
9
9
|
DESCRIPTION = "Easily sync your certificates and profiles across your team"
|
10
10
|
|
11
11
|
def self.environments
|
12
|
-
return %w(appstore adhoc development enterprise developer_id)
|
12
|
+
return %w(appstore adhoc development enterprise developer_id mac_installer_distribution)
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.storage_modes
|
data/match/lib/match/options.rb
CHANGED
@@ -227,7 +227,7 @@ module Match
|
|
227
227
|
short_option: "-p",
|
228
228
|
env_name: "MATCH_KEYCHAIN_PASSWORD",
|
229
229
|
sensitive: true,
|
230
|
-
description: "This might be required the first time you access certificates on a new mac. For the login/default keychain this is your account password",
|
230
|
+
description: "This might be required the first time you access certificates on a new mac. For the login/default keychain this is your macOS account password",
|
231
231
|
optional: true),
|
232
232
|
|
233
233
|
# settings
|
data/scan/lib/scan/runner.rb
CHANGED
@@ -83,6 +83,8 @@ module Scan
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def handle_results(tests_exit_status)
|
86
|
+
return if Scan.config[:disable_xcpretty]
|
87
|
+
|
86
88
|
result = TestResultParser.new.parse_result(test_results)
|
87
89
|
SlackPoster.new.run(result)
|
88
90
|
|
@@ -144,8 +146,6 @@ module Scan
|
|
144
146
|
end
|
145
147
|
|
146
148
|
def test_results
|
147
|
-
return if Scan.config[:disable_xcpretty]
|
148
|
-
|
149
149
|
temp_junit_report = Scan.cache[:temp_junit_report]
|
150
150
|
return File.read(temp_junit_report) if temp_junit_report && File.file?(temp_junit_report)
|
151
151
|
|
Binary file
|
Binary file
|
Binary file
|
@@ -105,9 +105,10 @@ module Spaceship
|
|
105
105
|
# API
|
106
106
|
#
|
107
107
|
|
108
|
-
def update(attributes: nil)
|
108
|
+
def update(client: nil, attributes: nil)
|
109
|
+
client ||= Spaceship::ConnectAPI
|
109
110
|
attributes = reverse_attr_mapping(attributes)
|
110
|
-
|
111
|
+
client.patch_age_rating_declaration(age_rating_declaration_id: id, attributes: attributes)
|
111
112
|
end
|
112
113
|
end
|
113
114
|
end
|
@@ -69,19 +69,22 @@ module Spaceship
|
|
69
69
|
# Apps
|
70
70
|
#
|
71
71
|
|
72
|
-
def self.all(filter: {}, includes: ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
73
|
-
|
72
|
+
def self.all(client: nil, filter: {}, includes: ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
73
|
+
client ||= Spaceship::ConnectAPI
|
74
|
+
resps = client.get_apps(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
74
75
|
return resps.flat_map(&:to_models)
|
75
76
|
end
|
76
77
|
|
77
|
-
def self.find(bundle_id)
|
78
|
-
|
78
|
+
def self.find(bundle_id, client: nil)
|
79
|
+
client ||= Spaceship::ConnectAPI
|
80
|
+
return all(client: client, filter: { bundleId: bundle_id }).find do |app|
|
79
81
|
app.bundle_id == bundle_id
|
80
82
|
end
|
81
83
|
end
|
82
84
|
|
83
|
-
def self.create(name: nil, version_string: nil, sku: nil, primary_locale: nil, bundle_id: nil, platforms: nil, company_name: nil)
|
84
|
-
Spaceship::ConnectAPI
|
85
|
+
def self.create(client: nil, name: nil, version_string: nil, sku: nil, primary_locale: nil, bundle_id: nil, platforms: nil, company_name: nil)
|
86
|
+
client ||= Spaceship::ConnectAPI
|
87
|
+
client.post_app(
|
85
88
|
name: name,
|
86
89
|
version_string: version_string,
|
87
90
|
sku: sku,
|
@@ -92,20 +95,23 @@ module Spaceship
|
|
92
95
|
)
|
93
96
|
end
|
94
97
|
|
95
|
-
def self.get(app_id: nil, includes: "appStoreVersions")
|
96
|
-
|
98
|
+
def self.get(client: nil, app_id: nil, includes: "appStoreVersions")
|
99
|
+
client ||= Spaceship::ConnectAPI
|
100
|
+
return client.get_app(app_id: app_id, includes: includes).first
|
97
101
|
end
|
98
102
|
|
99
|
-
def update(attributes: nil, app_price_tier_id: nil, territory_ids: nil)
|
103
|
+
def update(client: nil, attributes: nil, app_price_tier_id: nil, territory_ids: nil)
|
104
|
+
client ||= Spaceship::ConnectAPI
|
100
105
|
attributes = reverse_attr_mapping(attributes)
|
101
|
-
return
|
106
|
+
return client.patch_app(app_id: id, attributes: attributes, app_price_tier_id: app_price_tier_id, territory_ids: territory_ids)
|
102
107
|
end
|
103
108
|
|
104
109
|
#
|
105
110
|
# App Info
|
106
111
|
#
|
107
112
|
|
108
|
-
def fetch_live_app_info(includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
113
|
+
def fetch_live_app_info(client: nil, includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
114
|
+
client ||= Spaceship::ConnectAPI
|
109
115
|
states = [
|
110
116
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::READY_FOR_SALE,
|
111
117
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::PENDING_APPLE_RELEASE,
|
@@ -114,13 +120,14 @@ module Spaceship
|
|
114
120
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::IN_REVIEW
|
115
121
|
]
|
116
122
|
|
117
|
-
resp =
|
123
|
+
resp = client.get_app_infos(app_id: id, includes: includes)
|
118
124
|
return resp.to_models.select do |model|
|
119
125
|
states.include?(model.app_store_state)
|
120
126
|
end.first
|
121
127
|
end
|
122
128
|
|
123
|
-
def fetch_edit_app_info(includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
129
|
+
def fetch_edit_app_info(client: nil, includes: Spaceship::ConnectAPI::AppInfo::ESSENTIAL_INCLUDES)
|
130
|
+
client ||= Spaceship::ConnectAPI
|
124
131
|
states = [
|
125
132
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::PREPARE_FOR_SUBMISSION,
|
126
133
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::DEVELOPER_REJECTED,
|
@@ -130,7 +137,7 @@ module Spaceship
|
|
130
137
|
Spaceship::ConnectAPI::AppInfo::AppStoreState::INVALID_BINARY
|
131
138
|
]
|
132
139
|
|
133
|
-
resp =
|
140
|
+
resp = client.get_app_infos(app_id: id, includes: includes)
|
134
141
|
return resp.to_models.select do |model|
|
135
142
|
states.include?(model.app_store_state)
|
136
143
|
end.first
|
@@ -140,9 +147,10 @@ module Spaceship
|
|
140
147
|
# Available Territories
|
141
148
|
#
|
142
149
|
|
143
|
-
def fetch_available_territories(filter: {}, includes: nil, limit: nil, sort: nil)
|
150
|
+
def fetch_available_territories(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
151
|
+
client ||= Spaceship::ConnectAPI
|
144
152
|
filter ||= {}
|
145
|
-
resps =
|
153
|
+
resps = client.get_available_territories(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
146
154
|
return resps.flat_map(&:to_models)
|
147
155
|
end
|
148
156
|
|
@@ -150,8 +158,9 @@ module Spaceship
|
|
150
158
|
# App Pricing
|
151
159
|
#
|
152
160
|
|
153
|
-
def fetch_app_prices(filter: {}, includes: "priceTier", limit: nil, sort: nil)
|
154
|
-
|
161
|
+
def fetch_app_prices(client: nil, filter: {}, includes: "priceTier", limit: nil, sort: nil)
|
162
|
+
client ||= Spaceship::ConnectAPI
|
163
|
+
resp = client.get_app_prices(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
155
164
|
return resp.to_models
|
156
165
|
end
|
157
166
|
|
@@ -159,7 +168,8 @@ module Spaceship
|
|
159
168
|
# App Store Versions
|
160
169
|
#
|
161
170
|
|
162
|
-
def reject_version_if_possible!(platform: nil)
|
171
|
+
def reject_version_if_possible!(client: nil, platform: nil)
|
172
|
+
client ||= Spaceship::ConnectAPI
|
163
173
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
164
174
|
filter = {
|
165
175
|
appStoreState: [
|
@@ -172,7 +182,7 @@ module Spaceship
|
|
172
182
|
}
|
173
183
|
|
174
184
|
# Get the latest version
|
175
|
-
version = get_app_store_versions(filter: filter, includes: "appStoreVersionSubmission")
|
185
|
+
version = get_app_store_versions(client: client, filter: filter, includes: "appStoreVersionSubmission")
|
176
186
|
.sort_by { |v| Gem::Version.new(v.version_string) }
|
177
187
|
.last
|
178
188
|
|
@@ -184,46 +194,50 @@ module Spaceship
|
|
184
194
|
# This will either create a new version or change the version number
|
185
195
|
# from an existing version
|
186
196
|
# @return (Bool) Was something changed?
|
187
|
-
def ensure_version!(version_string, platform: nil)
|
197
|
+
def ensure_version!(version_string, platform: nil, client: nil)
|
198
|
+
client ||= Spaceship::ConnectAPI
|
188
199
|
app_store_version = get_edit_app_store_version(platform: platform)
|
189
200
|
|
190
201
|
if app_store_version
|
191
202
|
if version_string != app_store_version.version_string
|
192
203
|
attributes = { versionString: version_string }
|
193
|
-
app_store_version.update(attributes: attributes)
|
204
|
+
app_store_version.update(client: client, attributes: attributes)
|
194
205
|
return true
|
195
206
|
end
|
196
207
|
return false
|
197
208
|
else
|
198
209
|
attributes = { versionString: version_string, platform: platform }
|
199
|
-
|
210
|
+
client.post_app_store_version(app_id: id, attributes: attributes)
|
200
211
|
|
201
212
|
return true
|
202
213
|
end
|
203
214
|
end
|
204
215
|
|
205
|
-
def get_latest_app_store_version(platform: nil, includes: nil)
|
216
|
+
def get_latest_app_store_version(client: nil, platform: nil, includes: nil)
|
217
|
+
client ||= Spaceship::ConnectAPI
|
206
218
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
207
219
|
filter = {
|
208
220
|
platform: platform
|
209
221
|
}
|
210
222
|
|
211
223
|
# Get the latest version
|
212
|
-
return get_app_store_versions(filter: filter, includes: includes)
|
224
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes)
|
213
225
|
.sort_by { |v| Date.parse(v.created_date) }
|
214
226
|
.last
|
215
227
|
end
|
216
228
|
|
217
|
-
def get_live_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
229
|
+
def get_live_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
230
|
+
client ||= Spaceship::ConnectAPI
|
218
231
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
219
232
|
filter = {
|
220
233
|
appStoreState: Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::READY_FOR_SALE,
|
221
234
|
platform: platform
|
222
235
|
}
|
223
|
-
return get_app_store_versions(filter: filter, includes: includes).first
|
236
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes).first
|
224
237
|
end
|
225
238
|
|
226
|
-
def get_edit_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
239
|
+
def get_edit_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
240
|
+
client ||= Spaceship::ConnectAPI
|
227
241
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
228
242
|
filter = {
|
229
243
|
appStoreState: [
|
@@ -238,21 +252,23 @@ module Spaceship
|
|
238
252
|
}
|
239
253
|
|
240
254
|
# Get the latest version
|
241
|
-
return get_app_store_versions(filter: filter, includes: includes)
|
255
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes)
|
242
256
|
.sort_by { |v| Gem::Version.new(v.version_string) }
|
243
257
|
.last
|
244
258
|
end
|
245
259
|
|
246
|
-
def get_in_review_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
260
|
+
def get_in_review_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
261
|
+
client ||= Spaceship::ConnectAPI
|
247
262
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
248
263
|
filter = {
|
249
264
|
appStoreState: Spaceship::ConnectAPI::AppStoreVersion::AppStoreState::IN_REVIEW,
|
250
265
|
platform: platform
|
251
266
|
}
|
252
|
-
return get_app_store_versions(filter: filter, includes: includes).first
|
267
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes).first
|
253
268
|
end
|
254
269
|
|
255
|
-
def get_pending_release_app_store_version(platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
270
|
+
def get_pending_release_app_store_version(client: nil, platform: nil, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES)
|
271
|
+
client ||= Spaceship::ConnectAPI
|
256
272
|
platform ||= Spaceship::ConnectAPI::Platform::IOS
|
257
273
|
filter = {
|
258
274
|
appStoreState: [
|
@@ -261,11 +277,12 @@ module Spaceship
|
|
261
277
|
].join(','),
|
262
278
|
platform: platform
|
263
279
|
}
|
264
|
-
return get_app_store_versions(filter: filter, includes: includes).first
|
280
|
+
return get_app_store_versions(client: client, filter: filter, includes: includes).first
|
265
281
|
end
|
266
282
|
|
267
|
-
def get_app_store_versions(filter: {}, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
268
|
-
|
283
|
+
def get_app_store_versions(client: nil, filter: {}, includes: Spaceship::ConnectAPI::AppStoreVersion::ESSENTIAL_INCLUDES, limit: nil, sort: nil)
|
284
|
+
client ||= Spaceship::ConnectAPI
|
285
|
+
resps = client.get_app_store_versions(app_id: id, filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
269
286
|
return resps.flat_map(&:to_models)
|
270
287
|
end
|
271
288
|
|
@@ -291,11 +308,12 @@ module Spaceship
|
|
291
308
|
# Beta Feedback
|
292
309
|
#
|
293
310
|
|
294
|
-
def get_beta_feedback(filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil)
|
311
|
+
def get_beta_feedback(client: nil, filter: {}, includes: "tester,build,screenshots", limit: nil, sort: nil)
|
312
|
+
client ||= Spaceship::ConnectAPI
|
295
313
|
filter ||= {}
|
296
314
|
filter["build.app"] = id
|
297
315
|
|
298
|
-
resps =
|
316
|
+
resps = client.get_beta_feedback(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
299
317
|
return resps.flat_map(&:to_models)
|
300
318
|
end
|
301
319
|
|
@@ -303,11 +321,12 @@ module Spaceship
|
|
303
321
|
# Beta Testers
|
304
322
|
#
|
305
323
|
|
306
|
-
def get_beta_testers(filter: {}, includes: nil, limit: nil, sort: nil)
|
324
|
+
def get_beta_testers(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
325
|
+
client ||= Spaceship::ConnectAPI
|
307
326
|
filter ||= {}
|
308
327
|
filter[:apps] = id
|
309
328
|
|
310
|
-
resps =
|
329
|
+
resps = client.get_beta_testers(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
311
330
|
return resps.flat_map(&:to_models)
|
312
331
|
end
|
313
332
|
|
@@ -315,40 +334,45 @@ module Spaceship
|
|
315
334
|
# Builds
|
316
335
|
#
|
317
336
|
|
318
|
-
def get_builds(filter: {}, includes: nil, limit: nil, sort: nil)
|
337
|
+
def get_builds(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
338
|
+
client ||= Spaceship::ConnectAPI
|
319
339
|
filter ||= {}
|
320
340
|
filter[:app] = id
|
321
341
|
|
322
|
-
resps =
|
342
|
+
resps = client.get_builds(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
323
343
|
return resps.flat_map(&:to_models)
|
324
344
|
end
|
325
345
|
|
326
|
-
def get_build_deliveries(filter: {}, includes: nil, limit: nil, sort: nil)
|
346
|
+
def get_build_deliveries(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
347
|
+
client ||= Spaceship::ConnectAPI
|
327
348
|
filter ||= {}
|
328
349
|
filter[:app] = id
|
329
350
|
|
330
|
-
resps =
|
351
|
+
resps = client.get_build_deliveries(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
331
352
|
return resps.flat_map(&:to_models)
|
332
353
|
end
|
333
354
|
|
334
|
-
def get_beta_app_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
|
355
|
+
def get_beta_app_localizations(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
356
|
+
client ||= Spaceship::ConnectAPI
|
335
357
|
filter ||= {}
|
336
358
|
filter[:app] = id
|
337
359
|
|
338
|
-
resps =
|
360
|
+
resps = client.get_beta_app_localizations(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
339
361
|
return resps.flat_map(&:to_models)
|
340
362
|
end
|
341
363
|
|
342
|
-
def get_beta_groups(filter: {}, includes: nil, limit: nil, sort: nil)
|
364
|
+
def get_beta_groups(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
365
|
+
client ||= Spaceship::ConnectAPI
|
343
366
|
filter ||= {}
|
344
367
|
filter[:app] = id
|
345
368
|
|
346
|
-
resps =
|
369
|
+
resps = client.get_beta_groups(filter: filter, includes: includes, limit: limit, sort: sort).all_pages
|
347
370
|
return resps.flat_map(&:to_models)
|
348
371
|
end
|
349
372
|
|
350
|
-
def create_beta_group(group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false)
|
351
|
-
|
373
|
+
def create_beta_group(client: nil, group_name: nil, public_link_enabled: false, public_link_limit: 10_000, public_link_limit_enabled: false)
|
374
|
+
client ||= Spaceship::ConnectAPI
|
375
|
+
resps = client.create_beta_group(
|
352
376
|
app_id: id,
|
353
377
|
group_name: group_name,
|
354
378
|
public_link_enabled: public_link_enabled,
|
@@ -378,9 +402,10 @@ module Spaceship
|
|
378
402
|
# Users
|
379
403
|
#
|
380
404
|
|
381
|
-
def add_users(user_ids: nil)
|
405
|
+
def add_users(client: nil, user_ids: nil)
|
406
|
+
client ||= Spaceship::ConnectAPI
|
382
407
|
user_ids.each do |user_id|
|
383
|
-
|
408
|
+
client.add_user_visible_apps(user_id: user_id, app_ids: [id])
|
384
409
|
end
|
385
410
|
end
|
386
411
|
end
|
@@ -65,29 +65,34 @@ module Spaceship
|
|
65
65
|
# API
|
66
66
|
#
|
67
67
|
|
68
|
-
def update(filter: {}, includes: nil, limit: nil, sort: nil)
|
69
|
-
Spaceship::ConnectAPI
|
68
|
+
def update(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
69
|
+
client ||= Spaceship::ConnectAPI
|
70
|
+
client.patch_app_info(app_info_id: id).first
|
70
71
|
end
|
71
72
|
|
72
|
-
def update_categories(category_id_map: nil)
|
73
|
-
Spaceship::ConnectAPI
|
73
|
+
def update_categories(client: nil, category_id_map: nil)
|
74
|
+
client ||= Spaceship::ConnectAPI
|
75
|
+
client.patch_app_info_categories(app_info_id: id, category_id_map: category_id_map).first
|
74
76
|
end
|
75
77
|
|
76
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
77
|
-
Spaceship::ConnectAPI
|
78
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
79
|
+
client ||= Spaceship::ConnectAPI
|
80
|
+
client.delete_app_info(app_info_id: id)
|
78
81
|
end
|
79
82
|
|
80
83
|
#
|
81
84
|
# App Info Localizations
|
82
85
|
#
|
83
86
|
|
84
|
-
def create_app_info_localization(attributes: nil)
|
85
|
-
|
87
|
+
def create_app_info_localization(client: nil, attributes: nil)
|
88
|
+
client ||= Spaceship::ConnectAPI
|
89
|
+
resp = client.post_app_info_localization(app_info_id: id, attributes: attributes)
|
86
90
|
return resp.to_models.first
|
87
91
|
end
|
88
92
|
|
89
|
-
def get_app_info_localizations(filter: {}, includes: nil, limit: nil, sort: nil)
|
90
|
-
|
93
|
+
def get_app_info_localizations(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
94
|
+
client ||= Spaceship::ConnectAPI
|
95
|
+
resp = client.get_app_info_localizations(app_info_id: id, filter: filter, includes: includes, limit: limit, sort: sort)
|
91
96
|
return resp.to_models
|
92
97
|
end
|
93
98
|
end
|
@@ -26,13 +26,15 @@ module Spaceship
|
|
26
26
|
# API
|
27
27
|
#
|
28
28
|
|
29
|
-
def update(attributes: nil)
|
29
|
+
def update(client: nil, attributes: nil)
|
30
|
+
client ||= Spaceship::ConnectAPI
|
30
31
|
attributes = reverse_attr_mapping(attributes)
|
31
|
-
|
32
|
+
client.patch_app_info_localization(app_info_localization_id: id, attributes: attributes)
|
32
33
|
end
|
33
34
|
|
34
|
-
def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
|
35
|
-
Spaceship::ConnectAPI
|
35
|
+
def delete!(client: nil, filter: {}, includes: nil, limit: nil, sort: nil)
|
36
|
+
client ||= Spaceship::ConnectAPI
|
37
|
+
client.delete_app_info_localization(app_info_localization_id: id)
|
36
38
|
end
|
37
39
|
end
|
38
40
|
end
|