Method: Deliver::DetectValues#find_app_identifier

Defined in:
lib/deliver/detect_values.rb

#find_app_identifier(options) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/deliver/detect_values.rb', line 12

def find_app_identifier(options)
  return if options[:app_identifier]

  if options[:ipa]
    identifier = FastlaneCore::IpaFileAnalyser.fetch_app_identifier(options[:ipa])
  elsif options[:pkg]
    identifier = FastlaneCore::PkgFileAnalyser.fetch_app_identifier(options[:pkg])
  end

  options[:app_identifier] = identifier if identifier.to_s.length > 0
  options[:app_identifier] ||= UI.input("The Bundle Identifier of your App: ")
rescue
  UI.user_error!("Could not infer your App's Bundle Identifier")
end