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.49.0 lib/fastlane/actions/default_platform.rb
fastlane-1.48.0 lib/fastlane/actions/default_platform.rb
fastlane-1.47.0 lib/fastlane/actions/default_platform.rb
fastlane-1.46.1 lib/fastlane/actions/default_platform.rb
fastlane-1.46.0 lib/fastlane/actions/default_platform.rb
fastlane-1.45.0 lib/fastlane/actions/default_platform.rb
fastlane-1.44.0 lib/fastlane/actions/default_platform.rb
fastlane-1.43.0 lib/fastlane/actions/default_platform.rb
fastlane-1.42.0 lib/fastlane/actions/default_platform.rb
fastlane-1.41.1 lib/fastlane/actions/default_platform.rb
fastlane-1.41.0 lib/fastlane/actions/default_platform.rb
fastlane-1.40.0 lib/fastlane/actions/default_platform.rb
fastlane-1.39.0 lib/fastlane/actions/default_platform.rb
fastlane-1.38.1 lib/fastlane/actions/default_platform.rb
fastlane-1.38.0 lib/fastlane/actions/default_platform.rb
fastlane-1.37.0 lib/fastlane/actions/default_platform.rb
fastlane-1.36.4 lib/fastlane/actions/default_platform.rb
fastlane-1.36.3 lib/fastlane/actions/default_platform.rb
fastlane-1.36.2 lib/fastlane/actions/default_platform.rb
fastlane-1.36.1 lib/fastlane/actions/default_platform.rb