Sha256: 608b4f68c3daa5b1187f30e5b3d840fe90c0ef3d6110c28b5e3de7cf5908e9ca

Contents?: true

Size: 932 Bytes

Versions: 322

Compression:

Stored size: 932 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
      DEFAULT_PLATFORM = :DEFAULT_PLATFORM
    end

    class DefaultPlatformAction < Action
      def self.run(params)
        UI.user_error!("You forgot to pass the default platform") 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.output
        [
          ['DEFAULT_PLATFORM', 'The default platform']
        ]
      end

      def self.example_code
        [
          'default_platform(:android)'
        ]
      end

      def self.category
        :misc
      end

      def self.author
        "KrauseFx"
      end

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

Version data entries

322 entries across 322 versions & 5 rubygems

Version Path
fastlane-2.138.0 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.137.0 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.136.0 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.135.2 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.135.1 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.135.0 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.134.0 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.133.0 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190930200026 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190929200020 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190928200106 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190927200017 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190926200023 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190925200108 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190924200030 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190923200017 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190922200014 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190921200021 fastlane/lib/fastlane/actions/default_platform.rb
fastlane-2.132.0.beta.20190920200012 fastlane/lib/fastlane/actions/default_platform.rb