Sha256: 5fda0751fd7795d304c8ca81a27d0ac1bf47f3b0c7a70abb26882d8354814f01

Contents?: true

Size: 1.3 KB

Versions: 2

Compression:

Stored size: 1.3 KB

Contents

module Fastlane
  module Actions
    module SharedValues
    end

    class TestflightAction < Action
      def self.run(params)
        values = params.values
        values[:beta] = true # always true for beta actions
        real_options = FastlaneCore::Configuration.create(Actions::DeliverAction.available_options, values)
        return real_options if Helper.is_test?

        Actions::DeliverAction.run(real_options)
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Upload a new build to iTunes Connect. This won't upload app metadata"
      end

      def self.available_options
        [
          FastlaneCore::ConfigItem.new(key: :skip_deploy,
                                       env_name: "FL_DELIVER_SKIP_DEPLOY",
                                       description: "Skip the distribution of the app to all beta testers",
                                       default_value: false,
                                       is_string: false)
        ]
      end

      def self.output
        []
      end

      def self.author
        'KrauseFx'
      end

      def self.is_supported?(platform)
        [:ios, :mac].include?platform
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastlane-1.6.0 lib/fastlane/actions/testflight.rb
fastlane-1.5.0 lib/fastlane/actions/testflight.rb