Class: Fastlane::Actions::GooglePlayTrackVersionCodesAction
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
]
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
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
.authors ⇒ Object
58
59
60
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 58
def self.authors
["panthomakos"]
end
|
.available_options ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 42
def self.available_options
require 'supply'
require 'supply/options'
Supply::Options.available_options.select do |option|
OPTIONS.include?(option.key)
end
end
|
.category ⇒ Object
72
73
74
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 72
def self.category
:misc
end
|
.description ⇒ Object
34
35
36
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 34
def self.description
"Retrieves version codes for a Google Play track"
end
|
.details ⇒ Object
38
39
40
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 38
def self.details
"More information: [https://docs.fastlane.tools/actions/supply/](https://docs.fastlane.tools/actions/supply/)"
end
|
.example_code ⇒ Object
66
67
68
69
70
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 66
def self.example_code
[
'google_play_track_version_codes'
]
end
|
.is_supported?(platform) ⇒ Boolean
62
63
64
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 62
def self.is_supported?(platform)
platform == :android
end
|
.output ⇒ Object
51
52
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 51
def self.output
end
|
.return_value ⇒ Object
54
55
56
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 54
def self.return_value
"Array of integers representing the version codes for the given Google Play track"
end
|
.run(params) ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'fastlane/lib/fastlane/actions/google_play_track_version_codes.rb', line 16
def self.run(params)
require 'supply'
require 'supply/options'
require 'supply/reader'
Supply.config = params
version_codes = Supply::Reader.new.track_version_codes || []
return version_codes.compact.map(&:to_i)
end
|