From f86e6115d980cfe0d094d2f4f2b76ed94006d1fa Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Tue, 31 Oct 2023 22:54:08 -0700 Subject: [PATCH] Automatically pick the Android sdk path using environment variables --- platform/android/export/export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 682603e46b..9f9a653cf1 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -42,7 +42,7 @@ void register_android_exporter_types() { void register_android_exporter() { #ifndef ANDROID_ENABLED - EDITOR_DEF("export/android/android_sdk_path", ""); + EDITOR_DEF("export/android/android_sdk_path", OS::get_singleton()->get_environment("ANDROID_SDK_ROOT")); EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/android_sdk_path", PROPERTY_HINT_GLOBAL_DIR)); EDITOR_DEF("export/android/debug_keystore", ""); EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/debug_keystore", PROPERTY_HINT_GLOBAL_FILE, "*.keystore,*.jks"));