Sha256: 1d1422f7dd30d458afb8c272d4a8ebdfa77509a2c6c8e4839da402d2de2b37e1

Contents?: true

Size: 1.41 KB

Versions: 15

Compression:

Stored size: 1.41 KB

Contents

module Fastlane
  module Actions
    class SupplyAction < Action
      def self.run(params)
        require 'supply'
        require 'supply/options'

        all_apk_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] || []
        if all_apk_paths.length > 1
          params[:apk_paths] ||= all_apk_paths
        else
          params[:apk] ||= Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
        end

        Supply.config = params # we already have the finished config

        Supply::Uploader.new.perform_upload
      end

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

      def self.description
        "Upload metadata, screenshots and binaries to Google Play"
      end

      def self.details
        "More information: https://github.com/fastlane/fastlane/tree/master/supply"
      end

      def self.available_options
        require 'supply'
        require 'supply/options'
        Supply::Options.available_options
      end

      def self.output
      end

      def self.return_value
      end

      def self.authors
        ["KrauseFx"]
      end

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

      def self.example_code
        [
          'supply'
        ]
      end

      def self.category
        :production
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fastlane-2.20.0.beta.20170306010752 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.20.0.beta.20170305010057 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.20.0.beta.20170304010023 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.20.0.beta.20170303010054 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.20.0.beta.20170302010029 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.1 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0.beta.20170301010932 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0.beta.20170228010016 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0.beta.20170227010016 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0.beta.20170226010028 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0.beta.20170225010031 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0.beta.20170224010025 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.18.3 fastlane/lib/fastlane/actions/supply.rb
fastlane-2.19.0.beta.20170223010028 fastlane/lib/fastlane/actions/supply.rb