lib/pilot/manager.rb in pilot-1.12.1 vs lib/pilot/manager.rb in pilot-1.13.0

- old
+ new

@@ -54,7 +54,18 @@ result ||= FastlaneCore::IpaFileAnalyser.fetch_app_identifier(config[:ipa]) result ||= UI.input("Please enter the app's bundle identifier: ") UI.verbose("App identifier (#{result})") return result end + + def fetch_app_platform(required: true) + result = config[:app_platform] + result ||= FastlaneCore::IpaFileAnalyser.fetch_app_platform(config[:ipa]) if config[:ipa] + if required + result ||= ask("Please enter the app's platform (appletvos, ios, osx): ") + UI.user_error!("App Platform must be ios, appletvos, or osx") unless ['ios', 'appletvos', 'osx'].include? result + UI.verbose("App Platform (#{result})") + end + return result + end end end