Skip to content

Commit 4b32d23

Browse files
committed
add tvOS structures to export_unity_package.py
1 parent 3387fc2 commit 4b32d23

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/ExportUnityPackage/export_unity_package.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,12 @@
404404
[("CompileFlags", None),
405405
("FrameworkDependencies", None)]))])
406406

407+
DEFAULT_PLATFORM_SETTINGS_DISABLED_TVOS = collections.OrderedDict(
408+
PLATFORM_SETTINGS_DISABLED +
409+
[("settings", collections.OrderedDict(
410+
[("CompileFlags", None),
411+
("FrameworkDependencies", None)]))])
412+
407413
PLUGIN_IMPORTER_METADATA_TEMPLATE = collections.OrderedDict(
408414
[("PluginImporter", collections.OrderedDict(
409415
[("serializedVersion", 1),
@@ -441,6 +447,8 @@
441447
DEFAULT_PLATFORM_SETTINGS_DISABLED)),
442448
("iOS", copy.deepcopy(
443449
DEFAULT_PLATFORM_SETTINGS_DISABLED_IOS)),
450+
("tvOS", copy.deepcopy(
451+
DEFAULT_PLATFORM_SETTINGS_DISABLED_TVOS)),
444452
]))
445453
] + DEFAULT_IMPORTER_DATA))
446454
])
@@ -465,6 +473,7 @@
465473
"Win64": "Standalone",
466474
"WindowsStoreApps": "Windows Store Apps",
467475
"iOS": "iPhone",
476+
"tvOS": "tvOS",
468477
}
469478

470479
# Alias for standalone platforms specified by the keys of
@@ -1755,6 +1764,7 @@ def importer_metadata(self):
17551764
elif importer_type == "PluginImporter":
17561765
platforms = set(safe_dict_get_value(
17571766
self._json, "platforms", default_value=["Editor", "Android", "iOS",
1767+
"tvOS",
17581768
STANDALONE_PLATFORM_ALIAS]))
17591769
cpu_string = safe_dict_get_value(self._json, "cpu",
17601770
default_value="AnyCPU")

0 commit comments

Comments
 (0)