You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Android: Add isGame application attribute, default to true
It can be turned off in the export preset with `package/classify_as_game`. Upstream definition: https://developer.android.com/guide/topics/manifest/application-element#isGame > `android:isGame` > > Whether or not the application is a game. The system may group together > applications classifed as games or display them separately from other > applications. Also fixes replacing `android:allowBackup` in custom builds.
This commit is contained in:
@@ -252,9 +252,13 @@ String _get_activity_tag(const Ref<EditorExportPreset> &p_preset) {
|
||||
String _get_application_tag(const Ref<EditorExportPreset> &p_preset) {
|
||||
String manifest_application_text = vformat(
|
||||
" <application android:label=\"@string/godot_project_name_string\"\n"
|
||||
" android:allowBackup=\"%s\" tools:ignore=\"GoogleAppIndexingWarning\"\n"
|
||||
" android:icon=\"@mipmap/icon\">\n\n",
|
||||
bool_to_string(p_preset->get("user_data_backup/allow")));
|
||||
" android:allowBackup=\"%s\"\n"
|
||||
" android:icon=\"@mipmap/icon\"\n"
|
||||
" android:isGame=\"%s\"\n"
|
||||
" tools:replace=\"android:allowBackup,android:isGame\"\n"
|
||||
" tools:ignore=\"GoogleAppIndexingWarning\">\n\n",
|
||||
bool_to_string(p_preset->get("user_data_backup/allow")),
|
||||
bool_to_string(p_preset->get("package/classify_as_game")));
|
||||
|
||||
manifest_application_text += _get_activity_tag(p_preset);
|
||||
manifest_application_text += " </application>\n";
|
||||
|
||||
Reference in New Issue
Block a user