Class: Fastlane::Actions::DownloadFromPlayStoreAction

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

Constant Summary

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



42
43
44
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 42

def self.authors
  ["janpio"]
end

.available_optionsObject



26
27
28
29
30
31
32
33
34
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 26

def self.available_options
  require 'supply'
  require 'supply/options'
  options = Supply::Options.available_options.clone

  # remove all the unnecessary (for this action) options
  options_to_keep = [:package_name, :version_name, :track, :metadata_path, :json_key, :json_key_data, :root_url, :timeout, :key, :issuer]
  options.delete_if { |option| options_to_keep.include?(option.key) == false }
end

.categoryObject



56
57
58
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 56

def self.category
  :production
end

.descriptionObject



18
19
20
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 18

def self.description
  "Download metadata and binaries from Google Play (via _supply_)"
end

.detailsObject



22
23
24
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 22

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

.example_codeObject



50
51
52
53
54
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 50

def self.example_code
  [
    'download_from_play_store'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



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

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

.outputObject



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

def self.output
end

.return_valueObject



39
40
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 39

def self.return_value
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'fastlane/lib/fastlane/actions/download_from_play_store.rb', line 4

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

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

  require 'supply/setup'
  Supply::Setup.new.perform_download
end