fastlane-plugin-automated_test_emulator_run 1.2.3 → 1.2.4

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: 0bd8685d04a8f1c2bf9897ee6b42567b720fd51d
4
- data.tar.gz: 96e83b4da75bf21b2b0f5671e2e102b10a0806fa
3
+ metadata.gz: d807d474f4db1dc81eb9d1d2f58e26746099da6b
4
+ data.tar.gz: d08ee214e0bbdc4feada34e87445a934a5adae8c
5
5
  SHA512:
6
- metadata.gz: b8fdff882dca3c92fdf558691ce13ba46e1e277ef7fb9e56c11f56161408c895cf0cba3f9b7f719270cd3dfcd03ad907d0d7641fb1fa91d720d6f46a5a61d1c0
7
- data.tar.gz: 6c9dd5a6cb1ae678d7eba6797b01caf97a1fcb4d31e43bfb9c41f646c6e72a73b5a7e8b156d5c687210e7673596a70e1ddde5e87f7f9447d2d57bd2dac3ba851
6
+ metadata.gz: 118e6f40e3b5b9904a03b5a38aad20884f02bd629219ea9f9577ab8faa500eed0a970360f4a077b074f334ad53e61f9acde0e938a4659985eecaba7155b139a2
7
+ data.tar.gz: 0357ce6073ec18a46dde9720f451cf459dacca9441a5265698aacf0bc2b80277495a471124d69803d6d34b4297e363028b570c449962a1676538abece549b08e
@@ -20,18 +20,21 @@ module Fastlane
20
20
  avd_controller = Factory::AvdControllerFactory.get_avd_controller(params, avd_schemes[i])
21
21
  avd_controllers << avd_controller
22
22
 
23
- # Checking for output files
24
- if File.exists?(avd_controller.output_file.path)
25
- UI.message([
26
- "Successfully created tmp output file for AVD:",
27
- avd_schemes[i].avd_name + ".",
28
- "File: " + avd_controller.output_file.path].join(" ").green)
29
- else
30
- UI.message([
31
- "Unable to create output file for AVD:",
32
- avd_schemes[i].avd_name + ".",
33
- "Output will be delegated to null and lost. Check your save/read permissions."].join(" ").red)
23
+ if params[:verbose]
24
+ # Checking for output files
25
+ if File.exists?(avd_controller.output_file.path)
26
+ UI.message([
27
+ "Successfully created tmp output file for AVD:",
28
+ avd_schemes[i].avd_name + ".",
29
+ "File: " + avd_controller.output_file.path].join(" ").green)
30
+ else
31
+ UI.message([
32
+ "Unable to create output file for AVD:",
33
+ avd_schemes[i].avd_name + ".",
34
+ "Output will be delegated to null and lost. Check your save/read permissions."].join(" ").red)
35
+ end
34
36
  end
37
+
35
38
  end
36
39
 
37
40
  all_avd_launched = false
@@ -118,10 +121,13 @@ module Fastlane
118
121
  UI.message("AVDs Booted!".green)
119
122
  else
120
123
  for i in 0...avd_schemes.length
121
- # Display AVD output
122
- if (File.exists?(avd_controllers[i].output_file.path))
123
- UI.message(["Displaying log for AVD:", avd_schemes[i].avd_name].join(" ").red)
124
- UI.message(avd_controllers[i].output_file.read.blue)
124
+
125
+ if params[:verbose]
126
+ # Display AVD output
127
+ if (File.exists?(avd_controllers[i].output_file.path))
128
+ UI.message(["Displaying log for AVD:", avd_schemes[i].avd_name].join(" ").red)
129
+ UI.message(avd_controllers[i].output_file.read.blue)
130
+ end
125
131
  end
126
132
 
127
133
  # Killing devices
@@ -157,14 +163,16 @@ module Fastlane
157
163
  Action.sh(avd_controllers[i].command_kill_device)
158
164
  end
159
165
 
160
- # Display AVD output
161
- if (File.exists?(avd_controllers[i].output_file.path))
162
- UI.message("Displaying log from AVD to console:".green)
163
- UI.message(avd_controllers[i].output_file.read.blue)
166
+ if params[:verbose]
167
+ # Display AVD output
168
+ if (File.exists?(avd_controllers[i].output_file.path))
169
+ UI.message("Displaying log from AVD to console:".green)
170
+ UI.message(avd_controllers[i].output_file.read.blue)
164
171
 
165
- UI.message("Removing temp file.".green)
166
- avd_controllers[i].output_file.close
167
- avd_controllers[i].output_file.unlink
172
+ UI.message("Removing temp file.".green)
173
+ avd_controllers[i].output_file.close
174
+ avd_controllers[i].output_file.unlink
175
+ end
168
176
  end
169
177
 
170
178
  # Delete AVDs
@@ -319,6 +327,13 @@ module Fastlane
319
327
  optional: true,
320
328
  conflicting_options: [:shell_command],
321
329
  is_string: true),
330
+
331
+ #mode
332
+ FastlaneCore::ConfigItem.new(key: :verbose,
333
+ env_name: "AVD_VERBOSE",
334
+ description: "Allows to turn on/off mode verbose which displays output of AVDs",
335
+ default_value: false,
336
+ optional: true),
322
337
  ]
323
338
  end
324
339
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "1.2.3"
3
+ VERSION = "1.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-automated_test_emulator_run
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry