Sha256: 4574c6f25b9834538e66b39d9c1b9bf451e57ce7928da590d969e1ee935623b5

Contents?: true

Size: 1.2 KB

Versions: 138

Compression:

Stored size: 1.2 KB

Contents

module Fastlane
  module Actions
    require 'fastlane/actions/build_app'
    class BuildMacAppAction < BuildAppAction
      # Gym::Options.available_options keys that don't apply to mac apps.
      REJECT_OPTIONS = [
        :ipa,
        :skip_package_ipa,
        :catalyst_platform
      ]

      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

      #####################################################
      # @!group Documentation
      #####################################################

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

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

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

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

Version data entries

138 entries across 138 versions & 4 rubygems

Version Path
fastlane-2.174.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.173.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.172.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.171.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.170.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.169.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.168.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.167.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.166.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.165.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.164.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.163.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.162.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.161.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.160.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.159.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.158.0 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.157.4 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.157.3 fastlane/lib/fastlane/actions/build_mac_app.rb
fastlane-2.157.2 fastlane/lib/fastlane/actions/build_mac_app.rb