Skip to content

chore: fix #412 #622 iOS resolver reference when iOS module not installed #714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
properly assign defineConstraints
  • Loading branch information
StephenHodgson committed Oct 30, 2024
commit 71eb8d8adfe4a4eaa95b18a33a519796a771afed
3 changes: 2 additions & 1 deletion source/ExportUnityPackage/export_unity_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,8 @@ def set_define_constraints(importer_metadata):
Returns:
Modified importer_metadata.
"""
define_constraints = safe_dict_get_value(importer_metadata, "PluginImporter", {}).get("defineConstraints")
plugin_importer = safe_dict_get_value(importer_metadata, "PluginImporter", default_value={})
define_constraints = plugin_importer.get("defineConstraints")
if define_constraints:
importer_metadata["PluginImporter"]["defineConstraints"] = define_constraints
return importer_metadata
Expand Down