Skip to content

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

Merged
matthargett merged 1 commit intomicrosoft:masterfrom
rozele:bundle
Nov 1, 2016
Merged

fix(JavaScriptBundleLoader): PCLStorage does not work for this#848
matthargett merged 1 commit intomicrosoft:masterfrom
rozele:bundle

Conversation

@rozele
Copy link
Contributor

@rozele rozele commented Nov 1, 2016

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

cc @matthargett

{
#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
Contributor 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