Skip to content

Conversation

@andreiborodin
Copy link
Contributor

This follows the same approach as #109 in updating how the exporter logic is split up for a cleaner and well understood split of responsibilities.

@andreiborodin andreiborodin added the enhancement New feature or request label Jan 18, 2020
@andreiborodin andreiborodin added this to the 0.9.0 Release milestone Jan 18, 2020
@andreiborodin andreiborodin self-assigned this Jan 18, 2020
/// <param name="inEditor">Whether to export the inEditor version.</param>
public static void ExportCoreUnityPropFile(IUnityProjectExporter exporter, CompilationPlatformInfo platform, bool inEditor)
{
string configuration = inEditor ? "InEditor" : "Player";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"InEditor" : "Player" [](start = 46, length = 21)

it feels like these should be hard coded as constants somewhere for consistency throughout the exporters

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly, but will save that for a later change.

@chrisfromwork
Copy link
Contributor

// Copyright (c) Microsoft Corporation. All rights reserved.

nit: remove "All rights reserved."


Refers to: Source/MSBuildTools.Unity/Packages/com.microsoft.msbuildforunity/Editor/ProjectGenerator/Scripts/Exporters/IPlatformPropsExporter.cs:1 in 3252586. [](commit_id = 3252586, deletion_comment = False)

/// </summary>
/// <param name="path">The <see cref="FileInfo"/> representing where this props file will be written.</param>
/// <param name="scriptingBackend">The scripting backend for the platform props.</param>
IWSAPlayerPlatformPropsExporter CreateWSAPlayerPlatformPropsExporter(FileInfo path, ScriptingBackend scriptingBackend);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CreateWSAPlayerPlatformPropsExporter [](start = 40, length = 36)

are we going to need a custom exporter for each platform/player combination? Are there specific things needed on IWSAPlayerPlatformPropsExporter that wouldn't pertain to other platforms?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and yes Min/Max target UWP platform.

Copy link
Contributor

@chrisfromwork chrisfromwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@andreiborodin
Copy link
Contributor Author

Putting it in, will remove the copyright in a subsequent PR I will be putting out soon.

@andreiborodin andreiborodin merged commit 01253c3 into master Jan 21, 2020
@andreiborodin andreiborodin deleted the features/updatePlatformPropsGeneration branch January 21, 2020 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants