precheck/lib/precheck/runner.rb in fastlane-2.178.0 vs precheck/lib/precheck/runner.rb in fastlane-2.179.0
- old
+ new
@@ -30,9 +30,13 @@
end
UI.message("Creating authorization token for App Store Connect API")
Spaceship::ConnectAPI.token = api_token
elsif Spaceship::Tunes.client.nil?
+ # Username is now optional since addition of App Store Connect API Key
+ # Force asking for username to prompt user if not already set
+ Precheck.config.fetch(:username, force_ask: true)
+
# Team selection passed though FASTLANE_ITC_TEAM_ID and FASTLANE_ITC_TEAM_NAME environment variables
# Prompts select team if multiple teams and none specified
UI.message("Starting login with user '#{Precheck.config[:username]}'")
Spaceship::ConnectAPI.login(Precheck.config[:username], use_portal: false, use_tunes: true)