Sha256: 400153d7df89abee20403e9dea21e9c6509b5574067c198d38dd13eecc8d0020

Contents?: true

Size: 1.47 KB

Versions: 2

Compression:

Stored size: 1.47 KB

Contents

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

        begin
          FastlaneCore::UpdateChecker.start_looking_for_update('supply') unless Helper.is_test?

          params[:apk] ||= Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]

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

          Supply::Uploader.new.perform_upload
        ensure
          FastlaneCore::UpdateChecker.show_update_status('supply', Supply::VERSION)
        end
      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
        # If you method provides a return value, you can describe here what it does
      end

      def self.authors
        # So no one will ever forget your contribution to fastlane :) You are awesome btw!
        ["KrauseFx"]
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastlane-1.68.0 lib/fastlane/actions/supply.rb
fastlane-1.67.0 lib/fastlane/actions/supply.rb