Skip to content

Commit

Permalink
[WIP] Add support for gradle build to the Android editor
Browse files Browse the repository at this point in the history
  • Loading branch information
m4gr3d committed Sep 30, 2024
1 parent e3213aa commit f5edfc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7303,8 +7303,8 @@ EditorNode::EditorNode() {

project_menu->add_separator();
project_menu->add_shortcut(ED_SHORTCUT_AND_COMMAND("editor/export", TTR("Export..."), Key::NONE, TTR("Export")), FILE_EXPORT_PROJECT);
#ifndef ANDROID_ENABLED
project_menu->add_item(TTR("Install Android Build Template..."), FILE_INSTALL_ANDROID_SOURCE);
#ifndef ANDROID_ENABLED
project_menu->add_item(TTR("Open User Data Folder"), RUN_USER_DATA_FOLDER);
#endif

Expand Down
5 changes: 0 additions & 5 deletions platform/android/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2443,10 +2443,6 @@ bool EditorExportPlatformAndroid::has_valid_export_configuration(const Ref<Edito
err += template_err;
}
} else {
#ifdef ANDROID_ENABLED
err += TTR("Gradle build is not supported for the Android editor.") + "\n";
valid = false;
#else
// Validate the custom gradle android source template.
bool android_source_template_valid = false;
const String android_source_template = p_preset->get("gradle_build/android_source_template");
Expand All @@ -2469,7 +2465,6 @@ bool EditorExportPlatformAndroid::has_valid_export_configuration(const Ref<Edito
}

valid = installed_android_build_template && !r_missing_templates;
#endif
}

// Validate the rest of the export configuration.
Expand Down

0 comments on commit f5edfc4

Please sign in to comment.