Sha256: df00b76e21b15fe228958698d398665a543e9a056fc5828bff59614da4df23d0

Contents?: true

Size: 1.63 KB

Versions: 347

Compression:

Stored size: 1.63 KB

Contents

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

        # If no APK params were provided, try to fill in the values from lane context, preferring
        # the multiple APKs over the single APK if set.
        if params[:apk_paths].nil? && params[:apk].nil?
          all_apk_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] || []
          if all_apk_paths.size > 1
            params[:apk_paths] = all_apk_paths
          else
            params[:apk] = Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
          end
        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

347 entries across 347 versions & 1 rubygems

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