Sha256: 7431ea7bcc0e398c99a5a9d143931964dfb08eb6f1f760ed11cdc6260c53f79f

Contents?: true

Size: 1.71 KB

Versions: 179

Compression:

Stored size: 1.71 KB

Contents

module Fastlane
  module Actions
    class UploadToPlayStoreAction < 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 (via _supply_)"
      end

      def self.details
        "More information: https://docs.fastlane.tools/actions/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
        [
          'upload_to_play_store',
          'supply # alias for "upload_to_play_store"'
        ]
      end

      def self.category
        :production
      end
    end
  end
end

Version data entries

179 entries across 179 versions & 1 rubygems

Version Path
fastlane-2.94.0.beta.20180429050039 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.94.0.beta.20180428050023 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.94.0.beta.20180427050031 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.94.0.beta.20180426050049 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.94.0.beta.20180425050017 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.1 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.94.0.beta.20180424050050 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0.beta.20180423050019 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0.beta.20180422050034 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0.beta.20180421050012 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0.beta.20180420050021 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0.beta.20180419050008 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0.beta.20180418050020 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.92.1 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.93.0.beta.20180417050013 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.92.0 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.92.0.beta.20180416050023 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.92.0.beta.20180415050019 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.92.0.beta.20180414050023 fastlane/lib/fastlane/actions/upload_to_play_store.rb