@@ -88,6 +88,8 @@ int _get_app_category_value(int category_index) {
88
88
return 7 ;
89
89
case APP_CATEGORY_SOCIAL:
90
90
return 4 ;
91
+ case APP_CATEGORY_UNDEFINED:
92
+ return -1 ;
91
93
case APP_CATEGORY_VIDEO:
92
94
return 2 ;
93
95
case APP_CATEGORY_GAME:
@@ -311,17 +313,21 @@ String _get_application_tag(const Ref<EditorExportPlatform> &p_export_platform,
311
313
" <application android:label=\" @string/godot_project_name_string\"\n "
312
314
" android:allowBackup=\" %s\"\n "
313
315
" android:icon=\" @mipmap/icon\"\n "
314
- " android:appCategory=\" %s\"\n "
315
316
" android:isGame=\" %s\"\n "
316
317
" android:hasFragileUserData=\" %s\"\n "
317
- " android:requestLegacyExternalStorage=\" %s\"\n "
318
- " tools:replace=\" android:allowBackup,android:appCategory,android:isGame,android:hasFragileUserData,android:requestLegacyExternalStorage\"\n "
319
- " tools:ignore=\" GoogleAppIndexingWarning\" >\n\n " ,
318
+ " android:requestLegacyExternalStorage=\" %s\"\n " ,
320
319
bool_to_string (p_preset->get (" user_data_backup/allow" )),
321
- _get_app_category_label (app_category_index),
322
320
bool_to_string (is_game),
323
321
bool_to_string (p_preset->get (" package/retain_data_on_uninstall" )),
324
322
bool_to_string (p_has_read_write_storage_permission));
323
+ if (app_category_index != APP_CATEGORY_UNDEFINED) {
324
+ manifest_application_text += vformat (" android:appCategory=\" %s\"\n " , _get_app_category_label (app_category_index));
325
+ manifest_application_text += " tools:replace=\" android:allowBackup,android:appCategory,android:isGame,android:hasFragileUserData,android:requestLegacyExternalStorage\"\n " ;
326
+ } else {
327
+ manifest_application_text += " tools:remove=\" android:appCategory\"\n " ;
328
+ manifest_application_text += " tools:replace=\" android:allowBackup,android:isGame,android:hasFragileUserData,android:requestLegacyExternalStorage\"\n " ;
329
+ }
330
+ manifest_application_text += " tools:ignore=\" GoogleAppIndexingWarning\" >\n\n " ;
325
331
326
332
Vector<Ref<EditorExportPlugin>> export_plugins = EditorExport::get_singleton ()->get_export_plugins ();
327
333
for (int i = 0 ; i < export_plugins.size (); i++) {
0 commit comments