Skip to content

Commit

Permalink
Setup android_sdk before trying emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Jun 3, 2024
1 parent 18de17d commit 58e2fac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/nme/src/CommandLineTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,7 @@ class CommandLineTools
generate();

case "emulator":
getHXCPPConfig(project);
var android = new platforms.AndroidPlatform(project);
android.emulator(words);

Expand Down
1 change: 1 addition & 0 deletions tools/nme/src/platforms/AndroidPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ class AndroidPlatform extends Platform
return null;

var out = ProcessHelper.getOutput(exe, [ "-list-avds"]);
out = out.filter( x -> x.indexOf("INFO")!=0 );
return out;
}

Expand Down
1 change: 1 addition & 0 deletions tools/nme/src/platforms/Platform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class Platform
adbName = test;
// Hmm - use relative path and hope it works
}
Log.verbose('Using adb $adbName from ANDROID_SDK "${project.environment.get("ANDROID_SDK")}"');

adbFlags = [];
if (project.targetFlags.exists("device"))
Expand Down

0 comments on commit 58e2fac

Please sign in to comment.