Rename "Identifier" to "Bundle Identifier" in macOS/iOS export presets
"Bundle Identifier" is more well-understood among macOS and iOS developers and is less ambiguous. This is a slight breaking change as export presets will need to be updated to account for this change. See https://github.com/godotengine/godot-docs/pull/3295.
This commit is contained in:
parent
9562fb900e
commit
fdb89a3f9a
5 changed files with 14 additions and 14 deletions
|
|
@ -217,7 +217,7 @@ void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options)
|
|||
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/name", PROPERTY_HINT_PLACEHOLDER_TEXT, "Game Name"), ""));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/info"), "Made with Godot Engine"));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/identifier", PROPERTY_HINT_PLACEHOLDER_TEXT, "com.example.game"), ""));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/bundle_identifier", PROPERTY_HINT_PLACEHOLDER_TEXT, "com.example.game"), ""));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/signature"), ""));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/short_version"), "1.0"));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "application/version"), "1.0"));
|
||||
|
|
@ -293,8 +293,8 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref<EditorExportPreset> &p_
|
|||
strnew += lines[i].replace("$name", p_config.pkg_name) + "\n";
|
||||
} else if (lines[i].find("$info") != -1) {
|
||||
strnew += lines[i].replace("$info", p_preset->get("application/info")) + "\n";
|
||||
} else if (lines[i].find("$identifier") != -1) {
|
||||
strnew += lines[i].replace("$identifier", p_preset->get("application/identifier")) + "\n";
|
||||
} else if (lines[i].find("$bundle_identifier") != -1) {
|
||||
strnew += lines[i].replace("$bundle_identifier", p_preset->get("application/bundle_identifier")) + "\n";
|
||||
} else if (lines[i].find("$short_version") != -1) {
|
||||
strnew += lines[i].replace("$short_version", p_preset->get("application/short_version")) + "\n";
|
||||
} else if (lines[i].find("$version") != -1) {
|
||||
|
|
@ -1346,7 +1346,7 @@ bool EditorExportPlatformIOS::can_export(const Ref<EditorExportPreset> &p_preset
|
|||
valid = false;
|
||||
}
|
||||
|
||||
String identifier = p_preset->get("application/identifier");
|
||||
String identifier = p_preset->get("application/bundle_identifier");
|
||||
String pn_err;
|
||||
if (!is_package_name_valid(identifier, &pn_err)) {
|
||||
err += TTR("Invalid Identifier:") + " " + pn_err + "\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue