Class: Fastlane::Actions::BuildIosAppAction

Inherits:
BuildAppAction show all
Defined in:
fastlane/lib/fastlane/actions/build_ios_app.rb

Constant Summary collapse

REJECT_OPTIONS =

Gym::Options.available_options keys that don’t apply to ios apps.

[
  :pkg,
  :skip_package_pkg,
  :catalyst_platform,
  :installer_cert_name
]

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from BuildAppAction

author, category, details, example_code, output, return_value, show_xcode_9_warning

Methods inherited from Fastlane::Action

action_name, author, authors, category, deprecated_notes, details, example_code, lane_context, method_missing, other_action, output, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.available_optionsObject



29
30
31
32
33
34
35
36
# File 'fastlane/lib/fastlane/actions/build_ios_app.rb', line 29

def self.available_options
  require 'gym'
  require 'gym/options'

  Gym::Options.available_options.reject do |option|
    REJECT_OPTIONS.include?(option.key)
  end
end

.descriptionObject



42
43
44
# File 'fastlane/lib/fastlane/actions/build_ios_app.rb', line 42

def self.description
  "Alias for the `build_app` action but only for iOS"
end

.is_supported?(platform) ⇒ Boolean

Returns:



38
39
40
# File 'fastlane/lib/fastlane/actions/build_ios_app.rb', line 38

def self.is_supported?(platform)
  [:ios].include?(platform)
end

.run(params) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'fastlane/lib/fastlane/actions/build_ios_app.rb', line 13

def self.run(params)
  # Adding reject options back in  so gym has everything it needs
  params.available_options += Gym::Options.available_options.select do |option|
    REJECT_OPTIONS.include?(option.key)
  end

  # Defaulting to ios specific values
  params[:catalyst_platform] = "ios"

  super(params)
end