class Fastlane::Actions::UploadToPlayStoreAction
Public Class Methods
available_options()
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 48 def self.available_options require 'supply' require 'supply/options' Supply::Options.available_options end
category()
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 75 def self.category :production end
description()
click to toggle source
@!group Documentation
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 40 def self.description "Upload metadata, screenshots and binaries to Google Play (via _supply_)" end
details()
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 44 def self.details "More information: https://docs.fastlane.tools/actions/supply/" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 68 def self.example_code [ 'upload_to_play_store', 'supply # alias for "upload_to_play_store"' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 64 def self.is_supported?(platform) platform == :android end
output()
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 54 def self.output end
return_value()
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 57 def self.return_value end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/upload_to_play_store.rb, line 4 def self.run(params) require 'supply' require 'supply/options' # If no APK params were provided, try to fill in the values from lane context, preferring # the multiple APKs over the single APK if set. if params[:apk_paths].nil? && params[:apk].nil? all_apk_paths = Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] || [] if all_apk_paths.size > 1 params[:apk_paths] = all_apk_paths else params[:apk] = Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] end end # If no AAB param was provided, try to fill in the value from lane context. # First GRADLE_ALL_AAB_OUTPUT_PATHS if only one # Else from GRADLE_AAB_OUTPUT_PATH if params[:aab].nil? all_aab_paths = Actions.lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS] || [] if all_aab_paths.count == 1 params[:aab] = all_aab_paths.first else params[:aab] = Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH] end end Supply.config = params # we already have the finished config Supply::Uploader.new.perform_upload end