Class: Fastlane::Actions::BuildMacAppAction

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

Constant Summary collapse

REJECT_OPTIONS =

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

[
  :ipa,
  :skip_package_ipa,
  :catalyst_platform
]

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_type, 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



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

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

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

.descriptionObject



41
42
43
# File 'fastlane/lib/fastlane/actions/build_mac_app.rb', line 41

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

.is_supported?(platform) ⇒ Boolean

Returns:



37
38
39
# File 'fastlane/lib/fastlane/actions/build_mac_app.rb', line 37

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

.run(params) ⇒ Object



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

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 mac specific values
  params[:catalyst_platform] = "macos"

  super(params)
end