Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Apr 18, 2023
1 parent 9a5508a commit 65d51af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,9 @@ int main (const int argc, const char* argv[]) {
// Windows doesn't support 'yes'
log(("Check licenses and run again: \n" + licenseAccept + "\n").c_str());
}

// TODO: internal, no need to save to settings
settings["android_sdk_manager_path"] = sdkmanager.str();

String gradlePath = getEnv("GRADLE_HOME").size() > 0 ? getEnv("GRADLE_HOME") + slash + "bin" + slash : "";

Expand Down Expand Up @@ -2925,6 +2928,7 @@ int main (const int argc, const char* argv[]) {
auto app = paths.platformSpecificOutputPath / "app";
auto androidHome = getAndroidHome();

StringStream sdkmanager;
StringStream packages;
StringStream gradlew;
String ndkVersion = "25.0.8775105";
Expand All @@ -2935,6 +2939,8 @@ int main (const int argc, const char* argv[]) {
<< "ANDROID_HOME=" << androidHome << " ";
}

sdkmanager << settings["android_sdk_manager_path"];

packages
<< " "
<< quote << "ndk;" << ndkVersion << quote << " "
Expand Down

0 comments on commit 65d51af

Please sign in to comment.