fastlane-plugin-appcenter 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a9270d888c11289fe4b8299c5fb2083720ea2d176b45c7259219e5259f93d21
4
- data.tar.gz: c8ed71bf5f15fc6be1a184a49d726ba6f4ae3f387fa1b7d3bbaa87864580d98b
3
+ metadata.gz: 06e7a06872ade9ba49e022055caf5c18fa698d159d9f5e3102e0c61c18374567
4
+ data.tar.gz: 17b67894cd163488506eed9556fe86e1acb5b189159abf2d0eb04374979f873a
5
5
  SHA512:
6
- metadata.gz: ffbe59a7104d6a9933219c780db384030c7903eb3646204e33b41e08535ca4b0663aa2824080d99b54b33f3628178d8b95c19593791ea45b667bcbb1bf4ed580
7
- data.tar.gz: b5aa1ca4963508a29541dbe579aafff96f65f30ce76a25e2f349e81177df59bce62cb2cdb7534d4609f53dc3e5f921e9b1c1472a42a445e84edfbdb8d42458d2
6
+ metadata.gz: ea821be78f87c8bfe5385d5f93743f7638c242e762891d4d1b28a637eb1fcfef8241920c76ee5815944c194d3e67e15003638111a88a0bd85a7f67cb92a1a31b
7
+ data.tar.gz: 4e3509ff456f6eaaa5aa14ab88f24411945821edde533475cea4cac42291b12e995798e6b276ad0543ff202c2d845cfb0005f304ae4e6928b40bc28d808fb8d1
data/README.md CHANGED
@@ -47,6 +47,7 @@ The action parameters `api_token` and `owner_name` can also be omitted when thei
47
47
  - `APPCENTER_DISTRIBUTE_RELEASE_NOTES` - Release notes
48
48
  - `APPCENTER_DISTRIBUTE_RELEASE_NOTES_CLIPPING` - Clip release notes if its length is more then 5000, `true` by default
49
49
  - `APPCENTER_DISTRIBUTE_RELEASE_NOTES_LINK` - Additional release notes link
50
+ - `APPCENTER_DISTRIBUTE_TIMEOUT` - Sets the request timeout in seconds. Used when uploading builds to App Center.
50
51
 
51
52
  ## Example
52
53
 
@@ -102,6 +102,7 @@ module Fastlane
102
102
  release_notes = params[:release_notes]
103
103
  should_clip = params[:should_clip]
104
104
  release_notes_link = params[:release_notes_link]
105
+ timeout = params[:timeout]
105
106
 
106
107
  if release_notes.length >= Constants::MAX_RELEASE_NOTES_LENGTH
107
108
  unless should_clip
@@ -129,7 +130,7 @@ module Fastlane
129
130
  upload_url = upload_details['upload_url']
130
131
 
131
132
  UI.message("Uploading release binary...")
132
- uploaded = Helper::AppcenterHelper.upload_build(api_token, owner_name, app_name, file, upload_id, upload_url)
133
+ uploaded = Helper::AppcenterHelper.upload_build(api_token, owner_name, app_name, file, upload_id, upload_url, timeout)
133
134
 
134
135
  if uploaded
135
136
  release_id = uploaded['release_id']
@@ -412,6 +413,12 @@ module Fastlane
412
413
  description: "The version number. Used (and required) for uploading Android ProGuard mapping file",
413
414
  optional: true,
414
415
  type: String),
416
+
417
+ FastlaneCore::ConfigItem.new(key: :timeout,
418
+ env_name: "APPCENTER_DISTRIBUTE_TIMEOUT",
419
+ description: "Request timeout in seconds",
420
+ optional: true,
421
+ type: Integer),
415
422
  ]
416
423
  end
417
424
 
@@ -125,7 +125,7 @@ module Fastlane
125
125
  end
126
126
  end
127
127
 
128
- # committs or aborts symbol upload
128
+ # commits or aborts symbol upload
129
129
  def self.update_symbol_upload(api_token, owner_name, app_name, symbol_upload_id, status)
130
130
  connection = self.connection
131
131
 
@@ -179,7 +179,7 @@ module Fastlane
179
179
  # upload binary for specified upload_url
180
180
  # if succeed, then commits the release
181
181
  # otherwise aborts
182
- def self.upload_build(api_token, owner_name, app_name, file, upload_id, upload_url)
182
+ def self.upload_build(api_token, owner_name, app_name, file, upload_id, upload_url, timeout)
183
183
  connection = self.connection(upload_url)
184
184
 
185
185
  options = {}
@@ -188,6 +188,7 @@ module Fastlane
188
188
  options[:ipa] = Faraday::UploadIO.new(file, 'application/octet-stream') if file && File.exist?(file)
189
189
 
190
190
  response = connection.post do |req|
191
+ req.options.timeout = timeout
191
192
  req.headers['internal-request-source'] = "fastlane"
192
193
  req.body = options
193
194
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appcenter
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-appcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-26 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler