class Fastlane::Actions::FirAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/fir/actions/fir_action.rb, line 28 def self.available_options [ FastlaneCore::ConfigItem.new(key: :api_token, env_name: "FL_FIR_API_TOKEN", description: "API Token for fir.im", sensitive: true, verify_block: proc do |value| UI.user_error!("No API token for FirAction given, pass using `api_token: 'token'`") unless (value and not value.empty?) end), FastlaneCore::ConfigItem.new(key: :apk_path, env_name: "FL_FIR_APK_PATH", description: "Path to your APK file. Optional if you use the gradle action", default_value: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH], verify_block: proc do |value| UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value) end), FastlaneCore::ConfigItem.new(key: :changelog, env_name: "FL_FIR_CHANGELOG", description: "Release changelog, support string or file path", default_value: "") ] end
category()
click to toggle source
# File lib/fastlane/plugin/fir/actions/fir_action.rb, line 67 def self.category :beta end
description()
click to toggle source
@!group Documentation
# File lib/fastlane/plugin/fir/actions/fir_action.rb, line 20 def self.description "Upload a new build to fir.im" end
details()
click to toggle source
# File lib/fastlane/plugin/fir/actions/fir_action.rb, line 24 def self.details "Based on fir-cli" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/fir/actions/fir_action.rb, line 61 def self.is_supported?(platform) # ios coming soon # [:android, :ios].include?(platform) platform == :android end
output()
click to toggle source
# File lib/fastlane/plugin/fir/actions/fir_action.rb, line 51 def self.output [ # ['FIR_DOWNLOAD_LINK', 'The newly generated download link for this build'] ] end
run(params)
click to toggle source
# File lib/fastlane/plugin/fir/actions/fir_action.rb, line 8 def self.run(params) command = ["fir publish #{params[:apk_path]}"] command << "-T #{params[:api_token]}" command << "-c \'#{params[:changelog]}\'" unless params[:changelog].empty? sh command.join(' ') # Actions.lane_context[SharedValues::FIR_DOWNLOAD_LINK] = "" end