Class: EmergeCLI::Commands::Config::OrderFilesIOS

Inherits:
GlobalOptions
  • Object
show all
Defined in:
lib/commands/config/orderfiles/orderfiles_ios.rb

Constant Summary collapse

'LD_GENERATE_MAP_FILE'.freeze
'LD_MAP_FILE_PATH'.freeze
PATH_TO_LINKMAP =
'$(TARGET_TEMP_DIR)/$(PRODUCT_NAME)-LinkMap-$(CURRENT_VARIANT)-$(CURRENT_ARCH).txt'.freeze
ORDER_FILE =
'ORDER_FILE'.freeze
ORDER_FILE_PATH =
'$(PROJECT_DIR)/orderfiles/orderfile.txt'.freeze

Instance Method Summary collapse

Methods inherited from GlobalOptions

#before

Instance Method Details

#call(**options) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/commands/config/orderfiles/orderfiles_ios.rb', line 21

def call(**options)
  @options = options
  before(options)

  if @options[:project_path]
    project = Xcodeproj::Project.open(@options[:project_path])
  else
    project = Xcodeproj::Project.open(Dir.glob('*.xcodeproj').first)
    Logger.warn 'No project path provided, using first found xcodeproj in current directory'
  end

  enable_linkmaps(project)

  add_order_files_download_script(project) unless @options[:skip_download_script]

  project.save
end