Sha256: f752fe265af5f0efbb761fa3e3511c55336ebcc44ac9a4b3ced125896f575e70

Contents?: true

Size: 1.48 KB

Versions: 22

Compression:

Stored size: 1.48 KB

Contents

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

        begin
          FastlaneCore::UpdateChecker.start_looking_for_update('pilot') unless Helper.is_test?

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

          values[:ipa] ||= Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]

          return values if Helper.test?

          Pilot::BuildManager.new.upload(values) # we already have the finished config
        ensure
          FastlaneCore::UpdateChecker.show_update_status('pilot', Pilot::VERSION)
        end
      end

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

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

      def self.details
        [
          "More details can be found on https://github.com/fastlane/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.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        platform == :ios
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fastlane-1.66.0 lib/fastlane/actions/pilot.rb
fastlane-1.65.0 lib/fastlane/actions/pilot.rb
fastlane-1.64.0 lib/fastlane/actions/pilot.rb
fastlane-1.63.1 lib/fastlane/actions/pilot.rb
fastlane-1.63.0 lib/fastlane/actions/pilot.rb
fastlane-1.62.0 lib/fastlane/actions/pilot.rb
fastlane-1.61.0 lib/fastlane/actions/pilot.rb
fastlane-1.60.0 lib/fastlane/actions/pilot.rb
fastlane-1.59.0 lib/fastlane/actions/pilot.rb
fastlane-1.58.0 lib/fastlane/actions/pilot.rb
fastlane-1.57.0 lib/fastlane/actions/pilot.rb
fastlane-1.56.0 lib/fastlane/actions/pilot.rb
fastlane-1.55.0 lib/fastlane/actions/pilot.rb
fastlane-1.54.0 lib/fastlane/actions/pilot.rb
fastlane-1.53.0 lib/fastlane/actions/pilot.rb
fastlane-1.52.0 lib/fastlane/actions/pilot.rb
fastlane-1.51.0 lib/fastlane/actions/pilot.rb
fastlane-1.50.0 lib/fastlane/actions/pilot.rb
fastlane-1.49.0 lib/fastlane/actions/pilot.rb
fastlane-1.48.0 lib/fastlane/actions/pilot.rb