fastlane-plugin-waldo 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/fastlane/plugin/waldo/actions/waldo_action.rb +10 -0
- data/lib/fastlane/plugin/waldo/helper/waldo_helper.rb +12 -5
- data/lib/fastlane/plugin/waldo/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 262f2c56bf49ff9cc6896fa725a266eab835f5a99d9f92cabdefd51c0068be7c
|
4
|
+
data.tar.gz: c901f8111d55dbe421985e1e0b149f48e5a2141c3c20002b637782aea9a44ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07fcae2e1d6786e5cf0a474369cc3be9e698fc2bafac5eb97786c4b6b7505bdd64e6b3950e3c9659784ea3c5668d851f8deecae9b4eac06b31641c56963d999c
|
7
|
+
data.tar.gz: 7dd6cb3c6ed22aecc2233e8b6c14e4ce3976a63276c7f7d214dae0469d4cfb15064dde550b87138e2419bb622cdf25910769e829069a988bd8c54889bdf0bcec
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -19,7 +19,7 @@ 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
|
22
|
+
To get started, first obtain a CI token from Waldo for your app. These are
|
23
23
|
used to authenticate with the Waldo backend on each call.
|
24
24
|
|
25
25
|
### Uploading an iOS Simulator Build
|
@@ -44,7 +44,7 @@ You can then find your app relative to the derived data path:
|
|
44
44
|
app_path = File.join(derived_data_path,
|
45
45
|
'Build',
|
46
46
|
'Products',
|
47
|
-
'
|
47
|
+
'Release-iphonesimulator',
|
48
48
|
'YourApp.app')
|
49
49
|
```
|
50
50
|
|
@@ -56,7 +56,7 @@ waldo(upload_token: '0123456789abcdef0123456789abcdef',
|
|
56
56
|
app_path: '/path/to/YourApp.app')
|
57
57
|
```
|
58
58
|
|
59
|
-
> **Note:** You _must_ specify _both_ the Waldo
|
59
|
+
> **Note:** You _must_ specify _both_ the Waldo CI token _and_ the path of
|
60
60
|
> the `.app`.
|
61
61
|
|
62
62
|
### Uploading an Android Build
|
@@ -71,7 +71,7 @@ gradle(task: 'assemble',
|
|
71
71
|
waldo(upload_token: '0123456789abcdef0123456789abcdef')
|
72
72
|
```
|
73
73
|
|
74
|
-
> **Note:** You _must_ specify the Waldo
|
74
|
+
> **Note:** You _must_ specify the Waldo CI token.
|
75
75
|
|
76
76
|
If you do _not_ use `gradle` to build your APK, you will need to explicitly
|
77
77
|
specify the APK path to `waldo`:
|
@@ -1,5 +1,9 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Actions
|
3
|
+
module SharedValues
|
4
|
+
WALDO_BUILD_ID = :WALDO_BUILD_ID
|
5
|
+
end
|
6
|
+
|
3
7
|
class WaldoAction < Action
|
4
8
|
def self.run(params)
|
5
9
|
mparams = Helper::WaldoHelper.filter_parameters(params)
|
@@ -77,6 +81,12 @@ module Fastlane
|
|
77
81
|
def self.is_supported?(platform)
|
78
82
|
[:android, :ios].include?(platform)
|
79
83
|
end
|
84
|
+
|
85
|
+
def self.output
|
86
|
+
[
|
87
|
+
['WALDO_BUILD_ID', 'ID of the uploaded build']
|
88
|
+
]
|
89
|
+
end
|
80
90
|
end
|
81
91
|
end
|
82
92
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module Fastlane
|
2
2
|
module Helper
|
3
3
|
class WaldoHelper
|
4
|
+
require 'json'
|
4
5
|
require 'net/http'
|
5
6
|
|
6
7
|
def self.determine_asset_name
|
@@ -89,6 +90,12 @@ module Fastlane
|
|
89
90
|
binary_path
|
90
91
|
end
|
91
92
|
|
93
|
+
def self.extract_build_id(output)
|
94
|
+
last_line = output.lines(chomp: true).last
|
95
|
+
|
96
|
+
JSON.parse(last_line, {symbolize_names: true})[:appVersionID]
|
97
|
+
end
|
98
|
+
|
92
99
|
def self.filter_parameters(in_params)
|
93
100
|
out_params = {}
|
94
101
|
|
@@ -160,11 +167,11 @@ module Fastlane
|
|
160
167
|
|
161
168
|
command << build_path.shellescape
|
162
169
|
|
163
|
-
Actions.sh_control_output(command.join(' '),
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
170
|
+
output = Actions.sh_control_output(command.join(' '),
|
171
|
+
print_command: FastlaneCore::Globals.verbose?,
|
172
|
+
print_command_output: true)
|
173
|
+
|
174
|
+
Actions.lane_context[Actions::SharedValues::WALDO_BUILD_ID] = extract_build_id(output)
|
168
175
|
end
|
169
176
|
end
|
170
177
|
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: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Pusey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description:
|
70
|
-
email:
|
70
|
+
email: j.pusey@tricentis.com
|
71
71
|
executables: []
|
72
72
|
extensions: []
|
73
73
|
extra_rdoc_files: []
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.2.3
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Upload build to Waldo
|