Skip to content
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

fix(JavaScriptBundleLoader): PCLStorage does not work for this #848

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

rozele
Copy link
Collaborator

@rozele rozele commented Nov 1, 2016

Apparently PCLStorage fails to resolve the ms-appx:/// URIs. So, let's not use that.

cc @matthargett

@@ -91,7 +93,7 @@ public override string SourceUrl
try
{
#if WINDOWS_UWP
var storageFile = await FileSystem.Current.GetFileFromPathAsync(new Uri(SourceUrl).ToString()).ConfigureAwait(false);
var storageFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri(SourceUrl));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't forget configureAwait

Apparently PCLStorage fails to resolve the ms-appx:/// URIs.  So, let's not use that.

cc @matthargett
Copy link
Contributor

@matthargett matthargett left a comment

Choose a reason for hiding this comment

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

yup, PCLStorage doesn't have a replacement for GetFileFromApplicationUriAsync. This was set up correctly in another diff, but it looks like things got mixed up at some point.

@matthargett matthargett merged commit 2a27c1d into microsoft:master Nov 1, 2016
rozele added a commit that referenced this pull request Nov 10, 2016
PCLStorage fails to resolve the ms-appx:/// URIs.  Revert to UWP-specific code block.
@rozele rozele deleted the bundle branch November 7, 2017 15:15
rozele added a commit that referenced this pull request Jun 21, 2019
Summary:
Specifically, updates the UWP .vcxproj for MSBuild and also exposes the UseLegacyStretchBehaviour API for use with react-native-windows.
Pull Request resolved: facebook/yoga#848

Reviewed By: SidharthGuglani

Differential Revision: D13848609

Pulled By: davidaurelio

fbshipit-source-id: eab046ff3c47e49706f515e209d8aaf750c2198f
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.

2 participants