1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Replace the use of the ANDROID_SDK_ROOT env variable with ANDROID_HOME as the former is deprecated.

See https://developer.android.com/tools/variables#android_home for more details
This commit is contained in:
Fredia Huya-Kouadio
2023-11-01 09:17:19 -07:00
parent 37d51d2cb7
commit a1ca4bab47
2 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ void register_android_exporter_types() {
void register_android_exporter() {
#ifndef ANDROID_ENABLED
EDITOR_DEF("export/android/android_sdk_path", OS::get_singleton()->get_environment("ANDROID_SDK_ROOT"));
EDITOR_DEF("export/android/android_sdk_path", OS::get_singleton()->get_environment("ANDROID_HOME"));
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"));