Sha256: bcc0efb62fa6ca2e15a3168444fffebd29ca5f4b47f2be207a76a998f91260d7

Contents?: true

Size: 1.95 KB

Versions: 107

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 new binary to App Store Connect for TestFlight beta testing (via _pilot_)"
      end

      def self.details
        [
          "More details can be found on https://docs.fastlane.tools/actions/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

107 entries across 107 versions & 1 rubygems

Version Path
fastlane-2.117.0.beta.20190228200006 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190227200038 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190226200042 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190225200103 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190224200023 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190223200012 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190222200022 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190221200044 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190220200018 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.116.1 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190219200042 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190218200024 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190217200019 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190216200056 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190215200101 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190214200107 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190213200055 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190212200112 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190211200054 fastlane/lib/fastlane/actions/upload_to_testflight.rb
fastlane-2.117.0.beta.20190210200028 fastlane/lib/fastlane/actions/upload_to_testflight.rb