| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
#pragma once |
| 32 |
|
| 33 |
#include "core/crypto/crypto_core.h" |
| 34 |
#include "core/io/dir_access.h" |
| 35 |
#include "core/io/file_access.h" |
| 36 |
#include "core/io/zip_io.h" |
| 37 |
#include "core/os/os.h" |
| 38 |
#include "editor/export/editor_export.h" |
| 39 |
#include "editor/export/editor_export_platform.h" |
| 40 |
#include "servers/display/display_server.h" |
| 41 |
|
| 42 |
const String GODOT_PROJECT_NAME_XML_STRING = R"(<?xml version="1.0" encoding="utf-8"?> |
| 43 |
<!--WARNING: THIS FILE WILL BE OVERWRITTEN AT BUILD TIME--> |
| 44 |
<resources> |
| 45 |
<string name="godot_project_name_string">%s</string> |
| 46 |
</resources> |
| 47 |
)"; |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
static const int APP_CATEGORY_ACCESSIBILITY = 0; |
| 52 |
static const int APP_CATEGORY_AUDIO = 1; |
| 53 |
static const int APP_CATEGORY_GAME = 2; |
| 54 |
static const int APP_CATEGORY_IMAGE = 3; |
| 55 |
static const int APP_CATEGORY_MAPS = 4; |
| 56 |
static const int APP_CATEGORY_NEWS = 5; |
| 57 |
static const int APP_CATEGORY_PRODUCTIVITY = 6; |
| 58 |
static const int APP_CATEGORY_SOCIAL = 7; |
| 59 |
static const int APP_CATEGORY_VIDEO = 8; |
| 60 |
static const int APP_CATEGORY_UNDEFINED = 9; |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
static const int XR_MODE_REGULAR = 0; |
| 65 |
static const int XR_MODE_OPENXR = 1; |
| 66 |
|
| 67 |
struct CustomExportData { |
| 68 |
EditorExportPlatform::PackData pd; |
| 69 |
String assets_directory; |
| 70 |
String libs_directory; |
| 71 |
bool debug; |
| 72 |
Vector<String> libs; |
| 73 |
}; |
| 74 |
|
| 75 |
struct MetadataInfo { |
| 76 |
String name; |
| 77 |
String value; |
| 78 |
}; |
| 79 |
|
| 80 |
int _get_android_orientation_value(DisplayServer::ScreenOrientation screen_orientation); |
| 81 |
|
| 82 |
String _get_android_orientation_label(DisplayServer::ScreenOrientation screen_orientation); |
| 83 |
|
| 84 |
int _get_app_category_value(int category_index); |
| 85 |
|
| 86 |
String _get_app_category_label(int category_index); |
| 87 |
|
| 88 |
Error _store_temp_file(const String &p_simplified_path, const Vector<uint8_t> &p_data, const Vector<String> &p_enc_in_filters, const Vector<String> &p_enc_ex_filters, const Vector<uint8_t> &p_key, uint64_t p_seed, bool p_delta, Vector<uint8_t> &r_enc_data, EditorExportPlatform::SavedData &r_sd); |
| 89 |
|
| 90 |
|
| 91 |
Error create_directory(const String &p_dir); |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
Error store_file_at_path(const String &p_path, const Vector<uint8_t> &p_data); |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
Error store_string_at_path(const String &p_path, const String &p_data); |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
Error rename_and_store_file_in_gradle_project(const Ref<EditorExportPreset> &p_preset, void *p_userdata, const String &p_path, const Vector<uint8_t> &p_data, int p_file, int p_total, const Vector<String> &p_enc_in_filters, const Vector<String> &p_enc_ex_filters, const Vector<uint8_t> &p_key, uint64_t p_seed, bool p_delta); |
| 107 |
|
| 108 |
|
| 109 |
Error _create_project_name_strings_files(const Ref<EditorExportPreset> &p_preset, const String &p_project_name, const String &p_gradle_build_dir, const Dictionary &p_appnames); |
| 110 |
|
| 111 |
String bool_to_string(bool v); |
| 112 |
|
| 113 |
String _get_gles_tag(); |
| 114 |
|
| 115 |
String _get_screen_sizes_tag(const Ref<EditorExportPreset> &p_preset); |
| 116 |
|
| 117 |
String _get_activity_tag(const Ref<EditorExportPlatform> &p_export_platform, const Ref<EditorExportPreset> &p_preset, bool p_debug); |
| 118 |
|
| 119 |
String _get_application_tag(const Ref<EditorExportPlatform> &p_export_platform, const Ref<EditorExportPreset> &p_preset, bool p_has_read_write_storage_permission, bool p_debug, const Vector<MetadataInfo> &p_metadata); |