diff --git a/README.md b/README.md index 6481496..1abcdbe 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ upload_to_server( headers: { //required headers }, + verifySsl: 'false if you want to disable ssl verification' #(Optional - default is true)' ipa: 'path to your apk', #(Optional - will be taken from the gym step) apk: 'path to your ipa', #(Optional - will be taken from the gradle step) file: 'path to your custom file' diff --git a/lib/fastlane/plugin/upload_to_server/actions/upload_to_server_action.rb b/lib/fastlane/plugin/upload_to_server/actions/upload_to_server_action.rb index 5603c59..14a3c8e 100644 --- a/lib/fastlane/plugin/upload_to_server/actions/upload_to_server_action.rb +++ b/lib/fastlane/plugin/upload_to_server/actions/upload_to_server_action.rb @@ -17,6 +17,8 @@ def self.run(config) params[:multipartPayload] = config[:multipartPayload] params[:headers] = config[:headers] + params[:verifySsl] = config[:verifySsl] + apk_file = params[:apk] ipa_file = params[:ipa] custom_file = params[:file] @@ -53,6 +55,7 @@ def self.upload_file(params, multipart_payload) url: params[:endPoint], payload: multipart_payload, headers: params[:headers], + verify_ssl: params[:verifySsl], log: Logger.new(STDOUT) ) @@ -80,6 +83,12 @@ def self.details def self.available_options [ + FastlaneCore::ConfigItem.new(key: :verifySsl, + env_name: "", + description: "enable or disable ssl verification", + optional: true, + default_value: true, + type: Boolean), FastlaneCore::ConfigItem.new(key: :apk, env_name: "", description: ".apk file for the build",