Sha256: c332f76dd158298504b88a41260605f43b17539618e211b5ceaf0c857f0a639a

Contents?: true

Size: 1.81 KB

Versions: 90

Compression:

Stored size: 1.81 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]
        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"
      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

90 entries across 90 versions & 1 rubygems

Version Path
fastlane-2.56.0.beta.20170905010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.56.0.beta.20170904010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.56.0.beta.20170903010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.56.0.beta.20170902010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.56.0.beta.20170901010002 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0.beta.20170831010002 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.54.4 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0.beta.20170830010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0.beta.20170829010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.54.3 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0.beta.20170826010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.54.2 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0.beta.20170825010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.54.1 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0.beta.20170824010002 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.55.0.beta.20170823010002 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.54.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.54.0.beta.20170822010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.54.0.beta.20170821010003 fastlane/lib/fastlane/actions/pilot.rb