class Fastlane::Actions::ConnectedAuthAction
Public Class Methods
available_options()
click to toggle source
# File lib/fastlane/plugin/connected/actions/connected_auth_action.rb, line 44 def self.available_options [ FastlaneCore::ConfigItem.new(key: :api_key, env_name: "CONNECT_API_KEY", description: "You app store connect api key", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :key_id, env_name: "CONNECT_KEY_ID", description: "You app store connect key id", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :issuer_id, env_name: "CONNECT_KEY_ISSUER_ID", description: "You app store connect issuer id key", optional: false, type: String) ] end
description()
click to toggle source
# File lib/fastlane/plugin/connected/actions/connected_auth_action.rb, line 27 def self.description "App Store Connect API Authentication Module" end
details()
click to toggle source
# File lib/fastlane/plugin/connected/actions/connected_auth_action.rb, line 39 def self.details # Optional: "" end
is_supported?(platform)
click to toggle source
# File lib/fastlane/plugin/connected/actions/connected_auth_action.rb, line 64 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/connected/actions/connected_auth_action.rb, line 35 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/connected/actions/connected_auth_action.rb, line 8 def self.run(params) api_key = params.values[:api_key] key_id = params.values[:key_id] issuer_id = params.values[:issuer_id] if api_key == '*' UI.success("Successfully Authenticated with App Store Connect!") return end AppStoreConnect.config = { issuer_id: issuer_id, key_id: key_id, private_key: api_key } UI.success("Successfully Authenticated with App Store Connect!") end