Skip to content

fix(hr): restrict XamlReader to mobile targets only - #14183

Merged
jeromelaban merged 2 commits into
masterfrom
dev/jela/hr-skia
Oct 31, 2023
Merged

jeromelaban merged 2 commits into
masterfrom
dev/jela/hr-skia

Conversation

@jeromelaban

@jeromelaban jeromelaban commented Oct 31, 2023 •

Copy link
Copy Markdown
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the new behavior?

Restrict XamlReader HR to mobile targets only until runtime issue is fixed. Avoids having Skia using XamlReader in addition to MetadataUpdates.

Copilot Summary

🤖 Generated by Copilot at 92806a2

This pull request improves the hot reload feature of Uno.UI.RemoteControl by adding a new XamlReader mode, which can update XAML UI elements faster and more reliably. It also adds an option to force this mode and checks the project capabilities to choose the best mode. It also fixes some minor issues with the server metadata updates and the log messages.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@jeromelaban
jeromelaban enabled auto-merge October 31, 2023 00:55
@jeromelaban

Copy link
Copy Markdown
Member Author

@Mergifyio backport release/stable/5.0

@mergify

mergify Bot commented Oct 31, 2023 •

Copy link
Copy Markdown
Contributor

backport release/stable/5.0

✅ Backports have been created

Details

private void InitializeXamlReader()
{
var targetFramework = GetMSBuildProperty("TargetFramework");
var buildingInsideVisualStudio = GetMSBuildProperty("BuildingInsideVisualStudio").Equals("true", StringComparison.OrdinalIgnoreCase);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure if it is on purpose but the variable buildingInsideVisualStudio is not being used

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Indeed it's not I'll remove it in a separate PR. Thanks!

@jeromelaban
jeromelaban disabled auto-merge October 31, 2023 03:29
@jeromelaban
jeromelaban merged commit 95a45bd into master Oct 31, 2023
@jeromelaban
jeromelaban deleted the dev/jela/hr-skia branch October 31, 2023 03:29
jeromelaban added a commit that referenced this pull request Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants