Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 4bc73be

Browse files
Fix starting of genymotion emulator
Use lodash's startsWith method as the extension method startsWith (it was part of extensions.ts) had been removed.
1 parent d1de839 commit 4bc73be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mobile/android/android-emulator-services.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ class AndroidEmulatorServices implements Mobile.IEmulatorPlatformServices {
7070

7171
private checkGenymotionConfiguration(): IFuture<void> {
7272
return (() => {
73+
var proc: any;
7374
try {
74-
var proc = this.$childProcess.spawnFromEvent("player", [], "exit", undefined, { throwError: false }).wait();
75+
proc = this.$childProcess.spawnFromEvent("player", [], "exit", undefined, { throwError: false }).wait();
7576
} catch(e) {
7677
var message: string = (e.code === "ENOENT") ? AndroidEmulatorServices.MISSING_GENYMOTION_MESSAGE : e.message;
7778
this.$errors.failWithoutHelp(message);
7879
}
7980

80-
if(proc.stderr && !proc.stderr.startsWith("Usage:")) {
81+
if(proc.stderr && !_.startsWith(proc.stderr, "Usage:")) {
8182
this.$errors.failWithoutHelp(AndroidEmulatorServices.MISSING_GENYMOTION_MESSAGE);
8283
}
8384
}).future<void>()();

0 commit comments

Comments
 (0)