Class: Fastlane::Actions::GooglePlayTrackReleaseNamesAction

Inherits:
Fastlane::Action show all
Defined in:
fastlane/lib/fastlane/actions/google_play_track_release_names.rb

Constant Summary collapse

OPTIONS =

Supply::Options.available_options keys that apply to this action.

[
  :package_name,
  :track,
  :key,
  :issuer,
  :json_key,
  :json_key_data,
  :root_url,
  :timeout
]

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, deprecated_notes, lane_context, method_missing, other_action, return_type, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject



55
56
57
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 55

def self.authors
  ["raldred"]
end

.available_optionsObject



39
40
41
42
43
44
45
46
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 39

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

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

.categoryObject



69
70
71
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 69

def self.category
  :misc
end

.descriptionObject



31
32
33
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 31

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

.detailsObject



35
36
37
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 35

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

.example_codeObject



63
64
65
66
67
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 63

def self.example_code
  [
    'google_play_track_release_names'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



59
60
61
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 59

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

.outputObject



48
49
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 48

def self.output
end

.return_valueObject



51
52
53
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 51

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

.run(params) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'fastlane/lib/fastlane/actions/google_play_track_release_names.rb', line 16

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