Class: Fastlane::Actions::UploadFirAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/fastci/actions/upload_fir_action.rb

Overview

上传Fir

Class Method Summary collapse

Class Method Details

.available_optionsObject



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

def self.available_options
  [
    FastlaneCore::ConfigItem.new(
      key: :changelog,
      description: "更新日志",
      optional: true,
      type: String
    ),
  ]
end

.categoryObject



41
42
43
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 41

def self.category
  :building
end

.descriptionObject



22
23
24
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 22

def self.description
  "上传Fir"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 37

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

.run(params) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fastlane/plugin/fastci/actions/upload_fir_action.rb', line 9

def self.run(params)
  UI.message("*************| 开始上传Fir |*************")

  firinfo = other_action.fir_cli(
    api_token: Environment.fir_api_token,
    password: Environment.fir_password,
    changelog: params[:changelog],
    switch_to_qiniu: true
  )
  
  return firinfo
end