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 +4 -4
- data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb +17 -2
- data/lib/fastlane/plugin/automated_test_emulator_run/factory/adb_controller_factory.rb +1 -1
- data/lib/fastlane/plugin/automated_test_emulator_run/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: ede20afa1d08274f6441e0333fa2a9d7e307f2a0
|
4
|
+
data.tar.gz: 613443a10666683373cde567608a1fc1711a6e32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 575230c3cfc89ab7fad8e72c0ae95282d1dc99445c379290fb00f67d2de489acf7d2e6e5b53befd8a12aee1cfc1692959f900cdbe15e2764352b66d48f460d5e
|
7
|
+
data.tar.gz: 55cb773f0e71dbc609e006d967abda150450d2144bf801513b4befe530105bab8fad5f5775515d0011498ea38641a7a78b100e20a84fea1369429883a18f4498
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
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
|
|
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.
|
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-
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|