class Fastlane::Actions::GsBeforeAllAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb, line 42 def self.available_options [ # FastlaneCore::ConfigItem.new(key: :your_option, # env_name: "GS_PROJECT_FLOW_IOS_YOUR_OPTION", # description: "A description of your option", # optional: false, # type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb, line 25 def self.description "Plugin contains project flow code for code sharing between projects" end
details()
click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb, line 37 def self.details # Optional: "Plugin contains project flow code for code sharing between GradoService projects" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb, line 52 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md # # [:ios, :mac, :android].include?(platform) true end
return_value()
click to toggle source
# File lib/fastlane/plugin/gs_project_flow_ios/actions/gs_before_all_action.rb, line 33 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/gs_project_flow_ios/actions/gs_before_all_action.rb, line 4 def self.run(params) require 'cocoapods' # if custom meta directory specified in .env file rename it to 'metadata'. It will delete default 'metadata' dir unless ENV["ITC_META_DIR"].nil? system ("rm -rf metadata") system ("mv " + ENV["ITC_META_DIR"] + " metadata") UI.important("Use custom ITC metadata.") end unless ENV["ITC_SCREENSHOTS_DIR"].nil? system ("rm -rf screenshots") system ("mv " + ENV["ITC_SCREENSHOTS_DIR"]+ " screenshots") UI.important("Use custom ITC screenshots.") end action = 'cocoapods' parameters = {:use_bundle_exec => false} Fastlane::Helper::GsProjectFlowIosHelper.new.execute_action(action,parameters) end