fastlane-plugin-diawi 1.2.0 → 1.3.0

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
  SHA1:
3
- metadata.gz: 89fd61c78b1f6cb7e8291c2f9f406889183d1bc4
4
- data.tar.gz: 43f04467c4cdf6a444393fce826704e6161b14f9
3
+ metadata.gz: 43e7562700ee6ee6b370d98d1e96ece2546ec462
4
+ data.tar.gz: f78e01f82531b0814c65485c3a0af04ecdea28d0
5
5
  SHA512:
6
- metadata.gz: 997217ca9a9085b3a3ba615b6bd95517de2ef455459336792f6415d730ed414cf2f13e8fdb34b51f3754806d8cc4d462f1b95508ea8a2aa72cfb586859395162
7
- data.tar.gz: 9d3a91480ef8f32623330a628946ce6539a3ba7d17088029f17c18bb9fcc01f695a72202e28553febbe3e6b94fbef864a7007570ba2cf1e43a1f3a05f22cc496
6
+ metadata.gz: e4b6a882d0f7f5e2fca4ed85209a258b6b5e3e2944f5b72089938dcc6a7f4ea5f56083a307bb87a9568efa73e0180f21ac3a9958c985809ba4103bdc0dbd384d
7
+ data.tar.gz: 653a5cc14dec48b795d5a7ce6948782a1068b9480482a1403a7daae955ce4b2ab7d25a69fa8202d5131392dc92cecafd0abb0018e940ce1b35fc1a1e1b23234c
data/README.md CHANGED
@@ -20,7 +20,7 @@ This plugin can upload .ipa and .apk file to diawi.
20
20
  Key | Required | Type | Description
21
21
  --- | --- | --- | ---
22
22
  **token** | **`true`** | `String` | [API access token](https://dashboard.diawi.com/profile/api)
23
- **file** | **`true`** | `String` | Path to .ipa or .apk file
23
+ **file** | `false` | `String` | Path to .ipa or .apk file. Default - `IPA_OUTPUT_PATH` or `GRADLE_APK_OUTPUT_PATH` based on platform
24
24
  **find_by_udid** | `false` | `Boolean` | Allow your testers to find the app on diawi's mobile web app using their UDID (**iOS only**)
25
25
  **wall_of_apps** | `false` | `Boolean` | Allow diawi to display the app's icon on the wall of apps
26
26
  **password** | `false` | `String` | Protect your app with a password: it will be required to access the installation page
@@ -65,8 +65,7 @@ If file upload successfully, you can access result link by:
65
65
  Minimal plugin configuration is:
66
66
  ```ruby
67
67
  diawi(
68
- token: "your_api_token",
69
- file: "path_to_ipa_or_apk_file"
68
+ token: "your_api_token"
70
69
  )
71
70
  ```
72
71
 
@@ -137,6 +137,13 @@ module Fastlane
137
137
  UI.important("Try to upload file by yourself: #{file}")
138
138
  end
139
139
 
140
+ def self.default_file_path
141
+ platform = Actions.lane_context[SharedValues::PLATFORM_NAME]
142
+ ios_path = Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]
143
+ android_path = Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
144
+ return platform == :ios ? ios_path : android_path
145
+ end
146
+
140
147
  #####################################################
141
148
  # @!group Documentation
142
149
  #####################################################
@@ -149,8 +156,9 @@ module Fastlane
149
156
  optional: false),
150
157
  FastlaneCore::ConfigItem.new(key: :file,
151
158
  env_name: "DIAWI_FILE",
152
- description: "Path to .ipa or .apk file",
153
- optional: false),
159
+ description: "Path to .ipa or .apk file. Default - `IPA_OUTPUT_PATH` or `GRADLE_APK_OUTPUT_PATH` based on platform",
160
+ optional: true,
161
+ default_value: self.default_file_path),
154
162
  FastlaneCore::ConfigItem.new(key: :find_by_udid,
155
163
  env_name: "DIAWI_FIND_BY_UDID",
156
164
  description: "Allow your testers to find the app on diawi's mobile web app using their UDID (iOS only)",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Diawi
3
- VERSION = "1.2.0"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
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.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pacification
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-28 00:00:00.000000000 Z
11
+ date: 2018-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client