Class: Fastlane::Actions::ConnectedUploadAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::ConnectedUploadAction
- Defined in:
- lib/fastlane/plugin/connected/actions/connected_upload_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
50 51 52 |
# File 'lib/fastlane/plugin/connected/actions/connected_upload_action.rb', line 50 def self. ["Abgier Avraha"] end |
.available_options ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/fastlane/plugin/connected/actions/connected_upload_action.rb', line 63 def self. [ FastlaneCore::ConfigItem.new(key: :ipa_file, env_name: "IPA_FILE", description: "The path to your compiled .ipa file", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :xcode_dir, env_name: "DEVELOPER_DIR", description: "The path to your xcode directory", default_value: "/Applications/Xcode.app", optional: true, type: String), 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: :issuer_id, env_name: "CONNECT_KEY_ISSUER_ID", description: "You app store connect issuer id 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) ] end |
.description ⇒ Object
46 47 48 |
# File 'lib/fastlane/plugin/connected/actions/connected_upload_action.rb', line 46 def self.description "App Store Connect API Uploader Module" end |
.details ⇒ Object
58 59 60 61 |
# File 'lib/fastlane/plugin/connected/actions/connected_upload_action.rb', line 58 def self.details # Optional: "" end |
.is_supported?(platform) ⇒ Boolean
94 95 96 |
# File 'lib/fastlane/plugin/connected/actions/connected_upload_action.rb', line 94 def self.is_supported?(platform) [:ios].include?(platform) end |
.return_value ⇒ Object
54 55 56 |
# File 'lib/fastlane/plugin/connected/actions/connected_upload_action.rb', line 54 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/fastlane/plugin/connected/actions/connected_upload_action.rb', line 8 def self.run(params) xcode_path = params.values[:xcode_dir] ipa_file = params.values[:ipa_file] api_key = params.values[:api_key] issuer_id = params.values[:issuer_id] key_id = params.values[:key_id] if ipa_file == '*' UI.success("Successfully Uploaded IPA File!") return end # Check that ipa file exists unless File.exist?(ipa_file) UI.error("Could not find ipa file in #{File.(ipa_file)}") UI.error("You can change the path to a different ipa file using the ipa_file command or IPA_FILE env variable") raise 'Connected Fastlane plugin failed to find your ipa file' end # Check for xcode installation unless File.exist?(xcode_path) UI.error("Could not find XCode in #{File.(xcode_path)}") UI.error("You can change the path to a different xcode installation using the xcode_dir command or DEVELOPER_DIR env variable") raise 'Connected Fastlane plugin failed to find your xcode installation' end # Upload app Helper::UploadHelper.upload_app( ipa_file, api_key, issuer_id, key_id, xcode_path ) UI.success("Successfully Uploaded .ipa File!") end |