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 +4 -4
- data/README.md +2 -3
- data/lib/fastlane/plugin/diawi/actions/diawi_action.rb +10 -2
- data/lib/fastlane/plugin/diawi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43e7562700ee6ee6b370d98d1e96ece2546ec462
|
|
4
|
+
data.tar.gz: f78e01f82531b0814c65485c3a0af04ecdea28d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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** |
|
|
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:
|
|
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)",
|
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.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
|
|
11
|
+
date: 2018-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|