b0VIM 8.0tËù\¢ÆåøjoshJoshs-MacBook-Pro.local~josh/Projects/fastlane/fastlane/pilot/lib/pilot/manager.rbutf-8 3210#"! UtpPada½PÓÒ®šzX8ôóæÖ«u]A98*Ñ Ð Š Z ý Ø Ð Ï ¤ ˜ y x -  · ­ › “ ’ k S R = ( '  î Î ™ ˜ w ! Ž r h g ø÷âÚÙ¼•Cû̸°¯„_ÿí–íãÏÇÁ½Ôend end end return result end UI.verbose("App Platform (#{result})") UI.user_error!("App Platform must be ios, appletvos, or osx") unless ['ios', 'appletvos', 'osx'].include?(result) result ||= UI.input("Please enter the app's platform (appletvos, ios, osx): ") if required result ||= FastlaneCore::IpaFileAnalyser.fetch_app_platform(config[:ipa]) if config[:ipa] result = config[:app_platform] def fetch_app_platform(required: true) end return result UI.verbose("App identifier (#{result})") result ||= UI.input("Please enter the app's bundle identifier: ") result ||= FastlaneCore::IpaFileAnalyser.fetch_app_identifier(config[:ipa]) result = config[:app_identifier] def fetch_app_identifier end return @app_id @app_id ||= UI.input("Could not automatically find the app ID, please enter it here (e.g. 956814360): ") end @app_id ||= @app.id UI.user_error!("Couldn't find app '#{config[:app_identifier]}' on the account of '#{config[:username]}' on App Store Connect") unless @app @app ||= Spaceship::ConnectAPI::TestFlight::App.find(config[:app_identifier]) if config[:app_identifier] config[:app_identifier] = fetch_app_identifier return @app_id if @app_id @app_id ||= config[:apple_id] def fetch_app_id ################ # Config Related attr_reader :config # Access the current configuration end return @app end UI.user_error!("Could not find app with #{(config[:apple_id] || config[:app_identifier])}") unless @app @app ||= Spaceship::ConnectAPI::TestFlight::App.get(app_id: @app_id) @app_id ||= fetch_app_id def app # The app object we're currently using end UI.message("Login successful") Spaceship::Tunes.select_team(team_id: config[:team_id], team_name: config[:team_name]) Spaceship::Tunes.login(config[:username]) UI.message("Login to App Store Connect (#{config[:username]})") config[:username] ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id) def login end login if should_login @config = options return if @config # to not login multiple times def start(options, should_login: true) class Managermodule Pilotrequire_relative 'module'require 'fastlane_core/ipa_file_analyser'require 'spaceship/test_flight'require 'spaceship/tunes/members'require 'spaceship/tunes/tunes'require 'spaceship'require 'fastlane_core/print_table'require 'credentials_manager/appfile_config'