Sha256: 4cfb5283ce2f695894aead9b83e76ecbade97e72323e849740b01c9c36f0e479

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 KB

Contents

module Fastlane
  module Actions
    class GooglePlayTrackReleaseNamesAction < Action
      # Supply::Options.available_options keys that apply to this action.
      OPTIONS = [
        :package_name,
        :track,
        :key,
        :issuer,
        :json_key,
        :json_key_data,
        :root_url,
        :timeout
      ]

      def self.run(params)
        require 'supply'
        require 'supply/options'
        require 'supply/reader'

        Supply.config = params

        release_names = Supply::Reader.new.track_release_names || []
        return release_names.compact
      end

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

      def self.description
        "Retrieves release names for a Google Play track"
      end

      def self.details
        "More information: [https://docs.fastlane.tools/actions/supply/](https://docs.fastlane.tools/actions/supply/)"
      end

      def self.available_options
        require 'supply'
        require 'supply/options'

        Supply::Options.available_options.select do |option|
          OPTIONS.include?(option.key)
        end
      end

      def self.output
      end

      def self.return_value
        "Array of strings representing the release names for the given Google Play track"
      end

      def self.authors
        ["raldred"]
      end

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

      def self.example_code
        [
          'google_play_track_release_names'
        ]
      end

      def self.category
        :misc
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane/lib/fastlane/actions/google_play_track_release_names.rb
fastlane_hotfix-2.165.0 fastlane/lib/fastlane/actions/google_play_track_release_names.rb
fastlane_hotfix-2.187.0 fastlane/lib/fastlane/actions/google_play_track_release_names.rb