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.29.1 lib/fastlane/actions/default_platform.rb
fastlane-1.29.0 lib/fastlane/actions/default_platform.rb
fastlane-1.28.0 lib/fastlane/actions/default_platform.rb
fastlane-1.27.0 lib/fastlane/actions/default_platform.rb
fastlane-1.26.0 lib/fastlane/actions/default_platform.rb
fastlane-1.25.1 lib/fastlane/actions/default_platform.rb
fastlane-1.25.0 lib/fastlane/actions/default_platform.rb
fastlane-1.24.0 lib/fastlane/actions/default_platform.rb
fastlane-1.23.0 lib/fastlane/actions/default_platform.rb
fastlane-1.22.0 lib/fastlane/actions/default_platform.rb
fastlane-1.21.0 lib/fastlane/actions/default_platform.rb