spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.96.1 vs spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.97.0

- old
+ new

@@ -200,10 +200,21 @@ url = "providers/#{team_id}/apps/#{app_id}/testers/#{tester_id}" response = request(:delete, url) handle_response(response) end + def remove_testers_from_testflight(app_id: nil, tester_ids: nil) + assert_required_params(__method__, binding) + url = "providers/#{team_id}/apps/#{app_id}/deleteTesters" + response = request(:post) do |req| + req.url(url) + req.body = tester_ids.map { |i| { "id" => i } }.to_json + req.headers['Content-Type'] = 'application/json' + end + handle_response(response) + end + def search_for_tester_in_app(app_id: nil, text: nil) assert_required_params(__method__, binding) text = CGI.escape(text) url = "providers/#{team_id}/apps/#{app_id}/testers?order=asc&search=#{text}&sort=status" response = request(:get, url) @@ -256,9 +267,17 @@ url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers/#{tester_id}" response = request(:delete) do |req| req.url(url) req.headers['Content-Type'] = 'application/json' end + handle_response(response) + end + + def builds_for_group(app_id: nil, group_id: nil) + assert_required_params(__method__, binding) + + url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/builds" + response = request(:get, url) handle_response(response) end ## # @!group AppTestInfo