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

Commit 5b83dea

Browse files
committed
Support Google API images in Andorid Emulator.
See NativeScript/nativescript-cli#175
1 parent dd2fc00 commit 5b83dea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mobile/android/android-emulator-services.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,11 @@ class AndroidEmulatorServices implements Mobile.IEmulatorPlatformServices {
365365
var platform = target.replace('android-', '');
366366
var platformNumber = +platform;
367367
if (isNaN(platformNumber)) {
368-
if (platform === "L") {
368+
// this might be a google image
369+
platform = target.split(":")[2];
370+
if (platform) {
371+
platformNumber = +platform;
372+
} else if (platform === "L") { // Android SDK 20 was actually marked with the letter L
369373
platformNumber = 20;
370374
}
371375
}

0 commit comments

Comments
 (0)