From 9e4365f1a7bd10c2f8599d3a29730c0ed424d4a0 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Tue, 4 Feb 2025 21:11:56 -0800 Subject: [PATCH] Export the `rendering/renderer/rendering_method.mobile` project setting to the AndroidManifest The AndroidManifest already stores the Godot editor and library versions. The addition of this meta-data allows to identify Godot Android apps that may be subject to renderer specific issues addressed in future versions of the engine. --- platform/android/export/export_plugin.cpp | 2 ++ platform/android/java/app/AndroidManifest.xml | 4 ++++ platform/android/java/app/build.gradle | 5 ++++- platform/android/java/app/config.gradle | 5 +++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 752acc849951..578f723e700f 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -3406,6 +3406,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Refglobalize_path("res://addons"); + String current_renderer = GLOBAL_GET("rendering/renderer/rendering_method.mobile"); cmdline.push_back("-p"); // argument to specify the start directory. cmdline.push_back(build_path); // start directory. @@ -3423,6 +3424,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref + + } } +ext.getGodotRenderingMethod = { -> + String renderingMethod = project.hasProperty("godot_rendering_method") ? project.property("godot_rendering_method") : "" + return renderingMethod +} + ext.getGodotEditorVersion = { -> String editorVersion = project.hasProperty("godot_editor_version") ? project.property("godot_editor_version") : "" if (editorVersion == null || editorVersion.isEmpty()) {