class Fastlane::Yafirim::DetectIosValues
Public Instance Methods
find_app_identifier(options)
click to toggle source
# File lib/fastlane/plugin/yafirim/actions/yafirim_action.rb, line 193 def find_app_identifier(options) identifier = FastlaneCore::IpaFileAnalyser.fetch_app_identifier(options[:ipa]) if identifier.to_s.length != 0 options[:bundle_id] = identifier else UI.user_error!("Could not find ipa with app identifier '#{options[:app_identifier]}' in your iTunes Connect account (#{options[:username]} - Team: #{Spaceship::Tunes.client.team_id})") end end
find_app_name(options)
click to toggle source
# File lib/fastlane/plugin/yafirim/actions/yafirim_action.rb, line 202 def find_app_name(options) return if options[:name] plist = FastlaneCore::IpaFileAnalyser.fetch_info_plist_file(options[:ipa]) options[:name] ||= plist['CFBundleDisplayName'] options[:name] ||= plist['CFBundleName'] end
find_build_version(options)
click to toggle source
# File lib/fastlane/plugin/yafirim/actions/yafirim_action.rb, line 213 def find_build_version(options) plist = FastlaneCore::IpaFileAnalyser.fetch_info_plist_file(options[:ipa]) options[:build_version] = plist['CFBundleVersion'] end
find_version(options)
click to toggle source
# File lib/fastlane/plugin/yafirim/actions/yafirim_action.rb, line 209 def find_version(options) options[:version] ||= FastlaneCore::IpaFileAnalyser.fetch_app_version(options[:ipa]) end
run!(options)
click to toggle source
# File lib/fastlane/plugin/yafirim/actions/yafirim_action.rb, line 186 def run!(options) find_app_identifier(options) find_app_name(options) find_version(options) find_build_version(options) end