Sha256: 8124dd590a67e691d21baff490236fcc1a21ba90c1b993bfcaff78b97ac0ac82

Contents?: true

Size: 1.95 KB

Versions: 51

Compression:

Stored size: 1.95 KB

Contents

module Fastlane
  module Actions
    class UploadToTestflightAction < Action
      def self.run(values)
        require 'pilot'
        require 'pilot/options'

        changelog = Actions.lane_context[SharedValues::FL_CHANGELOG]
        values[:changelog] ||= changelog if changelog

        values[:ipa] ||= Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
        values[:ipa] = File.expand_path(values[:ipa]) if values[:ipa]

        return values if Helper.test?

        Pilot::BuildManager.new.upload(values) # we already have the finished config
      end

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

      def self.description
        "Upload a new binary to iTunes Connect for TestFlight beta testing (via _pilot_)"
      end

      def self.details
        [
          "More details can be found on https://github.com/fastlane/fastlane/tree/master/pilot",
          "This integration will only do the TestFlight upload"
        ].join("\n")
      end

      def self.available_options
        require "pilot"
        require "pilot/options"
        FastlaneCore::CommanderGenerator.new.generate(Pilot::Options.available_options)
      end

      def self.example_code
        [
          'upload_to_testflight',
          'testflight # alias for "upload_to_testflight"',
          'pilot # alias for "upload_to_testflight"',
          'upload_to_testflight(skip_submission: true) # to only upload the build',
          'upload_to_testflight(
            username: "felix@krausefx.com",
            app_identifier: "com.krausefx.app",
            itc_provider: "abcde12345" # pass a specific value to the iTMSTransporter -itc_provider option
          )'
        ]
      end

      def self.category
        :beta
      end

      def self.authors
        ["KrauseFx"]
      end

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

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
fastlane-2.71.0.beta.20171222010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.3 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171221010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.2 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171220010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171219010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.1 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.0 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.0.beta.20171217010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.0.beta.20171216010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.0.beta.20171215010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.69.3 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.0.beta.20171214010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.69.2 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.69.1 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.70.0.beta.20171213010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.69.0 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.69.0.beta.20171212010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.69.0.beta.20171211010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.69.0.beta.20171210010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb