fastlane-plugin-diawi 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -0
- data/lib/fastlane/plugin/diawi/actions/diawi_action.rb +10 -4
- data/lib/fastlane/plugin/diawi/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 77472d0e23aaeb498ab1ad1b35187fa1b3e21aee9fa53702b30c71f1b006104a
|
4
|
+
data.tar.gz: 1a8279eabdc3c550cb9d9a2ccf7cac31e560557ecba45a2d90c357fb5da86f56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8781a35ccbe70da2f1b340e2a3ce17d4b7cfeb064b13eafc023025f2c2404f6c51f52df80b70334ce411fcae396b9c7c17a1d2dc40a1988aba4895e75af73e
|
7
|
+
data.tar.gz: 1eb93676dbe1b3d22b56184f9c95e3bed4be15ec0e5177e38e78d0eafbd33be2e2f519765fe90fb3ecfe9ac4aeb049e194db287b431d26790df0b5e7263ede1e
|
data/README.md
CHANGED
@@ -29,6 +29,7 @@ Key | Required | Type | Description
|
|
29
29
|
**callback_emails** | `false` | `String` | The email addresses diawi will send the result to (up to 5 separated by commas for starter/premium/enterprise accounts, 1 for free accounts). Emails should be a string. Ex: "example@test.com,example1@test.com"
|
30
30
|
**installation_notifications** | `false` | `Boolean` | Receive notifications each time someone installs the app (only starter/premium/enterprise accounts)
|
31
31
|
**last_hope_attempts_count**⁺ | `false` | `Int` | Number of extra attempts to check file status (default: 1, max: 5, not in range (1...5): 1)
|
32
|
+
**last_hope_attempts_backoff**⁺ | `false` | `Int` | Number of seconds to wait between repeated attempts at checking upload status. Default - 2
|
32
33
|
|
33
34
|
<details><summary>⁺ Explanation</summary><p>
|
34
35
|
|
@@ -58,14 +58,14 @@ module Fastlane
|
|
58
58
|
job = JSON.parse(response.body)['job']
|
59
59
|
|
60
60
|
if job
|
61
|
-
return self.check_status(options[:token], options[:file], job, options[:last_hope_attempts_count])
|
61
|
+
return self.check_status(options[:token], options[:file], job, options[:last_hope_attempts_count], options[:last_hope_attempts_backoff])
|
62
62
|
end
|
63
63
|
|
64
64
|
UI.important("Something went wrong and `job` value didn't come from uploading request. Check out your dashboard: https://dashboard.diawi.com/. Maybe your file already has been uploaded successfully.")
|
65
65
|
UI.important("If not, try to upload file by yourself. Path: #{options[:file]}")
|
66
66
|
end
|
67
67
|
|
68
|
-
def self.check_status(token, file, job, last_hope_attempts_count)
|
68
|
+
def self.check_status(token, file, job, last_hope_attempts_count, last_hope_attempts_backoff)
|
69
69
|
# From documendation:
|
70
70
|
|
71
71
|
# Polling frequence
|
@@ -130,7 +130,7 @@ module Fastlane
|
|
130
130
|
end
|
131
131
|
|
132
132
|
polling_attempts += 1
|
133
|
-
sleep(
|
133
|
+
sleep(last_hope_attempts_backoff)
|
134
134
|
end
|
135
135
|
|
136
136
|
UI.important("File is not processed.")
|
@@ -198,7 +198,13 @@ module Fastlane
|
|
198
198
|
description: "Number of attempts to check status after last attempt. Default - 1, max - 5. (See more at `self.check_status` func comment)",
|
199
199
|
is_string: false,
|
200
200
|
optional: true,
|
201
|
-
default_value: 1)
|
201
|
+
default_value: 1),
|
202
|
+
FastlaneCore::ConfigItem.new(key: :last_hope_attempts_backoff,
|
203
|
+
env_name: "DIAWI_LAST_HOPE_ATTEMPTS_BACKOFF",
|
204
|
+
description: "Number of seconds to wait between repeated attempts at checking upload status. Default - 2. (See more at `self.check_status` func comment)",
|
205
|
+
is_string: false,
|
206
|
+
optional: true,
|
207
|
+
default_value: 2)
|
202
208
|
]
|
203
209
|
end
|
204
210
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-diawi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pacification
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.6.11
|
142
|
+
rubygems_version: 3.1.2
|
144
143
|
signing_key:
|
145
144
|
specification_version: 4
|
146
145
|
summary: Upload .ipa or .apk file to diawi.com
|