fastlane-plugin-automated_test_emulator_run 1.5.0 → 1.5.1

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
  SHA1:
3
- metadata.gz: 1f4df821ea05fe8c6aa84588219ece95396c8765
4
- data.tar.gz: 4b13639cb09291a3cec0b84cb2c5d4c3f4a01775
3
+ metadata.gz: ede20afa1d08274f6441e0333fa2a9d7e307f2a0
4
+ data.tar.gz: 613443a10666683373cde567608a1fc1711a6e32
5
5
  SHA512:
6
- metadata.gz: c32d4a26d431e7032d4836acd5eb47d1786a7e93c315e9bcc7cd246202919f7abab1980be2a8370747cdaac04680bddc2e1601e0ec0120c53495c268a3da2565
7
- data.tar.gz: 10b97e41d75cfda3757222818b60dc06378a407e9aec09b77c26f19a08130850efc80ec5b9cc2325241729b22d1ad570045bbbabb94ae06dc9ea08188884c5a6
6
+ metadata.gz: 575230c3cfc89ab7fad8e72c0ae95282d1dc99445c379290fb00f67d2de489acf7d2e6e5b53befd8a12aee1cfc1692959f900cdbe15e2764352b66d48f460d5e
7
+ data.tar.gz: 55cb773f0e71dbc609e006d967abda150450d2144bf801513b4befe530105bab8fad5f5775515d0011498ea38641a7a78b100e20a84fea1369429883a18f4498
@@ -138,7 +138,15 @@ module Fastlane
138
138
  all_avd_launched = adb_launch_complete && param_launch_complete
139
139
 
140
140
  # Deciding if AVD launch should be restarted
141
- devices = Action.sh(adb_controller.command_get_devices)
141
+ devices_output = Action.sh(adb_controller.command_get_devices)
142
+
143
+ devices = ""
144
+ devices_output.each_line do |line|
145
+ if line.include?("emulator-")
146
+ devices += line.sub(/\t/, " ")
147
+ end
148
+ end
149
+
142
150
  if all_avd_launched
143
151
  UI.message("AVDs Booted!".green)
144
152
  else
@@ -226,7 +234,14 @@ module Fastlane
226
234
  currentTime = Time.now
227
235
  if ((currentTime - lastCheckTime) * 1000) > interval
228
236
  lastCheckTime = currentTime
229
- devices = Action.sh(adb_controller.command_get_devices)
237
+ devices_output = Action.sh(adb_controller.command_get_devices)
238
+
239
+ devices = ""
240
+ devices_output.each_line do |line|
241
+ if line.include?("emulator-")
242
+ devices += line.sub(/\t/, " ")
243
+ end
244
+ end
230
245
 
231
246
  # Check if device is visible
232
247
  all_devices_visible = true
@@ -18,7 +18,7 @@ module Fastlane
18
18
  # ADB shell command parts
19
19
  sh_stop_adb = "kill-server"
20
20
  sh_start_adb = "start-server"
21
- sh_devices_adb = "devices | grep [0-9] | tr -s \"\t\" \" | cut -d\""
21
+ sh_devices_adb = "devices"
22
22
  sh_wait_for_device_adb = "wait-for-device"
23
23
  sh_list_avd_adb = "list avd"
24
24
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AutomatedTestEmulatorRun
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.1"
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.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Krzyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry