Class: Fastlane::Actions::SupplyAction

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

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, sh, step_text

Class Method Details

.authorsObject



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

def self.authors
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  ["KrauseFx"]
end

.available_optionsObject



33
34
35
36
37
# File 'lib/fastlane/actions/supply.rb', line 33

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

.descriptionObject



25
26
27
# File 'lib/fastlane/actions/supply.rb', line 25

def self.description
  "Upload metadata, screenshots and binaries to Google Play"
end

.detailsObject



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

def self.details
  "More information: https://github.com/fastlane/supply"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


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

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

.outputObject



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

def self.output
end

.return_valueObject



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

def self.return_value
  # If you method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fastlane/actions/supply.rb', line 4

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

  begin
    FastlaneCore::UpdateChecker.start_looking_for_update('supply') unless Helper.is_test?

    params[:apk] ||= Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]

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

    Supply::Uploader.new.perform_upload
  ensure
    FastlaneCore::UpdateChecker.show_update_status('supply', Supply::VERSION)
  end
end