Sha256: f00f16b4e8feaac22042adc78b2d5f54f870926ea829cac25203942e6b418df1

Contents?: true

Size: 670 Bytes

Versions: 71

Compression:

Stored size: 670 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
      DEFAULT_PLATFORM = :DEFAULT_PLATFORM
    end

    class DefaultPlatformAction < Action
      def self.run(params)
        raise "You forgot to pass the default platform".red if params.first.nil?

        platform = params.first.to_sym

        SupportedPlatforms.verify! platform

        Actions.lane_context[SharedValues::DEFAULT_PLATFORM] = platform
      end

      def self.description
        "Defines a default platform to not have to specify the platform"
      end

      def self.author
        "KrauseFx"
      end

      def self.is_supported?(platform)
        true
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
fastlane-1.68.0 lib/fastlane/actions/default_platform.rb
fastlane-1.67.0 lib/fastlane/actions/default_platform.rb
fastlane-1.66.0 lib/fastlane/actions/default_platform.rb
fastlane-1.65.0 lib/fastlane/actions/default_platform.rb
fastlane-1.64.0 lib/fastlane/actions/default_platform.rb
fastlane-1.63.1 lib/fastlane/actions/default_platform.rb
fastlane-1.63.0 lib/fastlane/actions/default_platform.rb
fastlane-1.62.0 lib/fastlane/actions/default_platform.rb
fastlane-1.61.0 lib/fastlane/actions/default_platform.rb
fastlane-1.60.0 lib/fastlane/actions/default_platform.rb
fastlane-1.59.0 lib/fastlane/actions/default_platform.rb
fastlane-1.58.0 lib/fastlane/actions/default_platform.rb
fastlane-1.57.0 lib/fastlane/actions/default_platform.rb
fastlane-1.56.0 lib/fastlane/actions/default_platform.rb
fastlane-1.55.0 lib/fastlane/actions/default_platform.rb
fastlane-1.54.0 lib/fastlane/actions/default_platform.rb
fastlane-1.53.0 lib/fastlane/actions/default_platform.rb
fastlane-1.52.0 lib/fastlane/actions/default_platform.rb
fastlane-1.51.0 lib/fastlane/actions/default_platform.rb
fastlane-1.50.0 lib/fastlane/actions/default_platform.rb