fastlane-plugin-automated_test_emulator_run 0.4.0 → 0.4.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48db1d581d99500b8b3face8530cf4ee36a022c7
|
4
|
+
data.tar.gz: 555f51d862155fcccb8b326d8d60391338bb5140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d0cca502c9cb0bfcd25a7a7b0c6682df8ad86d0a651cfb49e8ae7b0bb3959cb7829960ca5d5c891cc8c576fd76aea2f86f45e070afc053eb0021bb171c12adc
|
7
|
+
data.tar.gz: f073f79618f46267ce730825ff78411fa8123c438ad90208734bf4a71556e96244accbc4b2d6bc28267aeacc6d2580c13ee3c02adf82bea132e8cac104eea428
|
data/lib/fastlane/plugin/automated_test_emulator_run/actions/automated_test_emulator_run_action.rb
CHANGED
@@ -7,6 +7,8 @@ module Fastlane
|
|
7
7
|
end
|
8
8
|
|
9
9
|
class AutomatedTestEmulatorRunAction < Action
|
10
|
+
emulatorStarted = false
|
11
|
+
|
10
12
|
def self.run(params)
|
11
13
|
gradle = Helper::GradleHelper.new(gradle_path: Dir["./gradlew"].last)
|
12
14
|
|
@@ -128,6 +130,7 @@ module Fastlane
|
|
128
130
|
end
|
129
131
|
|
130
132
|
if stdout.strip == "1"
|
133
|
+
emulatorStarted = true
|
131
134
|
UI.message("Emulator Booted!".green)
|
132
135
|
break
|
133
136
|
end
|
@@ -136,14 +139,16 @@ module Fastlane
|
|
136
139
|
end
|
137
140
|
|
138
141
|
def self.waitFor_emulatorStop(sdkRoot, port, params, file)
|
139
|
-
|
140
|
-
|
142
|
+
if emulatorStarted
|
143
|
+
adb = Helper::AdbHelper.new(adb_path: sdkRoot + "/platform-tools/adb")
|
144
|
+
temp = File.open(file.path).read
|
141
145
|
|
142
|
-
|
143
|
-
|
146
|
+
UI.message("Shutting down emulator...".green)
|
147
|
+
adb.trigger(command: "emu kill", serial: "emulator-#{port}")
|
144
148
|
|
145
|
-
|
146
|
-
|
149
|
+
UI.message("Deleting emulator....".green)
|
150
|
+
Action.sh(sdkRoot + "/tools/android delete avd -n #{params[:avd_name]}")
|
151
|
+
end
|
147
152
|
end
|
148
153
|
|
149
154
|
def self.available_options
|