fastlane-plugin-waldo 1.0.0 → 1.1.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/LICENSE +5 -5
- data/README.md +8 -12
- data/lib/fastlane/plugin/waldo/actions/waldo_action.rb +14 -18
- data/lib/fastlane/plugin/waldo/helper/waldo_helper.rb +3 -3
- data/lib/fastlane/plugin/waldo/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: 492c9eb9162ea8139607f50235e4b3b5217a987f
|
4
|
+
data.tar.gz: 8a7498a90dd0cb95ffc381a45429ecd2d0984c3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0d57834d04efcbbfbea86b3deb60c3e6cac4fb05899436c13f977c3c0783b4bbe6e8cd32f6eacc7d867ada18425830a0dc3a057a3b9e078099e922a70e1f73
|
7
|
+
data.tar.gz: 84a74df421289964d788a8fad629fc1041bb7100241b728cd8a7fe5390f69b649282539e435e447ffdfb35f54449f68a436e4bb8058b33f3bb68399f78c5aeb8
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
|
3
|
+
© 2018 Amolo Atelier, Inc.
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
10
10
|
furnished to do so, subject to the following conditions:
|
11
11
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
copies or substantial portions of the Software.
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
14
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
SOFTWARE.
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -19,8 +19,8 @@ which allows you to upload an iOS or Android build to Waldo for processing.
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
To get started, first obtain an
|
23
|
-
|
22
|
+
To get started, first obtain an upload token from Waldo for your app. These are
|
23
|
+
used to authenticate with the Waldo backend on each call.
|
24
24
|
|
25
25
|
### Uploading an iOS Build
|
26
26
|
|
@@ -29,19 +29,17 @@ your IPA, `waldo` will automatically find and upload the generated IPA.
|
|
29
29
|
|
30
30
|
```ruby
|
31
31
|
gym
|
32
|
-
waldo(
|
33
|
-
application_id: 'app-0123456789abcdef')
|
32
|
+
waldo(upload_token: '0123456789abcdef0123456789abcdef')
|
34
33
|
```
|
35
34
|
|
36
|
-
> **Note:** You _must_ specify the Waldo
|
35
|
+
> **Note:** You _must_ specify the Waldo upload token.
|
37
36
|
|
38
37
|
If for some reason you do _not_ use `gym` to build your IPA, you will need to
|
39
38
|
explicitly specify the IPA path to `waldo`:
|
40
39
|
|
41
40
|
```ruby
|
42
41
|
waldo(ipa_path: '/path/to/YourApp.ipa',
|
43
|
-
|
44
|
-
application_id: 'app-0123456789abcdef')
|
42
|
+
upload_token: '0123456789abcdef0123456789abcdef')
|
45
43
|
```
|
46
44
|
|
47
45
|
### Uploading an Android Build
|
@@ -52,19 +50,17 @@ will automatically find and upload the generated APK.
|
|
52
50
|
```ruby
|
53
51
|
gradle(task: 'assemble',
|
54
52
|
build_type: 'Release')
|
55
|
-
waldo(
|
56
|
-
application_id: 'app-0123456789abcdef')
|
53
|
+
waldo(upload_token: '0123456789abcdef0123456789abcdef')
|
57
54
|
```
|
58
55
|
|
59
|
-
> **Note:** You _must_ specify the Waldo
|
56
|
+
> **Note:** You _must_ specify the Waldo upload token.
|
60
57
|
|
61
58
|
If for some reason you do _not_ use `gradle` to build your APK, you will need
|
62
59
|
to explicitly specify the APK path to `waldo`:
|
63
60
|
|
64
61
|
```ruby
|
65
62
|
waldo(apk_path: '/path/to/YourApp.apk',
|
66
|
-
|
67
|
-
application_id: 'app-0123456789abcdef')
|
63
|
+
upload_token: '0123456789abcdef0123456789abcdef')
|
68
64
|
```
|
69
65
|
|
70
66
|
## Issues and Feedback
|
@@ -12,8 +12,7 @@ module Fastlane
|
|
12
12
|
UI.user_error!("You must pass an IPA path to the Waldo action") unless params[:ipa_path]
|
13
13
|
end
|
14
14
|
|
15
|
-
UI.user_error!("You must pass an
|
16
|
-
UI.user_error!("You must pass an application ID to the Waldo action") unless params[:application_id]
|
15
|
+
UI.user_error!("You must pass an upload token to the Waldo action") unless params[:upload_token]
|
17
16
|
|
18
17
|
FastlaneCore::PrintTable.print_values(config: params,
|
19
18
|
title: "Summary for waldo #{Fastlane::Waldo::VERSION.to_s}")
|
@@ -56,21 +55,21 @@ module Fastlane
|
|
56
55
|
UI.user_error!("Unable to find APK file at path '#{value.to_s}'") unless File.exist?(value)
|
57
56
|
end),
|
58
57
|
# General
|
59
|
-
FastlaneCore::ConfigItem.new(key: :
|
60
|
-
env_name: "
|
61
|
-
description: "Waldo
|
58
|
+
FastlaneCore::ConfigItem.new(key: :upload_token,
|
59
|
+
env_name: "WALDO_UPLOAD_TOKEN",
|
60
|
+
description: "Waldo upload token",
|
62
61
|
optional: true,
|
63
62
|
sensitive: true,
|
64
63
|
verify_block: proc do |value|
|
65
|
-
UI.user_error!("No
|
64
|
+
UI.user_error!("No upload token for Waldo given, pass using `upload_token: 'value'`") unless value && !value.empty?
|
66
65
|
end),
|
67
|
-
FastlaneCore::ConfigItem.new(key: :
|
68
|
-
env_name: "
|
69
|
-
description: "Waldo
|
66
|
+
FastlaneCore::ConfigItem.new(key: :variant_name,
|
67
|
+
env_name: "WALDO_VARIANT_NAME",
|
68
|
+
description: "Waldo variant name",
|
70
69
|
optional: true,
|
71
70
|
sensitive: true,
|
72
71
|
verify_block: proc do |value|
|
73
|
-
UI.user_error!("No
|
72
|
+
UI.user_error!("No variant name for Waldo given, pass using `variant_name: 'value'`") unless value && !value.empty?
|
74
73
|
end)
|
75
74
|
]
|
76
75
|
end
|
@@ -87,18 +86,15 @@ module Fastlane
|
|
87
86
|
[
|
88
87
|
'waldo',
|
89
88
|
'waldo(
|
90
|
-
|
91
|
-
application_id: "..."
|
89
|
+
upload_token: "..."
|
92
90
|
)',
|
93
91
|
'waldo(
|
94
|
-
apk_path: "./
|
95
|
-
|
96
|
-
application_id: "..."
|
92
|
+
apk_path: "./YourApp.apk",
|
93
|
+
upload_token: "..."
|
97
94
|
)',
|
98
95
|
'waldo(
|
99
|
-
ipa_path: "./
|
100
|
-
|
101
|
-
application_id: "..."
|
96
|
+
ipa_path: "./YourApp.ipa",
|
97
|
+
upload_token: "..."
|
102
98
|
)'
|
103
99
|
]
|
104
100
|
end
|
@@ -7,7 +7,7 @@ module Fastlane
|
|
7
7
|
UI.success('Uploading the build to Waldo. This could take a while…')
|
8
8
|
|
9
9
|
begin
|
10
|
-
variant_name = Actions.lane_context[Actions::SharedValues::GRADLE_BUILD_TYPE]
|
10
|
+
variant_name = params[:variant_name] || Actions.lane_context[Actions::SharedValues::GRADLE_BUILD_TYPE]
|
11
11
|
uri_string = 'https://api.waldo.io/versions'
|
12
12
|
|
13
13
|
uri_string += "?variantName=#{variant_name}" if variant_name
|
@@ -45,7 +45,7 @@ module Fastlane
|
|
45
45
|
|
46
46
|
request = Net::HTTP::Post.new(uri.request_uri)
|
47
47
|
|
48
|
-
request['Authorization'] = "Upload-Token #{params[:
|
48
|
+
request['Authorization'] = "Upload-Token #{params[:upload_token]}"
|
49
49
|
request['Transfer-Encoding'] = 'chunked'
|
50
50
|
request['User-Agent'] = "Waldo fastlane/#{flavor} v#{Fastlane::Waldo::VERSION}"
|
51
51
|
|
@@ -84,7 +84,7 @@ module Fastlane
|
|
84
84
|
when 200..299
|
85
85
|
UI.success('Build successfully uploaded to Waldo!')
|
86
86
|
when 401
|
87
|
-
UI.user_error!("
|
87
|
+
UI.user_error!("Upload token is invalid or missing!")
|
88
88
|
else
|
89
89
|
UI.user_error!("Build failed to upload to Waldo: #{response.code} #{response.message}")
|
90
90
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-waldo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J. G. Pusey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|