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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61a207f81867b5afd0d775f89c1163c9358959f1f592483ad831fec7feab20c4
4
- data.tar.gz: 81d52d2dd53e75eda4a4cbb13eb1489b6354acdee33f267133d5ffcac2eda74c
3
+ metadata.gz: 262f2c56bf49ff9cc6896fa725a266eab835f5a99d9f92cabdefd51c0068be7c
4
+ data.tar.gz: c901f8111d55dbe421985e1e0b149f48e5a2141c3c20002b637782aea9a44ed9
5
5
  SHA512:
6
- metadata.gz: b14f679bfd115f896155351731c64711c697f0eb08b16dd878baaeb1ee2edb5107958c65bf443edfa36569fc7bfe75eeeb62f9c5a4a9c76cc275430d62925b0a
7
- data.tar.gz: 239ab8f569a592c3d891f2f79319a9bb86d0e461edfd03c05eaeaafc317e28b5db858ebde2d4800f33aad04705212b867c9eb55ad1234b388dc67f3ff8166be9
6
+ metadata.gz: 07fcae2e1d6786e5cf0a474369cc3be9e698fc2bafac5eb97786c4b6b7505bdd64e6b3950e3c9659784ea3c5668d851f8deecae9b4eac06b31641c56963d999c
7
+ data.tar.gz: 7dd6cb3c6ed22aecc2233e8b6c14e4ce3976a63276c7f7d214dae0469d4cfb15064dde550b87138e2419bb622cdf25910769e829069a988bd8c54889bdf0bcec
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- © 2018–2023 Amolo Atelier, Inc.
3
+ © 2018–2024 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
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 an upload token from Waldo for your app. These are
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
- 'ReleaseSim-iphonesimulator',
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 upload token _and_ the path of
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 upload token.
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
- print_command: FastlaneCore::Globals.verbose?,
165
- print_command_output: true) do |error|
166
- # do nothing special, for now
167
- end
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Waldo
3
- VERSION = "3.3.0"
3
+ VERSION = "3.4.0"
4
4
  end
5
5
  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.3.0
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: 2023-01-31 00:00:00.000000000 Z
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: john@waldo.com
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.1.6
100
+ rubygems_version: 3.2.3
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Upload build to Waldo