class Fastlane::Actions::RefAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/rocket/actions/ref_action.rb, line 32 def self.available_options [ FastlaneCore::ConfigItem.new(key: :git, env_name: 'R_REF_GIT', description: '工程仓库地址', optional: false, type: String, verify_block: proc do |value| Tools.error("git不能为空") unless (value and not value.empty?) ENV["R_REF_GIT"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :branch, env_name: 'R_REF_BRANCH', description: '工程分支', optional: false, type: String, verify_block: proc do |value| Tools.error("branch不能为空") unless (value and not value.empty?) ENV["R_REF_BRANCH"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :pods, env_name: 'R_REF_PODS', description: '默认全量查询(耗时很久请勿使用),需要查询的pod组合,逗号分隔。1.找出哪些库使用该pod组件,却未在podsepc依赖库 2.分析import方式错误的依赖库', optional: true, default_value:"ALL", type: String, verify_block: proc do |value| Tools.error("pods不能为空") unless (value and not value.empty?) ENV["R_REF_PODS"] = value.to_s end) ] end
description()
click to toggle source
# File lib/fastlane/plugin/rocket/actions/ref_action.rb, line 16 def self.description "查找引入文件,却未在podsepc依赖文件的来源库" end
details()
click to toggle source
# File lib/fastlane/plugin/rocket/actions/ref_action.rb, line 28 def self.details "生成表,表明哪些库需要在哪些podspec中引入" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/rocket/actions/ref_action.rb, line 66 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform # # [:ios, :mac, :android].include?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/rocket/actions/ref_action.rb, line 24 def self.return_value # If your method provides a return value, you can describe here what it does end
run(params)
click to toggle source
# File lib/fastlane/plugin/rocket/actions/ref_action.rb, line 7 def self.run(params) begin Ref::RefMain.run(params,available_options) rescue Exception => e Tools.error(e.message) end Tools.title("完成!!!") end