fastlane-plugin-automated_test_emulator_run 0.5.6 → 0.5.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c944af9cc08ec10f293601d8b2be3171d53d4e1
|
4
|
+
data.tar.gz: 5d3de76a679147d85c5425cc447c392ef769e105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c4119ff6a00fba586ed4df4c38feff0c5f13cdb744f9e3cf889750880f47e36158485fa4b1aa37e5bab865b9da478dc131015e9c32e6375a2332eb9e62b9e4
|
7
|
+
data.tar.gz: 7c72d3c2e932d14049da36ef55865cb2ba7b416325e4b670f8dfa0156c1a7a8943675b53cd657f779b0f04b8d3f6815f52d4d90a37ae885ec398d31606615815
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
@@ -112,7 +112,9 @@ module Fastlane
|
|
112
112
|
timeoutInSeconds= 180.0
|
113
113
|
startTime = Time.now
|
114
114
|
loop do
|
115
|
-
|
115
|
+
dev_bootcomplete, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop dev.bootcomplete")
|
116
|
+
sys_boot_completed, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop sys.boot_completed")
|
117
|
+
bootanim, _stdeerr, _status = Open3.capture3(sdkRoot + ["/platform-tools/adb -s emulator-", port].join("") + " shell getprop init.svc.bootanim")
|
116
118
|
currentTime = Time.now
|
117
119
|
|
118
120
|
if (currentTime - startTime) >= timeoutInSeconds
|
@@ -120,7 +122,7 @@ module Fastlane
|
|
120
122
|
return false
|
121
123
|
end
|
122
124
|
|
123
|
-
if
|
125
|
+
if (dev_bootcomplete.strip == "1" && sys_boot_completed.strip == "1" && bootanim.strip == "stopped")
|
124
126
|
UI.message("Emulator Booted!".green)
|
125
127
|
return true
|
126
128
|
end
|
@@ -130,11 +132,15 @@ module Fastlane
|
|
130
132
|
|
131
133
|
def self.waitFor_emulatorStop(sdkRoot, port, params)
|
132
134
|
UI.message("Shutting down emulator...".green)
|
133
|
-
Action.sh(sdkRoot + "/platform-tools/adb emu kill &>/dev/null")
|
135
|
+
Action.sh(sdkRoot + "/platform-tools/adb -s " + ["emulator-", port].join("") + " emu kill &>/dev/null")
|
134
136
|
|
135
137
|
delayInSeconds = 45.0
|
136
138
|
sleep(delayInSeconds)
|
137
139
|
|
140
|
+
UI.message("Restarting adb..".green)
|
141
|
+
Action.sh(sdkRoot + "/platform-tools/adb kill-server")
|
142
|
+
Action.sh(sdkRoot + "/platform-tools/adb start-server")
|
143
|
+
|
138
144
|
UI.message("Deleting emulator....".green)
|
139
145
|
Action.sh(sdkRoot + "/tools/android delete avd -n #{params[:avd_name]}")
|
140
146
|
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: 0.5.
|
4
|
+
version: 0.5.7
|
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-11-
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|