Sha256: 35eee58d2e2f737dd3cdf275b78a608030d70c30fd6c9bf7538c90315cd3929e

Contents?: true

Size: 1.22 KB

Versions: 139

Compression:

Stored size: 1.22 KB

Contents

module Fastlane
  module Actions
    require 'fastlane/actions/build_app'
    class BuildIosAppAction < BuildAppAction
      # Gym::Options.available_options keys that don't apply to ios apps.
      REJECT_OPTIONS = [
        :pkg,
        :skip_package_pkg,
        :catalyst_platform,
        :installer_cert_name
      ]

      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

      #####################################################
      # @!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)
        [:ios].include?(platform)
      end

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

Version data entries

139 entries across 139 versions & 4 rubygems

Version Path
fastlane-2.226.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.225.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.224.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.223.1 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.223.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.222.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.221.1 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.221.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.220.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.219.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.218.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-security-patched-2.216.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.217.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.216.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.215.1 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.215.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-mercafacil-2.214.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.214.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.213.0 fastlane/lib/fastlane/actions/build_ios_app.rb
fastlane-2.212.2 fastlane/lib/fastlane/actions/build_ios_app.rb