You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: mobile/android/android-emulator-services.ts
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
"use strict";
3
3
4
4
import*asFiberfrom"fibers";
5
+
importchild_process= require("child_process");// used only for type imports
5
6
importFuture= require("fibers/future");
6
7
import*asiconvfrom"iconv-lite";
7
8
import{EOL}from"os";
@@ -22,6 +23,7 @@ class AndroidEmulatorServices implements Mobile.IEmulatorPlatformServices {
22
23
privatestaticTIMEOUT_SECONDS=120;
23
24
privatestaticUNABLE_TO_START_EMULATOR_MESSAGE="Cannot run your app in the native emulator. Increase the timeout of the operation with the --timeout option or try to restart your adb server with 'adb kill-server' command. Alternatively, run the Android Virtual Device manager and increase the allocated RAM for the virtual device.";
privatestaticEMULATOR_EXITED_MESSAGE="The emulator has stopped unexpectedly. Verify its configuration and try again.";
25
27
26
28
privatestaticMISSING_SDK_MESSAGE="The Android SDK is not configured properly. "+
27
29
"Verify that you have installed the Android SDK and that you have added its `platform-tools` and `tools` directories to your PATH environment variable.";
@@ -223,19 +225,33 @@ class AndroidEmulatorServices implements Mobile.IEmulatorPlatformServices {
223
225
224
226
// have to start new emulator
225
227
this.$logger.info("Starting Android emulator with image %s",image);
228
+
letemulatorProc: child_process.ChildProcess=null;
229
+
letemulatorProcEnded=false;
226
230
if(this.$options.geny){
227
231
//player is part of Genymotion, it should be part of the PATH.
0 commit comments