Class: Fastlane::Actions::GooglePlayTrackVersionCodesAction

Inherits:
Fastlane::Action show all
Defined in:
fastlane/lib/fastlane/actions/google_play_track_version_codes.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
]

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



53
54
55
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 53

def self.authors
  ["panthomakos"]
end

.available_optionsObject



37
38
39
40
41
42
43
44
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 37

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

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

.categoryObject



67
68
69
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 67

def self.category
  :misc
end

.descriptionObject



29
30
31
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 29

def self.description
  "Retrieves version codes for a Google Play track"
end

.detailsObject



33
34
35
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 33

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

.example_codeObject



61
62
63
64
65
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 61

def self.example_code
  [
    'google_play_track_version_codes'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



57
58
59
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 57

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

.outputObject



46
47
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 46

def self.output
end

.return_valueObject



49
50
51
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 49

def self.return_value
  "Array of integers representing the version codes for the given Google Play track"
end

.run(params) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 15

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

  Supply.config = params

  Supply::Reader.new.track_version_codes
end