Sha256: 72d5d6dcd9616636db5322fd189511b53d90a3902860e58837ced245c3cb7526

Contents?: true

Size: 1.72 KB

Versions: 51

Compression:

Stored size: 1.72 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://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
        [
          'upload_to_play_store',
          'supply # alias for "upload_to_play_store"'
        ]
      end

      def self.category
        :production
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180107010004 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.74.0.beta.20180106010004 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.73.0 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.73.0.beta.20180105010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.73.0.beta.20180104010004 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.73.0.beta.20180103010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.72.0 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.72.0.beta.20180102010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.72.0.beta.20180101010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.72.0.beta.20171231010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.71.1 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.72.0.beta.20171230010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.72.0.beta.20171229010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.72.0.beta.20171228010004 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.71.0 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.71.0.beta.20171227010004 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.71.0.beta.20171226010004 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.71.0.beta.20171225010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.71.0.beta.20171224010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb
fastlane-2.71.0.beta.20171223010003 fastlane/lib/fastlane/actions/upload_to_play_store.rb