Sha256: 46d772b2a38fe42fd43b97f312c05beb03a7fc589b1e896cc9fdd98a9d2118f4

Contents?: true

Size: 1.74 KB

Versions: 212

Compression:

Stored size: 1.74 KB

Contents

module Fastlane
  module Actions
    class PilotAction < 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]

        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"
      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
        [
          'testflight',
          'pilot # alias for "testflight"',
          'testflight(skip_submission: true) # to only upload the build',
          '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)
        true
      end
    end
  end
end

Version data entries

212 entries across 212 versions & 1 rubygems

Version Path
fastlane-2.42.0.beta.20170628010031 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.42.0.beta.20170627010007 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.42.0.beta.20170626010017 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.42.0.beta.20170625010032 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.42.0.beta.20170624010047 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.41.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.41.0.beta.20170623010027 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0.beta.20170622010014 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0.beta.20170621010038 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0.beta.20170620010029 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.39.2 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0.beta.20170619010029 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0.beta.20170618010039 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0.beta.20170617010037 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.39.1 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.40.0.beta.20170616010015 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.39.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.39.0.beta.20170615010031 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.39.0.beta.20170614010012 fastlane/lib/fastlane/actions/pilot.rb