deliver/lib/deliver/detect_values.rb in fastlane_hotfix-2.165.1 vs deliver/lib/deliver/detect_values.rb in fastlane_hotfix-2.187.0

- old
+ new

@@ -8,10 +8,12 @@ require_relative 'languages' module Deliver class DetectValues def run!(options, skip_params = {}) + Deliver.cache = {} + find_platform(options) find_app_identifier(options) find_app(options) find_folders(options) ensure_folders_created(options) @@ -44,12 +46,12 @@ app = Spaceship::ConnectAPI::App.find(app_identifier) elsif !app_id.kind_of?(Spaceship::ConnectAPI::App) && !app_id.to_s.empty? app = Spaceship::ConnectAPI::App.get(app_id: app_id) end - if app - options[:app] = app - else + Deliver.cache[:app] = app + + unless app UI.user_error!("Could not find app with app identifier '#{options[:app_identifier]}' in your App Store Connect account (#{options[:username]} - Team: #{Spaceship::Tunes.client.team_id})") end end def find_folders(options)