pilot/lib/pilot/tester_exporter.rb in fastlane-2.126.0.beta.20190623200100 vs pilot/lib/pilot/tester_exporter.rb in fastlane-2.126.0
- old
+ new
@@ -13,11 +13,11 @@
app = find_app(apple_id: options[:apple_id], app_identifier: options[:app_identifier])
if app
testers = app.get_beta_testers(includes: "apps,betaTesterMetrics,betaGroups")
else
- testers = Spaceship::ConnectAPI::TestFlight::BetaTester.all(includes: "apps,betaTesterMetrics,betaGroups")
+ testers = Spaceship::ConnectAPI::BetaTester.all(includes: "apps,betaTesterMetrics,betaGroups")
end
file = config[:testers_file_path]
CSV.open(file, "w") do |csv|
@@ -39,16 +39,16 @@
end
end
def find_app(apple_id: nil, app_identifier: nil)
if app_identifier
- app = Spaceship::ConnectAPI::TestFlight::App.find(app_identifier)
+ app = Spaceship::ConnectAPI::App.find(app_identifier)
UI.user_error!("Could not find an app by #{app_identifier}") unless app
return app
end
if apple_id
- app = Spaceship::ConnectAPI::TestFlight::App.get(app_id: apple_id)
+ app = Spaceship::ConnectAPI::App.get(app_id: apple_id)
UI.user_error!("Could not find an app by #{apple_id}") unless app
return app
end
UI.user_error!("You must include an `app_identifier` to `list_testers`")