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.29.0.beta.20170502010055 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170501010050 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170430010051 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.7 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170429010036 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.6 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170428010037 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170427010043 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.5 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170426010043 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.4 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170425010038 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170424010049 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170423010015 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170422010059 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.3 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.29.0.beta.20170421010107 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.2 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.1 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.28.0 fastlane/lib/fastlane/actions/pilot.rb