fastlane-plugin-diawi 1.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04d3075ca4844afc66a5901c747809bcf7587a51
4
- data.tar.gz: d87a0bc99bfbd37912e9912f9bc03044b327e393
3
+ metadata.gz: 365be7895b37b23deccac75de7ea3798667a27cb
4
+ data.tar.gz: b6d5662d85413b352c80ecb2cb29654952e08a78
5
5
  SHA512:
6
- metadata.gz: 076d74d84511627a8a3f07f8f447b6243ea5c3ff0095258e37c47018c26d1fdbafc4fe0ac2f1661d7fa88a426ee1da7184463579e4c260f0e9dc90d0c8b83164
7
- data.tar.gz: 97afd011057504c7ffc43ada2a673621149c0d6be21ddeebfd5561d0adc0d76c35be2a195c296b2ded77a54f47c64aa87390b8edab9b46240593462cd99fa69f
6
+ metadata.gz: 19426487828b8a01f3f34fe71fe53f9118b6b9b63f86c481b909c68da416af797f2de013c2211e8d2f2fd26703db453093474f4affae22b0bef5b12a5f397f4d
7
+ data.tar.gz: e6e9a8ce06d487349a98af43becb47c7c1f3a03e6f3954cc0518e97fbe481ff1b9400295e791e71a95a1eb960c564558ad0ded4484afc686d0dec0d5f743489f
data/README.md CHANGED
@@ -28,6 +28,31 @@ Key | Required | Type | Description
28
28
  **callback_url** | `false` | `String` | The URL diawi should call with the result
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
+ **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
+
33
+ <details><summary>⁺ Explanation</summary><p>
34
+
35
+ From [diawi's documentation](https://dashboard.diawi.com/docs/apis/upload):
36
+
37
+ > Polling frequence
38
+ > If possible, prefer using the callbacks than the polling: they will always provide you with the result as soon as it is available.
39
+ >
40
+ > Usually, processing of an upload will take a few seconds: so, a base rule would be to poll every 2 seconds for up to 5 times and should match most simple use-cases.
41
+ >
42
+ > For larger apps, a longer processing might be needed on our side. A rule of thumb would be to wait up to 1 second for each 10 MB of the app. In other words, up to 10 seconds for a 100 MB app, 50 seconds for a 500 MB app, and so on…
43
+ >
44
+ > If the status is still 2001 after that duration, there probably is a problem, let us know.
45
+
46
+ Technically your app can be uploaded to diawi, but still processing for a while. In this case `last_hope_attempts_count` can add extra `n` check status requests.
47
+
48
+ Example:
49
+ ```ruby
50
+ last_hope_attempts_count = 3
51
+ app_size = 23 MB
52
+ check_attempts = 23 / 10 + last_hope_attempts_count = 5 # total attempts is 5; but it will return at first success response
53
+ ```
54
+
55
+ </p></details>
31
56
 
32
57
  ## Result link
33
58
 
@@ -7,7 +7,7 @@ module Fastlane
7
7
  UPLOADED_FILE_LINK_TO_DIAWI = :UPLOADED_FILE_LINK_TO_DIAWI
8
8
  end
9
9
 
10
- class Diawi < Action
10
+ class DiawiAction < Action
11
11
 
12
12
  UPLOAD_URL = "https://upload.diawi.com/"
13
13
  STATUS_CHECK_URL = "https://upload.diawi.com/status"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Diawi
3
- VERSION = "1.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-diawi
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pacification