spaceship/lib/spaceship/test_flight/build.rb in fastlane-2.126.0.beta.20190606200048 vs spaceship/lib/spaceship/test_flight/build.rb in fastlane-2.126.0.beta.20190607200028

- old
+ new

@@ -4,11 +4,11 @@ require_relative 'test_info' require_relative 'export_compliance' require_relative 'beta_review_info' require_relative 'build_trains' -require_relative '../connect_api/base' +require_relative '../connect_api' module Spaceship module TestFlight class Build < Base # @example @@ -216,11 +216,11 @@ def submit_for_testflight_review! return if ready_to_test? return if approved? build = find_app_store_connect_build - Spaceship::ConnectAPI::Base.client.post_beta_app_review_submissions(build_id: build["id"]) + Spaceship::ConnectAPI::TestFlight.client.post_beta_app_review_submissions(build_id: build["id"]) end def expire! client.expire_build(app_id: app_id, build_id: id, build: self) end @@ -229,10 +229,10 @@ client.add_group_to_build(app_id: app_id, group_id: group.id, build_id: id) end # Bridges the TestFlight::Build to the App Store Connect API build def find_app_store_connect_build - resp = Spaceship::ConnectAPI::Base.client.get_builds(filter: { expired: false, processingState: "PROCESSING,VALID", version: self.build_version, "preReleaseVersion.version" => self.train_version, app: app_id }) + resp = Spaceship::ConnectAPI::TestFlight.client.get_builds(filter: { expired: false, processingState: "PROCESSING,VALID", version: self.build_version, "preReleaseVersion.version" => self.train_version, app: app_id }) resp.first end end end end