spaceship/lib/spaceship/connect_api/models/build_delivery.rb in fastlane-2.167.0 vs spaceship/lib/spaceship/connect_api/models/build_delivery.rb in fastlane-2.168.0
- old
+ new
@@ -22,11 +22,12 @@
#
# API
#
- def self.all(app_id: nil, version: nil, build_number: nil)
- resps = Spaceship::ConnectAPI.get_build_deliveries(
+ def self.all(client: nil, app_id: nil, version: nil, build_number: nil)
+ client ||= Spaceship::ConnectAPI
+ resps = client.get_build_deliveries(
filter: { app: app_id, cfBundleShortVersionString: version, cfBundleVersion: build_number },
limit: 1
).all_pages
return resps.flat_map(&:to_models)
end