Sha256: 02c3d534309e46164811a1165444596f2dcc33e4542d2ac134d92d9a554bf087

Contents?: true

Size: 1.83 KB

Versions: 102

Compression:

Stored size: 1.83 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)
        [:ios].include?(platform)
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
fastlane-2.68.0.beta.20171129010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171128010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171127010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171126010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171125010004 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171124010004 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171123010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171122010004 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.66.2 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.66.1 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.67.0.beta.20171121010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.66.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.65.0 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.65.0.beta.20171120010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.65.0.beta.20171119010004 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.65.0.beta.20171118010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.65.0.beta.20171117010003 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.65.0.beta.20171116010004 fastlane/lib/fastlane/actions/pilot.rb
fastlane-2.65.0.beta.20171115010004 fastlane/lib/fastlane/actions/pilot.rb