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.74.0.beta.20180107010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.74.0.beta.20180106010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.73.0 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.73.0.beta.20180105010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.73.0.beta.20180104010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.73.0.beta.20180103010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.72.0 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.72.0.beta.20180102010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.72.0.beta.20180101010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.72.0.beta.20171231010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.1 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.72.0.beta.20171230010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.72.0.beta.20171229010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.72.0.beta.20171228010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171227010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171226010004 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171225010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171224010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.71.0.beta.20171223010003 fastlane/lib/fastlane/actions/upload_to_testflight.rb